ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

Obiekt Java.lang.Object
com.android.tradefed.device.ManagedTestDeviceFactory


Fabryka do tworzenia różnego rodzaju urządzeń, które mogą być monitorowane przez Tf

Streszczenie

Stałe

int FRAMEWORK_CHECK_MAX_RETRY

long FRAMEWORK_CHECK_SLEEP_MS

Pola

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

public static final String NOTIFY_AS_NATIVE

protected IDeviceMonitor mAllocationMonitor

protected IDeviceManager mDeviceManager

protected boolean mFastbootEnabled

Konstruktorzy publiczni

ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

Metody publiczne

IManagedTestDevice createDevice (IDevice idevice)

Utwórz element IManagedTestDevice na podstawie przekazanego mu IDevice .

IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)

W szczególności utwórz urządzenie zgodne ze specyfikacją

static boolean isTcpDeviceSerial (String serial)

Pomocnik do urządzenia, jeśli jest to port szeregowy ze zdalnie podłączonego urządzenia.

void setFastbootEnabled (boolean enable)

Włącz lub nie obsługę fastboot dla utworzonego urządzenia.

Metody chronione

CollectingOutputReceiver createOutputReceiver ()

Utwórz obiekt CollectingOutputReceiver .

IRunUtil getRunUtil ()

Zwróć domyślną instancję IRunUtil .

boolean isRemoteEnvironment ()

Zwróć wartość true, jeśli aktualnie pracujemy w środowisku zdalnym.

Stałe

FRAMEWORK_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

Wartość stała: 3 (0x00000003)

FRAMEWORK_CHECK_SLEEP_MS

protected static final long FRAMEWORK_CHECK_SLEEP_MS

Wartość stała: 500 (0x00000000000001f4)

Pola

CHECK_PM_CMD

protected static final String CHECK_PM_CMD

OCZEKIWANY_BŁĄD

protected static final String EXPECTED_ERROR

OCZEKIWANO_RES

protected static final String EXPECTED_RES

IPADDRESS_PATTERN

public static final String IPADDRESS_PATTERN

NOTIFY_AS_NATIVE

public static final String NOTIFY_AS_NATIVE

mMonitor alokacji

protected IDeviceMonitor mAllocationMonitor

mMenedżer urządzeń

protected IDeviceManager mDeviceManager

mFastbootWłączony

protected boolean mFastbootEnabled

Konstruktorzy publiczni

ManagedTestDeviceFactory

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

Parametry
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

Metody publiczne

utwórz urządzenie

public IManagedTestDevice createDevice (IDevice idevice)

Utwórz element IManagedTestDevice na podstawie przekazanego mu IDevice .

Parametry
idevice IDevice : który określi typ utworzonego urządzenia

Zwroty
IManagedTestDevice baza IManagedTestDevice utworzona na IDevice

utwórz żądane urządzenie

public IManagedTestDevice createRequestedDevice (IDevice idevice, 
                IDeviceSelection options)

W szczególności utwórz urządzenie zgodne ze specyfikacją

Parametry
idevice IDevice

options IDeviceSelection

Zwroty
IManagedTestDevice

isTcpDeviceSerial

public static boolean isTcpDeviceSerial (String serial)

Pomocnik do urządzenia, jeśli jest to port szeregowy ze zdalnie podłączonego urządzenia. format szeregowy urządzenia TCP to :

Parametry
serial String

Zwroty
boolean

setFastbootWłączony

public void setFastbootEnabled (boolean enable)

Włącz lub nie obsługę fastboot dla utworzonego urządzenia.

Parametry
enable boolean : wartość ustawia wsparcie.

Metody chronione

utwórz odbiornik wyjściowy

protected CollectingOutputReceiver createOutputReceiver ()

Utwórz obiekt CollectingOutputReceiver .

Zwroty
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

Zwróć domyślną instancję IRunUtil .

Zwroty
IRunUtil

jestZdalneŚrodowisko

protected boolean isRemoteEnvironment ()

Zwróć wartość true, jeśli aktualnie pracujemy w środowisku zdalnym. Spowoduje to zmianę zachowania urządzenia.

Zwroty
boolean