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

mDeviceManager

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