Home
last modified time | relevance | path

Searched refs:mDeviceSuspendLock (Results 1 – 2 of 2) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java55 private PowerManager.WakeLock mDeviceSuspendLock; field in DeviceSuspendTestActivity
76 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 …]
DOffBodySensorTestActivity.java89 private PowerManager.WakeLock mDeviceSuspendLock; field in OffBodySensorTestActivity
287 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();