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 basé sur l’ IDevice qui lui est transmis.

IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)

Créer spécifiquement un appareil correspondant aux spécifications

static boolean isTcpDeviceSerial (String serial)

Aide à l'appareil s'il s'agit d'une série provenant d'un appareil connecté à distance.

void setFastbootEnabled (boolean enable)

Activer ou non la prise en charge du fastboot pour le périphérique créé.

Méthodes protégées

CollectingOutputReceiver createOutputReceiver ()

Créez un CollectingOutputReceiver .

IRunUtil getRunUtil ()

Renvoie l'instance IRunUtil par défaut.

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 une base créée par IManagedTestDevice sur 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

Retour
IManagedTestDevice

isTcpDeviceSerial

public static boolean isTcpDeviceSerial (String serial)

Aide à l'appareil s'il s'agit d'une série provenant 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 la prise en charge du fastboot pour le périphérique créé.

Paramètres
enable boolean : valeur définissant le support.

Méthodes protégées

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

Créez un CollectingOutputReceiver .

Retour
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

Renvoie l'instance IRunUtil par défaut.

Retour
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

Renvoie true si nous exécutons actuellement dans un environnement distant. Cela modifiera le comportement de l'appareil.

Retour
boolean