AbiFormatter

public class AbiFormatter
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.AbiFormatter


Classe di utilità per abi.

Riepilogo

Costanti

String FORCE_ABI_DESCRIPTION

String FORCE_ABI_STRING

Costruttori pubblici

AbiFormatter()

Metodi pubblici

static String formatCmdForAbi(String str, String abi)

Metodo helper che formatta una determinata stringa in modo da includere valori specifici dell'ABI sostituendo un determinato marcatore.

static String getDefaultAbi(ITestDevice device, String bitness)

Metodo helper per ottenere il nome ABI predefinito per la bitness specificata

static String[] getSupportedAbis(ITestDevice device, String bitness)

Metodo helper per ottenere l'elenco delle ABI supportate per la bitness specificata

Costanti

FORCE_ABI_DESCRIPTION

public static final String FORCE_ABI_DESCRIPTION

Valore costante: "The abi bitness to use, can be either 32 or 64." (Il numero di bit dell'ABI da utilizzare, può essere 32 o 64.)

FORCE_ABI_STRING

public static final String FORCE_ABI_STRING

Valore costante: "force-abi"

Costruttori pubblici

AbiFormatter

public AbiFormatter ()

Metodi pubblici

formatCmdForAbi

public static String formatCmdForAbi (String str, 
                String abi)

Metodo helper che formatta una determinata stringa in modo da includere valori specifici dell'ABI sostituendo un determinato marcatore.

Parametri
str String: String da formattare, inclusi i marcatori speciali | .ABI_REGEX da sostituire

abi String: String dell'ABI che vogliamo eseguire.

Ritorni
String stringa formattata.

getDefaultAbi

public static String getDefaultAbi (ITestDevice device, 
                String bitness)

Metodo helper per ottenere il nome ABI predefinito per la bitness specificata

Ritorni
String il nome ABI predefinito per l'ABI specificata. Restituisce null se si è verificato un problema.

Lanci
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

getSupportedAbis

public static String[] getSupportedAbis (ITestDevice device, 
                String bitness)

Metodo helper per ottenere l'elenco delle ABI supportate per la bitness specificata

Parametri
bitness String: 32 o 64 o stringa vuota

Ritorni
String[] l'elenco delle ABI supportate di quella bitness

Lanci
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException