管理対象リモートデバイス
public class ManagedRemoteDevice
extends TestDevice
implements ITestLoggerReceiver
java.lang.オブジェクト | |||
↳ | com.android.tradefed.device.NativeDevice | ||
↳ | com.android.tradefed.device.TestDevice | ||
↳ | com.android.tradefed.device.cloud.ManatedRemoteDevice |
仮想マシン内で実行されるデバイス。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 デバイスを起動します。 |
パブリックコンストラクター
管理対象リモートデバイス
public ManagedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
ManagedRemoteDevice
を作成します。
パラメーター | |
---|---|
device | IDevice : 関連付けられたIDevice |
stateMonitor | IDeviceStateMonitor : 使用するIDeviceStateMonitor メカニズム |
allocationMonitor | IDeviceMonitor : 割り当て状態の変更を通知するIDeviceMonitor 。 |
パブリックメソッド
getオプション
public TestDeviceOptions getOptions ()
リモート セットアップを試行する前に、動的オプションを解決できるようにベース ゲッターをオーバーライドします。
戻り値 | |
---|---|
TestDeviceOptions |
post呼び出しTearDown
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 |
保護されたメソッド
現在の時刻を取得する
protected long getCurrentTime ()
現在のシステム時間を返します。テストのために露出しました。
戻り値 | |
---|---|
long |
起動Gce
protected void launchGce ()
ビルド情報に基づいて実際の gce デバイスを起動します。
投げる | |
---|---|
TargetSetupError |