원격Android가상장치
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) |
공개 메소드 | |
---|---|
GceAvdInfo | getAvdInfo () 이 방법은 더 이상 사용되지 않습니다. 연결 API를 직접 사용해야 합니다. |
DeviceDescriptor | getDeviceDescriptor (boolean shortDescriptor) 실제 장치 객체를 전달하지 않고 정보를 얻으려면 장치 정보에서 |
getTombstones () Cuttlefish에는 삭제 표시를 원격 호스트로 가져와서 직접 얻을 수 있는 특별한 기능이 있습니다. | |
CommandResult | powerwash () GCE 인스턴스 파워워시 시도 |
CommandResult | powerwashGce (String user, Integer offset) 이 방법은 더 이상 사용되지 않습니다. 연결을 위해 제거되었습니다. |
boolean | powerwashGce () |
공개 생성자
원격Android가상장치
public RemoteAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
RemoteAndroidVirtualDevice
생성합니다.
매개변수 | |
---|---|
device | IDevice : 연결된 IDevice |
stateMonitor | IDeviceStateMonitor : 사용할 IDeviceStateMonitor 메커니즘 |
allocationMonitor | IDeviceMonitor : 할당 상태 변경을 알리는 IDeviceMonitor . |
공개 메소드
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 |
파워워시Gce
public CommandResult powerwashGce (String user, Integer offset)
이 방법은 더 이상 사용되지 않습니다.
연결을 위해 제거되었습니다.
매개변수 | |
---|---|
user | String |
offset | Integer |
보고 | |
---|---|
CommandResult |
던지기 | |
---|---|
TargetSetupError |