设备状态监视器

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

受保护的方法

在线检查后

protected boolean postOnlineCheck (long waitTime)

在在线设备上进行额外检查

参数
waitTime long :放弃之前等待的时间(以毫秒为单位)

退货
boolean如果在 waitTime 到期之前检查成功,则为true 。否则为false

投掷
DeviceNotAvailableException

等待Pm响应

protected boolean waitForPmResponsive (long waitTime)

等待设备包管理器响应。

参数
waitTime long :放弃之前等待的时间(以毫秒为单位)

退货
boolean如果包管理器在 waitTime 到期之前变得响应, true 。否则为false