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 إذا نجحت عمليات التحقّق قبل انتهاء مهلة waitTime false خلاف ذلك

الرميات
DeviceNotAvailableException

waitForPmResponsive

protected boolean waitForPmResponsive (long waitTime)

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

المعلمات
waitTime long: الوقت بالمللي ثانية الذي يجب الانتظار خلاله قبل التوقف

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