DeviceActionUtil
public class DeviceActionUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceActionUtil |
מחלקת Utility לביצוע פעולות מכשיר.
סיכום
כיתות מקוננות | |
---|---|
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 |
generLogFile
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 (שעון UTC).
[{
"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":"סיבה אחרת"
}]