public class ConnectedDeviceProvider
extends com.android.builder.testing.api.DeviceProvider
init() is called.| Constructor and Description |
|---|
ConnectedDeviceProvider(java.io.File adbLocation,
int timeOutInMs,
com.android.utils.ILogger logger) |
ConnectedDeviceProvider(java.util.function.Supplier<java.io.File> adbLocationSupplier,
int timeOutInMs,
com.android.utils.ILogger logger)
Uses a supplier for the adb executable, so we can avoid parsing the SDK until it's needed for
the init.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends com.android.builder.testing.api.DeviceConnector> |
getDevices() |
java.lang.String |
getName() |
int |
getTimeoutInMs() |
void |
init() |
boolean |
isConfigured() |
void |
terminate() |
public ConnectedDeviceProvider(@NonNull
java.io.File adbLocation,
int timeOutInMs,
@NonNull
com.android.utils.ILogger logger)
timeOutInMs - The time out for each adb command, where 0 means wait forever.public ConnectedDeviceProvider(@NonNull
java.util.function.Supplier<java.io.File> adbLocationSupplier,
int timeOutInMs,
@NonNull
com.android.utils.ILogger logger)
timeOutInMs - The time out for each adb command, where 0 means wait forever.@NonNull public java.lang.String getName()
getName in class com.android.builder.testing.api.DeviceProvider@NonNull public java.util.List<? extends com.android.builder.testing.api.DeviceConnector> getDevices()
getDevices in class com.android.builder.testing.api.DeviceProviderpublic void init()
throws com.android.builder.testing.api.DeviceException
init in class com.android.builder.testing.api.DeviceProvidercom.android.builder.testing.api.DeviceExceptionpublic void terminate()
terminate in class com.android.builder.testing.api.DeviceProviderpublic int getTimeoutInMs()
getTimeoutInMs in class com.android.builder.testing.api.DeviceProviderpublic boolean isConfigured()
isConfigured in class com.android.builder.testing.api.DeviceProvider