ManagedTestDeviceFactory
public
class
ManagedTestDeviceFactory
extends Object
implements
IManagedTestDeviceFactory
java.lang.Object | |
↳ | com.android.tradefed.device.ManagedTestDeviceFactory |
Factory do tworzenia różnych rodzajów urządzeń, które mogą być monitorowane przez Tf
Podsumowanie
Stałe | |
---|---|
int |
FRAMEWORK_CHECK_MAX_RETRY
|
long |
FRAMEWORK_CHECK_SLEEP_MS
|
Fieldsem | |
---|---|
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
|
Konstruktory publiczne | |
---|---|
ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
|
Metody publiczne | |
---|---|
IManagedTestDevice
|
createDevice(IDevice idevice)
|
void
|
setFastbootEnabled(boolean enable)
|
Chronione metody | |
---|---|
boolean
|
checkFrameworkSupport(IDevice idevice)
Funkcja pomocnicza, która zwraca wartość true, jeśli urządzenie obsługuje framework. |
CollectingOutputReceiver
|
createOutputReceiver()
Utwórz |
IRunUtil
|
getRunUtil()
Zwraca domyślną instancję |
boolean
|
isRemoteEnvironment()
Zwraca wartość Prawda, jeśli obecnie działamy w środowisku zdalnym. |
boolean
|
isTcpDeviceSerial(String serial)
Pomocnik urządzenia, jeśli jest to numer seryjny urządzenia połączonego zdalnie. |
Stałe
FRAMEWORK_CHECK_MAX_RETRY
protected static final int FRAMEWORK_CHECK_MAX_RETRY
Wartość stała: 3 (0x00000003)
FRAMEWORK_CHECK_SLEEP_MS
protected static final long FRAMEWORK_CHECK_SLEEP_MS
Wartość stała: 500 (0x00000000000001f4)
Fieldsem
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
mFastbootEnabled
protected boolean mFastbootEnabled
Konstruktory publiczne
ManagedTestDeviceFactory
public ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
Parametry | |
---|---|
fastbootEnabled |
boolean |
deviceManager |
IDeviceManager |
allocationMonitor |
IDeviceMonitor |
Metody publiczne
createDevice
public IManagedTestDevice createDevice (IDevice idevice)
Parametry | |
---|---|
idevice |
IDevice |
Zwroty | |
---|---|
IManagedTestDevice |
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
Parametry | |
---|---|
enable |
boolean |
Chronione metody
checkFrameworkSupport
protected boolean checkFrameworkSupport (IDevice idevice)
Funkcja pomocnicza, która zwraca wartość true, jeśli urządzenie obsługuje framework.
Parametry | |
---|---|
idevice |
IDevice |
Zwroty | |
---|---|
boolean |
createOutputReceiver
protected CollectingOutputReceiver createOutputReceiver ()
Utwórz CollectingOutputReceiver
.
Zwroty | |
---|---|
CollectingOutputReceiver |
isRemoteEnvironment
protected boolean isRemoteEnvironment ()
Zwraca wartość Prawda, jeśli obecnie działamy w środowisku zdalnym. Spowoduje to zmianę działania urządzenia.
Zwroty | |
---|---|
boolean |
isTcpDeviceSerial
protected boolean isTcpDeviceSerial (String serial)
Pomocnik urządzenia, jeśli jest to numer seryjny urządzenia połączonego zdalnie.
Format seryjny urządzenia TCP to
Parametry | |
---|---|
serial |
String |
Zwroty | |
---|---|
boolean |