设备分配状态
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()
|
枚举值
公共方法
handleDeviceEvent
public DeviceAllocationState handleDeviceEvent (DeviceEvent event)
参数 | |
---|---|
event |
DeviceEvent |
返回 | |
---|---|
DeviceAllocationState |
valueOf
public static DeviceAllocationState valueOf (String name)
参数 | |
---|---|
name |
String |
返回 | |
---|---|
DeviceAllocationState |