ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


Pabrik untuk membuat berbagai jenis perangkat yang dapat dipantau oleh Tf

Ringkasan

Konstanta

int FRAMEWORK_CHECK_MAX_RETRY

long FRAMEWORK_CHECK_SLEEP_MS

Bidang

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

Konstruktor publik

ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

Metode publik

IManagedTestDevice createDevice (IDevice idevice)

void setFastbootEnabled (boolean enable)

Metode yang dilindungi

boolean checkFrameworkSupport (IDevice idevice)

Pembantu yang mengembalikan nilai true jika perangkat memiliki dukungan kerangka kerja.

CollectingOutputReceiver createOutputReceiver ()

Buat CollectingOutputReceiver .

IRunUtil getRunUtil ()

Kembalikan instans IRunUtil default.

boolean isRemoteEnvironment ()

Mengembalikan nilai true jika kita sedang berjalan di lingkungan jarak jauh.

boolean isTcpDeviceSerial (String serial)

Pembantu perangkat jika itu adalah serial dari perangkat yang terhubung dari jarak jauh.

Konstanta

FRAMEWORK_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

Nilai Konstan: 3 (0x00000003)

FRAMEWORK_CHECK_SLEEP_MS

protected static final long FRAMEWORK_CHECK_SLEEP_MS

Nilai Konstan: 500 (0x00000000000001f4)

Bidang

CHECK_PM_CMD

protected static final String CHECK_PM_CMD

DIHARAPKAN_ERROR

protected static final String EXPECTED_ERROR

DIHARAPKAN_RES

protected static final String EXPECTED_RES

IPADDRESS_PATTERN

public static final String IPADDRESS_PATTERN

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

mDeviceManager

protected IDeviceManager mDeviceManager

mFastbootDiaktifkan

protected boolean mFastbootEnabled

Konstruktor publik

ManagedTestDeviceFactory

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

Parameter
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

Metode publik

buatPerangkat

public IManagedTestDevice createDevice (IDevice idevice)

Parameter
idevice IDevice

Kembali
IManagedTestDevice

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Parameter
enable boolean

Metode yang dilindungi

periksaFrameworkSupport

protected boolean checkFrameworkSupport (IDevice idevice)

Pembantu yang mengembalikan nilai true jika perangkat memiliki dukungan kerangka kerja.

Parameter
idevice IDevice

Kembali
boolean

buatOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

Buat CollectingOutputReceiver .

Kembali
CollectingOutputReceiver

dapatkan RunUtil

protected IRunUtil getRunUtil ()

Kembalikan instans IRunUtil default.

Kembali
IRunUtil

adalah Lingkungan Jarak Jauh

protected boolean isRemoteEnvironment ()

Mengembalikan nilai true jika kita sedang berjalan di lingkungan jarak jauh. Ini akan mengubah perilaku perangkat.

Kembali
boolean

isTcpDeviceSerial

protected boolean isTcpDeviceSerial (String serial)

Pembantu perangkat jika itu adalah serial dari perangkat yang terhubung dari jarak jauh. format serial perangkat tcp adalah :

Parameter
serial String

Kembali
boolean