com.android.builder.testing
Class ConnectedDeviceProvider

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

public class ConnectedDeviceProvider
extends com.android.builder.testing.api.DeviceProvider

DeviceProvider for locally connected devices. Basically returns the list of devices that are currently connected at the time init() is called.


Constructor Summary
ConnectedDeviceProvider(SdkLoader sdkLoader, com.android.utils.ILogger logger)
           
 
Method Summary
 java.util.List<? extends com.android.builder.testing.api.DeviceConnector> getDevices()
           
 java.lang.String getName()
           
 int getTimeout()
           
 void init()
           
 boolean isConfigured()
           
 void terminate()
           
 
Methods inherited from class com.android.builder.testing.api.DeviceProvider
getMaxThreads
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectedDeviceProvider

public ConnectedDeviceProvider(@NonNull
                               SdkLoader sdkLoader,
                               @NonNull
                               com.android.utils.ILogger logger)
Method Detail

getName

@NonNull
public java.lang.String getName()
Specified by:
getName in class com.android.builder.testing.api.DeviceProvider

getDevices

@NonNull
public java.util.List<? extends com.android.builder.testing.api.DeviceConnector> getDevices()
Specified by:
getDevices in class com.android.builder.testing.api.DeviceProvider

init

public void init()
          throws com.android.builder.testing.api.DeviceException
Specified by:
init in class com.android.builder.testing.api.DeviceProvider
Throws:
com.android.builder.testing.api.DeviceException

terminate

public void terminate()
               throws com.android.builder.testing.api.DeviceException
Specified by:
terminate in class com.android.builder.testing.api.DeviceProvider
Throws:
com.android.builder.testing.api.DeviceException

getTimeout

public int getTimeout()
Specified by:
getTimeout in class com.android.builder.testing.api.DeviceProvider

isConfigured

public boolean isConfigured()
Specified by:
isConfigured in class com.android.builder.testing.api.DeviceProvider