|
|||||||||
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 IPkgDescExtra s
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 IPkgDesc
getType
in class PkgDesc
PkgType
constants.@NonNull public FullRevision getFullRevision()
IPkgDesc
FullRevision
or null.
getFullRevision
in interface IPkgDesc
getFullRevision
in class PkgDesc
IPkgCapabilities.hasFullRevision()
is true; otherwise a null value.@NonNull public java.lang.String getPath()
IPkgDesc
PkgType.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 IPkgDesc
getPath
in class PkgDesc
IPkgCapabilities.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 IPkgDesc
getVendorId
in class PkgDesc
IPkgCapabilities.hasVendorId()
is true; otherwise a null value.public boolean isUpdateFor(@NonNull IPkgDesc existingDesc)
IPkgDesc
isUpdateFor
in interface IPkgDesc
existingDesc
- 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)
IPkgDescExtra
s
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 |