NestedRemoteDevice
public
class
NestedRemoteDevice
extends TestDevice
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 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 |
Throws |
DeviceNotAvailableException |
|