DeviceAllocationState

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

设备可分配给测试

Checking_Availability

public static final DeviceAllocationState Checking_Availability

设备目前正在接受响应能力检查

已忽略

public static final DeviceAllocationState Ignored

设备与全局设备过滤条件不匹配,将被此 TF 忽略

不可用

public static final DeviceAllocationState Unavailable

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

未知

public static final DeviceAllocationState Unknown

设备的初始状态 - 不应在此处停留太久

公共方法

handleDeviceEvent

public DeviceAllocationState handleDeviceEvent (DeviceEvent event)

参数
event DeviceEvent

返回
DeviceAllocationState

valueOf

public static DeviceAllocationState valueOf (String name)

参数
name String

返回
DeviceAllocationState

values

public static final DeviceAllocationState[] values ()

返回
DeviceAllocationState[]