جهاز مراقبة حالة الجهاز

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

الأساليب المحمية

postOnlineCheck

protected boolean postOnlineCheck (long waitTime)

يجب إجراء فحوصات إضافية على جهاز متصل بالإنترنت

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

عائدات
boolean true إذا نجحت عمليات التحقق قبل انتهاء صلاحية waitTime. false خلاف ذلك

رميات
DeviceNotAvailableException

waitForPmResponsive

protected boolean waitForPmResponsive (long waitTime)

ينتظر حتى يستجيب مدير حزمة الجهاز.

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

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