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()
|
列舉值
Checking_Availability
public static final DeviceAllocationState Checking_Availability
裝置目前正在接受回應能力檢查
公用方法
handleDeviceEvent
public DeviceAllocationState handleDeviceEvent (DeviceEvent event)
參數 | |
---|---|
event |
DeviceEvent |
傳回 | |
---|---|
DeviceAllocationState |
valueOf
public static DeviceAllocationState valueOf (String name)
參數 | |
---|---|
name |
String |
傳回 | |
---|---|
DeviceAllocationState |