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 sınıfı.

Özet

Herkese açık kurucular

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 işlemini gerçekleştirin 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 kurucular

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ık kullanılan sökme işlemini gerçekleştirin ve sanal cihazı durdurun.

Parametreler
exception Throwable: Varsa çağrılma hatası tarafından 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

Atışlar
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

ITestLogger örneğini yerleştirir

Parametreler
testLogger ITestLogger

kapatma

public void shutdown ()

Cihazı kapatın.