Koleksiyonlar ile düzeninizi koruyun İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.

YönetilenTestAygıtıFabrika

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

java.lang.Nesne
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

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)

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

void setFastbootEnabled (boolean enable)

Oluşturulan aygıt için hızlı başlatma desteğini etkinleştirin veya etkinleştirmeyin.

Korumalı yöntemler

boolean checkFrameworkSupport (IDevice idevice)

Cihaz çerçeve desteğine sahipse true döndüren yardımcı.

CollectingOutputReceiver createOutputReceiver ()

Bir CollectingOutputReceiver oluşturun.

IRunUtil getRunUtil ()

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

boolean isRemoteEnvironment ()

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

boolean isTcpDeviceSerial (String serial)

Uzaktan bağlı bir cihazdan gelen bir seri ise cihaza 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 (0x000000000000001f4)

Alanlar

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

mAyırmaMonitör

protected IDeviceMonitor mAllocationMonitor

mCihaz Yöneticisi

protected IDeviceManager mDeviceManager

mFastbootEtkin

protected boolean mFastbootEnabled

Kamu inşaatçıları

YönetilenTestAygıtıFabrika

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)

IDevice iletilen IManagedTestDevice 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

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Oluşturulan aygıt için hızlı başlatma desteğini etkinleştirin veya etkinleştirmeyin.

parametreler
enable boolean : değer desteği ayarlayın.

Korumalı yöntemler

kontrolÇerçeveDestek

protected boolean checkFrameworkSupport (IDevice idevice)

Cihaz çerçeve desteğine sahipse true döndüren yardımcı.

parametreler
idevice IDevice

İadeler
boolean

oluşturÇıktıAlıcı

protected CollectingOutputReceiver createOutputReceiver ()

Bir CollectingOutputReceiver oluşturun.

İadeler
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

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

İadeler
IRunUtil

UzakÇevre

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

isTcpDeviceSeri

protected boolean isTcpDeviceSerial (String serial)

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

parametreler
serial String

İadeler
boolean