Abi格式化程序

public class AbiFormatter
extends Object

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


abi 的實用程式類別。

概括

領域

public static final String FORCE_ABI_DESCRIPTION

public static final String FORCE_ABI_STRING

公共構造函數

AbiFormatter ()

公共方法

static String formatCmdForAbi (String str, String abi)

透過替換給定標記來格式化給定字串以包含 abi 特定值的幫助程式方法。

static String getDefaultAbi ( ITestDevice device, String bitness)

取得給定位數的預設 abi 名稱的輔助方法

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

用於取得給定位數支援的 abis 清單的輔助方法

領域

FORCE_ABI_DESCRIPTION

public static final String FORCE_ABI_DESCRIPTION

FORCE_ABI_STRING

public static final String FORCE_ABI_STRING

公共構造函數

Abi格式化程序

public AbiFormatter ()

公共方法

formatCmdForAbi

public static String formatCmdForAbi (String str, 
                String abi)

透過替換給定標記來格式化給定字串以包含 abi 特定值的幫助程式方法。

參數
str String :要格式化的String ,其中包含特殊標記 | .ABI_REGEX被替換

abi String :我們希望執行的 abi 的String

退貨
String格式化字串。

取得預設Abi

public static String getDefaultAbi (ITestDevice device, 
                String bitness)

取得給定位數的預設 abi 名稱的輔助方法

退貨
String給定 abi 的預設 abi 名稱。如果出現問題,則傳回 null。

投擲
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

獲取支持Abis

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

用於取得給定位數支援的 abis 清單的輔助方法

參數
bitness String :32 或 64 或空字串

退貨
String[]該位數支援的 abi 列表

投擲
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException