관리형 원격 장치
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 |
getRemoteAvdInfo
public GceAvdInfo getRemoteAvdInfo ()
원격 인스턴스를 설명하는 GceAvdInfo
반환합니다.
보고 | |
---|---|
GceAvdInfo |
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 |