DeviceStateMonitor

public class DeviceStateMonitor
extends NativeDeviceStateMonitor

java.lang.Object
   ↳ com.android.tradefed.device.NativeDeviceStateMonitor
     ↳ com.android.tradefed.device.DeviceStateMonitor


IDevice의 상태를 모니터링하는 도우미 클래스입니다.

요약

공개 생성자

DeviceStateMonitor(IDeviceManager mgr, IDevice device, boolean fastbootEnabled)

보호된 메서드

boolean postOnlineCheck(long waitTime)

온라인 기기에서 수행할 추가 검사

boolean waitForPmResponsive(long waitTime)

기기 패키지 관리자가 응답할 때까지 기다립니다.

공개 생성자

DeviceStateMonitor

public DeviceStateMonitor (IDeviceManager mgr, 
                IDevice device, 
                boolean fastbootEnabled)

매개변수
mgr IDeviceManager

device IDevice

fastbootEnabled boolean

보호된 메서드

postOnlineCheck

protected boolean postOnlineCheck (long waitTime)

온라인 기기에서 수행할 추가 검사

매개변수
waitTime long: 포기하기 전에 기다릴 시간(밀리초)

반환 값
boolean waitTime이 만료되기 전에 검사가 성공하면 true 그 밖의 경우 false

생성 값
DeviceNotAvailableException

waitForPmResponsive

protected boolean waitForPmResponsive (long waitTime)

기기 패키지 관리자가 응답할 때까지 기다립니다.

매개변수
waitTime long: 포기하기 전에 기다릴 시간(밀리초)

반환 값
boolean waitTime이 만료되기 전에 패키지 관리가 응답하는 경우 true 그 밖의 경우 false