Searched refs:mWakeLock (Results 1 – 8 of 8) sorted by relevance
53 private WakeLock mWakeLock = null; field in AlarmOperation119 if (mCompleted || mWakeLock != null) { in acquireWakeLock()123 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKE_LOCK_TAG); in acquireWakeLock()131 if (mWakeLock != null) { in releaseWakeLock()132 mWakeLock.release(); in releaseWakeLock()134 mWakeLock = null; in releaseWakeLock()
34 private PowerManager.WakeLock mWakeLock; field in NoWakeLockPermissionTest40 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "tag"); in setUp()88 mWakeLock.acquire(); in testPowerManagerWakeLockAcquire()104 mWakeLock.acquire(1); in testPowerManagerWakeLockAcquire2()
36 private PowerManager.WakeLock mWakeLock = null; field in MediaFrameworkTest52 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "MediaFrameworkTest"); in onCreate()53 mWakeLock.setReferenceCounted(false); in onCreate()60 mWakeLock.acquire(); in onResume()66 mWakeLock.release(); in onPause()
57 private PowerManager.WakeLock mWakeLock; field in SensorCtsTestActivity71 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SensorCtsTests"); in activitySetUp()82 mWakeLock.acquire(); in activitySetUp()96 if (mWakeLock.isHeld()) { in activityCleanUp()97 mWakeLock.release(); in activityCleanUp()
105 private WakeLock mWakeLock; field in PassFailButtons.Activity116 mWakeLock = ((PowerManager) getSystemService(Context.POWER_SERVICE)) in onResume()118 mWakeLock.acquire(); in onResume()126 mWakeLock.release(); in onPause()
61 private PowerManager.WakeLock mWakeLock; field in SensorTest73 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in setUp()87 mWakeLock.acquire(); in setUp()106 if (mWakeLock != null && mWakeLock.isHeld()) { in tearDown()107 mWakeLock.release(); in tearDown()
34 private PowerManager.WakeLock mWakeLock; field in SensorManagerStaticTest40 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in setUp()42 mWakeLock.acquire(); in setUp()47 if (mWakeLock != null && mWakeLock.isHeld()) { in tearDown()48 mWakeLock.release(); in tearDown()
78 private WakeLock mWakeLock; field in PhotoCaptureActivity190 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG); in onResume()191 mWakeLock.acquire(); in onResume()239 mWakeLock.release(); in onPause()