DeviceAllocationState

public final enum DeviceAllocationState
extends Enum<DeviceAllocationState>

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


Represents the allocation state of the device from the IDeviceManager perspective

Summary

Enum values

DeviceAllocationState  Allocated

device is currently allocated to a test  

DeviceAllocationState  Available

device is available to be allocated to a test  

DeviceAllocationState  Checking_Availability

device is currently being checked for responsiveness  

DeviceAllocationState  Ignored

Device does not match global device filter, and will be ignored by this TF  

DeviceAllocationState  Unavailable

device is visible via adb but is in an error state that prevents it from running tests  

DeviceAllocationState  Unknown

the initial state of a device - should not reside here for long  

Public methods

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

Enum values

Allocated

public static final DeviceAllocationState Allocated

device is currently allocated to a test

Available

public static final DeviceAllocationState Available

device is available to be allocated to a test

Checking_Availability

public static final DeviceAllocationState Checking_Availability

device is currently being checked for responsiveness

Ignored

public static final DeviceAllocationState Ignored

Device does not match global device filter, and will be ignored by this TF

Unavailable

public static final DeviceAllocationState Unavailable

device is visible via adb but is in an error state that prevents it from running tests

Unknown

public static final DeviceAllocationState Unknown

the initial state of a device - should not reside here for long

Public methods

handleDeviceEvent

public DeviceAllocationState handleDeviceEvent (DeviceEvent event)

Parameters
event DeviceEvent

Returns
DeviceAllocationState

valueOf

public static DeviceAllocationState valueOf (String name)

Parameters
name String

Returns
DeviceAllocationState

values

public static final DeviceAllocationState[] values ()

Returns
DeviceAllocationState[]