ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


Es una fábrica para crear los diferentes tipos de dispositivos que puede supervisar Tf.

Resumen

Constantes

int FRAMEWORK_CHECK_MAX_RETRY

long FRAMEWORK_CHECK_SLEEP_MS

Campos

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

Constructores públicos

ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

Métodos públicos

IManagedTestDevice createDevice(IDevice idevice)

void setFastbootEnabled(boolean enable)

Métodos protegidos

boolean checkFrameworkSupport(IDevice idevice)

Es un asistente que muestra verdadero si el dispositivo es compatible con el framework.

CollectingOutputReceiver createOutputReceiver()

Crea un elemento CollectingOutputReceiver.

IRunUtil getRunUtil()

Muestra la instancia predeterminada de IRunUtil.

boolean isRemoteEnvironment()

Muestra verdadero si actualmente se está ejecutando en un entorno remoto.

boolean isTcpDeviceSerial(String serial)

Ayudante para el dispositivo si es un número de serie de un dispositivo conectado de forma remota.

Constantes

FRAMEWORK_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

Valor constante: 3 (0x00000003)

FRAMEWORK_CHECK_SLEEP_MS

protected static final long FRAMEWORK_CHECK_SLEEP_MS

Valor constante: 500 (0x00000000000001f4)

Campos

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

Constructores públicos

ManagedTestDeviceFactory

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

Parámetros
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

Métodos públicos

createDevice

public IManagedTestDevice createDevice (IDevice idevice)

Parámetros
idevice IDevice

Muestra
IManagedTestDevice

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Parámetros
enable boolean

Métodos protegidos

checkFrameworkSupport

protected boolean checkFrameworkSupport (IDevice idevice)

Es un asistente que muestra verdadero si el dispositivo es compatible con el framework.

Parámetros
idevice IDevice

Muestra
boolean

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

Crea un elemento CollectingOutputReceiver.

Muestra
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

Muestra la instancia predeterminada de IRunUtil.

Muestra
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

Muestra verdadero si actualmente se está ejecutando en un entorno remoto. Esto alterará el comportamiento del dispositivo.

Muestra
boolean

isTcpDeviceSerial

protected boolean isTcpDeviceSerial (String serial)

Ayudante para el dispositivo si es un número de serie de un dispositivo conectado de forma remota. El formato de serie del dispositivo TCP es : .

Parámetros
serial String

Devuelve
boolean