DeviceAllocationResult

public class DeviceAllocationResult
extends Object

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


يمثّل نتائج محاولة تخصيص جهاز لأمر ما.

ملخّص

طُرق وضع التصميم العامة

DeviceAllocationResult()

الإجراءات العامة

void addAllocatedDevices(Map<String, ITestDevice> devices)

إضافة الأجهزة التي تم تخصيصها

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

إضافة أسباب عدم تخصيص كل إعداد ضبط جهاز

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

عرض خريطة الأجهزة المخصّصة

boolean wasAllocationSuccessful()

عرض ما إذا تم تخصيص الجهاز بنجاح

طُرق وضع التصميم العامة

DeviceAllocationResult

public DeviceAllocationResult ()

الإجراءات العامة

addAllocatedDevices

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

إضافة الأجهزة التي تم تخصيصها

المعلَمات
devices Map

addAllocationFailureReason

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

إضافة أسباب عدم تخصيص كل إعداد ضبط جهاز

المعلَمات
deviceConfigName String

reasons Map

formattedReason

public String formattedReason ()

المرتجعات
String

getAllocatedDevices

public Map<String, ITestDevice> getAllocatedDevices ()

عرض خريطة الأجهزة المخصّصة

المرتجعات
Map<String, ITestDevice>

wasAllocationSuccessful

public boolean wasAllocationSuccessful ()

عرض ما إذا تم تخصيص الجهاز بنجاح

المرتجعات
boolean