RemoteAndroidVirtualDevice
public
class
RemoteAndroidVirtualDevice
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.cloud.RemoteAndroidVirtualDevice |
Google Compute Engine (GCE)에서 실행되는 전체 스택 Android 기기의 RemoteAndroidDevice
동작을 확장합니다. 기기 일련번호가 adb에서
요약
공개 생성자 | |
---|---|
RemoteAndroidVirtualDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
|
공개 메서드 | |
---|---|
GceAvdInfo
|
getAvdInfo()
생성된 원격 VM의 |
DeviceDescriptor
|
getDeviceDescriptor()
|
|
getTombstones()
Cuttlefish에는 삭제된 항목을 직접 가져올 수 있는 원격 호스트로 삭제된 항목을 가져오는 특수 기능이 있습니다. |
void
|
postBootSetup()
{@inherit } |
void
|
postInvocationTearDown(Throwable exception)
|
boolean
|
powerwashGce()
GCE 인스턴스 파워워시 시도 |
void
|
preInvocationSetup(IBuildInfo info, MultiMap<String, String> attributes)
|
void
|
recoverDevice()
기기 통신을 복구하려고 시도합니다. |
void
|
setGceSshMonitor(GceSshTunnelMonitor gceSshMonitor)
기기의 내부 |
void
|
setTestLogger(ITestLogger testLogger)
|
보호된 메서드 | |
---|---|
void
|
doAdbReboot(NativeDevice.RebootMode rebootMode, String reason)
adb 재부팅을 실행합니다. |
long
|
getCurrentTime()
현재 시스템 시간을 반환합니다. |
GceSshTunnelMonitor
|
getGceSshMonitor()
기기의 |
void
|
launchGce(IBuildInfo buildInfo, MultiMap<String, String> attributes)
빌드 정보를 기반으로 실제 gce 기기를 실행합니다. |
void
|
waitForTunnelOnline(long waitTime)
터널 모니터가 실행 중인지 확인합니다. |
공개 생성자
RemoteAndroidVirtualDevice
public RemoteAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
RemoteAndroidVirtualDevice
를 만듭니다.
매개변수 | |
---|---|
device |
IDevice : 연결된 IDevice |
stateMonitor |
IDeviceStateMonitor : 사용할 IDeviceStateMonitor 메커니즘입니다. |
allocationMonitor |
IDeviceMonitor : 할당 상태 변경을 알리는 IDeviceMonitor 입니다.
|
공개 메서드
getAvdInfo
public GceAvdInfo getAvdInfo ()
생성된 원격 VM의 GceAvdInfo
를 반환합니다. 가져오기에 실패하면 null을 반환합니다.
반환 값 | |
---|---|
GceAvdInfo |
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor ()
반환 값 | |
---|---|
DeviceDescriptor |
getTombstones
publicgetTombstones ()
Cuttlefish에는 삭제된 항목을 직접 가져올 수 있는 원격 호스트로 삭제된 항목을 가져오는 특수 기능이 있습니다.
반환 값 | |
---|---|
|
생성 값 | |
---|---|
DeviceNotAvailableException |
postBootSetup
public void postBootSetup ()
{@inherit }
생성 값 | |
---|---|
DeviceNotAvailableException |
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
매개변수 | |
---|---|
exception |
Throwable |
powerwashGce
public boolean powerwashGce ()
GCE 인스턴스 파워워시 시도
반환 값 | |
---|---|
boolean |
GCE를 전원 워시하면 true를 반환합니다. |
생성 값 | |
---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException |
|
TargetSetupError |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
매개변수 | |
---|---|
info |
IBuildInfo |
attributes |
MultiMap |
생성 값 | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
recoverDevice
public void recoverDevice ()
기기 통신을 복구하려고 시도합니다.
생성 값 | |
---|---|
DeviceNotAvailableException |
setGceSshMonitor
public void setGceSshMonitor (GceSshTunnelMonitor gceSshMonitor)
기기의 내부 GceSshTunnelMonitor
를 재정의합니다.
매개변수 | |
---|---|
gceSshMonitor |
GceSshTunnelMonitor |
setTestLogger
public void setTestLogger (ITestLogger testLogger)
매개변수 | |
---|---|
testLogger |
ITestLogger |
보호된 메서드
doAdbReboot
protected void doAdbReboot (NativeDevice.RebootMode rebootMode, String reason)
adb 재부팅을 실행합니다.
매개변수 | |
---|---|
rebootMode |
NativeDevice.RebootMode : 이 재부팅의 모드입니다. |
reason |
String : 이 재부팅에 관한 정보입니다. |
생성 값 | |
---|---|
DeviceNotAvailableException |
getCurrentTime
protected long getCurrentTime ()
현재 시스템 시간을 반환합니다. 테스트를 위해 노출됩니다.
반환 값 | |
---|---|
long |
getGceSshMonitor
protected GceSshTunnelMonitor getGceSshMonitor ()
기기의 GceSshTunnelMonitor
를 반환합니다.
테스트를 위해 노출됩니다.
반환 값 | |
---|---|
GceSshTunnelMonitor |
launchGce
protected void launchGce (IBuildInfo buildInfo, MultiMap<String, String> attributes)
빌드 정보를 기반으로 실제 gce 기기를 실행합니다.
매개변수 | |
---|---|
buildInfo |
IBuildInfo |
attributes |
MultiMap |
생성 값 | |
---|---|
TargetSetupError |
waitForTunnelOnline
protected void waitForTunnelOnline (long waitTime)
터널 모니터가 실행 중인지 확인합니다.
매개변수 | |
---|---|
waitTime |
long |
생성 값 | |
---|---|
DeviceNotAvailableException |