RemoteAndroidVirtualDevice
public
class
RemoteAndroidVirtualDevice
extends RemoteAndroidDevice
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
동작을 확장합니다. 기기 일련번호가
요약
공개 생성자 | |
---|---|
RemoteAndroidVirtualDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
|
공개 메서드 | |
---|---|
DeviceInspectionResult
|
debugDeviceNotAvailable()
기기를 검사하고 기기를 사용할 수 없게 되면 세부정보를 반환합니다. |
GceAvdInfo
|
getAvdInfo()
이 메서드는 지원 중단되었습니다. 연결 API를 직접 사용해야 합니다. |
DeviceDescriptor
|
getDeviceDescriptor(boolean shortDescriptor)
기기 정보에서 |
|
getTombstones()
Cuttlefish에는 삭제된 항목을 직접 가져올 수 있는 원격 호스트로 삭제된 항목을 가져오는 특수 기능이 있습니다. |
CommandResult
|
powerwash()
GCE 인스턴스 파워워시 시도 |
CommandResult
|
powerwashGce(String user, Integer offset)
이 메서드는 지원 중단되었습니다. 연결을 위해 삭제됨 |
boolean
|
powerwashGce()
|
공개 생성자
RemoteAndroidVirtualDevice
public RemoteAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
RemoteAndroidVirtualDevice
를 만듭니다.
매개변수 | |
---|---|
device |
IDevice : 연결된 IDevice |
stateMonitor |
IDeviceStateMonitor : 사용할 IDeviceStateMonitor 메커니즘입니다. |
allocationMonitor |
IDeviceMonitor : 할당 상태 변경을 알리는 IDeviceMonitor 입니다. |
공개 메서드
debugDeviceNotAvailable
public DeviceInspectionResult debugDeviceNotAvailable ()
기기를 검사하고 기기를 사용할 수 없게 되면 세부정보를 반환합니다.
반환 값 | |
---|---|
DeviceInspectionResult |
getAvdInfo
public GceAvdInfo getAvdInfo ()
이 메서드는 지원 중단되었습니다.
는 연결 API를 직접 사용해야 합니다.
생성된 원격 VM의 GceAvdInfo
를 반환합니다. 가져오기에 실패하면 null을 반환합니다.
반환 값 | |
---|---|
GceAvdInfo |
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor (boolean shortDescriptor)
기기 정보에서 DeviceDescriptor
를 반환하여 실제 기기 객체를 전달하지 않고 기기 정보를 가져옵니다.
매개변수 | |
---|---|
shortDescriptor |
boolean : 설명자를 최소한의 정보로 제한할지 여부입니다. |
반환 값 | |
---|---|
DeviceDescriptor |
getTombstones
publicgetTombstones ()
Cuttlefish에는 삭제된 항목을 직접 가져올 수 있는 원격 호스트로 삭제된 항목을 가져오는 특수 기능이 있습니다.
반환 값 | |
---|---|
|
삭제된 파일 목록입니다. 삭제된 파일이 없으면 비어 있습니다. |
생성 값 | |
---|---|
DeviceNotAvailableException |
초기화
public CommandResult powerwash ()
GCE 인스턴스 파워워시 시도
반환 값 | |
---|---|
CommandResult |
파워워시 시도의 CommandResult를 반환합니다. |
생성 값 | |
---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |
powerwashGce
public CommandResult powerwashGce (String user, Integer offset)
이 메서드는 지원 중단되었습니다.
연결을 위해 삭제됨
매개변수 | |
---|---|
user |
String |
offset |
Integer |
반환 값 | |
---|---|
CommandResult |
생성 값 | |
---|---|
TargetSetupError |