ManagedTestDeviceFactory
public class ManagedTestDeviceFactory
extends Object
implements IManagedTestDeviceFactory
Obiekt Java.lang.Object | |
↳ | com.android.tradefed.device.ManagedTestDeviceFactory |
Fabryka do tworzenia różnego rodzaju urządzeń, które mogą być monitorowane przez Tf
Streszczenie
Stałe | |
---|---|
int | FRAMEWORK_CHECK_MAX_RETRY |
long | FRAMEWORK_CHECK_SLEEP_MS
|
Pola | |
---|---|
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
|
Konstruktorzy publiczni | |
---|---|
ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor) |
Metody publiczne | |
---|---|
IManagedTestDevice | createDevice (IDevice idevice) |
void | setFastbootEnabled (boolean enable)
|
Metody chronione | |
---|---|
boolean | checkFrameworkSupport (IDevice idevice) Pomocnik, który zwraca wartość true, jeśli urządzenie obsługuje framework. |
CollectingOutputReceiver | createOutputReceiver () Utwórz obiekt |
IRunUtil | getRunUtil () Zwróć domyślną instancję |
boolean | isRemoteEnvironment () Zwróć wartość true, jeśli aktualnie pracujemy w środowisku zdalnym. |
boolean | isTcpDeviceSerial (String serial) Pomocnik do urządzenia, jeśli jest to port szeregowy ze zdalnie podłączonego urządzenia. |
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)
Pola
CHECK_PM_CMD
protected static final String CHECK_PM_CMD
OCZEKIWANY_BŁĄD
protected static final String EXPECTED_ERROR
OCZEKIWANO_RES
protected static final String EXPECTED_RES
IPADDRESS_PATTERN
public static final String IPADDRESS_PATTERN
mFastbootWłączony
protected boolean mFastbootEnabled
Konstruktorzy publiczni
ManagedTestDeviceFactory
public ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
Parametry | |
---|---|
fastbootEnabled | boolean |
deviceManager | IDeviceManager |
allocationMonitor | IDeviceMonitor |
Metody publiczne
utwórz urządzenie
public IManagedTestDevice createDevice (IDevice idevice)
Parametry | |
---|---|
idevice | IDevice |
Zwroty | |
---|---|
IManagedTestDevice |
setFastbootWłączony
public void setFastbootEnabled (boolean enable)
Parametry | |
---|---|
enable | boolean |
Metody chronione
sprawdźFrameworkSupport
protected boolean checkFrameworkSupport (IDevice idevice)
Pomocnik, który zwraca wartość true, jeśli urządzenie obsługuje framework.
Parametry | |
---|---|
idevice | IDevice |
Zwroty | |
---|---|
boolean |
utwórz odbiornik wyjściowy
protected CollectingOutputReceiver createOutputReceiver ()
Utwórz obiekt CollectingOutputReceiver
.
Zwroty | |
---|---|
CollectingOutputReceiver |
jestZdalneŚrodowisko
protected boolean isRemoteEnvironment ()
Zwróć wartość true, jeśli aktualnie pracujemy w środowisku zdalnym. Spowoduje to zmianę zachowania urządzenia.
Zwroty | |
---|---|
boolean |
isTcpDeviceSerial
protected boolean isTcpDeviceSerial (String serial)
Pomocnik do urządzenia, jeśli jest to port szeregowy ze zdalnie podłączonego urządzenia. format szeregowy urządzenia TCP to
Parametry | |
---|---|
serial | String |
Zwroty | |
---|---|
boolean |