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


VM 내의 Tradefed 인스턴스를 통해 원격으로 관리하는 가상 머신 내에서 실행되는 기기입니다.

요약

공개 생성자

ManagedRemoteDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

ManagedRemoteDevice를 만듭니다.

공개 메서드

TestDeviceOptions getOptions()

원격 설정을 시도하기 전에 동적 옵션을 확인할 수 있도록 기본 getter를 재정의합니다.

GceAvdInfo getRemoteAvdInfo()

원격 인스턴스를 설명하는 GceAvdInfo를 반환합니다.

void postInvocationTearDown(Throwable exception)

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

void setTestLogger(ITestLogger testLogger)

보호된 메서드

long getCurrentTime()

현재 시스템 시간을 반환합니다.

void launchGce()

빌드 정보를 기반으로 실제 gce 기기를 실행합니다.

공개 생성자

ManagedRemoteDevice

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

ManagedRemoteDevice를 만듭니다.

매개변수
device IDevice: 연결된 IDevice

stateMonitor IDeviceStateMonitor: 사용할 IDeviceStateMonitor 메커니즘입니다.

allocationMonitor IDeviceMonitor: 할당 상태 변경을 알리는 IDeviceMonitor입니다.

공개 메서드

getOptions

public TestDeviceOptions getOptions ()

원격 설정을 시도하기 전에 동적 옵션을 확인할 수 있도록 기본 getter를 재정의합니다.

반환 값
TestDeviceOptions

getRemoteAvdInfo

public GceAvdInfo getRemoteAvdInfo ()

원격 인스턴스를 설명하는 GceAvdInfo를 반환합니다.

반환 값
GceAvdInfo

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

매개변수
exception Throwable

preInvocationSetup

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

매개변수
info IBuildInfo

attributes MultiMap

생성 값
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

매개변수
testLogger ITestLogger

보호된 메서드

getCurrentTime

protected long getCurrentTime ()

현재 시스템 시간을 반환합니다. 테스트를 위해 노출됩니다.

반환 값
long

launchGce

protected void launchGce ()

빌드 정보를 기반으로 실제 gce 기기를 실행합니다.

생성 값
TargetSetupError