ManagedTestDeviceFactory
public class ManagedTestDeviceFactory
extends Object
implements IManagedTestDeviceFactory
java.lang.Object | |
↳ | com.android.tradefed.device.ManagedTestDeviceFactory |
Usine pour 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
|
Des 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 à la spécification |
static boolean | isTcpDeviceSerial (String serial) Aide à l'appareil s'il s'agit d'un numéro de série d'un appareil connecté à distance. |
void | setFastbootEnabled (boolean enable) Activer ou non le support fastboot pour l'appareil créé. |
Méthodes protégées | |
---|---|
CollectingOutputReceiver | createOutputReceiver () Créez un |
IRunUtil | getRunUtil () Renvoie l'instance |
boolean | isRemoteEnvironment () Renvoie true si nous exécutons 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)
Des 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
mAllocationMonitor
protected IDeviceMonitor mAllocationMonitor
mDeviceManager
protected IDeviceManager mDeviceManager
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
créer un appareil
public IManagedTestDevice createDevice (IDevice idevice)
Créez un IManagedTestDevice
basé sur l' IDevice
qui lui est transmis.
Paramètres | |
---|---|
idevice | IDevice : qui définira le type d'appareil créé |
Retour | |
---|---|
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 à la spécification
Paramètres | |
---|---|
idevice | IDevice |
options | IDeviceSelection |
Retour | |
---|---|
IManagedTestDevice |
isTcpDeviceSerialisTcpDeviceSerial
public static boolean isTcpDeviceSerial (String serial)
Aide à l'appareil s'il s'agit d'un numéro de série d'un appareil connecté à distance. le format série du périphérique tcp est
Paramètres | |
---|---|
serial | String |
Retour | |
---|---|
boolean |
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
Activer ou non le support fastboot pour l'appareil créé.
Paramètres | |
---|---|
enable | boolean : valeur fixe le support. |
Méthodes protégées
createOutputReceiver
protected CollectingOutputReceiver createOutputReceiver ()
Créez un CollectingOutputReceiver
.
Retour | |
---|---|
CollectingOutputReceiver |
isRemoteEnvironment
protected boolean isRemoteEnvironment ()
Renvoie true si nous exécutons actuellement dans un environnement distant. Cela modifiera le comportement de l'appareil.
Retour | |
---|---|
boolean |