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


Appareil exécuté dans une machine virtuelle que nous gérons à distance via une instance Tradefed dans la VM.

Résumé

Constructeurs publics

ManagedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Crée un objet ManagedRemoteDevice.

Méthodes publiques

TestDeviceOptions getOptions()

Remplacez le getter de base pour pouvoir résoudre les options dynamiques avant d'essayer de configurer à distance.

GceAvdInfo getRemoteAvdInfo()

Renvoie l'GceAvdInfo décrivant l'instance distante.

void postInvocationTearDown(Throwable exception)

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

void setTestLogger(ITestLogger testLogger)

Méthodes protégées

long getCurrentTime()

Renvoie l'heure système actuelle.

void launchGce()

Lancez l'appareil gce réel en fonction des informations de compilation.

Constructeurs publics

ManagedRemoteDevice

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

Crée un objet ManagedRemoteDevice.

Paramètres
device IDevice: IDevice associé

stateMonitor IDeviceStateMonitor: mécanisme IDeviceStateMonitor à utiliser

allocationMonitor IDeviceMonitor: IDeviceMonitor pour informer des changements d'état d'allocation.

Méthodes publiques

getOptions

public TestDeviceOptions getOptions ()

Remplacez le getter de base pour pouvoir résoudre les options dynamiques avant d'essayer de configurer à distance.

Renvoie
TestDeviceOptions

getRemoteAvdInfo

public GceAvdInfo getRemoteAvdInfo ()

Renvoie l'GceAvdInfo décrivant l'instance distante.

Renvoie
GceAvdInfo

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

Paramètres
exception Throwable

preInvocationSetup

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

Paramètres
info IBuildInfo

attributes MultiMap

Génère
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Paramètres
testLogger ITestLogger

Méthodes protégées

getCurrentTime

protected long getCurrentTime ()

Renvoie l'heure système actuelle. Exposé à des fins de test.

Renvoie
long

launchGce

protected void launchGce ()

Lancez l'appareil gce réel en fonction des informations de compilation.

Génère
TargetSetupError