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 true إذا نجحت عمليات التحقق قبل انتهاء وقت الانتظار. خلاف ذلك false

رميات
DeviceNotAvailableException

waitForPmResponsive

protected boolean waitForPmResponsive (long waitTime)

ينتظر مدير حزمة الجهاز ليكون متجاوبًا.

حدود
waitTime long : الوقت بالمللي ثانية للانتظار قبل الاستسلام

عائدات
boolean true إذا أصبحت إدارة الحزمة مستجيبة قبل انتهاء وقت الانتظار. خلاف ذلك false