YönetilenTestCihazFabrikası

public class ManagedTestDeviceFactory
Object implements IManagedTestDeviceFactory extends Object IManagedTestDeviceFactory

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


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

Ö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

public static final String NOTIFY_AS_NATIVE

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)

Kendisine iletilen IDevice dayalı olarak bir IManagedTestDevice oluşturun.

IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)

Spesifikasyonla eşleşen bir cihaz oluşturun

static boolean isTcpDeviceSerial (String serial)

Uzaktan bağlı bir cihazdan bir seri ise, cihaza yardımcı.

void setFastbootEnabled (boolean enable)

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

Korumalı yöntemler

CollectingOutputReceiver createOutputReceiver ()

Bir 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ün.

sabitler

ÇERÇEVE_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

Sabit Değer: 3 (0x00000003)

ÇERÇEVE_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

BEKLENEN_HATA

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

mCihaz Yöneticisi

protected IDeviceManager mDeviceManager

mFastbootEnabled

protected boolean mFastbootEnabled

kamu inşaatçılar

YönetilenTestCihazFabrikası

public ManagedTestDeviceFactory (boolean fastbootEnabled, 
                IDeviceManager deviceManager, 
                IDeviceMonitor allocationMonitor)

parametreler
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

Genel yöntemler

cihaz oluştur

public IManagedTestDevice createDevice (IDevice idevice)

Kendisine iletilen IDevice dayalı olarak bir IManagedTestDevice oluşturun.

parametreler
idevice IDevice : oluşturulan cihazın türünü tanımlayacak

İadeler
IManagedTestDevice IDevice üzerinde oluşturulan bir IManagedTestDevice tabanı

istenenCihaz oluştur

public IManagedTestDevice createRequestedDevice (IDevice idevice, 
                IDeviceSelection options)

Spesifikasyonla eşleşen bir cihaz oluşturun

parametreler
idevice IDevice

options IDeviceSelection

İadeler
IManagedTestDevice

isTcpDeviceSeri

public static boolean isTcpDeviceSerial (String serial)

Uzaktan bağlı bir cihazdan bir seri ise, cihaza yardımcı. tcp cihazının seri formatı :

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 : değer desteği ayarlar.

Korumalı yöntemler

Çıkış Alıcısı oluştur

protected CollectingOutputReceiver createOutputReceiver ()

Bir 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ün. Bu, cihazın davranışını değiştirecektir.

İadeler
boolean