Interface IPkgDesc
-
- All Superinterfaces:
java.lang.Comparable<IPkgDesc>
- All Known Subinterfaces:
IPkgDescExtra
- All Known Implementing Classes:
PkgDesc,PkgDescExtra
@Deprecated public interface IPkgDesc extends java.lang.Comparable<IPkgDesc>
Deprecated.This is part of the old SDK manager framework. UseAndroidSdkHandler/RepoManagerand associated classes instead.IPkgDesckeeps information on individual SDK packages (both local or remote packages definitions.)
Packages have different attributes depending on their type.To create a new
IPkgDesc, use one of the package-specific constructors provided byPkgDesc.Builder.newXxx().To query packages capabilities, rely on
getType()and theIPkgDesc.hasXxx()methods provided byIPkgDesc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description com.android.sdklib.AndroidVersiongetAndroidVersion()Deprecated.Returns the package'sAndroidVersionor null.java.lang.StringgetBaseInstallId()Deprecated.Returns a stable string id that can be used to reference this package, which excludes the preview suffix.java.nio.file.PathgetCanonicalInstallFolder(java.nio.file.Path sdkLocation)Deprecated.Returns the canonical location where such a package would be installed.java.lang.StringgetDescriptionShort()Deprecated.java.lang.StringgetDescriptionUrl()Deprecated.java.lang.StringgetInstallId()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.LicensegetLicense()Deprecated.java.lang.StringgetListDescription()Deprecated.java.lang.StringgetListDisplay()Deprecated.Returns the list-display meta data of this package.com.android.repository.RevisiongetMinPlatformToolsRev()Deprecated.Returns the package'smin-platform-tools-revor null.com.android.repository.RevisiongetMinToolsRev()Deprecated.Returns the package'smin-tools-revor null.IdDisplaygetName()Deprecated.java.lang.StringgetPath()Deprecated.Returns the package's path string or null.com.android.repository.RevisiongetRevision()Deprecated.Returns the package'sRevision.IdDisplaygetTag()Deprecated.Returns the package's tag id-display tuple or null.PkgTypegetType()Deprecated.Returns the type of the package.IdDisplaygetVendor()Deprecated.Returns the package's vendor-id string or null.booleanhasAndroidVersion()Deprecated.booleanhasMinPlatformToolsRev()Deprecated.booleanhasMinToolsRev()Deprecated.booleanhasPath()Deprecated.booleanhasTag()Deprecated.booleanhasVendor()Deprecated.booleanisObsolete()Deprecated.booleanisPreview()Deprecated.booleanisUpdateFor(IPkgDesc existingDesc)Deprecated.Indicates whether this package descriptor is an update for the given existing descriptor.booleanisUpdateFor(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.
-
-
-
Method Detail
-
getType
@NonNull PkgType getType()
Deprecated.Returns the type of the package.- Returns:
- Returns one of the
PkgTypeconstants.
-
getListDisplay
@Nullable java.lang.String getListDisplay()
Deprecated.Returns the list-display meta data of this package.- Returns:
- The list-display data, if available, or null.
-
getName
@Nullable IdDisplay getName()
Deprecated.
-
getDescriptionShort
@Nullable java.lang.String getDescriptionShort()
Deprecated.
-
getDescriptionUrl
@Nullable java.lang.String getDescriptionUrl()
Deprecated.
-
getLicense
@Nullable com.android.repository.api.License getLicense()
Deprecated.
-
isObsolete
boolean isObsolete()
Deprecated.
-
getRevision
@NonNull com.android.repository.Revision getRevision()
Deprecated.Returns the package'sRevision.
-
getAndroidVersion
@Nullable com.android.sdklib.AndroidVersion getAndroidVersion()
Deprecated.Returns the package'sAndroidVersionor null.- Returns:
- A non-null value if
hasAndroidVersion()is true; otherwise a null value.
-
getPath
@Nullable java.lang.String getPath()
Deprecated.Returns the package's path string or null.For
PkgType.PKG_SYS_IMAGE, the path is the system-image ABI.
ForPkgType.PKG_PLATFORM, the path is the platform hash string.
ForPkgType.PKG_ADDON, the path is the platform hash string.
ForPkgType.PKG_EXTRA, the path is the extra-path string.- Returns:
- A non-null value if
hasPath()is true; otherwise a null value.
-
getTag
@Nullable IdDisplay getTag()
Deprecated.Returns the package's tag id-display tuple or null.- Returns:
- A non-null tag if
hasTag()is true; otherwise a null value.
-
getVendor
@Nullable IdDisplay getVendor()
Deprecated.Returns the package's vendor-id string or null.- Returns:
- A non-null value if
hasVendor()is true; otherwise a null value.
-
getMinToolsRev
@Nullable com.android.repository.Revision getMinToolsRev()
Deprecated.Returns the package'smin-tools-revor null.- Returns:
- A non-null value if
hasMinToolsRev()is true; otherwise a null value.
-
getMinPlatformToolsRev
@Nullable com.android.repository.Revision getMinPlatformToolsRev()
Deprecated.Returns the package'smin-platform-tools-revor null.- Returns:
- A non-null value if
hasMinPlatformToolsRev()is true; otherwise null.
-
isUpdateFor
boolean isUpdateFor(@NonNull IPkgDesc existingDesc)Deprecated.Indicates whether this package descriptor is an update for the given existing descriptor. Preview versions are never considered updates for non- previews, and vice versa.- Parameters:
existingDesc- A non-null existing descriptor.- Returns:
- True if this package is an update for the given one.
-
isUpdateFor
boolean isUpdateFor(@NonNull IPkgDesc existingDesc, @NonNull 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.- Parameters:
existingDesc- A non-null existing descriptor.previewComparison- TheRevision.PreviewComparisonmethod to use when comparing the packages.- Returns:
- True if this package is an update for the given one.
-
getInstallId
@NonNull 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.
-
getBaseInstallId
java.lang.String getBaseInstallId()
Deprecated.Returns a stable string id that can be used to reference this package, which excludes the preview suffix.
-
getCanonicalInstallFolder
@NonNull java.nio.file.Path getCanonicalInstallFolder(@NonNull java.nio.file.Path sdkLocation)Deprecated.Returns the canonical location where such a package would be installed.- Parameters:
sdkLocation- The root of the SDK.- Returns:
- the canonical location where such a package would be installed.
-
isPreview
boolean isPreview()
Deprecated.- Returns:
- True if the revision of this package is a preview.
-
getListDescription
java.lang.String getListDescription()
Deprecated.
-
hasVendor
boolean hasVendor()
Deprecated.
-
hasAndroidVersion
boolean hasAndroidVersion()
Deprecated.
-
hasPath
boolean hasPath()
Deprecated.
-
hasTag
boolean hasTag()
Deprecated.
-
hasMinToolsRev
boolean hasMinToolsRev()
Deprecated.
-
hasMinPlatformToolsRev
boolean hasMinPlatformToolsRev()
Deprecated.
-
-