원격안드로이드장치

public class RemoteAndroidDevice
extends TestDevice

java.lang.Object
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.RemoteAndroidDevice


adb 연결을 통해 연결된 전체 스택 Android 장치용 ITestDevice 구현. 장치 일련번호가 다음 형식으로 되어 있다고 가정합니다. : adb에서

요약

상수

long DEFAULT_SHORT_CMD_TIMEOUT

int MAX_RETRIES

long RETRY_INTERVAL_MS

long WAIT_FOR_ADB_CONNECT

공개 생성자

RemoteAndroidDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

RemoteAndroidDevice 생성합니다.

공개 메소드

static boolean checkSerialFormatValid (String serialString)

일련번호의 형식이 예상한 것과 같은지 확인하세요. :포트

DeviceDescriptor getDeviceDescriptor (boolean shortDescriptor)

실제 장치 객체를 전달하지 않고 정보를 얻으려면 장치 정보에서 DeviceDescriptor 를 반환합니다.

String getFastbootSerialNumber ()

fastboot 모드 일련 번호를 반환합니다.

String getMacAddress ()

장치의 MAC 주소를 반환하며, 장치에서 쿼리하지 못한 경우 null을 반환합니다.

boolean isEncryptionSupported ()

기기에서 암호화가 지원되는지 여부를 반환합니다.

상수

DEFAULT_SHORT_CMD_TIMEOUT

protected static final long DEFAULT_SHORT_CMD_TIMEOUT

상수값: 20000 (0x0000000000004e20)

MAX_RETRIES

protected static final int MAX_RETRIES

상수값: 5(0x00000005)

RETRY_INTERVAL_MS

protected static final long RETRY_INTERVAL_MS

상수값: 5000 (0x0000000000001388)

WAIT_FOR_ADB_CONNECT

public static final long WAIT_FOR_ADB_CONNECT

상수 값: 120000 (0x000000000001d4c0)

공개 생성자

원격안드로이드장치

public RemoteAndroidDevice (IDevice device, 
                IDeviceStateMonitor stateMonitor, 
                IDeviceMonitor allocationMonitor)

RemoteAndroidDevice 생성합니다.

매개변수
device IDevice : 연결된 IDevice

stateMonitor IDeviceStateMonitor : 사용할 IDeviceStateMonitor 메커니즘

allocationMonitor IDeviceMonitor : 할당 상태 변경을 알리는 IDeviceMonitor .

공개 메소드

checkSerialFormatValid

public static boolean checkSerialFormatValid (String serialString)

일련번호의 형식이 예상한 것과 같은지 확인하세요. :포트

매개변수
serialString String

보고
boolean 형식이 유효하면 true이고, 그렇지 않으면 false입니다.

getDeviceDescriptor

public DeviceDescriptor getDeviceDescriptor (boolean shortDescriptor)

실제 장치 객체를 전달하지 않고 정보를 얻으려면 장치 정보에서 DeviceDescriptor 를 반환합니다.

매개변수
shortDescriptor boolean : 설명자를 최소한의 정보로 제한할지 여부

보고
DeviceDescriptor

getFastboot 일련번호

public String getFastbootSerialNumber ()

fastboot 모드 일련 번호를 반환합니다.

보고
String

getMac주소

public String getMacAddress ()

장치의 MAC 주소를 반환하며, 장치에서 쿼리하지 못한 경우 null을 반환합니다.

보고
String

암호화 지원됨

public boolean isEncryptionSupported ()

기기에서 암호화가 지원되는지 여부를 반환합니다.

보고
boolean 장치가 암호화를 지원하면 true .