ManagedTestDeviceFactory
public
class
ManagedTestDeviceFactory
extends Object
implements
IManagedTestDeviceFactory
Java.lang.Nesne | |
🎃 | com.android.tradefed.device.ManagedTestDeviceFactory |
Tf tarafından izlenebilecek farklı cihaz türlerini oluşturmak için fabrika ayarlarına gidin
Özet
Sabitler | |
---|---|
int |
FRAMEWORK_CHECK_MAX_RETRY
|
long |
FRAMEWORK_CHECK_SLEEP_MS
|
Fields'ın oynadığı filmler | |
---|---|
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)
|
Herkese açık yöntemler | |
---|---|
IManagedTestDevice
|
createDevice(IDevice idevice)
|
void
|
setFastbootEnabled(boolean enable)
|
Korunan 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ışıyorsa true değerini döndürür. |
boolean
|
isTcpDeviceSerial(String serial)
Uzaktan bağlı bir cihazdan seri numaraysa cihaz yardımcısı. |
Sabitler
FRAMEWORK_check_MAX_RETRY
protected static final int FRAMEWORK_CHECK_MAX_RETRY
Sabit Değer: 3 (0x00000003)
ÇERÇEVE_KONTROLÜ_SLEEP_MS
protected static final long FRAMEWORK_CHECK_SLEEP_MS
Sabit Değer: 500 (0x00000000000001f4)
Fields'ın oynadığı filmler
ÖYS_CMD
protected static final String CHECK_PM_CMD
EXPECTED_HATA
protected static final String EXPECTED_ERROR
EXPECTED_RES
protected static final String EXPECTED_RES
IPADDRESS_PATTERN
public static final String IPADDRESS_PATTERN
mFastbootEtkin
protected boolean mFastbootEnabled
Kamu inşaatçıları
ManagedTestDeviceFactory
public ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
Parametreler | |
---|---|
fastbootEnabled |
boolean |
deviceManager |
IDeviceManager |
allocationMonitor |
IDeviceMonitor |
Herkese açık yöntemler
createCihazı
public IManagedTestDevice createDevice (IDevice idevice)
Parametreler | |
---|---|
idevice |
IDevice |
İlerlemeler | |
---|---|
IManagedTestDevice |
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
Parametreler | |
---|---|
enable |
boolean |
Korunan yöntemler
checkFrameworkSupport'u kontrol edin
protected boolean checkFrameworkSupport (IDevice idevice)
Cihazın çerçeve desteği varsa "true" değerini döndüren yardımcı.
Parametreler | |
---|---|
idevice |
IDevice |
İlerlemeler | |
---|---|
boolean |
createÇıkışAlıcısı
protected CollectingOutputReceiver createOutputReceiver ()
CollectingOutputReceiver
oluşturun.
İlerlemeler | |
---|---|
CollectingOutputReceiver |
getRunUtil
protected IRunUtil getRunUtil ()
Varsayılan IRunUtil
örneğini döndürün.
İlerlemeler | |
---|---|
IRunUtil |
isRemoteEnvironment
protected boolean isRemoteEnvironment ()
Şu anda uzak bir ortamda çalışıyorsa true değerini döndürür. Bu işlem cihazı değiştirecek gösterir.
İlerlemeler | |
---|---|
boolean |
isTcpDeviceSerial
protected boolean isTcpDeviceSerial (String serial)
Uzaktan bağlı bir cihazdan seri numaraysa cihaz yardımcısı.
TCP cihazının seri biçimi
Parametreler | |
---|---|
serial |
String |
İlerlemeler | |
---|---|
boolean |