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 | Allocateddevice is currently allocated to a test | 
| DeviceAllocationState | Availabledevice is available to be allocated to a test | 
| DeviceAllocationState | Checking_Availabilitydevice is currently being checked for responsiveness | 
| DeviceAllocationState | IgnoredDevice does not match global device filter, and will be ignored by this TF | 
| DeviceAllocationState | Unavailabledevice is visible via adb but is in an error state that prevents it from running tests | 
| DeviceAllocationState | Unknownthe 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 | |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-04-28 UTC.
