ManagedRemoteDevice
public
class
ManagedRemoteDevice
extends TestDevice
implements
ITestLoggerReceiver
| java.lang.Object | |||
| ↳ | com.android.tradefed.device.NativeDevice | ||
| ↳ | com.android.tradefed.device.TestDevice | ||
| ↳ | com.android.tradefed.device.cloud.ManagedRemoteDevice | ||
A device running inside a virtual machine that we manage remotely via a Tradefed instance inside the VM.
Summary
Public constructors | |
|---|---|
ManagedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
Creates a |
|
Public methods | |
|---|---|
void
|
postInvocationTearDown(Throwable exception)
Extra steps for device specific required clean up that will be executed after the invocation is done. |
void
|
preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)
Extra steps for device specific required setup that will be executed on the device prior to the invocation flow. |
Public constructors
ManagedRemoteDevice
public ManagedRemoteDevice (IDevice device,
IDeviceStateMonitor stateMonitor,
IDeviceMonitor allocationMonitor)Creates a ManagedRemoteDevice.
| Parameters | |
|---|---|
device |
IDevice: the associated IDevice |
stateMonitor |
IDeviceStateMonitor: the IDeviceStateMonitor mechanism to use |
allocationMonitor |
IDeviceMonitor: the IDeviceMonitor to inform of allocation state changes. |
Public methods
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
Extra steps for device specific required clean up that will be executed after the invocation is done.
| Parameters | |
|---|---|
exception |
Throwable: if any, the final exception raised by the invocation failure. |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
Extra steps for device specific required setup that will be executed on the device prior to the invocation flow.
| Parameters | |
|---|---|
info |
IBuildInfo: The IBuildInfo of the device. |
attributes |
MultiMap: The attributes stored in the invocation context |
| Throws | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|