YönetilenTestDeviceFactory
public class ManagedTestDeviceFactory
extends Object
implements IManagedTestDeviceFactory
java.lang.Object | |
↳ | com.android.tradefed.device.ManagedTestDeviceFactory |
Fabrika, Tf tarafından izlenebilecek farklı türde cihazlar üretecek
Özet
Sabitler | |
---|---|
int | FRAMEWORK_CHECK_MAX_RETRY |
long | FRAMEWORK_CHECK_SLEEP_MS
|
Alanlar | |
---|---|
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
|
Kamu inşaatçıları | |
---|---|
ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor) |
Genel 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 gelen bir seri ise cihaza yardımcı. |
void | setFastbootEnabled (boolean enable) Oluşturulan cihaz için fastboot desteğini etkinleştirin veya etkinleştirmeyin. |
Korumalı yöntemler | |
---|---|
CollectingOutputReceiver | createOutputReceiver () |
IRunUtil | getRunUtil () Varsayılan |
boolean | isRemoteEnvironment () Şu anda uzak bir ortamda çalışıyorsak true değerini döndürün. |
Sabitler
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)
Alanlar
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
mFastboot Etkin
protected boolean mFastbootEnabled
Kamu inşaatçıları
YönetilenTestDeviceFactory
public ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
Parametreler | |
---|---|
fastbootEnabled | boolean |
deviceManager | IDeviceManager |
allocationMonitor | IDeviceMonitor |
Genel yöntemler
CreateCihaz
public IManagedTestDevice createDevice (IDevice idevice)
Kendisine iletilen IDevice
göre bir IManagedTestDevice
oluşturun.
Parametreler | |
---|---|
idevice | IDevice : oluşturulan cihazın türünü tanımlayacak |
İadeler | |
---|---|
IManagedTestDevice | IDevice üzerinde oluşturulan bir IManagedTestDevice tabanı |
Talep Edilen Cihaz oluştur
public IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)
Özellikle spesifikasyona uygun bir cihaz oluşturun
Parametreler | |
---|---|
idevice | IDevice |
options | IDeviceSelection |
İadeler | |
---|---|
IManagedTestDevice |
isTcpDeviceSerial
public static boolean isTcpDeviceSerial (String serial)
Uzaktan bağlı bir cihazdan gelen bir seri ise cihaza yardımcı. TCP cihazının seri formatı
Parametreler | |
---|---|
serial | String |
İadeler | |
---|---|
boolean |
setFastbootEtkin
public void setFastbootEnabled (boolean enable)
Oluşturulan cihaz için fastboot desteğini etkinleştirin veya etkinleştirmeyin.
Parametreler | |
---|---|
enable | boolean : değer desteği ayarlar. |
Korumalı yöntemler
CreateOutputReceiver
protected CollectingOutputReceiver createOutputReceiver ()
CollectingOutputReceiver
oluşturun.
İadeler | |
---|---|
CollectingOutputReceiver |
Uzak Ortam
protected boolean isRemoteEnvironment ()
Şu anda uzak bir ortamda çalışıyorsak true değerini döndürün. Bu, cihazın davranışını değiştirecektir.
İadeler | |
---|---|
boolean |