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