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 동작을 확장합니다.
기기 일련번호가 adb에서 형식
요약
공개 생성자 | |
|---|---|
RemoteAndroidVirtualDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
|
|
공개 메서드 | |
|---|---|
DeviceInspectionResult
|
debugDeviceNotAvailable()
기기를 검사하고 기기를 사용할 수 없게 되면 세부정보를 반환합니다. |
GceAvdInfo
|
getAvdInfo()
이 메서드는 지원 중단되었습니다. 연결 API를 직접 사용해야 합니다 |
DeviceDescriptor
|
getDeviceDescriptor(boolean shortDescriptor)
실제 기기 객체를 전달하지 않고 기기 정보에서 |
List<File>
|
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
public List<File> getTombstones ()
Cuttlefish에는 묘비를 직접 가져올 수 있는 원격 호스트로 가져오는 특별한 기능이 있습니다.
| 반환 | |
|---|---|
List<File> |
묘비 파일 목록입니다. 묘비가 없으면 비어 있습니다. |
| 생성 값 | |
|---|---|
DeviceNotAvailableException |
|
powerwash
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 |
|