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