|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.sdklib.repository.descriptors.PkgDesc
com.android.sdklib.repository.descriptors.PkgDescExtra
public final class PkgDescExtra
Implementation detail of IPkgDescExtra for extra packages.
| Method Summary | |
|---|---|
static boolean |
compatibleVendorAndPath(IPkgDescExtra lhs,
IPkgDescExtra rhs)
Helper to computhe whether the extra path of both IPkgDescExtras
are compatible with each other, which means they are either equal or are
matched between existing path and the potential old paths list. |
static java.lang.String[] |
convertOldPaths(java.lang.String oldPathsProperty)
Helper method that converts the old_paths property string into the an old paths array. |
FullRevision |
getFullRevision()
Returns the package's FullRevision or null. |
java.lang.String[] |
getOldPaths()
Returns an optional list of older paths for this extra package. |
java.lang.String |
getPath()
Returns the package's path string or null. |
PkgType |
getType()
Returns the type of the package. |
java.lang.String |
getVendorId()
Returns the package's vendor-id string or null. |
boolean |
isUpdateFor(IPkgDesc existingDesc)
Indicates whether this package descriptor is an update for the given existing descriptor. |
| Methods inherited from class com.android.sdklib.repository.descriptors.PkgDesc |
|---|
compareTo, equals, getAndroidVersion, getMajorRevision, getMinPlatformToolsRev, getMinToolsRev, getTag, hasAndroidVersion, hasFullRevision, hashCode, hasMajorRevision, hasMinPlatformToolsRev, hasMinToolsRev, hasPath, hasTag, hasVendorId, isGenericUpdateFor, newAddon, newAddon, newBuildTool, newDoc, newExtra, newPlatform, newPlatformTool, newSample, newSource, newSysImg, newTool, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.android.sdklib.repository.descriptors.IPkgDesc |
|---|
getAndroidVersion, getMajorRevision, getMinPlatformToolsRev, getMinToolsRev, getTag |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.android.sdklib.repository.descriptors.IPkgCapabilities |
|---|
hasAndroidVersion, hasFullRevision, hasMajorRevision, hasMinPlatformToolsRev, hasMinToolsRev, hasPath, hasTag, hasVendorId |
| Method Detail |
|---|
@NonNull public PkgType getType()
IPkgDesc
getType in interface IPkgDescgetType in class PkgDescPkgType constants.@NonNull public FullRevision getFullRevision()
IPkgDescFullRevision or null.
getFullRevision in interface IPkgDescgetFullRevision in class PkgDescIPkgCapabilities.hasFullRevision() is true; otherwise a null value.@NonNull public java.lang.String getPath()
IPkgDescPkgType.PKG_SYS_IMAGES, the path is the system-image ABI. PkgType.PKG_PLATFORMS, the path is the platform hash string. PkgType.PKG_ADDONS, the path is the platform hash string. PkgType.PKG_EXTRAS, the path is the extra-path string.
getPath in interface IPkgDescgetPath in class PkgDescIPkgCapabilities.hasPath() is true; otherwise a null value.@NonNull public java.lang.String[] getOldPaths()
IPkgDescExtra
getOldPaths in interface IPkgDescExtra@NonNull public java.lang.String getVendorId()
IPkgDesc
getVendorId in interface IPkgDescgetVendorId in class PkgDescIPkgCapabilities.hasVendorId() is true; otherwise a null value.
public boolean isUpdateFor(@NonNull
IPkgDesc existingDesc)
IPkgDesc
isUpdateFor in interface IPkgDescexistingDesc - A non-null existing descriptor.
@NonNull
public static java.lang.String[] convertOldPaths(@Nullable
java.lang.String oldPathsProperty)
oldPathsProperty - A possibly-null old_path property string.
public static boolean compatibleVendorAndPath(@NonNull
IPkgDescExtra lhs,
@NonNull
IPkgDescExtra rhs)
IPkgDescExtras
are compatible with each other, which means they are either equal or are
matched between existing path and the potential old paths list.
This also covers backward compatibility -- in earlier schemas the vendor id was
merged into the path string when reloading installed extras.
lhs - A non-null IPkgDescExtra.rhs - Another non-null IPkgDescExtra.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||