格式化程序
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
公共構造函數
格式化程序
public AbiFormatter ()
公共方法
formatCmdForAbi
public static String formatCmdForAbi (String str, String abi)
通過替換給定的標記來格式化給定字符串以包含 abi 特定值的輔助方法。
參數 | |
---|---|
str | String : ERROR(/String) to format 其中包括特殊標記 | .ABI_REGEX 被替換 |
abi | String :我們希望運行的 abi 的ERROR(/String) 。 |
退貨 | |
---|---|
String | 格式化字符串。 |
獲取默認Abi
public static String getDefaultAbi (ITestDevice device, String bitness)
獲取給定位數的默認 abi 名稱的輔助方法
退貨 | |
---|---|
String | 給定 abi 的默認 abi 名稱。如果出現問題,則返回 null。 |
投擲 | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
getSupportedAbis
public static String[] getSupportedAbis (ITestDevice device, String bitness)
獲取給定位數支持的 abis 列表的輔助方法
參數 | |
---|---|
bitness | String :32 或 64 或空字符串 |
退貨 | |
---|---|
String[] | 該位數的支持的 abi 列表 |
投擲 | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |