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 Set<String> ABIS_SUPPORTED_BY_COMPATIBILITY

互換性がサポートする ABI 名のセット。

protected static final Set<String> ARM_ABIS

ARM ABI のセット。

パブリック メソッド

static String createAbiFlag(String abi)

指定された ABI のフラグを作成します。

static String createId(String abi, String name)

指定された ABI と名前から一意の ID を作成します。

static Set<String> getAbisForArch(String arch)

指定されたアーキテクチャに関連付けられた ABI のセットを返します。

static Set<String> getAbisSupportedByCompatibility()

互換性によってサポートされている ABI のセットを返します。

static String getArchForAbi(String abi)

ABI に一致するアーキテクチャを返します。

static Set<String> getArchSupported()

サポートされているアーキテクチャ表現のセットを返します。

static String getBaseArchForAbi(String abi)

ABI に一致するベース アーキテクチャを返します。

static String getBitness(String abi)
static Set<String> getHostAbi()

ホストマシンでサポートされている ABI のセットを返します。

static boolean isAbiSupportedByCompatibility(String abi)
static String parseAbi(String id)
static Set<String> parseAbiList(String unsupportedAbiDescription)
static Set<String> 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 final Set<String> ABIS_SUPPORTED_BY_COMPATIBILITY

互換性がサポートする ABI 名のセット。

ARM_ABIS

protected static final Set<String> ARM_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 static Set<String> getAbisForArch (String arch)

指定されたアーキテクチャに関連付けられた ABI のセットを返します。

パラメータ
arch String: 検索するアーキテクチャ。

戻り値
Set<String> ABI を含む新しい Set。

getAbisSupportedByCompatibility

public static Set<String> getAbisSupportedByCompatibility ()

互換性によってサポートされている ABI のセットを返します。

戻り値
Set<String> サポートされている ABI を含む新しい Set。

getArchForAbi

public static String getArchForAbi (String abi)

ABI に一致するアーキテクチャを返します。

パラメータ
abi String

戻り値
String

getArchSupported

public static Set<String> getArchSupported ()

サポートされているアーキテクチャ表現のセットを返します。

戻り値
Set<String>

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 static Set<String> getHostAbi ()

ホストマシンでサポートされている ABI のセットを返します。

戻り値
Set<String>

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 static Set<String> parseAbiList (String unsupportedAbiDescription)

パラメータ
unsupportedAbiDescription String: ABI を含むカンマ区切りの文字列。

戻り値
Set<String> 有効な ABI を含む文字列のリスト。

parseAbiListFromProperty

public static Set<String> parseAbiListFromProperty (String abiListProp)

パラメータ
abiListProp String: デバイス プロパティから取得した abi を含むカンマ区切りのリスト。

戻り値
Set<String> 有効な 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