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 |
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) |
void | setFastbootEnabled (boolean enable)
|
Korumalı yöntemler | |
---|---|
boolean | checkFrameworkSupport (IDevice idevice) Cihazın çerçeve desteği varsa true değerini döndüren yardımcı. |
CollectingOutputReceiver | createOutputReceiver () |
IRunUtil | getRunUtil () Varsayılan |
boolean | isRemoteEnvironment () Şu anda uzak bir ortamda çalışıyorsak true değerini döndürün. |
boolean | isTcpDeviceSerial (String serial) Uzaktan bağlı bir cihazdan gelen bir seri ise cihaza yardımcı. |
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
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)
Parametreler | |
---|---|
idevice | IDevice |
İadeler | |
---|---|
IManagedTestDevice |
setFastbootEtkin
public void setFastbootEnabled (boolean enable)
Parametreler | |
---|---|
enable | boolean |
Korumalı yöntemler
checkFrameworkDestek
protected boolean checkFrameworkSupport (IDevice idevice)
Cihazın çerçeve desteği varsa true değerini döndüren yardımcı.
Parametreler | |
---|---|
idevice | IDevice |
İadeler | |
---|---|
boolean |
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 |
isTcpDeviceSerial
protected 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 |