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 動作を拡張します。デバイスのシリアル番号が : in 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 インスタンスの Powerwash を試行する

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

Powerwash

public CommandResult powerwash ()

GCE インスタンスの Powerwash を試行する

戻り値
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