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)
|
パブリック メソッド | |
---|---|
TestDeviceOptions
|
getOptions()
ベース ゲッターをオーバーライドして、リモート設定を試行する前に動的オプションを解決できるようにします。 |
GceAvdInfo
|
getRemoteAvdInfo()
リモート インスタンスを記述する |
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 |
IDeviceStateMonitor : 使用する IDeviceStateMonitor メカニズム |
allocationMonitor |
IDeviceMonitor : 割り当て状態の変更を通知する IDeviceMonitor 。 |
パブリック メソッド
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 |