Searched refs:mDeviceSuspendLock (Results 1 – 2 of 2) sorted by relevance
55 private PowerManager.WakeLock mDeviceSuspendLock; field in DeviceSuspendTestActivity76 mDeviceSuspendLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in activitySetUp()78 mDeviceSuspendLock.acquire(); in activitySetUp()93 if (mDeviceSuspendLock != null && mDeviceSuspendLock.isHeld()) { in activityCleanUp()94 mDeviceSuspendLock.release(); in activityCleanUp()119 if (!mDeviceSuspendLock.isHeld()) {120 mDeviceSuspendLock.acquire();215 if (mDeviceSuspendLock != null && mDeviceSuspendLock.isHeld()) { in testTimestampClockSource()217 mDeviceSuspendLock.release(); in testTimestampClockSource()229 mDeviceSuspendLock.acquire(); in testTimestampClockSource()[all …]
89 private PowerManager.WakeLock mDeviceSuspendLock; field in OffBodySensorTestActivity287 mDeviceSuspendLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in activitySetUp()289 mDeviceSuspendLock.acquire(); in activitySetUp()354 if (!mDeviceSuspendLock.isHeld()) {355 mDeviceSuspendLock.acquire();548 registry = mVerifier.waitForEvent(mDeviceSuspendLock); in runWakeAPOffbodyDetectTest()590 if ((mDeviceSuspendLock != null) && mDeviceSuspendLock.isHeld()) {591 mDeviceSuspendLock.release();