设备分配状态

public final enum DeviceAllocationState
extends Enum< DeviceAllocationState >

java.lang.Object
java.lang.Enum< com.android.tradefed.device.DeviceAllocationState >
com.android.tradefed.device.DeviceAllocationState


从IDeviceManager角度表示设备的分配状态

概括

枚举值

DeviceAllocationState Allocated

设备当前已分配给测试

DeviceAllocationState Available

设备可分配给测试

DeviceAllocationState Checking_Availability

当前正在检查设备的响应能力

DeviceAllocationState Ignored

设备与全局设备过滤器不匹配,将被该 TF 忽略

DeviceAllocationState Unavailable

设备通过 adb 可见,但处于错误状态,无法运行测试

DeviceAllocationState Unknown

设备的初始状态 - 不应长时间驻留在此处

公共方法

DeviceAllocationState handleDeviceEvent (DeviceEvent event)
static DeviceAllocationState valueOf (String name)
static final DeviceAllocationState[] values ()

枚举值

已分配

public static final DeviceAllocationState Allocated

设备当前已分配给测试

可用的

public static final DeviceAllocationState Available

设备可分配给测试

检查可用性

public static final DeviceAllocationState Checking_Availability

当前正在检查设备的响应能力

被忽略

public static final DeviceAllocationState Ignored

设备与全局设备过滤器不匹配,将被该 TF 忽略

不可用

public static final DeviceAllocationState Unavailable

设备通过 adb 可见,但处于错误状态,无法运行测试

未知

public static final DeviceAllocationState Unknown

设备的初始状态 - 不应长时间驻留在此处

公共方法

处理设备事件

public DeviceAllocationState handleDeviceEvent (DeviceEvent event)

参数
event DeviceEvent

退货
DeviceAllocationState

的价值

public static DeviceAllocationState valueOf (String name)

参数
name String

退货
DeviceAllocationState

价值观

public static final DeviceAllocationState[] values ()

退货
DeviceAllocationState[]