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

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)

Assistant qui renvoie la valeur "true" si l'appareil est compatible avec le framework.

CollectingOutputReceiver createOutputReceiver()

Créez un élément CollectingOutputReceiver.

IRunUtil getRunUtil()

Renvoie l'instance IRunUtil par défaut.

boolean isRemoteEnvironment()

Renvoie la valeur "true" si l'exécution se déroule actuellement dans un environnement distant.

boolean isTcpDeviceSerial(String serial)

Assistant de l'appareil s'il s'agit d'un numéro de série 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)

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

createDevice

public IManagedTestDevice createDevice (IDevice idevice)

Paramètres
idevice IDevice

Renvoie
IManagedTestDevice

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Paramètres
enable boolean

Méthodes protégées

checkFrameworkSupport

protected boolean checkFrameworkSupport (IDevice idevice)

Assistant qui renvoie la valeur "true" si l'appareil est compatible avec le framework.

Paramètres
idevice IDevice

Renvoie
boolean

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

isTcpDeviceSerial

protected boolean isTcpDeviceSerial (String serial)

Assistant de l'appareil s'il s'agit d'un numéro de série d'un appareil connecté à distance. Le format de série de l'appareil TCP est :

Paramètres
serial String

Renvoie
boolean