Package com.android.sdklib.devices
Enum Abi
- java.lang.Object
-
- java.lang.Enum<Abi>
-
- com.android.sdklib.devices.Abi
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAddressSizeInBytes()Returns the address size in bytesjava.lang.StringgetCpuArch()Returns the CPU architecture, as used in the AVD configuration filesjava.lang.StringgetCpuModel()Returns the optional CPU model, used in the AVD configuration files.java.lang.StringgetDisplayName()Return the ABI "family" name for display.static AbigetEnum(java.lang.String abi)Returns the ABI definition matching the given ABI code name.booleansupportsMultipleCpuCores()Returns true if we support SMP on this CPU architecture.java.lang.StringtoString()Returns the ABI code name, as used in the system-images and device definitionsstatic AbivalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Abi[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Abi[] values()
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 (Abi c : Abi.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Abi valueOf(java.lang.String name)
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
-
getEnum
@Nullable public static Abi getEnum(@NonNull java.lang.String abi)
Returns the ABI definition matching the given ABI code name.- Parameters:
abi- The ABI code name, used in the system-images and device definitions.- Returns:
- An existing
Abidescription or null.
-
toString
@NonNull public java.lang.String toString()
Returns the ABI code name, as used in the system-images and device definitions- Overrides:
toStringin classjava.lang.Enum<Abi>
-
getCpuArch
@NonNull public java.lang.String getCpuArch()
Returns the CPU architecture, as used in the AVD configuration files
-
getAddressSizeInBytes
public int getAddressSizeInBytes()
Returns the address size in bytes
-
getCpuModel
@Nullable public java.lang.String getCpuModel()
Returns the optional CPU model, used in the AVD configuration files. This is often null.
-
getDisplayName
@NonNull public java.lang.String getDisplayName()
Return the ABI "family" name for display. Clients should typically display that combined with the code name, for example "ARM (armeabi-v7a)".
-
supportsMultipleCpuCores
public boolean supportsMultipleCpuCores()
Returns true if we support SMP on this CPU architecture.
-
-