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

public static final String NOTIFY_AS_NATIVE

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 khai

IManagedTestDevice createDevice (IDevice idevice)

Tạo IManagedTestDevice dựa trên IDevice được truyền cho nó.

IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)

Cụ thể là tạo một thiết bị phù hợp với thông số kỹ thuật

static 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.

void setFastbootEnabled (boolean enable)

Bật hoặc không hỗ trợ fastboot cho thiết bị được tạo.

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

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.

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

NOTIFY_AS_NATIVE

public static final String NOTIFY_AS_NATIVE

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 khai

tạothiết bị

public IManagedTestDevice createDevice (IDevice idevice)

Tạo IManagedTestDevice dựa trên IDevice được truyền cho nó.

Thông số
idevice IDevice : sẽ xác định loại thiết bị được tạo

Trả lại
IManagedTestDevice một I ManagedTestDevice được tạo dựa trên IDevice

createRequestedDevice

public IManagedTestDevice createRequestedDevice (IDevice idevice, 
                IDeviceSelection options)

Cụ thể là tạo một thiết bị phù hợp với thông số kỹ thuật

Thông số
idevice IDevice

options IDeviceSelection

Trả lại
IManagedTestDevice

isTcpDeviceSerial

public static 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

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

Bật hoặc không hỗ trợ fastboot cho thiết bị được tạo.

Thông số
enable boolean : giá trị đặt hỗ trợ.

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

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