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

waitForPm レスポンシブ

protected boolean waitForPmResponsive (long waitTime)

デバイス パッケージ マネージャーが応答するまで待機します。

パラメータ
waitTime long: あきらめる前に待機する時間(ミリ秒単位)

戻り値
boolean waitTime が期限切れになる前にパッケージ管理が応答する場合は、true。 それ以外の場合は false