ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


Fabbrica per creare i diversi tipi di dispositivi che possono essere monitorati da Tf

Riepilogo

Costanti

int FRAMEWORK_CHECK_MAX_RETRY

long FRAMEWORK_CHECK_SLEEP_MS

Campi

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

Costruttori pubblici

ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

Metodi pubblici

IManagedTestDevice createDevice(IDevice idevice)

Crea un IManagedTestDevice in base al IDevice a cui viene passato.

IManagedTestDevice createRequestedDevice(IDevice idevice, IDeviceSelection options)

Creare specificamente un dispositivo che corrisponda alla specifica

static boolean isTcpDeviceSerial(String serial)

Helper to device se si tratta di una serie di un dispositivo connesso da remoto.

void setFastbootEnabled(boolean enable)

Attiva o meno il supporto di Fastboot per il dispositivo creato.

Metodi protetti

CollectingOutputReceiver createOutputReceiver()

Crea un CollectingOutputReceiver.

IRunUtil getRunUtil()

Restituisce l'istanza IRunUtil predefinita.

boolean isRemoteEnvironment()

Restituisce true se l'esecuzione è attualmente in un ambiente remoto.

Costanti

FRAMEWORK_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

Valore costante: 3 (0x00000003)

FRAMEWORK_CHECK_SLEEP_MS

protected static final long FRAMEWORK_CHECK_SLEEP_MS

Valore costante: 500 (0x00000000000001f4)

Campi

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

Costruttori pubblici

ManagedTestDeviceFactory

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

Parametri
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

Metodi pubblici

createDevice

public IManagedTestDevice createDevice (IDevice idevice)

Crea un IManagedTestDevice in base al IDevice a cui viene passato.

Parametri
idevice IDevice: che definisce il tipo di dispositivo creato

Ritorni
IManagedTestDevice un IManagedTestDevice creato in base a IDevice

createRequestedDevice

public IManagedTestDevice createRequestedDevice (IDevice idevice, 
                IDeviceSelection options)

Creare specificamente un dispositivo che corrisponda alla specifica

Parametri
idevice IDevice

options IDeviceSelection

Ritorni
IManagedTestDevice

isTcpDeviceSerial

public static boolean isTcpDeviceSerial (String serial)

Helper to device if it's a serial from a remotely connected device. serial format of tcp device is :

Parametri
serial String

Ritorni
boolean

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Attiva o meno il supporto di Fastboot per il dispositivo creato.

Parametri
enable boolean: il valore imposta il supporto.

Metodi protetti

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

Crea un CollectingOutputReceiver.

Ritorni
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

Restituisce l'istanza IRunUtil predefinita.

Ritorni
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

Restituisce true se l'esecuzione è attualmente in un ambiente remoto. In questo modo, il comportamento del dispositivo verrà modificato.

Ritorni
boolean