設備分配結果

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

獲取分配的設備

public  getAllocatedDevices ()

返回已分配設備的映射

退貨

wasAllocationSuccessful

public boolean wasAllocationSuccessful ()

返回分配是否成功。

退貨
boolean