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, List<String> actionArgs)

Führt einen Geräteaktionsbefehl aus.

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

Generiert die Host-Protokolldatei.

void saveToLogs(DeviceActionUtil.Command cmd, ITestLogger testLogger)

Speichert alle generierten Dateien in Testprotokollen.

Öffentliche Methoden

create

public static DeviceActionUtil create (File deviceActionMainJar, 
                File bundletoolJar)

Erstellt eine Instanz.

Parameter
deviceActionMainJar File

bundletoolJar File

Gibt Folgendes zurück:
DeviceActionUtil

Löst aus
DeviceActionUtil.DeviceActionConfigError

execute

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

Führt einen Geräteaktionsbefehl aus.

Parameter
command DeviceActionUtil.Command: auszuführen.

deviceId String: des Geräts.

actionArgs List: Aktionsargumente für die command.

Gibt Folgendes zurück:
CommandResult

findExecutableOnPath

public static File findExecutableOnPath (String name)

Parameter
name String

Gibt Folgendes zurück:
File

Löst aus
DeviceActionUtil.DeviceActionConfigError

generateLogFile

public void generateLogFile (CommandResult result)

Generiert die Host-Protokolldatei.

Parameter
result CommandResult

Löst aus
IOException

saveToLogs

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

Speichert alle generierten Dateien in Testprotokollen.

Parameter
cmd DeviceActionUtil.Command

testLogger ITestLogger

Löst aus
IOException