設備分配結果
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 ()
傳回已指派裝置的映射
退貨 | |
---|---|
分配成功
public boolean wasAllocationSuccessful ()
返回分配是否成功。
退貨 | |
---|---|
boolean |