public interface

IDeviceSelection

implements ConditionPriorityBlockingQueue.IMatcher<T>
com.android.tradefed.device.IDeviceSelection
Known Indirect Subclasses

Class Overview

Interface for device selection criteria.

Summary

Public Methods
abstract boolean deviceRequested()
abstract boolean emulatorRequested()
abstract Integer getBatteryLevel(IDevice device)
Retrieves the battery level for the given device
abstract String getDeviceProductType(IDevice device)
Gets the given devices product type
abstract String getDeviceProductVariant(IDevice device)
Gets the given devices product variant
abstract Collection<String> getExcludeSerials()
Gets a copy of the serial numbers exclusion list
abstract Collection<String> getProductTypes()
Gets a copy of the product type list
abstract Map<String, String> getProperties()
Returns a map of the property list
abstract Collection<String> getSerials()
Gets a copy of the serial numbers
abstract boolean nullDeviceRequested()
abstract void setSerial(String... serialNumber)
Set the serial numbers inclusion list, replacing any existing values.
abstract boolean stubEmulatorRequested()
[Expand]
Inherited Methods
From interface com.android.tradefed.util.ConditionPriorityBlockingQueue.IMatcher

Public Methods

public abstract boolean deviceRequested ()

Returns
  • true if a device has been requested

public abstract boolean emulatorRequested ()

Returns
  • true if an emulator has been requested

public abstract Integer getBatteryLevel (IDevice device)

Retrieves the battery level for the given device

Parameters
device the IDevice
Returns
  • the device battery level or null if unknown

public abstract String getDeviceProductType (IDevice device)

Gets the given devices product type

Parameters
device the IDevice
Returns
  • the device product type or null if unknown

public abstract String getDeviceProductVariant (IDevice device)

Gets the given devices product variant

Parameters
device the IDevice
Returns
  • the device product variant or null if unknown

public abstract Collection<String> getExcludeSerials ()

Gets a copy of the serial numbers exclusion list

Returns

public abstract Collection<String> getProductTypes ()

Gets a copy of the product type list

Returns

public abstract Map<String, String> getProperties ()

Returns a map of the property list

Returns
  • a Map of device property names to values

public abstract Collection<String> getSerials ()

Gets a copy of the serial numbers

Returns

public abstract boolean nullDeviceRequested ()

Returns
  • true if a null device (aka no device required) has been requested

public abstract void setSerial (String... serialNumber)

Set the serial numbers inclusion list, replacing any existing values.

public abstract boolean stubEmulatorRequested ()

Returns
  • true if an stub emulator has been requested. A stub emulator is a placeholder to be used when config has to launch an emulator.