DeviceActionUtil

public class DeviceActionUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.DeviceActionUtil


מחלקת כלי עזר להרצת פעולות במכשיר.

סיכום

כיתות מוטמעות

class DeviceActionUtil.DeviceActionConfigError

חריגה לשגיאת הגדרה. 

‫methods ציבוריים

static DeviceActionUtil create(File deviceActionMainJar, File bundletoolJar)

יוצר מופע.

CommandResult execute(DeviceActionUtil.Command command, String deviceId, List<String> actionArgs)

מפעיל פקודה של פעולה במכשיר.

static File findExecutableOnPath(String name)
void generateLogFile(CommandResult result)

יוצר את קובץ היומן של המארח.

void saveToLogs(DeviceActionUtil.Command cmd, ITestLogger testLogger)

שומר את כל הקבצים שנוצרו ביומני הבדיקה.

‫methods ציבוריים

create

public static DeviceActionUtil create (File deviceActionMainJar, 
                File bundletoolJar)

יוצר מופע.

פרמטרים
deviceActionMainJar File

bundletoolJar File

החזרות
DeviceActionUtil

הקפצת הודעות שגיאה (throw)
DeviceActionUtil.DeviceActionConfigError

להריץ

public CommandResult execute (DeviceActionUtil.Command command, 
                String deviceId, 
                List<String> actionArgs)

מפעיל פקודה של פעולה במכשיר.

פרמטרים
command DeviceActionUtil.Command: להפעלה.

deviceId String: של המכשיר.

actionArgs List: ארגומנטים של פעולה עבור command.

החזרות
CommandResult

findExecutableOnPath

public static File findExecutableOnPath (String name)

פרמטרים
name String

החזרות
File

הקפצת הודעות שגיאה (throw)
DeviceActionUtil.DeviceActionConfigError

generateLogFile

public void generateLogFile (CommandResult result)

יוצר את קובץ היומן של המארח.

פרמטרים
result CommandResult

הקפצת הודעות שגיאה (throw)
IOException

saveToLogs

public void saveToLogs (DeviceActionUtil.Command cmd, 
                ITestLogger testLogger)

שומר את כל הקבצים שנוצרו ביומני הבדיקה.

פרמטרים
cmd DeviceActionUtil.Command

testLogger ITestLogger

הקפצת הודעות שגיאה (throw)
IOException