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 بخلاف ذلك