ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

java.lang.Obiekt
com.android.tradefed.device.ManagedTestDeviceFactory


Factory 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

Konstruktory publiczne

ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

Metody publiczne

IManagedTestDevice createDevice (IDevice idevice)

Utwórz IManagedTestDevice na podstawie przekazanego do niego IDevice .

IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)

W szczególności utwórz urządzenie pasujące do specyfikacji

static boolean isTcpDeviceSerial (String serial)

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

void setFastbootEnabled (boolean enable)

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

Metody chronione

CollectingOutputReceiver createOutputReceiver ()

Utwórz CollectingOutputReceiver .

IRunUtil getRunUtil ()

Zwróć domyślną instancję IRunUtil .

boolean isRemoteEnvironment ()

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

Stałe

FRAMEWORK_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

Stała wartość: 3 (0x00000003)

FRAMEWORK_CHECK_SLEEP_MS

protected static final long FRAMEWORK_CHECK_SLEEP_MS

Stała wartość: 500 (0x00000000000001f4)

Pola

CHECK_PM_CMD

protected static final String CHECK_PM_CMD

OCZEKIWANY_BŁĄD

protected static final String EXPECTED_ERROR

EXPECTED_RES

protected static final String EXPECTED_RES

WZÓR_ADRESU IP

public static final String IPADDRESS_PATTERN

NOTIFY_AS_NATIVE

public static final String NOTIFY_AS_NATIVE

Monitor alokacji

protected IDeviceMonitor mAllocationMonitor

mDeviceManager

protected IDeviceManager mDeviceManager

mFastboot włączony

protected boolean mFastbootEnabled

Konstruktory publiczne

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 IManagedTestDevice na podstawie przekazanego do niego IDevice .

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

Zwroty
IManagedTestDevice IManagedTestDevice utworzona baza na IDevice

utwórz żądane urządzenie

public IManagedTestDevice createRequestedDevice (IDevice idevice, 
                IDeviceSelection options)

W szczególności utwórz urządzenie pasujące do specyfikacji

Parametry
idevice IDevice

options IDeviceSelection

Zwroty
IManagedTestDevice

isTcpDeviceSerial

public static boolean isTcpDeviceSerial (String serial)

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

Parametry
serial String

Zwroty
boolean

ustaw Fastboot włączony

public void setFastbootEnabled (boolean enable)

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

Parametry
enable boolean : wartość ustawia wsparcie.

Metody chronione

utwórz odbiornik wyjściowy

protected CollectingOutputReceiver createOutputReceiver ()

Utwórz CollectingOutputReceiver .

Zwroty
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

Zwróć domyślną instancję IRunUtil .

Zwroty
IRunUtil

jest środowiskiem zdalnym

protected boolean isRemoteEnvironment ()

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

Zwroty
boolean