ManagedTestDeviceFactory
public
class
ManagedTestDeviceFactory
extends Object
implements
IManagedTestDeviceFactory
java.lang.Object | |
↳ | com.android.tradefed.device.ManagedTestDeviceFactory |
Usine permettant de créer les différents types d'appareils pouvant être surveillés par Tf
Résumé
Constantes | |
---|---|
int |
FRAMEWORK_CHECK_MAX_RETRY
|
long |
FRAMEWORK_CHECK_SLEEP_MS
|
Champs | |
---|---|
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
|
Constructeurs publics | |
---|---|
ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
|
Méthodes publiques | |
---|---|
IManagedTestDevice
|
createDevice(IDevice idevice)
Créez un |
IManagedTestDevice
|
createRequestedDevice(IDevice idevice, IDeviceSelection options)
Créer spécifiquement un appareil correspondant aux spécifications |
static
boolean
|
isTcpDeviceSerial(String serial)
Assistant de l'appareil s'il s'agit d'un numéro de série d'un appareil connecté à distance. |
void
|
setFastbootEnabled(boolean enable)
Activez ou non la prise en charge de fastboot pour l'appareil créé. |
Méthodes protégées | |
---|---|
CollectingOutputReceiver
|
createOutputReceiver()
Créez un élément |
IRunUtil
|
getRunUtil()
Renvoie l'instance |
boolean
|
isRemoteEnvironment()
Renvoie la valeur "true" si l'exécution se déroule actuellement dans un environnement distant. |
Constantes
FRAMEWORK_CHECK_MAX_RETRY
protected static final int FRAMEWORK_CHECK_MAX_RETRY
Valeur constante : 3 (0x00000003)
FRAMEWORK_CHECK_SLEEP_MS
protected static final long FRAMEWORK_CHECK_SLEEP_MS
Valeur constante : 500 (0x00000000000001f4)
Champs
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
Constructeurs publics
ManagedTestDeviceFactory
public ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
Paramètres | |
---|---|
fastbootEnabled |
boolean |
deviceManager |
IDeviceManager |
allocationMonitor |
IDeviceMonitor |
Méthodes publiques
createDevice
public IManagedTestDevice createDevice (IDevice idevice)
Créez un IManagedTestDevice
en fonction du IDevice
qui lui est transmis.
Paramètres | |
---|---|
idevice |
IDevice : qui définira le type d'appareil créé |
Renvoie | |
---|---|
IManagedTestDevice |
un IManagedTestDevice créé sur la base de l'IDevice |
createRequestedDevice
public IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)
Créer spécifiquement un appareil correspondant aux spécifications
Paramètres | |
---|---|
idevice |
IDevice |
options |
IDeviceSelection |
Renvoie | |
---|---|
IManagedTestDevice |
isTcpDeviceSerial
public static boolean isTcpDeviceSerial (String serial)
Aide à l'appareil s'il s'agit d'une série d'un appareil connecté à distance. Le format de série de l'appareil TCP est
Paramètres | |
---|---|
serial |
String |
Renvoie | |
---|---|
boolean |
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
Activez ou non la prise en charge de fastboot pour l'appareil créé.
Paramètres | |
---|---|
enable |
boolean : valeur définie sur la prise en charge. |
Méthodes protégées
createOutputReceiver
protected CollectingOutputReceiver createOutputReceiver ()
Créez un élément CollectingOutputReceiver
.
Renvoie | |
---|---|
CollectingOutputReceiver |
getRunUtil
protected IRunUtil getRunUtil ()
Renvoie l'instance IRunUtil
par défaut.
Renvoie | |
---|---|
IRunUtil |
isRemoteEnvironment
protected boolean isRemoteEnvironment ()
Renvoie la valeur "true" si l'exécution se déroule actuellement dans un environnement distant. Cela modifie le comportement de l'appareil.
Renvoie | |
---|---|
boolean |