ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


Factory do tworzenia różnych rodzajów urządzeń, które mogą być monitorowane przez Tf

Podsumowanie

Stałe

int FRAMEWORK_CHECK_MAX_RETRY

long FRAMEWORK_CHECK_SLEEP_MS

Fieldsem

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 mu IDevice.

IManagedTestDevice createRequestedDevice(IDevice idevice, IDeviceSelection options)

Tworzenie urządzenia zgodnego ze specyfikacją

static boolean isTcpDeviceSerial(String serial)

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

void setFastbootEnabled(boolean enable)

Włącz lub wyłącz obsługę Fastboot dla utworzonego urządzenia.

Chronione metody

CollectingOutputReceiver createOutputReceiver()

Utwórz CollectingOutputReceiver.

IRunUtil getRunUtil()

Zwraca domyślną instancję IRunUtil.

boolean isRemoteEnvironment()

Zwraca wartość Prawda, jeśli obecnie działamy 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)

Fieldsem

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

NOTIFY_AS_NATIVE

public static final String NOTIFY_AS_NATIVE

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

mDeviceManager

protected IDeviceManager mDeviceManager

mFastbootEnabled

protected boolean mFastbootEnabled

Konstruktory publiczne

ManagedTestDeviceFactory

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

Parametry
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

Metody publiczne

createDevice

public IManagedTestDevice createDevice (IDevice idevice)

Utwórz IManagedTestDevice na podstawie przekazanego mu IDevice.

Parametry
idevice IDevice: określa typ tworzonego urządzenia.

Zwroty
IManagedTestDevice IManagedTestDevice utworzony na podstawie IDevice

createRequestedDevice

public IManagedTestDevice createRequestedDevice (IDevice idevice, 
                IDeviceSelection options)

Tworzenie urządzenia zgodnego ze specyfikacją

Parametry
idevice IDevice

options IDeviceSelection

Zwroty
IManagedTestDevice

isTcpDeviceSerial

public static boolean isTcpDeviceSerial (String serial)

Pomocnik dla urządzenia, jeśli jest to urządzenie połączone zdalnie. Format seryjny urządzenia TCP: :

Parametry
serial String

Zwroty
boolean

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Włącz lub wyłącz obsługę Fastboot dla utworzonego urządzenia.

Parametry
enable boolean: wartość ustawia obsługę.

Chronione metody

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

Utwórz CollectingOutputReceiver.

Zwroty
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

Zwraca domyślną instancję IRunUtil.

Zwroty
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

Zwraca wartość Prawda, jeśli obecnie działamy w środowisku zdalnym. Spowoduje to zmianę działania urządzenia.

Zwroty
boolean