ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

java.lang.Object
com.android.tradefed.device.Quản lýTestDeviceFactory


Nhà máy sản xuất các loại thiết bị khác nhau có thể được giám sát bởi Tf

Bản tóm tắt

Hằng số

int FRAMEWORK_CHECK_MAX_RETRY

long FRAMEWORK_CHECK_SLEEP_MS

Lĩnh vực

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

Nhà thầu xây dựng công cộng

ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

Phương pháp công cộng

IManagedTestDevice createDevice (IDevice idevice)

void setFastbootEnabled (boolean enable)

Phương pháp được bảo vệ

boolean checkFrameworkSupport (IDevice idevice)

Trình trợ giúp trả về true nếu thiết bị có hỗ trợ khung.

CollectingOutputReceiver createOutputReceiver ()

Tạo một CollectingOutputReceiver .

IRunUtil getRunUtil ()

Trả về phiên bản IRunUtil mặc định.

boolean isRemoteEnvironment ()

Trả về true nếu chúng ta hiện đang chạy trong môi trường từ xa.

boolean isTcpDeviceSerial (String serial)

Trình trợ giúp cho thiết bị nếu đó là nối tiếp từ thiết bị được kết nối từ xa.

Hằng số

FRAMEWORK_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

Giá trị không đổi: 3 (0x00000003)

FRAMEWORK_CHECK_SLEEP_MS

protected static final long FRAMEWORK_CHECK_SLEEP_MS

Giá trị không đổi: 500 (0x00000000000001f4)

Lĩnh vực

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

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

mDeviceManager

protected IDeviceManager mDeviceManager

mFastbootĐã bật

protected boolean mFastbootEnabled

Nhà thầu xây dựng công cộng

ManagedTestDeviceFactory

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

Thông số
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

Phương pháp công cộng

tạothiết bị

public IManagedTestDevice createDevice (IDevice idevice)

Thông số
idevice IDevice

Trả lại
IManagedTestDevice

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Thông số
enable boolean

Phương pháp được bảo vệ

checkFrameworkHỗ trợ

protected boolean checkFrameworkSupport (IDevice idevice)

Trình trợ giúp trả về true nếu thiết bị có hỗ trợ khung.

Thông số
idevice IDevice

Trả lại
boolean

tạoĐầu raNhận

protected CollectingOutputReceiver createOutputReceiver ()

Tạo một CollectingOutputReceiver .

Trả lại
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

Trả về phiên bản IRunUtil mặc định.

Trả lại
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

Trả về true nếu chúng ta hiện đang chạy trong môi trường từ xa. Điều này sẽ thay đổi hành vi của thiết bị.

Trả lại
boolean

isTcpDeviceSerial

protected boolean isTcpDeviceSerial (String serial)

Trình trợ giúp cho thiết bị nếu đó là nối tiếp từ thiết bị được kết nối từ xa. định dạng nối tiếp của thiết bị tcp là :

Thông số
serial String

Trả lại
boolean