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)
デバイスに関する情報を取得するために、実際のデバイス オブジェクトを渡さずにデバイス情報から |
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 |
|