ManagedTestDeviceFactory
public
class
ManagedTestDeviceFactory
extends Object
implements
IManagedTestDeviceFactory
| java.lang.Object | |
| ↳ | com.android.tradefed.device.ManagedTestDeviceFactory |
Tf tarafından izlenebilen farklı türde cihazlar oluşturmak için kullanılan fabrika
Özet
Sabitler | |
|---|---|
String |
CHECK_PM_CMD
|
String |
EXPECTED_ERROR
|
String |
EXPECTED_RES
|
int |
FRAMEWORK_CHECK_MAX_RETRY
|
long |
FRAMEWORK_CHECK_SLEEP_MS
|
String |
IPADDRESS_PATTERN
|
String |
NOTIFY_AS_NATIVE
|
Fields'ın oynadığı filmler | |
|---|---|
protected
IDeviceMonitor |
mAllocationMonitor
|
protected
IDeviceManager |
mDeviceManager
|
protected
boolean |
mFastbootEnabled
|
Herkese açık oluşturucular | |
|---|---|
ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
|
|
Herkese açık yöntemler | |
|---|---|
IManagedTestDevice
|
createDevice(IDevice idevice)
Kendisine iletilen |
IManagedTestDevice
|
createRequestedDevice(IDevice idevice, IDeviceSelection options)
Özellikle spesifikasyona uygun bir cihaz oluşturun |
static
boolean
|
isTcpDeviceSerial(String serial)
Uzaktan bağlı bir cihazdan alınan seri numarasıysa yardımcıya. |
void
|
setFastbootEnabled(boolean enable)
Oluşturulan cihaz için fastboot desteğini etkinleştirme veya devre dışı bırakma. |
Korunan yöntemler | |
|---|---|
CollectingOutputReceiver
|
createOutputReceiver()
|
IRunUtil
|
getRunUtil()
Varsayılan |
boolean
|
isRemoteEnvironment()
Şu anda uzak bir ortamda çalışıyorsak true değerini döndürür. |
Sabitler
CHECK_PM_CMD
protected static final String CHECK_PM_CMD
Sabit Değer: "ls %s"
EXPECTED_ERROR
protected static final String EXPECTED_ERROR
Sabit Değer: "Belirtilen dosya veya dizin yok"
EXPECTED_RES
protected static final String EXPECTED_RES
Sabit Değer: "/system/bin/pm"
FRAMEWORK_CHECK_MAX_RETRY
protected static final int FRAMEWORK_CHECK_MAX_RETRY
Sabit Değer: 3 (0x00000003)
FRAMEWORK_CHECK_SLEEP_MS
protected static final long FRAMEWORK_CHECK_SLEEP_MS
Sabit Değer: 500 (0x00000000000001f4)
IPADDRESS_PATTERN
public static final String IPADDRESS_PATTERN
Sabit Değer: "((^([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
Sabit Değer: "NOTIFY_AS_NATIVE"
Fields'ın oynadığı filmler
mFastbootEnabled
protected boolean mFastbootEnabled
Herkese açık oluşturucular
ManagedTestDeviceFactory
public ManagedTestDeviceFactory (boolean fastbootEnabled,
IDeviceManager deviceManager,
IDeviceMonitor allocationMonitor)| Parametreler | |
|---|---|
fastbootEnabled |
boolean |
deviceManager |
IDeviceManager |
allocationMonitor |
IDeviceMonitor |
Herkese açık yöntemler
createDevice
public IManagedTestDevice createDevice (IDevice idevice)
Kendisine iletilen IDevice temelinde IManagedTestDevice oluşturur.
| Parametreler | |
|---|---|
idevice |
IDevice: Oluşturulan cihazın türünü tanımlar. |
| İlerlemeler | |
|---|---|
IManagedTestDevice |
IDevice temel alınarak oluşturulan bir IManagedTestDevice |
createRequestedDevice
public IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)
Özellikle spesifikasyona uygun bir cihaz oluşturun
| Parametreler | |
|---|---|
idevice |
IDevice |
options |
IDeviceSelection |
| İlerlemeler | |
|---|---|
IManagedTestDevice |
|
isTcpDeviceSerial
public static boolean isTcpDeviceSerial (String serial)
Uzaktan bağlı bir cihazın seri numarasıysa cihazın yardımcı programı. tcp cihazının seri numarası biçimi
| Parametreler | |
|---|---|
serial |
String |
| İlerlemeler | |
|---|---|
boolean |
|
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
Oluşturulan cihaz için fastboot desteğini etkinleştirme veya devre dışı bırakma.
| Parametreler | |
|---|---|
enable |
boolean: Desteklenen değer. |
Korunan yöntemler
createOutputReceiver
protected CollectingOutputReceiver createOutputReceiver ()
CollectingOutputReceiver oluşturun.
| İlerlemeler | |
|---|---|
CollectingOutputReceiver |
|
getRunUtil
protected IRunUtil getRunUtil ()
Varsayılan IRunUtil örneğini döndürür.
| İlerlemeler | |
|---|---|
IRunUtil |
|
isRemoteEnvironment
protected boolean isRemoteEnvironment ()
Şu anda uzak bir ortamda çalışıyorsak true değerini döndürür. Bu işlem, cihazın davranışını değiştirir.
| İlerlemeler | |
|---|---|
boolean |
|