DeviceAllocationResult
public
class
DeviceAllocationResult
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.command.DeviceAllocationResult |
代表指令分配嘗試的結果。
摘要
公用建構函式 | |
|---|---|
DeviceAllocationResult()
|
|
公用方法 | |
|---|---|
void
|
addAllocatedDevices(
新增已分配的裝置。 |
void
|
addAllocationFailureReason(String deviceConfigName,
為每個裝置設定新增未分配的原因。 |
String
|
formattedReason()
|
|
getAllocatedDevices()
傳回已指派裝置的地圖 |
boolean
|
wasAllocationSuccessful()
傳回分配是否成功。 |
公用建構函式
DeviceAllocationResult
public DeviceAllocationResult ()
公用方法
addAllocatedDevices
public void addAllocatedDevices (devices)
新增已分配的裝置。
| 參數 | |
|---|---|
devices |
|
addAllocationFailureReason
public void addAllocationFailureReason (String deviceConfigName,
reasons) 為每個裝置設定新增未分配的原因。
| 參數 | |
|---|---|
deviceConfigName |
String |
reasons |
|
formattedReason
public String formattedReason ()
| 傳回 | |
|---|---|
String |
|
getAllocatedDevices
publicgetAllocatedDevices ()
傳回已指派裝置的地圖
| 傳回 | |
|---|---|
|
|
wasAllocationSuccessful
public boolean wasAllocationSuccessful ()
傳回分配是否成功。
| 傳回 | |
|---|---|
boolean |
|