관리되는 원격 장치
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) 작성 |
공개 메서드 | |
---|---|
TestDeviceOptions | getOptions () 원격 설정을 시도하기 전에 동적 옵션을 해결할 수 있도록 기본 getter를 재정의하십시오. |
GceAvdInfo | getRemoteAvdInfo () 수익 |
void | postInvocationTearDown (Throwable exception) |
void | preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes) |
void | setTestLogger (ITestLogger testLogger) |
보호된 방법 | |
---|---|
long | getCurrentTime () 현재 시스템 시간을 반환합니다. |
void | launchGce () 빌드 정보를 기반으로 실제 gce 장치를 시작합니다. |
공개 생성자
관리되는 원격 장치
public ManagedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
작성 ManagedRemoteDevice
.
매개변수 | |
---|---|
device | IDevice : 관련 IDevice |
stateMonitor | IDeviceStateMonitor 다음 IDeviceStateMonitor 사용에 대한 메커니즘 |
allocationMonitor | IDeviceMonitor 다음 IDeviceMonitor 할당 상태 변경 통지합니다. |
공개 메서드
getOptions
public TestDeviceOptions getOptions ()
원격 설정을 시도하기 전에 동적 옵션을 해결할 수 있도록 기본 getter를 재정의하십시오.
보고 | |
---|---|
TestDeviceOptions |
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
매개변수 | |
---|---|
exception | Throwable |
사전 호출 설정
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 |
런치Gce
protected void launchGce ()
빌드 정보를 기반으로 실제 gce 장치를 시작합니다.
던지다 | |
---|---|
TargetSetupError |