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

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)

void setFastbootEnabled (boolean enable)

Méthodes protégées

boolean checkFrameworkSupport (IDevice idevice)

Helper qui renvoie true si l’appareil prend en charge le framework.

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.

boolean isTcpDeviceSerial (String serial)

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

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

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)

Paramètres
idevice IDevice

Retour
IManagedTestDevice

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Paramètres
enable boolean

Méthodes protégées

checkFrameworkSupport

protected boolean checkFrameworkSupport (IDevice idevice)

Helper qui renvoie true si l’appareil prend en charge le framework.

Paramètres
idevice IDevice

Retour
boolean

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

isTcpDeviceSerial

protected 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