ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


Tf로 모니터링할 수 있는 다양한 종류의 장치를 만드는 공장

요약

상수

int FRAMEWORK_CHECK_MAX_RETRY

long FRAMEWORK_CHECK_SLEEP_MS

필드

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

공개 생성자

ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

공개 메소드

IManagedTestDevice createDevice (IDevice idevice)

전달된 IDevice 기반으로 IManagedTestDevice 만듭니다.

IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)

구체적으로 사양에 맞는 장치를 만듭니다.

static boolean isTcpDeviceSerial (String serial)

원격으로 연결된 장치의 직렬인 경우 장치에 대한 도우미입니다.

void setFastbootEnabled (boolean enable)

생성된 장치에 대한 fastboot 지원을 활성화하거나 비활성화합니다.

보호된 방법

CollectingOutputReceiver createOutputReceiver ()

CollectingOutputReceiver 를 만듭니다.

IRunUtil getRunUtil ()

기본 IRunUtil 인스턴스를 반환합니다.

boolean isRemoteEnvironment ()

현재 원격 환경에서 실행 중이면 true를 반환합니다.

상수

FRAMEWORK_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

상수값: 3(0x00000003)

FRAMEWORK_CHECK_SLEEP_MS

protected static final long FRAMEWORK_CHECK_SLEEP_MS

상수값: 500(0x00000000000001f4)

필드

CHECK_PM_CMD

protected static final String CHECK_PM_CMD

예상_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 활성화됨

protected boolean mFastbootEnabled

공개 생성자

ManagedTestDeviceFactory

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

매개변수
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

공개 메소드

createDevice

public IManagedTestDevice createDevice (IDevice idevice)

전달된 IDevice 기반으로 IManagedTestDevice 만듭니다.

매개변수
idevice IDevice : 생성된 장치 유형을 정의합니다.

보고
IManagedTestDevice IDevice를 기반으로 생성된 IManagedTestDevice

createRequestedDevice

public IManagedTestDevice createRequestedDevice (IDevice idevice, 
                IDeviceSelection options)

구체적으로 사양에 맞는 장치를 만듭니다.

매개변수
idevice IDevice

options IDeviceSelection

보고
IManagedTestDevice

isTcpDeviceSerial

public static boolean isTcpDeviceSerial (String serial)

원격으로 연결된 장치의 직렬인 경우 장치에 대한 도우미입니다. TCP 장치의 직렬 형식은 다음과 같습니다. :

매개변수
serial String

보고
boolean

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

생성된 장치에 대한 fastboot 지원을 활성화하거나 비활성화합니다.

매개변수
enable boolean : 값은 지원을 설정합니다.

보호된 방법

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

CollectingOutputReceiver 를 만듭니다.

보고
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

기본 IRunUtil 인스턴스를 반환합니다.

보고
IRunUtil

isRemote환경

protected boolean isRemoteEnvironment ()

현재 원격 환경에서 실행 중이면 true를 반환합니다. 이렇게 하면 장치 동작이 변경됩니다.

보고
boolean