AbiUtils
public
class
AbiUtils
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.AbiUtils |
用于处理设备 ABI 的实用程序类
摘要
常量 | |
|---|---|
String |
ABI_ARM_64_V8A
|
String |
ABI_ARM_V7A
|
String |
ABI_MIPS
|
String |
ABI_MIPS64
|
String |
ABI_RISCV64
|
String |
ABI_X86
|
String |
ABI_X86_64
|
String |
ARCH_ARM64
|
String |
ARCH_MIPS64
|
String |
ARCH_RISCV64
|
String |
ARCH_X86_64
|
String |
BASE_ARCH_ARM
|
String |
BASE_ARCH_MIPS
|
String |
BASE_ARCH_X86
|
字段 | |
|---|---|
protected
static
final
|
ABIS_SUPPORTED_BY_COMPATIBILITY
兼容性支持的 ABI 名称集。 |
protected
static
final
|
ARM_ABIS
一组 ARM ABI。 |
公共方法 | |
|---|---|
static
String
|
createAbiFlag(String abi)
为指定 ABI 创建标志。 |
static
String
|
createId(String abi, String name)
根据给定的 ABI 和名称创建唯一 ID。 |
static
|
getAbisForArch(String arch)
返回与给定架构关联的 ABI 集。 |
static
|
getAbisSupportedByCompatibility()
返回兼容性支持的 ABI 集。 |
static
String
|
getArchForAbi(String abi)
返回与 ABI 匹配的架构。 |
static
|
getArchSupported()
返回支持的架构表示形式的集合。 |
static
String
|
getBaseArchForAbi(String abi)
返回与 ABI 匹配的基础架构。 |
static
String
|
getBitness(String abi)
|
static
|
getHostAbi()
返回主机支持的 ABI 的集合。 |
static
boolean
|
isAbiSupportedByCompatibility(String abi)
|
static
String
|
parseAbi(String id)
|
static
|
parseAbiList(String unsupportedAbiDescription)
|
static
|
parseAbiListFromProperty(String abiListProp)
|
static
String[]
|
parseId(String id)
将唯一 ID 解析为 ABI 和名称。 |
static
String
|
parseTestName(String id)
|
常量
ABI_ARM_64_V8A
public static final String ABI_ARM_64_V8A
常量值: "arm64-v8a"
ABI_ARM_V7A
public static final String ABI_ARM_V7A
常量值: “armeabi-v7a”
ABI_MIPS
public static final String ABI_MIPS
常量值: “mips”
ABI_MIPS64
public static final String ABI_MIPS64
常量值: "mips64"
ABI_RISCV64
public static final String ABI_RISCV64
常量值: "riscv64"
ABI_X86
public static final String ABI_X86
常量值: "x86"
ABI_X86_64
public static final String ABI_X86_64
常量值: "x86_64"
ARCH_ARM64
public static final String ARCH_ARM64
常量值: "arm64"
ARCH_MIPS64
public static final String ARCH_MIPS64
常量值: "mips64"
ARCH_RISCV64
public static final String ARCH_RISCV64
常量值: "riscv64"
ARCH_X86_64
public static final String ARCH_X86_64
常量值: "x86_64"
BASE_ARCH_ARM
public static final String BASE_ARCH_ARM
常量值: "arm"
BASE_ARCH_MIPS
public static final String BASE_ARCH_MIPS
常量值: “mips”
BASE_ARCH_X86
public static final String BASE_ARCH_X86
常量值: "x86"
字段
ABIS_SUPPORTED_BY_COMPATIBILITY
protected static finalABIS_SUPPORTED_BY_COMPATIBILITY
兼容性支持的 ABI 名称集。
ARM_ABIS
protected static finalARM_ABIS
一组 ARM ABI。
公共方法
createAbiFlag
public static String createAbiFlag (String abi)
为指定 ABI 创建标志。
| 参数 | |
|---|---|
abi |
String:要为其创建标志的 ABI。 |
| 返回 | |
|---|---|
String |
可添加到发送给 ADB 的命令中的字符串。 |
createId
public static String createId (String abi,
String name)根据给定的 ABI 和名称创建唯一 ID。
| 参数 | |
|---|---|
abi |
String:要使用的 ABI。 |
name |
String:要使用的名称。 |
| 返回 | |
|---|---|
String |
唯一标识运行的字符串。 |
getAbisForArch
public staticgetAbisForArch (String arch)
返回与给定架构关联的 ABI 集。
| 参数 | |
|---|---|
arch |
String:要查找的架构。 |
| 返回 | |
|---|---|
|
包含 ABI 的新 Set。 |
getAbisSupportedByCompatibility
public staticgetAbisSupportedByCompatibility ()
返回兼容性支持的 ABI 集。
| 返回 | |
|---|---|
|
包含支持的 ABI 的新 Set。 |
getArchForAbi
public static String getArchForAbi (String abi)
返回与 ABI 匹配的架构。
| 参数 | |
|---|---|
abi |
String |
| 返回 | |
|---|---|
String |
|
getArchSupported
public staticgetArchSupported ()
返回支持的架构表示形式的集合。
| 返回 | |
|---|---|
|
|
getBaseArchForAbi
public static String getBaseArchForAbi (String abi)
返回与 ABI 匹配的基础架构。
| 参数 | |
|---|---|
abi |
String |
| 返回 | |
|---|---|
String |
|
getBitness
public static String getBitness (String abi)
| 参数 | |
|---|---|
abi |
String:ABI 的名称。 |
| 返回 | |
|---|---|
String |
具有指定名称的 ABI 的位数 |
getHostAbi
public staticgetHostAbi ()
返回主机支持的 ABI 的集合。
| 返回 | |
|---|---|
|
|
isAbiSupportedByCompatibility
public static boolean isAbiSupportedByCompatibility (String abi)
| 参数 | |
|---|---|
abi |
String:要测试的 ABI 名称。 |
| 返回 | |
|---|---|
boolean |
如果给定的 ABI 受兼容性支持,则为 true。 |
parseAbi
public static String parseAbi (String id)
| 参数 | |
|---|---|
id |
String |
| 返回 | |
|---|---|
String |
测试 ID 的 ABI 部分。 例如,armeabi-v7a android.mytest = armeabi-v7a |
parseAbiList
public staticparseAbiList (String unsupportedAbiDescription)
| 参数 | |
|---|---|
unsupportedAbiDescription |
String:包含 ABI 的以英文逗号分隔的字符串。 |
| 返回 | |
|---|---|
|
包含有效 ABI 的字符串列表。 |
parseAbiListFromProperty
public staticparseAbiListFromProperty (String abiListProp)
| 参数 | |
|---|---|
abiListProp |
String:一个以英文逗号分隔的列表,其中包含来自设备属性的 ABI。 |
| 返回 | |
|---|---|
|
包含有效 ABI 的字符串列表。 |
parseId
public static String[] parseId (String id)
将唯一 ID 解析为 ABI 和名称。
| 参数 | |
|---|---|
id |
String:要解析的 ID。 |
| 返回 | |
|---|---|
String[] |
包含 ABI 和名称的字符串数组。 |
parseTestName
public static String parseTestName (String id)
| 参数 | |
|---|---|
id |
String |
| 返回 | |
|---|---|
String |
测试 ID 的测试名称部分。 例如,armeabi-v7a android.mytest = android.mytest |