DeviceActionUtil
public class DeviceActionUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceActionUtil |
فئة الأداة المساعدة لتنفيذ إجراءات الجهاز.
ملخص
فصول متداخلة | |
---|---|
class | DeviceActionUtil.DeviceActionConfigError استثناء لخطأ التكوين. |
الأساليب العامة | |
---|---|
static DeviceActionUtil | create (File deviceActionMainJar, File bundletoolJar) ينشئ مثيلا. |
CommandResult | execute ( DeviceActionUtil.Command command, String deviceId, actionArgs) execute ( DeviceActionUtil.Command command, String deviceId, actionArgs) ينفذ أمر إجراء الجهاز. |
void | generateLogFile ( CommandResult result) يقوم بإنشاء ملف سجل المضيف. |
void | saveToLogs ( DeviceActionUtil.Command cmd, ITestLogger testLogger) يحفظ جميع الملفات التي تم إنشاؤها لاختبار السجلات. |
الأساليب العامة
يخلق
public static DeviceActionUtil create (File deviceActionMainJar, File bundletoolJar)
ينشئ مثيلا.
حدود | |
---|---|
deviceActionMainJar | File |
bundletoolJar | File |
عائدات | |
---|---|
DeviceActionUtil |
رميات | |
---|---|
DeviceActionUtil.DeviceActionConfigError |
ينفذ
public CommandResult execute (DeviceActionUtil.Command command, String deviceId,actionArgs)
ينفذ أمر إجراء الجهاز.
حدود | |
---|---|
command | DeviceActionUtil.Command : للتنفيذ. |
deviceId | String : من الجهاز. |
actionArgs | command . |
عائدات | |
---|---|
CommandResult |
createLogFile
public void generateLogFile (CommandResult result)
يقوم بإنشاء ملف سجل المضيف.
حدود | |
---|---|
result | CommandResult |
saveToLogs
public void saveToLogs (DeviceActionUtil.Command cmd, ITestLogger testLogger)
يحفظ جميع الملفات التي تم إنشاؤها لاختبار السجلات.
حدود | |
---|---|
cmd | DeviceActionUtil.Command |
testLogger | ITestLogger |
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2023-12-01 (حسب التوقيت العالمي المتفَّق عليه)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"لا يحتوي على المعلومات التي أحتاج إليها."
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"الخطوات معقدة للغاية / كثيرة جدًا."
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"المحتوى قديم."
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ثمة مشكلة في الترجمة."
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غير ذلك"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"يسهُل فهم المحتوى."
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"ساعَدني المحتوى في حلّ مشكلتي."
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غير ذلك"
}]