リモートAndroid仮想デバイス

public class RemoteAndroidVirtualDevice
extends RemoteAndroidDevice

java.lang.オブジェクト
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を作成します。

パブリックメソッド

GceAvdInfo getAvdInfo ()

作成されたリモート VM からGceAvdInfoを返します。

GceAvdInfo getAvdInfoAnyState ()

作成されたリモート VM からGceAvdInfoを返します。

DeviceDescriptor getDeviceDescriptor ()

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

getTombstones ()

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

CommandResult powerwash ()

GCE インスタンスをパワーウォッシュしようとします

CommandResult powerwashGce (String user, Integer offset)

このメソッドは廃止されました。接続を優先して削除されました

boolean powerwashGce ()
void setAvdInfo ( GceAvdInfo gceAvdInfo)

起動したデバイスのGceAvdInfoを設定します。

パブリックコンストラクター

リモートAndroid仮想デバイス

public RemoteAndroidVirtualDevice (IDevice device, 
                IDeviceStateMonitor stateMonitor, 
                IDeviceMonitor allocationMonitor)

RemoteAndroidVirtualDeviceを作成します。

パラメーター
device IDevice : 関連付けられたIDevice

stateMonitor IDeviceStateMonitor : 使用するIDeviceStateMonitorメカニズム

allocationMonitor IDeviceMonitor : 割り当て状態の変更を通知するIDeviceMonitor

パブリックメソッド

getAvdInfo

public GceAvdInfo getAvdInfo ()

作成されたリモート VM からGceAvdInfoを返します。起動が成功しなかった場合は null を返します。

戻り値
GceAvdInfo

getAvdInfoAnyState

public GceAvdInfo getAvdInfoAnyState ()

作成されたリモート VM からGceAvdInfoを返します。情報を検査できるよう、ステータスに関係なく返品します。

戻り値
GceAvdInfo

getDeviceDescriptor

public DeviceDescriptor getDeviceDescriptor ()

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

戻り値
DeviceDescriptor

墓石を取得する

public  getTombstones ()

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

戻り値
トゥームストーン ファイルのリスト。トゥームストーンがない場合は空です。

投げる
DeviceNotAvailableException

パワーウォッシュ

public CommandResult powerwash ()

GCE インスタンスをパワーウォッシュしようとします

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

投げる
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError

パワーウォッシュGce

public CommandResult powerwashGce (String user, 
                Integer offset)

このメソッドは廃止されました。
接続を優先して削除されました

パラメーター
user String

offset Integer

戻り値
CommandResult

投げる
TargetSetupError

パワーウォッシュGce

public boolean powerwashGce ()

戻り値
boolean

投げる
TargetSetupError

setAvdInfo

public void setAvdInfo (GceAvdInfo gceAvdInfo)

起動したデバイスのGceAvdInfoを設定します。

パラメーター
gceAvdInfo GceAvdInfo

投げる
TargetSetupError