Enum PkgType
- java.lang.Object
-
- java.lang.Enum<PkgType>
-
- com.android.sdklib.repository.legacy.descriptors.PkgType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PkgType>
@Deprecated public enum PkgType extends java.lang.Enum<PkgType>
Deprecated.This is part of the old SDK manager framework. UseAndroidSdkHandler/RepoManagerand associated classes instead.Package types handled by the legacy SDK.Integer bit values indicate the natural ordering of the packages.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PKG_ADDONDeprecated.Filter the SDK/addons.PKG_ADDON_SYS_IMAGEDeprecated.Filter the SDK/system-images/addons.PKG_BUILD_TOOLSDeprecated.Filter the SDK/build-tools folder.PKG_DOCDeprecated.Filter the SDK/docs folder.PKG_EXTRADeprecated.Filter the SDK/extras folder.PKG_LLDBDeprecated.The SDK/lldb folder.PKG_NDKDeprecated.The SDK/ndk folder.PKG_PLATFORMDeprecated.Filter the SDK/platforms.PKG_PLATFORM_TOOLSDeprecated.Filter the SDK/platform-tools folder.PKG_SAMPLEDeprecated.Filter the SDK/samples folder.PKG_SOURCEDeprecated.Filter the SDK/sources folder.PKG_SYS_IMAGEDeprecated.Filter the SDK/system-images/android.PKG_TOOLSDeprecated.Filter the SDK/tools folder.
-
Field Summary
Fields Modifier and Type Field Description static java.util.EnumSet<PkgType>PKG_ALLDeprecated.A collection of all the known PkgTypes.static intPKG_ALL_INTDeprecated.Integer value matching all available pkg types, for the old LocalSdkParer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetFolderName()Deprecated.Returns the name of SDK top-folder where this type of package is stored.intgetIntValue()Deprecated.Returns the integer value matching the type, compatible with the old LocalSdkParer.java.lang.StringgetListDisplayPattern()Deprecated.booleanhasAndroidVersion()Deprecated.booleanhasMinPlatformToolsRev()Deprecated.booleanhasMinToolsRev()Deprecated.booleanhasName()Deprecated.booleanhasPath()Deprecated.booleanhasTag()Deprecated.booleanhasVendor()Deprecated.static PkgTypevalueOf(java.lang.String name)Deprecated.Returns the enum constant of this type with the specified name.static PkgType[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PKG_TOOLS
public static final PkgType PKG_TOOLS
Deprecated.Filter the SDK/tools folder. HasRevision.
-
PKG_PLATFORM_TOOLS
public static final PkgType PKG_PLATFORM_TOOLS
Deprecated.Filter the SDK/platform-tools folder. HasRevision.
-
PKG_BUILD_TOOLS
public static final PkgType PKG_BUILD_TOOLS
Deprecated.Filter the SDK/build-tools folder. HasRevision.
-
PKG_DOC
public static final PkgType PKG_DOC
Deprecated.Filter the SDK/docs folder. HasRevision.
-
PKG_PLATFORM
public static final PkgType PKG_PLATFORM
Deprecated.Filter the SDK/platforms. HasAndroidVersion. HasRevision. Path returns the platform's target hash.
-
PKG_SYS_IMAGE
public static final PkgType PKG_SYS_IMAGE
Deprecated.Filter the SDK/system-images/android. HasAndroidVersion. HasRevision. Has tag. Path returns the system image ABI.
-
PKG_ADDON
public static final PkgType PKG_ADDON
Deprecated.Filter the SDK/addons. HasAndroidVersion. HasRevision. Path returns the add-on's target hash.
-
PKG_ADDON_SYS_IMAGE
public static final PkgType PKG_ADDON_SYS_IMAGE
Deprecated.Filter the SDK/system-images/addons. HasAndroidVersion. HasRevision. Has tag. Path returns the system image ABI.
-
PKG_SAMPLE
public static final PkgType PKG_SAMPLE
Deprecated.Filter the SDK/samples folder. Note: this will not detect samples located in the SDK/extras packages. HasAndroidVersion. HasRevision.
-
PKG_SOURCE
public static final PkgType PKG_SOURCE
Deprecated.Filter the SDK/sources folder. HasAndroidVersion. HasRevision.
-
PKG_EXTRA
public static final PkgType PKG_EXTRA
Deprecated.Filter the SDK/extras folder. HasPath. HasRevision. Path returns the combined vendor id + extra path. Cast the descriptor toIPkgDescExtrato get extra's specific attributes.
-
PKG_NDK
public static final PkgType PKG_NDK
Deprecated.The SDK/ndk folder.
-
PKG_LLDB
public static final PkgType PKG_LLDB
Deprecated.The SDK/lldb folder.
-
-
Field Detail
-
PKG_ALL
public static final java.util.EnumSet<PkgType> PKG_ALL
Deprecated.A collection of all the known PkgTypes.
-
PKG_ALL_INT
public static final int PKG_ALL_INT
Deprecated.Integer value matching all available pkg types, for the old LocalSdkParer.- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PkgType[] values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PkgType c : PkgType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PkgType valueOf(java.lang.String name)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getIntValue
public int getIntValue()
Deprecated.Returns the integer value matching the type, compatible with the old LocalSdkParer.
-
getFolderName
@NonNull public java.lang.String getFolderName()
Deprecated.Returns the name of SDK top-folder where this type of package is stored.
-
hasAndroidVersion
public boolean hasAndroidVersion()
Deprecated.
-
hasPath
public boolean hasPath()
Deprecated.
-
hasTag
public boolean hasTag()
Deprecated.
-
hasVendor
public boolean hasVendor()
Deprecated.
-
hasName
public boolean hasName()
Deprecated.
-
hasMinToolsRev
public boolean hasMinToolsRev()
Deprecated.
-
hasMinPlatformToolsRev
public boolean hasMinPlatformToolsRev()
Deprecated.
-
getListDisplayPattern
public java.lang.String getListDisplayPattern()
Deprecated.
-
-