ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


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

Özet

Sabitler

String IPADDRESS_PATTERN

String NOTIFY_AS_NATIVE

Alanlar

protected IDeviceMonitor mAllocationMonitor

protected IDeviceManager mDeviceManager

protected boolean mFastbootEnabled

Herkese açık oluşturucular

ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

Herkese açık yöntemler

IManagedTestDevice createDevice(IDevice idevice)

Kendisine iletilen IDevice temelinde IManagedTestDevice oluşturur.

IManagedTestDevice createRequestedDevice(IDevice idevice, IDeviceSelection options)

Özellikle spesifikasyona uygun bir cihaz oluşturun

static boolean isTcpDeviceSerial(String serial)

Uzaktan bağlı bir cihazdan alınan seri numarasıysa yardımcıya.

void setFastbootEnabled(boolean enable)

Oluşturulan cihaz için fastboot desteğini etkinleştirin veya devre dışı bırakın.

Korunan yöntemler

CollectingOutputReceiver createOutputReceiver()

CollectingOutputReceiver oluşturun.

IRunUtil getRunUtil()

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

boolean isRemoteEnvironment()

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

Sabitler

IPADDRESS_PATTERN

public static final String IPADDRESS_PATTERN

Sabit Değer: "((^([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5]))|(localhost)){1}"

NOTIFY_AS_NATIVE

public static final String NOTIFY_AS_NATIVE

Sabit Değer: "NOTIFY_AS_NATIVE"

Alanlar

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

mDeviceManager

protected IDeviceManager mDeviceManager

mFastbootEnabled

protected boolean mFastbootEnabled

Herkese açık oluşturucular

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 temelinde IManagedTestDevice oluşturur.

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

İadeler
IManagedTestDevice IDevice temel alınarak oluşturulan bir IManagedTestDevice

createRequestedDevice

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 cihazın seri numarasıysa cihazın yardımcısı. tcp cihazının seri numarası biçimi :

Parametreler
serial String

İadeler
boolean

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Oluşturulan cihaz için fastboot desteğini etkinleştirin veya devre dışı bırakın.

Parametreler
enable boolean: Desteklenen değer.

Korunan yöntemler

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

CollectingOutputReceiver oluşturun.

İadeler
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

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

İadeler
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

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

İadeler
boolean