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)
パラメーター | |
---|---|
device | IDevice :関連するIDevice |
stateMonitor | IDeviceStateMonitor : IDeviceStateMonitor 使用するメカ |
allocationMonitor | IDeviceMonitor : IDeviceMonitor 割り当て状態の変化を通知します。 |
パブリックメソッド
getOptions
public TestDeviceOptions getOptions ()
リモートセットアップを実行する前に、基本ゲッターをオーバーライドして動的オプションを解決できるようにします。
戻り値 | |
---|---|
TestDeviceOptions |
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 |