設備狀態監視器

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

waitForPmResponsive

protected boolean waitForPmResponsive (long waitTime)

等待設備包管理器響應。

參數
waitTime long :放棄前等待的時間(以毫秒為單位)

退貨
boolean如果包管理在 waitTime 到期之前變得有響應, true 。否則為false