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
|
protected
IDeviceMonitor |
mAllocationMonitor
|
protected
IDeviceManager |
mDeviceManager
|
protected
boolean |
mFastbootEnabled
|
공개 생성자 | |
---|---|
ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
|
공개 메서드 | |
---|---|
IManagedTestDevice
|
createDevice(IDevice idevice)
|
void
|
setFastbootEnabled(boolean enable)
|
보호된 메서드 | |
---|---|
boolean
|
checkFrameworkSupport(IDevice idevice)
기기에 프레임워크 지원이 있는 경우 true를 반환하는 도우미입니다. |
CollectingOutputReceiver
|
createOutputReceiver()
|
IRunUtil
|
getRunUtil()
기본 |
boolean
|
isRemoteEnvironment()
현재 원격 환경에서 실행 중인 경우 true를 반환합니다. |
boolean
|
isTcpDeviceSerial(String serial)
원격으로 연결된 기기의 일련번호인 경우 기기의 도우미입니다. |
상수
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
EXPECTED_ERROR
protected static final String EXPECTED_ERROR
EXPECTED_RES
protected static final String EXPECTED_RES
IPADDRESS_PATTERN
public static final String IPADDRESS_PATTERN
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 |
IDevice |
반환 값 | |
---|---|
IManagedTestDevice |
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
매개변수 | |
---|---|
enable |
boolean |
보호된 메서드
checkFrameworkSupport
protected boolean checkFrameworkSupport (IDevice idevice)
기기에 프레임워크 지원이 있는 경우 true를 반환하는 도우미입니다.
매개변수 | |
---|---|
idevice |
IDevice |
반환 값 | |
---|---|
boolean |
createOutputReceiver
protected CollectingOutputReceiver createOutputReceiver ()
CollectingOutputReceiver
를 만듭니다.
반환 값 | |
---|---|
CollectingOutputReceiver |
isRemoteEnvironment
protected boolean isRemoteEnvironment ()
현재 원격 환경에서 실행 중인 경우 true를 반환합니다. 이렇게 하면 기기 동작이 변경됩니다.
반환 값 | |
---|---|
boolean |
isTcpDeviceSerial
protected boolean isTcpDeviceSerial (String serial)
원격으로 연결된 기기의 일련번호인 경우 기기의 도우미입니다.
tcp 기기의 일련번호 형식은
매개변수 | |
---|---|
serial |
String |
반환 값 | |
---|---|
boolean |