اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في 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)
طريقة مساعدة للحصول على قائمة واجهات برمجة التطبيقات المتوافقة لنظام البتات المحدّد
|
الحقول
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 محدّدة بها من خلال استبدال علامة معيّنة
المعلمات |
str |
String : String لتنسيق يتضمّن علامات خاصة |
.ABI_REGEX ليتم استبداله |
abi |
String : String من abi الذي نريد تشغيله. |
المرتجعات |
String |
سلسلة منسَّقة |
getDefaultAbi
public static String getDefaultAbi (ITestDevice device,
String bitness)
طريقة مساعدة للحصول على اسم abi التلقائي لعدد البتات المحدّد
المرتجعات |
String |
اسم abi التلقائي لملف abi المحدّد. تعرِض هذه الدالة قيمة فارغة إذا حدث خطأ. |
getSupportedAbis
public static String[] getSupportedAbis (ITestDevice device,
String bitness)
طريقة مساعدة للحصول على قائمة واجهات برمجة التطبيقات المتوافقة لنظام البتات المحدّد
المعلمات |
bitness |
String : 32 أو 64 أو سلسلة فارغة |
المرتجعات |
String[] |
قائمة abi المتوافقة مع عدد وحدات البت هذه |
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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) | |"]]