DeviceActionUtil
public class DeviceActionUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceActionUtil |
Eine Utility-Klasse 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) execute ( DeviceActionUtil.Command command, String deviceId, actionArgs) Führt einen Geräteaktionsbefehl aus. |
void | generateLogFile ( CommandResult result) Erzeugt die Host-Protokolldatei. |
void | saveToLogs ( DeviceActionUtil.Command cmd, ITestLogger testLogger) Speichert alle generierten Dateien in Testprotokollen. |
Öffentliche Methoden
erstellen
public static DeviceActionUtil create (File deviceActionMainJar, File bundletoolJar)
Erstellt eine Instanz.
Parameter | |
---|---|
deviceActionMainJar | File |
bundletoolJar | File |
Kehrt zurück | |
---|---|
DeviceActionUtil |
Würfe | |
---|---|
DeviceActionUtil.DeviceActionConfigError |
ausführen
public CommandResult execute (DeviceActionUtil.Command command, String deviceId,actionArgs)
Führt einen Geräteaktionsbefehl aus.
Parameter | |
---|---|
command | DeviceActionUtil.Command : zum Ausführen. |
deviceId | String : des Geräts. |
actionArgs | command . |
Kehrt zurück | |
---|---|
CommandResult |
generierenLogFile
public void generateLogFile (CommandResult result)
Erzeugt die Host-Protokolldatei.
Parameter | |
---|---|
result | CommandResult |
saveToLogs
public void saveToLogs (DeviceActionUtil.Command cmd, ITestLogger testLogger)
Speichert alle generierten Dateien in Testprotokollen.
Parameter | |
---|---|
cmd | DeviceActionUtil.Command |
testLogger | ITestLogger |
Alle Inhalte und Codebeispiele auf dieser Seite unterliegen den Lizenzen wie im Abschnitt Inhaltslizenz beschrieben. Java und OpenJDK sind Marken oder eingetragene Marken von Oracle und/oder seinen Tochtergesellschaften.
Zuletzt aktualisiert: 2023-12-01 (UTC).
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Benötigte Informationen nicht gefunden"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Zu umständlich/zu viele Schritte"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Nicht mehr aktuell"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problem mit der Übersetzung"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problem mit Beispielen/Code"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Sonstiges"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Leicht verständlich"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Mein Problem wurde gelöst"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Sonstiges"
}]