AndroidSdkHandler/RepoManager and associated classes instead.@Deprecated public interface IPkgDesc extends java.lang.Comparable<IPkgDesc>
IPkgDesc keeps information on individual SDK packages
(both local or remote packages definitions.)
To create a new IPkgDesc, use one of the package-specific constructors
provided by PkgDesc.Builder.newXxx().
To query packages capabilities, rely on getType() and the IPkgDesc.hasXxx()
methods provided by IPkgDesc.
| Modifier and Type | Method and Description |
|---|---|
com.android.sdklib.AndroidVersion |
getAndroidVersion()
Deprecated.
Returns the package's
AndroidVersion or null. |
java.lang.String |
getBaseInstallId()
Deprecated.
Returns a stable string id that can be used to reference this package, which
excludes the preview suffix.
|
java.io.File |
getCanonicalInstallFolder(java.io.File sdkLocation)
Deprecated.
Returns the canonical location where such a package would be installed.
|
java.lang.String |
getDescriptionShort()
Deprecated.
|
java.lang.String |
getDescriptionUrl()
Deprecated.
|
java.lang.String |
getInstallId()
Deprecated.
Returns a stable string id that can be used to reference this package, including
a suffix indicating that this package is a preview if it is.
|
com.android.repository.api.License |
getLicense()
Deprecated.
|
java.lang.String |
getListDescription()
Deprecated.
|
java.lang.String |
getListDisplay()
Deprecated.
Returns the list-display meta data of this package.
|
com.android.repository.Revision |
getMinPlatformToolsRev()
Deprecated.
Returns the package's
min-platform-tools-rev or null. |
com.android.repository.Revision |
getMinToolsRev()
Deprecated.
Returns the package's
min-tools-rev or null. |
IdDisplay |
getName()
Deprecated.
|
java.lang.String |
getPath()
Deprecated.
Returns the package's path string or null.
|
com.android.repository.Revision |
getRevision()
Deprecated.
Returns the package's
Revision. |
IdDisplay |
getTag()
Deprecated.
Returns the package's tag id-display tuple or null.
|
PkgType |
getType()
Deprecated.
Returns the type of the package.
|
IdDisplay |
getVendor()
Deprecated.
Returns the package's vendor-id string or null.
|
boolean |
hasAndroidVersion()
Deprecated.
|
boolean |
hasMinPlatformToolsRev()
Deprecated.
|
boolean |
hasMinToolsRev()
Deprecated.
|
boolean |
hasPath()
Deprecated.
|
boolean |
hasTag()
Deprecated.
|
boolean |
hasVendor()
Deprecated.
|
boolean |
isObsolete()
Deprecated.
|
boolean |
isPreview()
Deprecated.
|
boolean |
isUpdateFor(IPkgDesc existingDesc)
Deprecated.
Indicates whether this package descriptor is an update for the given
existing descriptor.
|
boolean |
isUpdateFor(IPkgDesc existingDesc,
com.android.repository.Revision.PreviewComparison previewComparison)
Deprecated.
Indicates whether this package descriptor is an update for the given
existing descriptor, using the given comparison method.
|
@NonNull PkgType getType()
PkgType constants.@Nullable java.lang.String getListDisplay()
@Nullable IdDisplay getName()
@Nullable java.lang.String getDescriptionShort()
@Nullable java.lang.String getDescriptionUrl()
@Nullable com.android.repository.api.License getLicense()
boolean isObsolete()
@NonNull com.android.repository.Revision getRevision()
Revision.@Nullable com.android.sdklib.AndroidVersion getAndroidVersion()
AndroidVersion or null.hasAndroidVersion() is true; otherwise a null value.@Nullable java.lang.String getPath()
For PkgType.PKG_SYS_IMAGE, the path is the system-image ABI.
For PkgType.PKG_PLATFORM, the path is the platform hash string.
For PkgType.PKG_ADDON, the path is the platform hash string.
For PkgType.PKG_EXTRA, the path is the extra-path string.
hasPath() is true; otherwise a null value.@Nullable IdDisplay getTag()
hasTag() is true; otherwise a null value.@Nullable IdDisplay getVendor()
hasVendor() is true; otherwise a null value.@Nullable com.android.repository.Revision getMinToolsRev()
min-tools-rev or null.hasMinToolsRev() is true; otherwise a null value.@Nullable com.android.repository.Revision getMinPlatformToolsRev()
min-platform-tools-rev or null.hasMinPlatformToolsRev() is true; otherwise null.boolean isUpdateFor(@NonNull
IPkgDesc existingDesc)
existingDesc - A non-null existing descriptor.boolean isUpdateFor(@NonNull
IPkgDesc existingDesc,
@NonNull
com.android.repository.Revision.PreviewComparison previewComparison)
existingDesc - A non-null existing descriptor.previewComparison - The Revision.PreviewComparison method to use
when comparing the packages.@NonNull java.lang.String getInstallId()
java.lang.String getBaseInstallId()
@NonNull
java.io.File getCanonicalInstallFolder(@NonNull
java.io.File sdkLocation)
sdkLocation - The root of the SDK.boolean isPreview()
java.lang.String getListDescription()
boolean hasVendor()
boolean hasAndroidVersion()
boolean hasPath()
boolean hasTag()
boolean hasMinToolsRev()
boolean hasMinPlatformToolsRev()