コレクションでコンテンツを整理 必要に応じて、コンテンツの保存と分類を行います。

ManagedRemoteDevice

public class ManagedRemoteDevice
extends TestDevice implements ITestLoggerReceiver

java.lang.Object
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.cloud.ManagedRemoteDevice


VM内のTradefedインスタンスを介してリモートで管理する仮想マシン内で実行されているデバイス。

概要

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

ManagedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

作成ManagedRemoteDevice

パブリックメソッド

TestDeviceOptions getOptions ()

リモートセットアップを実行する前に、基本ゲッターをオーバーライドして動的オプションを解決できるようにします。

GceAvdInfo getRemoteAvdInfo ()

返しGceAvdInfoリモートインスタンスを記述する。

void postInvocationTearDown (Throwable exception)

void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)

void setTestLogger (ITestLogger testLogger)

保護されたメソッド

long getCurrentTime ()

現在のシステム時刻を返します。

void launchGce ()

ビルド情報に基づいて実際のgceデバイスを起動します。

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

ManagedRemoteDevice

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

作成ManagedRemoteDevice

パラメーター
device IDevice :関連するIDevice

stateMonitor IDeviceStateMonitorIDeviceStateMonitor使用するメカ

allocationMonitor IDeviceMonitorIDeviceMonitor割り当て状態の変化を通知します。

パブリックメソッド

getOptions

public TestDeviceOptions getOptions ()

リモートセットアップを実行する前に、基本ゲッターをオーバーライドして動的オプションを解決できるようにします。

戻り値
TestDeviceOptions

getRemoteAvdInfo

public GceAvdInfo getRemoteAvdInfo ()

返しGceAvdInfoリモートインスタンスを記述する。

戻り値
GceAvdInfo

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

パラメーター
exception Throwable

preInvocationSetup

public void preInvocationSetup (IBuildInfo info, 
                MultiMap<String, String> attributes)

パラメーター
info IBuildInfo

attributes MultiMap

投げる
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

パラメーター
testLogger ITestLogger

保護されたメソッド

getCurrentTime

protected long getCurrentTime ()

現在のシステム時刻を返します。テストのために公開されました。

戻り値
long

launchGce

protected void launchGce ()

ビルド情報に基づいて実際のgceデバイスを起動します。

投げる
TargetSetupError