ManagedTestDeviceFactory
public
class
ManagedTestDeviceFactory
extends Object
implements
IManagedTestDeviceFactory
java.lang.Object | |
↳ | com.android.tradefed.device.ManagedTestDeviceFactory |
Factory to create the different kind of devices that can be monitored by Tf
Zusammenfassung
Konstanten | |
---|---|
int |
FRAMEWORK_CHECK_MAX_RETRY
|
long |
FRAMEWORK_CHECK_SLEEP_MS
|
Felder | |
---|---|
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
|
Öffentliche Konstruktoren | |
---|---|
ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
|
Öffentliche Methoden | |
---|---|
IManagedTestDevice
|
createDevice(IDevice idevice)
Erstelle eine |
IManagedTestDevice
|
createRequestedDevice(IDevice idevice, IDeviceSelection options)
Ein Gerät speziell für die Spezifikation erstellen |
static
boolean
|
isTcpDeviceSerial(String serial)
Helfer für das Gerät, wenn es sich um eine Seriennummer eines per Fernzugriff verbundenen Geräts handelt. |
void
|
setFastbootEnabled(boolean enable)
Aktivieren oder deaktivieren Sie die Fastboot-Unterstützung für das erstellte Gerät. |
Geschützte Methoden | |
---|---|
CollectingOutputReceiver
|
createOutputReceiver()
Erstellen Sie eine |
IRunUtil
|
getRunUtil()
Gibt die Standard- |
boolean
|
isRemoteEnvironment()
Gibt „true“ zurück, wenn wir uns derzeit in einer Remote-Umgebung befinden. |
Konstanten
FRAMEWORK_CHECK_MAX_RETRY
protected static final int FRAMEWORK_CHECK_MAX_RETRY
Konstanter Wert: 3 (0x00000003)
FRAMEWORK_CHECK_SLEEP_MS
protected static final long FRAMEWORK_CHECK_SLEEP_MS
Konstanter Wert: 500 (0x00000000000001f4)
Felder
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
mFastbootEnabled
protected boolean mFastbootEnabled
Öffentliche Konstruktoren
ManagedTestDeviceFactory
public ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
Parameter | |
---|---|
fastbootEnabled |
boolean |
deviceManager |
IDeviceManager |
allocationMonitor |
IDeviceMonitor |
Öffentliche Methoden
createDevice
public IManagedTestDevice createDevice (IDevice idevice)
Erstelle eine IManagedTestDevice
basierend auf der übergebenen IDevice
.
Parameter | |
---|---|
idevice |
IDevice : Hiermit wird der Typ des erstellten Geräts definiert. |
Returns | |
---|---|
IManagedTestDevice |
ein IManagedTestDevice, das auf dem IDevice basiert |
createRequestedDevice
public IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)
Ein Gerät speziell für die Spezifikation erstellen
Parameter | |
---|---|
idevice |
IDevice |
options |
IDeviceSelection |
Returns | |
---|---|
IManagedTestDevice |
isTcpDeviceSerial
public static boolean isTcpDeviceSerial (String serial)
Helfer für das Gerät, wenn es sich um eine Serie von einem per Fernzugriff verbundenen Gerät handelt. Das serielle Format des TCP-Geräts ist
Parameter | |
---|---|
serial |
String |
Returns | |
---|---|
boolean |
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
Aktivieren oder deaktivieren Sie die Fastboot-Unterstützung für das erstellte Gerät.
Parameter | |
---|---|
enable |
boolean : Wert, mit dem die Unterstützung festgelegt wird. |
Geschützte Methoden
createOutputReceiver
protected CollectingOutputReceiver createOutputReceiver ()
Erstellen Sie eine CollectingOutputReceiver
.
Returns | |
---|---|
CollectingOutputReceiver |
getRunUtil
protected IRunUtil getRunUtil ()
Gibt die Standard-IRunUtil
-Instanz zurück.
Returns | |
---|---|
IRunUtil |
isRemoteEnvironment
protected boolean isRemoteEnvironment ()
Gibt „true“ zurück, wenn wir uns derzeit in einer Remote-Umgebung befinden. Dadurch ändert sich das Verhalten des Geräts.
Returns | |
---|---|
boolean |