ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


Fábrica para crear los diferentes tipos de dispositivos que Tf puede supervisar

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 IRunUtil predeterminada.

boolean isRemoteEnvironment()

Muestra true si actualmente se ejecuta en un entorno remoto.

boolean isTcpDeviceSerial(String serial)

Asistente del dispositivo si se trata de una 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

ERROR_EXPECTED

protected static final String EXPECTED_ERROR

EXPECTED_RES

protected static final String EXPECTED_RES

DIRECCIÓN_IP_PATTERN

public static final String IPADDRESS_PATTERN

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

Administrador de dispositivos móviles

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

Crear Dispositivo

public IManagedTestDevice createDevice (IDevice idevice)

Parámetros
idevice IDevice

Muestra
IManagedTestDevice

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Parámetros
enable boolean

Métodos protegidos

Compatibilidad con checkFramework

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 IRunUtil predeterminada.

Muestra
IRunUtil

Entorno remoto

protected boolean isRemoteEnvironment ()

Muestra true si actualmente se ejecuta en un entorno remoto. Esta acción alterará el dispositivo el comportamiento de los usuarios.

Muestra
boolean

isTcpDeviceSerial

protected boolean isTcpDeviceSerial (String serial)

Asistente del dispositivo si se trata de una serie de un dispositivo conectado de forma remota. el formato de serie del dispositivo TCP es :

Parámetros
serial String

Devuelve
boolean