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)

RemoteAndroidVirtualDevice を作成します。

パブリック メソッド

DeviceInspectionResult debugDeviceNotAvailable()

デバイスを検査し、デバイスが使用できなくなったときに詳細情報を返します。

GceAvdInfo getAvdInfo()

このメソッドは非推奨です。接続 API を直接使用すべきです。

DeviceDescriptor getDeviceDescriptor(boolean shortDescriptor)

デバイス情報から DeviceDescriptor を返して、実際のデバイス オブジェクトを渡さずにその情報を取得します。

getTombstones()

Cuttlefish には、直接取得できるリモートホストに tombstone を取得する特別な機能があります。

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  getTombstones ()

Cuttlefish には、直接取得できるリモートホストに tombstone を取得する特別な機能があります。

戻り値
墓石ファイルのリスト。墓石がない場合は空。

例外
DeviceNotAvailableException

出荷時設定にリセット(する)

public CommandResult powerwash ()

GCE インスタンスのパワーウォッシュを試みる

戻り値
CommandResult Powerwash の試行の CommandResult を返します

例外
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError

powerwashGce

public CommandResult powerwashGce (String user, 
                Integer offset)

このメソッドは非推奨です。
接続のほうを優先して削除

パラメータ
user String

offset Integer

戻り値
CommandResult

例外
TargetSetupError

powerwashGce

public boolean powerwashGce ()

戻り値
boolean

例外
TargetSetupError