GerenciadoTestDeviceFactory
public class ManagedTestDeviceFactory
extends Object
implements IManagedTestDeviceFactory
java.lang.Object | |
↳ | com.android.tradefed.device.ManagedTestDeviceFactory |
Fábrica para criar os diferentes tipos de dispositivos que podem ser monitorados pelo Tf
Resumo
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
|
Construtores 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) Auxiliar que retorna verdadeiro se o dispositivo tiver suporte de estrutura. |
CollectingOutputReceiver | createOutputReceiver () Crie um |
IRunUtil | getRunUtil () Retorne a instância |
boolean | isRemoteEnvironment () Retorne verdadeiro se estivermos executando em um ambiente remoto. |
boolean | isTcpDeviceSerial (String serial) Auxiliar para dispositivo se for serial de um dispositivo conectado remotamente. |
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 (0x0000000000001f4)
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
mFastbootEnabled
protected boolean mFastbootEnabled
Construtores públicos
GerenciadoTestDeviceFactory
public ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
Parâmetros | |
---|---|
fastbootEnabled | boolean |
deviceManager | IDeviceManager |
allocationMonitor | IDeviceMonitor |
Métodos públicos
criarDispositivo
public IManagedTestDevice createDevice (IDevice idevice)
Parâmetros | |
---|---|
idevice | IDevice |
Devoluções | |
---|---|
IManagedTestDevice |
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
Parâmetros | |
---|---|
enable | boolean |
Métodos protegidos
checkFrameworkSupport
protected boolean checkFrameworkSupport (IDevice idevice)
Auxiliar que retorna verdadeiro se o dispositivo tiver suporte de estrutura.
Parâmetros | |
---|---|
idevice | IDevice |
Devoluções | |
---|---|
boolean |
criarOutputReceiver
protected CollectingOutputReceiver createOutputReceiver ()
Crie um CollectingOutputReceiver
.
Devoluções | |
---|---|
CollectingOutputReceiver |
getRunUtil
protected IRunUtil getRunUtil ()
Retorne a instância IRunUtil
padrão.
Devoluções | |
---|---|
IRunUtil |
isRemoteEnvironment
protected boolean isRemoteEnvironment ()
Retorne verdadeiro se estivermos executando em um ambiente remoto. Isso alterará o comportamento do dispositivo.
Devoluções | |
---|---|
boolean |
isTcpDeviceSerial
protected boolean isTcpDeviceSerial (String serial)
Auxiliar para dispositivo se for serial de um dispositivo conectado remotamente. formato serial do dispositivo tcp é
Parâmetros | |
---|---|
serial | String |
Devoluções | |
---|---|
boolean |