Zarządzane urządzenie zdalne

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


Urządzenie działające w maszynie wirtualnej, którą zarządzamy zdalnie za pomocą instancji Tradefed w środku maszyny wirtualnej.

Podsumowanie

Konstruktory publiczne

ManagedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Tworzy ManagedRemoteDevice.

Metody publiczne

TestDeviceOptions getOptions()

Zastąp podstawową metodę pobierania, aby móc rozpoznać opcje dynamiczne przed próbą wykonania zdalną konfigurację.

GceAvdInfo getRemoteAvdInfo()

Zwraca wartość GceAvdInfo opisującą instancję zdalną.

void postInvocationTearDown(Throwable exception)

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

void setTestLogger(ITestLogger testLogger)

Metody chronione

long getCurrentTime()

Zwraca bieżący czas systemowy.

void launchGce()

Uruchom rzeczywiste urządzenie GCE na podstawie informacji o kompilacji.

Konstruktory publiczne

Zarządzane urządzenie zdalne

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

Tworzy ManagedRemoteDevice.

Parametry
device IDevice: powiązane pole IDevice

stateMonitor IDeviceStateMonitor: mechanizm IDeviceStateMonitor używany do użycia,

allocationMonitor IDeviceMonitor: element IDeviceMonitor informuje o zmianach stanu alokacji.

Metody publiczne

getOptions

public TestDeviceOptions getOptions ()

Zastąp podstawową metodę pobierania, aby móc rozpoznać opcje dynamiczne przed próbą wykonania zdalną konfigurację.

Zwroty
TestDeviceOptions

getRemoteAvdInfo

public GceAvdInfo getRemoteAvdInfo ()

Zwraca wartość GceAvdInfo opisującą instancję zdalną.

Zwroty
GceAvdInfo

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

Parametry
exception Throwable

Konfiguracja wstępnego wywołania

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

Parametry
info IBuildInfo

attributes MultiMap

Rzuty
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Parametry
testLogger ITestLogger

Metody chronione

getCurrentTime

protected long getCurrentTime ()

Zwraca bieżący czas systemowy. Przedstawione do testów.

Zwroty
long

launchGce

protected void launchGce ()

Uruchom rzeczywiste urządzenie GCE na podstawie informacji o kompilacji.

Rzuty
TargetSetupError