Google 致力于为黑人社区推动种族平等。查看具体举措

AbiFormatter

public class AbiFormatter
extends Object

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


Utility class for abi.

Summary

Fields

public static final String FORCE_ABI_DESCRIPTION

public static final String FORCE_ABI_STRING

Public constructors

AbiFormatter()

Public methods

static String formatCmdForAbi(String str, String abi)

Helper method that formats a given string to include abi specific values to it by replacing a given marker.

static String getDefaultAbi(ITestDevice device, String bitness)

Helper method to get the default abi name for the given bitness

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

Helper method to get the list of supported abis for the given bitness

Fields

FORCE_ABI_DESCRIPTION

public static final String FORCE_ABI_DESCRIPTION

FORCE_ABI_STRING

public static final String FORCE_ABI_STRING

Public constructors

AbiFormatter

public AbiFormatter ()

Public methods

formatCmdForAbi

public static String formatCmdForAbi (String str, 
                String abi)

Helper method that formats a given string to include abi specific values to it by replacing a given marker.

Parameters
str String: String to format which includes special markers | .ABI_REGEX to be replaced

abi String: String of the abi we desire to run on.

Returns
String formatted string.

getDefaultAbi

public static String getDefaultAbi (ITestDevice device, 
                String bitness)

Helper method to get the default abi name for the given bitness

Returns
String the default abi name for the given abi. Returns null if something went wrong.

Throws
DeviceNotAvailableException

getSupportedAbis

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

Helper method to get the list of supported abis for the given bitness

Parameters
bitness String: 32 or 64 or empty string

Returns
String[] the supported abi list of that bitness

Throws
DeviceNotAvailableException