2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
public
class
AbiFormatter
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.AbiFormatter
|
ABI のユーティリティ クラス。
概要
パブリック メソッド |
static
String
|
formatCmdForAbi(String str, String abi)
指定されたマーカーを置き換えて、abi 固有の値を含めるように指定された文字列をフォーマットするヘルパー メソッド。
|
static
String
|
getDefaultAbi(ITestDevice device, String bitness)
指定されたビットネスのデフォルトの ABI 名を取得するヘルパー メソッド
|
static
String[]
|
getSupportedAbis(ITestDevice device, String bitness)
指定されたビット数でサポートされている ABI のリストを取得するヘルパー メソッド
|
フィールド
FORCE_ABI_DESCRIPTION
public static final String FORCE_ABI_DESCRIPTION
FORCE_ABI_STRING
public static final String FORCE_ABI_STRING
パブリック コンストラクタ
パブリック メソッド
public static String formatCmdForAbi (String str,
String abi)
特定のマーカーを置き換えて、abi 固有の値を含めるように特定の文字列をフォーマットするヘルパー メソッド。
getDefaultAbi
public static String getDefaultAbi (ITestDevice device,
String bitness)
指定したビット数のデフォルトの ABI 名を取得するヘルパー メソッド
戻り値 |
String |
指定された ABI のデフォルトの ABI 名。エラーが発生した場合は null を返します。 |
getSupportedAbis
public static String[] getSupportedAbis (ITestDevice device,
String bitness)
指定されたビット数でサポートされている ABI のリストを取得するヘルパー メソッド
パラメータ |
bitness |
String : 32 または 64 または空の文字列 |
戻り値 |
String[] |
そのビット数でサポートされている ABI のリスト |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# AbiFormatter\n============\n\n\n`\npublic\n\n\nclass\nAbiFormatter\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.AbiFormatter |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nUtility class for abi.\n\nSummary\n-------\n\n| ### Fields ||\n|-------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| ` public static final String` | [FORCE_ABI_DESCRIPTION](../../../../../../reference/tradefed/com/android/tradefed/util/AbiFormatter.html#FORCE_ABI_DESCRIPTION) |\n| ` public static final String` | [FORCE_ABI_STRING](../../../../../../reference/tradefed/com/android/tradefed/util/AbiFormatter.html#FORCE_ABI_STRING) |\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[AbiFormatter](../../../../../../reference/tradefed/com/android/tradefed/util/AbiFormatter.html#AbiFormatter())`() ` |\n\n| ### Public methods ||\n|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static String` | ` `[formatCmdForAbi](../../../../../../reference/tradefed/com/android/tradefed/util/AbiFormatter.html#formatCmdForAbi(java.lang.String,%20java.lang.String))`(String str, String abi) ` Helper method that formats a given string to include abi specific values to it by replacing a given marker. |\n| ` static String` | ` `[getDefaultAbi](../../../../../../reference/tradefed/com/android/tradefed/util/AbiFormatter.html#getDefaultAbi(com.android.tradefed.device.ITestDevice,%20java.lang.String))`(`[ITestDevice](../../../../../../reference/tradefed/com/android/tradefed/device/ITestDevice.html)` device, String bitness) ` Helper method to get the default abi name for the given bitness |\n| ` static String[]` | ` `[getSupportedAbis](../../../../../../reference/tradefed/com/android/tradefed/util/AbiFormatter.html#getSupportedAbis(com.android.tradefed.device.ITestDevice,%20java.lang.String))`(`[ITestDevice](../../../../../../reference/tradefed/com/android/tradefed/device/ITestDevice.html)` device, String bitness) ` Helper method to get the list of supported abis for the given bitness |\n\nFields\n------\n\n### FORCE_ABI_DESCRIPTION\n\n```\npublic static final String FORCE_ABI_DESCRIPTION\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### FORCE_ABI_STRING\n\n```\npublic static final String FORCE_ABI_STRING\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### AbiFormatter\n\n```\npublic AbiFormatter ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### formatCmdForAbi\n\n```\npublic static String formatCmdForAbi (String str, \n String abi)\n```\n\nHelper method that formats a given string to include abi specific\nvalues to it by replacing a given marker.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `str` | `String`: [String](../../../../../../reference/tradefed/java/lang/String.html) to format which includes special markers \\| [.ABI_REGEX](../../../../../../) to be replaced \u003cbr /\u003e |\n| `abi` | `String`: [String](../../../../../../reference/tradefed/java/lang/String.html) of the abi we desire to run on. \u003cbr /\u003e |\n\n| Returns ||\n|----------|--------------------------|\n| `String` | formatted string. \u003cbr /\u003e |\n\n### getDefaultAbi\n\n```\npublic static String getDefaultAbi (ITestDevice device, \n String bitness)\n```\n\nHelper method to get the default abi name for the given bitness\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------------------------------------------------------------------------------------|\n| `String` | the default abi name for the given abi. Returns null if something went wrong. \u003cbr /\u003e |\n\n| Throws ||\n|----------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| | com.android.tradefed.device.DeviceNotAvailableException |\n| [DeviceNotAvailableException](../../../../../../reference/tradefed/com/android/tradefed/device/DeviceNotAvailableException.html) | |\n\n### getSupportedAbis\n\n```\npublic static String[] getSupportedAbis (ITestDevice device, \n String bitness)\n```\n\nHelper method to get the list of supported abis for the given bitness\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-------------------------------------------|\n| `bitness` | `String`: 32 or 64 or empty string \u003cbr /\u003e |\n\n| Returns ||\n|------------|-----------------------------------------------|\n| `String[]` | the supported abi list of that bitness \u003cbr /\u003e |\n\n| Throws ||\n|----------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| | com.android.tradefed.device.DeviceNotAvailableException |\n| [DeviceNotAvailableException](../../../../../../reference/tradefed/com/android/tradefed/device/DeviceNotAvailableException.html) | |"]]