로컬Android가상장치

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 호스트에서 실행되는 로컬 가상 장치의 클래스입니다.

요약

공개 생성자

LocalAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

공개 메소드

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

일반적인 해체 절차를 실행하고 가상 장치를 중지합니다.

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

공통 설정 절차를 실행하고 가상 장치를 시작합니다.

void setTestLogger ( ITestLogger testLogger)

ITestLogger 인스턴스를 삽입합니다.

void shutdown ()

장치를 종료하십시오.

공개 생성자

로컬Android가상장치

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

매개변수
device IDevice

stateMonitor IDeviceStateMonitor

allocationMonitor IDeviceMonitor

공개 메소드

adbTcpConnect

public boolean adbTcpConnect (String host, 
                String port)

매개변수
host String

port String

보고
boolean

adbTcpDisconnect

public boolean adbTcpDisconnect (String host, 
                String port)

매개변수
host String

port String

보고
boolean

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

일반적인 해체 절차를 실행하고 가상 장치를 중지합니다.

매개변수
exception Throwable : 있는 경우 호출 실패로 인해 발생한 최종 예외입니다.

사전 호출 설정

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

공통 설정 절차를 실행하고 가상 장치를 시작합니다.

매개변수
info IBuildInfo : 장치의 IBuildInfo 입니다.

attributes MultiMap : 호출 컨텍스트에 저장된 속성

던지기
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

ITestLogger 인스턴스를 삽입합니다.

매개변수
testLogger ITestLogger

일시 휴업

public void shutdown ()

장치를 종료하십시오.