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 |
|