ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

java.lang.Object
   ↳ com.android.tradefed.device.ManagedTestDeviceFactory


Factory pour créer les différents types d'appareils pouvant être surveillés par Tf

Résumé

Constantes

String IPADDRESS_PATTERN

String NOTIFY_AS_NATIVE

Champs

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 le IDevice qui lui est transmis.

IManagedTestDevice createRequestedDevice(IDevice idevice, IDeviceSelection options)

Créer spécifiquement un appareil correspondant à la spécification

static boolean isTcpDeviceSerial(String serial)

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

IRunUtil getRunUtil()

Renvoie l'instance IRunUtil par défaut.

boolean isRemoteEnvironment()

Renvoie la valeur "true" si nous sommes actuellement en cours d'exécution dans un environnement distant.

Constantes

IPADDRESS_PATTERN

public static final String IPADDRESS_PATTERN

Valeur de constante : "((^([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5]))|(localhost)){1}"

NOTIFY_AS_NATIVE

public static final String NOTIFY_AS_NATIVE

Valeur de constante : "NOTIFY_AS_NATIVE"

Champs

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)

Créez un IManagedTestDevice basé sur le IDevice qui lui est transmis.

Paramètres
idevice IDevice : définit le type d'appareil créé.

Renvoie
IManagedTestDevice IManagedTestDevice créé à partir 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

Renvoie
IManagedTestDevice

isTcpDeviceSerial

public static boolean isTcpDeviceSerial (String serial)

Helper to device if it's a serial from a remotely connected device. serial format of tcp device is :

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 : ensemble de valeurs pour 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 nous sommes actuellement en cours d'exécution dans un environnement distant. Cela modifiera le comportement de l'appareil.

Renvoie
boolean