DeviceAllocationResult

public class DeviceAllocationResult
extends Object

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


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

Zusammenfassung

Öffentliche Konstruktoren

DeviceAllocationResult()

Öffentliche Methoden

void addAllocatedDevices(Map<String, ITestDevice> devices)

Fügen Sie zugewiesene Geräte hinzu.

void addAllocationFailureReason(String deviceConfigName, Map<String, String> reasons)

Fügen Sie für jede Gerätekonfiguration die Gründe dafür hinzu, dass sie nicht zugewiesen wurde.

String formattedReason()
Map<String, ITestDevice> getAllocatedDevices()

Gibt die Zuordnung der zugewiesenen Geräte zurück

boolean wasAllocationSuccessful()

gibt zurück, ob die Zuweisung erfolgreich war.

Öffentliche Konstruktoren

DeviceAllocationResult

public DeviceAllocationResult ()

Öffentliche Methoden

addAllocatedDevices

public void addAllocatedDevices (Map<String, ITestDevice> devices)

Fügen Sie zugewiesene Geräte hinzu.

Parameter
devices Map

addAllocationFailureReason

public void addAllocationFailureReason (String deviceConfigName, 
                Map<String, String> reasons)

Fügen Sie für jede Gerätekonfiguration die Gründe dafür hinzu, dass sie nicht zugewiesen wurde.

Parameter
deviceConfigName String

reasons Map

formattedReason

public String formattedReason ()

Gibt Folgendes zurück:
String

getAllocatedDevices

public Map<String, ITestDevice> getAllocatedDevices ()

Gibt die Zuordnung der zugewiesenen Geräte zurück

Gibt Folgendes zurück:
Map<String, ITestDevice>

wasAllocationSuccessful

public boolean wasAllocationSuccessful ()

gibt zurück, ob die Zuweisung erfolgreich war.

Gibt Folgendes zurück:
boolean