DeviceActionUtil

public class DeviceActionUtil
extends Object

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


Eine Dienstprogrammklasse zum Ausführen von Geräteaktionen.

Zusammenfassung

Verschachtelte Klassen

class DeviceActionUtil.DeviceActionConfigError

Ausnahme für Konfigurationsfehler. 

Öffentliche Methoden

static DeviceActionUtil create(File deviceActionMainJar, File bundletoolJar)

Erstellt eine Instanz.

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

Führt einen Befehl für eine Geräteaktion aus.

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

Generiert die Hostprotokolldatei.

void saveToLogs(DeviceActionUtil.Command cmd, ITestLogger testLogger)

Alle generierten Dateien werden in Testprotokollen gespeichert.

Öffentliche Methoden

create

public static DeviceActionUtil create (File deviceActionMainJar, 
                File bundletoolJar)

Erstellt eine Instanz.

Parameter
deviceActionMainJar File

bundletoolJar File

Returns
DeviceActionUtil

Ausgabe
DeviceActionUtil.DeviceActionConfigError

execute

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

Führt einen Befehl für eine Geräteaktion aus.

Parameter
command DeviceActionUtil.Command: zum Ausführen.

deviceId String: des Geräts.

actionArgs : Aktionsargumente für die command.

Returns
CommandResult

findExecutableOnPath

public static File findExecutableOnPath (String name)

Parameter
name String

Returns
File

Ausgabe
DeviceActionUtil.DeviceActionConfigError

generateLogFile

public void generateLogFile (CommandResult result)

Generiert die Hostprotokolldatei.

Parameter
result CommandResult

saveToLogs

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

Alle generierten Dateien werden in Testprotokollen gespeichert.

Parameter
cmd DeviceActionUtil.Command

testLogger ITestLogger