NestedRemoteDevice

public class NestedRemoteDevice
extends TestDevice

java.lang.Object
   ↳ com.android.tradefed.device.NativeDevice
     ↳ com.android.tradefed.device.TestDevice
       ↳ com.android.tradefed.device.cloud.NestedRemoteDevice


Representation of the device running inside a remote Cuttlefish VM. It will alter the local device TestDevice behavior in some cases to take advantage of the setup.

Summary

Public constructors

NestedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Creates a NestedRemoteDevice.

Public methods

void preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)

final boolean resetVirtualDevice(ITestLogger logger, IBuildInfo info, boolean resetDueToFailure)

Teardown and restore the virtual device so testing can proceed.

Public constructors

NestedRemoteDevice

public NestedRemoteDevice (IDevice device, 
                IDeviceStateMonitor stateMonitor, 
                IDeviceMonitor allocationMonitor)

Creates a NestedRemoteDevice.

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

preInvocationSetup

public void preInvocationSetup (IBuildInfo info, 
                MultiMap<String, String> attributes)

Parameters
info IBuildInfo

attributes MultiMap

Throws
DeviceNotAvailableException
TargetSetupError

resetVirtualDevice

public final boolean resetVirtualDevice (ITestLogger logger, 
                IBuildInfo info, 
                boolean resetDueToFailure)

Teardown and restore the virtual device so testing can proceed.

Parameters
logger ITestLogger

info IBuildInfo

resetDueToFailure boolean

Returns
boolean

Throws
DeviceNotAvailableException