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

例外
DeviceNotAvailableException

waitForPmResponsive

protected boolean waitForPmResponsive (long waitTime)

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

パラメータ
waitTime long: 諦めるまでの待機時間(ミリ秒単位)

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