ローカルAndroid仮想デバイス

public class LocalAndroidVirtualDevice
extends RemoteAndroidDevice implements ITestLoggerReceiver

java.lang.オブジェクト
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.RemoteAndroidDevice
com.android.tradefed.device.LocalAndroidVirtualDevice


TradeFed ホスト上で実行されるローカル仮想デバイスのクラス。

まとめ

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

LocalAndroidVirtualDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

パブリックメソッド

boolean adbTcpConnect (String host, String port)
boolean adbTcpDisconnect (String host, String port)
void postInvocationTearDown (Throwable exception)

共通の破棄手順を実行し、仮想デバイスを停止します。

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

共通のセットアップ手順を実行し、仮想デバイスを起動します。

void setTestLogger ( ITestLogger testLogger)

ITestLoggerインスタンスを挿入します

void shutdown ()

デバイスをシャットダウンします。

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

ローカルAndroid仮想デバイス

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

パラメーター
device IDevice

stateMonitor IDeviceStateMonitor

allocationMonitor IDeviceMonitor

パブリックメソッド

adbTcpConnect

public boolean adbTcpConnect (String host, 
                String port)

パラメーター
host String

port String

戻り値
boolean

adbTcp切断

public boolean adbTcpDisconnect (String host, 
                String port)

パラメーター
host String

port String

戻り値
boolean

post呼び出しTearDown

public void postInvocationTearDown (Throwable exception)

共通の破棄手順を実行し、仮想デバイスを停止します。

パラメーター
exception Throwable : 呼び出し失敗によって発生した最後の例外 (存在する場合)。

preInvocationSetup

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

共通のセットアップ手順を実行し、仮想デバイスを起動します。

パラメーター
info IBuildInfo : デバイスのIBuildInfo

attributes MultiMap : 呼び出しコンテキストに格納される属性

投げる
DeviceNotAvailableException
TargetSetupError

setTestLogger

public void setTestLogger (ITestLogger testLogger)

ITestLoggerインスタンスを挿入します

パラメーター
testLogger ITestLogger

シャットダウン

public void shutdown ()

デバイスをシャットダウンします。