com.android.builder.testing.api
Class DeviceProvider

java.lang.Object
  extended by com.android.builder.testing.api.DeviceProvider

@Beta
public abstract class DeviceProvider
extends java.lang.Object

Provides a list of remote or local devices.


Constructor Summary
DeviceProvider()
           
 
Method Summary
abstract  java.util.List<? extends DeviceConnector> getDevices()
          Returns a list of DeviceConnector.
 int getMaxThreads()
           
abstract  java.lang.String getName()
          Returns the name of the provider.
abstract  int getTimeout()
          Returns the timeout to use.
abstract  void init()
          Initializes the provider.
abstract  boolean isConfigured()
          Returns true if the provider is configured and able to run.
abstract  void terminate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceProvider

public DeviceProvider()
Method Detail

getName

@NonNull
public abstract java.lang.String getName()
Returns the name of the provider. Must be unique, not contain spaces, and start with a lower case.

Returns:
the name of the provider.

init

public abstract void init()
                   throws DeviceException
Initializes the provider. This is called before any other method (except getName()).

Throws:
DeviceException

terminate

public abstract void terminate()
                        throws DeviceException
Throws:
DeviceException

getDevices

@NonNull
public abstract java.util.List<? extends DeviceConnector> getDevices()
Returns a list of DeviceConnector.

Returns:
a non-null list (but could be empty.)

getTimeout

public abstract int getTimeout()
Returns the timeout to use.

Returns:
the time out.

isConfigured

public abstract boolean isConfigured()
Returns true if the provider is configured and able to run.

Returns:
if the provider is configured.

getMaxThreads

public int getMaxThreads()