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


TradeFed ana makinesinde çalışan yerel sanal cihazların sınıfı.

Özet

Herkese açık oluşturucular

LocalAndroidVirtualDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Herkese açık yöntemler

boolean adbTcpConnect(String host, String port)
boolean adbTcpDisconnect(String host, String port)
void postInvocationTearDown(Throwable exception)

Sık kullanılan sökme prosedürünü uygulayın ve sanal cihazı durdurun.

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

Genel kurulum prosedürünü uygulayın ve sanal cihazı başlatın.

void setTestLogger(ITestLogger testLogger)

ITestLogger örneğini yerleştirir.

void shutdown()

Cihazı kapatın.

Herkese açık oluşturucular

LocalAndroidVirtualDevice

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

Parametreler
device IDevice

stateMonitor IDeviceStateMonitor

allocationMonitor IDeviceMonitor

Herkese açık yöntemler

adbTcpConnect

public boolean adbTcpConnect (String host, 
                String port)

Parametreler
host String

port String

İlerlemeler
boolean

adbTcpDisconnect

public boolean adbTcpDisconnect (String host, 
                String port)

Parametreler
host String

port String

İlerlemeler
boolean

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

Sökme işlemini uygulayın ve sanal cihazı durdurun.

Parametreler
exception Throwable: Varsa çağırma hatası nedeniyle oluşturulan son istisna.

preInvocationSetup

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

Genel kurulum prosedürünü uygulayın ve sanal cihazı başlatın.

Parametreler
info IBuildInfo: Cihazın IBuildInfo.

attributes MultiMap: Çağırma bağlamında depolanan özellikler

Dekoratif yastıklar
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

ITestLogger örneğini yerleştirir.

Parametreler
testLogger ITestLogger

kapatma

public void shutdown ()

Cihazı kapatın.