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