Google is committed to advancing racial equity for Black communities. See how.

LocalAndroidVirtualDevice

public class LocalAndroidVirtualDevice
extends RemoteAndroidDevice implements ITestLoggerReceiver

java.lang.Object
   ↳ com.android.tradefed.device.NativeDevice
     ↳ com.android.tradefed.device.TestDevice
       ↳ com.android.tradefed.device.RemoteAndroidDevice
         ↳ com.android.tradefed.device.LocalAndroidVirtualDevice


The class for local virtual devices running on TradeFed host.

Summary

Public constructors

LocalAndroidVirtualDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Public methods

void postInvocationTearDown(Throwable exception)

Execute common tear-down procedure and stop the virtual device.

void preInvocationSetup(IBuildInfo info)

Execute common setup procedure and launch the virtual device.

void setTestLogger(ITestLogger testLogger)

Public constructors

LocalAndroidVirtualDevice

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

Parameters
device IDevice

stateMonitor IDeviceStateMonitor

allocationMonitor IDeviceMonitor

Public methods

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

Execute common tear-down procedure and stop the virtual device.

Parameters
exception Throwable

preInvocationSetup

public void preInvocationSetup (IBuildInfo info)

Execute common setup procedure and launch the virtual device.

Parameters
info IBuildInfo

Throws
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Parameters
testLogger ITestLogger