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
|
public
static
final
String |
NOTIFY_AS_NATIVE
|
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)
Crea un |
IManagedTestDevice
|
createRequestedDevice(IDevice idevice, IDeviceSelection options)
Crea específicamente un dispositivo que coincida con la especificación |
static
boolean
|
isTcpDeviceSerial(String serial)
Ayudante para el dispositivo si es un número de serie de un dispositivo conectado de forma remota. |
void
|
setFastbootEnabled(boolean enable)
Habilita o inhabilita la compatibilidad con fastboot para el dispositivo creado. |
Métodos protegidos | |
---|---|
CollectingOutputReceiver
|
createOutputReceiver()
Crea un elemento |
IRunUtil
|
getRunUtil()
Muestra la instancia predeterminada de |
boolean
|
isRemoteEnvironment()
Muestra verdadero si actualmente se está ejecutando en un entorno remoto. |
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
NOTIFY_AS_NATIVE
public static final String NOTIFY_AS_NATIVE
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)
Crea un IManagedTestDevice
basado en el IDevice
que se le pasa.
Parámetros | |
---|---|
idevice |
IDevice : que definirá el tipo de dispositivo creado |
Muestra | |
---|---|
IManagedTestDevice |
Un IManagedTestDevice creado en función del IDevice |
createRequestedDevice
public IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)
Crea específicamente un dispositivo que coincida con la especificación
Parámetros | |
---|---|
idevice |
IDevice |
options |
IDeviceSelection |
Muestra | |
---|---|
IManagedTestDevice |
isTcpDeviceSerial
public static 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 |
Muestra | |
---|---|
boolean |
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
Habilita o inhabilita la compatibilidad con fastboot para el dispositivo creado.
Parámetros | |
---|---|
enable |
boolean : El valor establece la compatibilidad. |
Métodos protegidos
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 |