設備狀態監視器

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