com.android.sdklib.devices
Enum Abi

java.lang.Object
  extended by java.lang.Enum<Abi>
      extended by com.android.sdklib.devices.Abi
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Abi>

public enum Abi
extends java.lang.Enum<Abi>

ABI values that can appear in a device's xml <abi> field and in a system-image abi.

The CPU arch and model values are used to configure an AVD using a given ABI.


Enum Constant Summary
ARM64_V8A
           
ARMEABI
           
ARMEABI_V7A
           
MIPS
           
MIPS64
           
X86
           
X86_64
           
 
Method Summary
 java.lang.String getCpuArch()
          Returns the CPU architecture, as used in the AVD configuration files
 java.lang.String getCpuModel()
          Returns the optional CPU model, used in the AVD configuration files.
 java.lang.String getDisplayName()
          Return the ABI "family" name for display.
static Abi getEnum(java.lang.String abi)
          Returns the ABI definition matching the given ABI code name.
 java.lang.String toString()
          Returns the ABI code name, as used in the system-images and device definitions
static Abi valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ARMEABI

public static final Abi ARMEABI

ARMEABI_V7A

public static final Abi ARMEABI_V7A

ARM64_V8A

public static final Abi ARM64_V8A

X86

public static final Abi X86

X86_64

public static final Abi X86_64

MIPS

public static final Abi MIPS

MIPS64

public static final Abi MIPS64
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 name
java.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 Abi description or null.

toString

@NonNull
public java.lang.String toString()
Returns the ABI code name, as used in the system-images and device definitions

Overrides:
toString in class java.lang.Enum<Abi>

getCpuArch

@NonNull
public java.lang.String getCpuArch()
Returns the CPU architecture, as used in the AVD configuration files


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)".