관리형 원격 장치

public class ManagedRemoteDevice
extends TestDevice implements ITestLoggerReceiver

java.lang.Object
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.cloud.ManagedRemoteDevice


VM 내부의 Tradefed 인스턴스를 통해 원격으로 관리하는 가상 머신 내에서 실행되는 장치입니다.

요약

공개 생성자

ManagedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

ManagedRemoteDevice 를 생성합니다.

공개 메소드

TestDeviceOptions getOptions ()

원격 설정을 시도하기 전에 동적 옵션을 해결할 수 있도록 기본 getter를 재정의하세요.

void postInvocationTearDown (Throwable exception)

호출이 완료된 후 실행될 장치별 필수 정리를 위한 추가 단계입니다.

void preInvocationSetup ( IBuildInfo info, MultiMap <String, String> attributes)

호출 흐름 전에 장치에서 실행될 장치별 필수 설정을 위한 추가 단계입니다.

공개 생성자

관리형 원격 장치

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

ManagedRemoteDevice 를 생성합니다.

매개변수
device IDevice : 연결된 IDevice

stateMonitor IDeviceStateMonitor : 사용할 IDeviceStateMonitor 메커니즘

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

공개 메소드

getOptions

public TestDeviceOptions getOptions ()

원격 설정을 시도하기 전에 동적 옵션을 해결할 수 있도록 기본 getter를 재정의하세요.

보고
TestDeviceOptions 테스트 중인 장치와 관련된 TestDeviceOptions 입니다.

postInvocationTearDown

public void postInvocationTearDown (Throwable exception)

호출이 완료된 후 실행될 장치별 필수 정리를 위한 추가 단계입니다.

매개변수
exception Throwable : 있는 경우 호출 실패로 인해 발생한 최종 예외입니다.

사전 호출 설정

public void preInvocationSetup (IBuildInfo info, 
                MultiMap<String, String> attributes)

호출 흐름 전에 장치에서 실행될 장치별 필수 설정을 위한 추가 단계입니다.

매개변수
info IBuildInfo : 장치의 IBuildInfo 입니다.

attributes MultiMap : 호출 컨텍스트에 저장된 속성

던지기
DeviceNotAvailableException
TargetSetupError