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

public static final String NOTIFY_AS_NATIVE

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)

Kendisine iletilen IDevice değerine göre bir IManagedTestDevice oluşturur.

IManagedTestDevice createRequestedDevice(IDevice idevice, IDeviceSelection options)

Spesifikasyonla eşleşen bir cihaz oluşturma

static boolean isTcpDeviceSerial(String serial)

Uzaktan bağlı bir cihazdan alınan seri numaraysa cihaz için yardımcı.

void setFastbootEnabled(boolean enable)

Oluşturulan cihaz için hızlı önyükleme desteğini etkinleştirme veya devre dışı bırakma.

Korunan yöntemler

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.

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

NOTIFY_AS_NATIVE

public static final String NOTIFY_AS_NATIVE

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)

Kendisine iletilen IDevice değerine göre bir IManagedTestDevice oluşturur.

Parametreler
idevice IDevice: Oluşturulan cihaz türünü tanımlar.

İlerlemeler
IManagedTestDevice IDevice'a göre oluşturulan bir IManagedTestDevice

createRequestedDevice

public IManagedTestDevice createRequestedDevice (IDevice idevice, 
                IDeviceSelection options)

Spesifikasyonla eşleşen bir cihaz oluşturma

Parametreler
idevice IDevice

options IDeviceSelection

İlerlemeler
IManagedTestDevice

isTcpDeviceSerial

public static boolean isTcpDeviceSerial (String serial)

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

Parametreler
serial String

İlerlemeler
boolean

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Oluşturulan cihaz için hızlı önyükleme desteğini etkinleştirme veya devre dışı bırakma.

Parametreler
enable boolean: değeri desteği ayarlar.

Korunan yöntemler

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