Home
last modified time | relevance | path

Searched refs:sWakeLock (Results 1 – 4 of 4) sorted by relevance

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
H A DKeepAwakeAnimationListener.java31 static WakeLock sWakeLock; field in KeepAwakeAnimationListener
35 if (sWakeLock == null) { in KeepAwakeAnimationListener()
36 sWakeLock = WakeLock.createPartial(context, "animation"); in KeepAwakeAnimationListener()
67 sWakeLock.acquire(TAG); in onStart()
72 sWakeLock.release(TAG); in onEnd()
/aosp12/packages/apps/Messaging/src/android/support/v7/mms/
H A DMmsService.java58 private static volatile PowerManager.WakeLock sWakeLock = null; field in MmsService
173 if (sWakeLock == null) { in acquireWakeLock()
176 sWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_ID); in acquireWakeLock()
178 sWakeLock.acquire(); in acquireWakeLock()
188 if (sWakeLock != null) { in releaseWakeLock()
189 sWakeLock.release(); in releaseWakeLock()
205 wakeLockHeld = sWakeLock != null && sWakeLock.isHeld(); in verifyWakeLockNotHeld()
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DSafeAsyncTask.java45 private static WakeLockHelper sWakeLock = new WakeLockHelper(WAKELOCK_ID); field in SafeAsyncTask
161 sWakeLock.acquire(Factory.get().getApplicationContext(), intent, WAKELOCK_OP); in executeOnThreadPool()
168 sWakeLock.release(intent, WAKELOCK_OP); in executeOnThreadPool()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
H A DKeepAwakeAnimationListenerTest.java48 KeepAwakeAnimationListener.sWakeLock = mWakeLock; in setup()