设备分配结果
public class DeviceAllocationResult
extends Object
java.lang.Object | |
↳ | com.android.tradefed.command.DeviceAllocationResult |
表示命令分配尝试的结果。
概括
公共构造函数 | |
---|---|
DeviceAllocationResult () |
公共方法 | |
---|---|
void | addAllocatedDevices ( devices) addAllocatedDevices ( devices) 添加已分配的设备。 |
void | addAllocationFailureReason (String deviceConfigName, reasons) addAllocationFailureReason (String deviceConfigName, reasons) 为每个设备配置添加未分配的原因。 |
String | formattedReason () |
getAllocatedDevices () 返回已分配设备的映射 | |
boolean | wasAllocationSuccessful () 返回分配是否成功。 |
公共构造函数
设备分配结果
public DeviceAllocationResult ()
公共方法
添加分配的设备
public void addAllocatedDevices (devices)
添加已分配的设备。
参数 | |
---|---|
devices |
添加分配失败原因
public void addAllocationFailureReason (String deviceConfigName,reasons)
为每个设备配置添加未分配的原因。
参数 | |
---|---|
deviceConfigName | String |
reasons |
格式化原因
public String formattedReason ()
退货 | |
---|---|
String |
获取分配的设备
publicgetAllocatedDevices ()
返回已分配设备的映射
退货 | |
---|---|
wasAllocationSuccessful
public boolean wasAllocationSuccessful ()
返回分配是否成功。
退货 | |
---|---|
boolean |