DeviceAllocationResult

public class DeviceAllocationResult
extends Object

java.lang.Object
com.android.tradefed.command.DeviceAllocationResult


Stellt die Ergebnisse eines Zuordnungsversuchs für einen Befehl dar.

Zusammenfassung

Öffentliche Konstrukteure

DeviceAllocationResult ()

Öffentliche Methoden

void addAllocatedDevices ( devices) addAllocatedDevices ( devices)

Zugewiesene Geräte hinzufügen.

void addAllocationFailureReason (String deviceConfigName, reasons) addAllocationFailureReason (String deviceConfigName, reasons)

Fügen Sie für jede Gerätekonfiguration die Gründe für die Nichtzuweisung hinzu.

String formattedReason ()
getAllocatedDevices ()

Gibt die Karte der zugewiesenen Geräte zurück

boolean wasAllocationSuccessful ()

gibt zurück, ob die Zuordnung erfolgreich war oder nicht.

Öffentliche Konstrukteure

DeviceAllocationResult

public DeviceAllocationResult ()

Öffentliche Methoden

addAllocatedDevices

public void addAllocatedDevices ( devices)

Zugewiesene Geräte hinzufügen.

Parameter
devices

addAllocationFailureReason

public void addAllocationFailureReason (String deviceConfigName, 
                 reasons)

Fügen Sie für jede Gerätekonfiguration die Gründe für die Nichtzuweisung hinzu.

Parameter
deviceConfigName String

reasons

formatierter Grund

public String formattedReason ()

Kehrt zurück
String

getAllocatedDevices

public  getAllocatedDevices ()

Gibt die Karte der zugewiesenen Geräte zurück

Kehrt zurück

wasAllocationSuccessful

public boolean wasAllocationSuccessful ()

gibt zurück, ob die Zuordnung erfolgreich war oder nicht.

Kehrt zurück
boolean