컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.

중첩된 원격 장치

public class NestedRemoteDevice
extends TestDevice

java.lang.객체
com.android.tradefed.device.NativeDevice
com.android.tradefed.device.TestDevice
com.android.tradefed.device.cloud.NestedRemoteDevice


원격 Cuttlefish VM 내에서 실행되는 장치를 나타냅니다. 그것은 로컬 장치 변경됩니다 TestDevice 설정을 활용하는 경우에 동작을.

요약

공개 생성자

NestedRemoteDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

작성 NestedRemoteDevice .

공개 메서드

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

final boolean resetVirtualDevice (ITestLogger logger, IBuildInfo info, boolean resetDueToFailure)

테스트를 진행할 수 있도록 가상 장치를 분해하고 복원합니다.

공개 생성자

중첩된 원격 장치

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

작성 NestedRemoteDevice .

매개변수
device IDevice : 관련 IDevice

stateMonitor IDeviceStateMonitor 다음 IDeviceStateMonitor 사용에 대한 메커니즘

allocationMonitor IDeviceMonitor 다음 IDeviceMonitor 할당 상태 변경 통지합니다.

공개 메서드

사전 호출 설정

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

매개변수
info IBuildInfo

attributes MultiMap

던지다
DeviceNotAvailableException
TargetSetupError

재설정 가상 장치

public final boolean resetVirtualDevice (ITestLogger logger, 
                IBuildInfo info, 
                boolean resetDueToFailure)

테스트를 진행할 수 있도록 가상 장치를 분해하고 복원합니다.

매개변수
logger ITestLogger

info IBuildInfo

resetDueToFailure boolean

보고
boolean

던지다
DeviceNotAvailableException