设备状态监控器

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)

等待设备软件包管理器做出响应。

公共构造函数

设备状态监控器

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

waitForPmResponsive

protected boolean waitForPmResponsive (long waitTime)

等待设备软件包管理器做出响应。

参数
waitTime long:放弃前等待的时间(毫秒)

返回
boolean 如果软件包管理在 waitTime 到期之前变为响应状态,则为 true。 否则为 false