ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

java.lang.Object
   ↳ com.android.tradefed.device.ManagedTestDeviceFactory


Tf tarafından izlenebilecek farklı türde cihazlar oluşturmak için fabrika

Ö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

Herkese açık kurucular

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 döndüren yardımcı program.

CollectingOutputReceiver createOutputReceiver()

Bir CollectingOutputReceiver oluşturun.

IRunUtil getRunUtil()

Varsayılan IRunUtil örneğini döndürme.

boolean isRemoteEnvironment()

Şu anda uzak bir ortamda çalışıyorsak doğru değerini döndürür.

boolean isTcpDeviceSerial(String serial)

Uzaktan bağlı bir cihazdan alınan seri numaraysa cihaz için 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)

Fields'ın oynadığı filmler

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

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

mDeviceManager

protected IDeviceManager mDeviceManager

mFastbootEnabled

protected boolean mFastbootEnabled

Herkese açık kurucular

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)

Parametreler
idevice IDevice

İlerlemeler
IManagedTestDevice

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Parametreler
enable boolean

Korunan yöntemler

checkFrameworkSupport

protected boolean checkFrameworkSupport (IDevice idevice)

Cihazın çerçeve desteği varsa true döndüren yardımcı program.

Parametreler
idevice IDevice

İlerlemeler
boolean

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

Bir CollectingOutputReceiver oluşturun.

İlerlemeler
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

Varsayılan IRunUtil örneğini döndürme.

İlerlemeler
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

Şu anda uzak bir ortamda çalışıyorsak doğru değerini döndürür. Bu işlem, cihaz davranışını değiştirir.

İlerlemeler
boolean

isTcpDeviceSerial

protected boolean isTcpDeviceSerial (String serial)

Uzaktan bağlı bir cihazdan alınan seri numaraysa cihaz için yardımcı. TCP cihazının seri biçimi :

Parametreler
serial String

İlerlemeler
boolean