com.android.sdklib.repositoryv2
Class LegacyRepoUtils

java.lang.Object
  extended by com.android.sdklib.repositoryv2.LegacyRepoUtils

public class LegacyRepoUtils
extends java.lang.Object

Utilities used by the FallbackLocalRepoLoader and FallbackRemoteRepoLoaders to convert IPkgDescs into forms useful to RepoManager.


Constructor Summary
LegacyRepoUtils()
           
 
Method Summary
static com.android.repository.impl.meta.TypeDetails createTypeDetails(IPkgDesc desc, SdkManager.LayoutlibVersion layoutLibVersion, com.android.repository.api.ProgressIndicator progress)
          Convert a IPkgDesc and other old-style information into a TypeDetails.
static java.lang.String getDisplayName(IPkgDesc legacy)
          Gets the RepoPackage.getDisplayName() return value from an IPkgDesc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyRepoUtils

public LegacyRepoUtils()
Method Detail

createTypeDetails

public static com.android.repository.impl.meta.TypeDetails createTypeDetails(@NonNull
                                                                             IPkgDesc desc,
                                                                             @Nullable
                                                                             SdkManager.LayoutlibVersion layoutLibVersion,
                                                                             com.android.repository.api.ProgressIndicator progress)
Convert a IPkgDesc and other old-style information into a TypeDetails.


getDisplayName

public static java.lang.String getDisplayName(IPkgDesc legacy)
Gets the RepoPackage.getDisplayName() return value from an IPkgDesc.