Class PkgDescExtra
- java.lang.Object
-
- com.android.sdklib.repository.legacy.descriptors.PkgDesc
-
- com.android.sdklib.repository.legacy.descriptors.PkgDescExtra
-
- All Implemented Interfaces:
IPkgDesc,IPkgDescExtra,java.lang.Comparable<IPkgDesc>
@Deprecated public final class PkgDescExtra extends PkgDesc implements IPkgDescExtra
Deprecated.This is part of the old SDK manager framework. UseAndroidSdkHandler/RepoManagerand associated classes instead.Implementation detail ofIPkgDescExtrafor extra packages.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.android.sdklib.repository.legacy.descriptors.PkgDesc
PkgDesc.Builder, PkgDesc.IGetPath, PkgDesc.IIsUpdateFor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleancompatibleVendorAndPath(IPkgDescExtra lhs, IPkgDescExtra rhs)Deprecated.Helper to computhe whether the extra path of bothIPkgDescExtras 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)Deprecated.Helper method that converts the old_paths property string into the an old paths array.java.lang.StringgetNameDisplay()Deprecated.Returns the display name of the Extra.java.lang.String[]getOldPaths()Deprecated.Returns an optional list of older paths for this extra package.-
Methods inherited from class com.android.sdklib.repository.legacy.descriptors.PkgDesc
compareTo, equals, getAndroidVersion, getBaseInstallId, getCanonicalInstallFolder, getDescriptionShort, getDescriptionUrl, getInstallId, getLicense, getListDescription, getListDisplay, getMinPlatformToolsRev, getMinToolsRev, getName, getPath, getRevision, getTag, getType, getVendor, hasAndroidVersion, hashCode, hasMinPlatformToolsRev, hasMinToolsRev, hasName, hasPath, hasTag, hasVendor, isObsolete, isPreview, isUpdateFor, isUpdateFor, patternReplaceImpl, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.android.sdklib.repository.legacy.descriptors.IPkgDesc
getAndroidVersion, getBaseInstallId, getCanonicalInstallFolder, getDescriptionShort, getDescriptionUrl, getInstallId, getLicense, getListDescription, getListDisplay, getMinPlatformToolsRev, getMinToolsRev, getName, getPath, getRevision, getTag, getType, getVendor, hasAndroidVersion, hasMinPlatformToolsRev, hasMinToolsRev, hasPath, hasTag, hasVendor, isObsolete, isPreview, isUpdateFor, isUpdateFor
-
-
-
-
Method Detail
-
getOldPaths
@NonNull public java.lang.String[] getOldPaths()
Deprecated.Description copied from interface:IPkgDescExtraReturns an optional list of older paths for this extra package.- Specified by:
getOldPathsin interfaceIPkgDescExtra- Returns:
- A non-null, possibly empty, for old paths previously used for the same extra.
-
getNameDisplay
@NonNull public java.lang.String getNameDisplay()
Deprecated.Description copied from interface:IPkgDescExtraReturns the display name of the Extra.- Specified by:
getNameDisplayin interfaceIPkgDescExtra- Returns:
- A non-null name for the Extra, used for display purposes.
-
convertOldPaths
@NonNull public static java.lang.String[] convertOldPaths(@Nullable java.lang.String oldPathsProperty)Deprecated.Helper method that converts the old_paths property string into the an old paths array.- Parameters:
oldPathsProperty- A possibly-null old_path property string.- Returns:
- A list of old paths split by their separator. Can be empty but not null.
-
compatibleVendorAndPath
public static boolean compatibleVendorAndPath(@NonNull IPkgDescExtra lhs, @NonNull IPkgDescExtra rhs)Deprecated.Helper to computhe whether the extra path of bothIPkgDescExtras 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.
- Parameters:
lhs- A non-nullIPkgDescExtra.rhs- Another non-nullIPkgDescExtra.- Returns:
- true if the paths are compatible.
-
-