ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

java.lang.Object
   ↳ com.android.tradefed.device.ManagedTestDeviceFactory


Tf によってモニタリングできるさまざまな種類のデバイスを作成するファクトリ

概要

定数

int FRAMEWORK_CHECK_MAX_RETRY

long FRAMEWORK_CHECK_SLEEP_MS

フィールド

protected static final String CHECK_PM_CMD

protected static final String EXPECTED_ERROR

protected static final String EXPECTED_RES

public static final String IPADDRESS_PATTERN

protected IDeviceMonitor mAllocationMonitor

protected IDeviceManager mDeviceManager

protected boolean mFastbootEnabled

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

ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

パブリック メソッド

IManagedTestDevice createDevice(IDevice idevice)

void setFastbootEnabled(boolean enable)

保護されたメソッド

boolean checkFrameworkSupport(IDevice idevice)

デバイスがフレームワークをサポートしている場合に true を返すヘルパー。

CollectingOutputReceiver createOutputReceiver()

CollectingOutputReceiver を作成します。

IRunUtil getRunUtil()

デフォルトの IRunUtil インスタンスを返します。

boolean isRemoteEnvironment()

現在リモート環境で実行している場合は、true を返します。

boolean isTcpDeviceSerial(String serial)

リモート接続されたデバイスのシリアル番号の場合、デバイスへのヘルパー。

定数

Framework_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

定数値: 3 個 (0x00000003)

Framework_CHECK_SLEEP_MS

protected static final long FRAMEWORK_CHECK_SLEEP_MS

定数値: 500 (0x00000000000001f4)

フィールド

CHECK_PM_CMD

protected static final String CHECK_PM_CMD

EXPECTED_ERROR(エラー メッセージ)

protected static final String EXPECTED_ERROR

EXPECTED_RES

protected static final String EXPECTED_RES

IPADDRESS_PATTERN

public static final String IPADDRESS_PATTERN

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

モバイル デバイス マネージャー

protected IDeviceManager mDeviceManager

mFastbootEnabled

protected boolean mFastbootEnabled

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

ManagedTestDeviceFactory

public ManagedTestDeviceFactory (boolean fastbootEnabled, 
                IDeviceManager deviceManager, 
                IDeviceMonitor allocationMonitor)

パラメータ
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

パブリック メソッド

createDevice

public IManagedTestDevice createDevice (IDevice idevice)

パラメータ
idevice IDevice

戻り値
IManagedTestDevice

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

パラメータ
enable boolean

保護されたメソッド

checkFrameworkSupport」

protected boolean checkFrameworkSupport (IDevice idevice)

デバイスがフレームワークをサポートしている場合に true を返すヘルパー。

パラメータ
idevice IDevice

戻り値
boolean

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

CollectingOutputReceiver を作成します。

戻り値
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

デフォルトの IRunUtil インスタンスを返します。

戻り値
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

現在リモート環境で実行している場合は、true を返します。デバイスが変更されます 確認します。

戻り値
boolean

isTcpDeviceSerial

protected boolean isTcpDeviceSerial (String serial)

リモート接続されたデバイスのシリアル番号の場合、デバイスへのヘルパー。 TCP デバイスのシリアル形式は : をご覧ください。

パラメータ
serial String

戻り値
boolean