ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


Tf에서 모니터링할 수 있는 다양한 종류의 기기를 만드는 팩토리

요약

상수

String IPADDRESS_PATTERN

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)

만든 기기의 빠른 부팅 지원을 사용 설정합니다.

보호된 메서드

CollectingOutputReceiver createOutputReceiver()

CollectingOutputReceiver를 만듭니다.

IRunUtil getRunUtil()

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

boolean isRemoteEnvironment()

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

상수

IPADDRESS_PATTERN

public static final String IPADDRESS_PATTERN

상수 값: "((^([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5]))|(localhost)){1}"

NOTIFY_AS_NATIVE

public static final String NOTIFY_AS_NATIVE

상수 값: "NOTIFY_AS_NATIVE"

필드

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

mDeviceManager

protected IDeviceManager mDeviceManager

mFastbootEnabled

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)

만든 기기의 빠른 부팅 지원을 사용 설정합니다.

매개변수
enable boolean: 지원을 설정하는 값입니다.

보호된 메서드

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

CollectingOutputReceiver를 만듭니다.

반환
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

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

반환
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

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

반환
boolean