Home
last modified time | relevance | path

Searched refs:mWakeLock (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Settings/src/com/android/settings/
DCryptKeeper.java113 PowerManager.WakeLock mWakeLock; field in CryptKeeper
323 mWakeLock = retained.wakelock; in onCreate()
379 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock); in onRetainNonConfigurationInstance()
381 mWakeLock = null; in onRetainNonConfigurationInstance()
389 if (mWakeLock != null) { in onDestroy()
391 mWakeLock.release(); in onDestroy()
392 mWakeLock = null; in onDestroy()
404 if (mWakeLock == null) { in encryptionProgressInit()
407 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG); in encryptionProgressInit()
408 mWakeLock.acquire(); in encryptionProgressInit()
[all …]
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackPresenter.java171 private PowerManager.WakeLock mWakeLock; field in VoicemailPlaybackPresenter
184 mWakeLock = wakeLock; in VoicemailPlaybackPresenter()
374 if (mWakeLock.isHeld()) { in onDestroy()
375 mWakeLock.release(); in onDestroy()
465 if (!mWakeLock.isHeld()) { in resetPrepareStartPlaying()
466 mWakeLock.acquire(); in resetPrepareStartPlaying()
493 if (mWakeLock.isHeld()) { in stopPlaybackAtPosition()
494 mWakeLock.release(); in stopPlaybackAtPosition()
626 if (mWakeLock.isHeld()) { in onPause()
627 mWakeLock.release(); in onPause()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java143 private PowerManager.WakeLock mWakeLock = null; field in BluetoothPbapService
418 if (mWakeLock != null) { in closeService()
419 mWakeLock.release(); in closeService()
420 mWakeLock = null; in closeService()
442 if (mWakeLock == null) { in startObexServerSession()
444 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in startObexServerSession()
446 mWakeLock.setReferenceCounted(false); in startObexServerSession()
447 mWakeLock.acquire(); in startObexServerSession()
476 if (mWakeLock != null) { in stopObexServerSession()
477 mWakeLock.release(); in stopObexServerSession()
[all …]
/packages/apps/Mms/src/com/android/mms/transaction/
DNotificationPlayer.java237 private PowerManager.WakeLock mWakeLock; field in NotificationPlayer
329 if (mWakeLock != null || mThread != null) { in setUsesWakeLock()
332 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock in setUsesWakeLock()
336 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag); in setUsesWakeLock()
340 if (mWakeLock != null) { in acquireWakeLock()
341 mWakeLock.acquire(); in acquireWakeLock()
346 if (mWakeLock != null) { in releaseWakeLock()
347 mWakeLock.release(); in releaseWakeLock()
DTransactionService.java144 private PowerManager.WakeLock mWakeLock; field in TransactionService
500 if (mWakeLock == null) { in createWakeLock()
502 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MMS Connectivity"); in createWakeLock()
503 mWakeLock.setReferenceCounted(false); in createWakeLock()
510 mWakeLock.acquire(); in acquireWakeLock()
515 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock()
516 mWakeLock.release(); in releaseWakeLock()
/packages/apps/Email/src/com/android/email/
DEmailConnectivityManager.java59 private final WakeLock mWakeLock; field in EmailConnectivityManager
75 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); in EmailConnectivityManager()
175 mWakeLock.acquire(); in waitForConnectivity()
197 mWakeLock.release(); in waitForConnectivity()
204 mWakeLock.acquire(); in waitForConnectivity()
210 if (mWakeLock.isHeld()) { in waitForConnectivity()
211 mWakeLock.release(); in waitForConnectivity()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/
DIntegrationTestUtils.java51 @GuardedBy("mLock") private PowerManager.WakeLock mWakeLock; field in IntegrationTestUtils
112 Preconditions.checkState(mWakeLock == null, "mWakeLock was already held");
113 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE))
116 mWakeLock.acquire();
130 if (mWakeLock != null) {
131 mWakeLock.release();
132 mWakeLock = null;
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarReceiver.java41 private PowerManager.WakeLock mWakeLock; field in CalendarReceiver
45 if (mWakeLock == null) { in onReceive()
47 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "CalendarReceiver_Provider"); in onReceive()
48 mWakeLock.setReferenceCounted(true); in onReceive()
50 mWakeLock.acquire(); in onReceive()
65 mWakeLock.release(); in onReceive()
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DImportVCardActivity.java220 private PowerManager.WakeLock mWakeLock; field in ImportVCardActivity.VCardCacheThread
232 mWakeLock = powerManager.newWakeLock( in VCardCacheThread()
240 if (mWakeLock != null && mWakeLock.isHeld()) { in finalize()
242 mWakeLock.release(); in finalize()
254 mWakeLock.acquire(); in run()
370 mWakeLock.release(); in run()
613 private PowerManager.WakeLock mWakeLock; field in ImportVCardActivity.VCardScanThread
625 mWakeLock = powerManager.newWakeLock( in VCardScanThread()
634 mWakeLock.acquire(); in run()
641 mWakeLock.release(); in run()
/packages/apps/Phone/src/com/android/phone/
DCallerInfoCache.java96 private PowerManager.WakeLock mWakeLock; field in CallerInfoCache.CacheAsyncTask
106 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in acquireWakeLockAndExecute()
107 mWakeLock.acquire(); in acquireWakeLockAndExecute()
133 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock()
134 mWakeLock.release(); in releaseWakeLock()
DPhoneGlobals.java216 private PowerManager.WakeLock mWakeLock; field in PhoneGlobals
489 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, LOG_TAG); in onCreate()
972 if (mWakeLock.isHeld()) { in requestWakeState()
973 mWakeLock.release(); in requestWakeState()
979 mWakeLock.acquire(); in requestWakeState()
987 if (mWakeLock.isHeld()) { in requestWakeState()
988 mWakeLock.release(); in requestWakeState()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexServerSession.java94 private WakeLock mWakeLock; field in BluetoothOppObexServerSession
104 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP in BluetoothOppObexServerSession()
119 mWakeLock.acquire(); in preStart()
308 if (mWakeLock.isHeld()) { in onPut()
310 mWakeLock.release(); in onPut()
587 if (mWakeLock.isHeld()) { in releaseWakeLocks()
588 mWakeLock.release(); in releaseWakeLocks()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.java56 private WakeLock mWakeLock; field in StopwatchFragment
824 if (mWakeLock == null) { in acquireWakeLock()
827 mWakeLock = pm.newWakeLock( in acquireWakeLock()
829 mWakeLock.setReferenceCounted(false); in acquireWakeLock()
831 mWakeLock.acquire(); in acquireWakeLock()
835 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock()
836 mWakeLock.release(); in releaseWakeLock()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DWakeLockHoldingProgressListener.java28 private PowerManager.WakeLock mWakeLock; field in WakeLockHoldingProgressListener
38 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, label); in WakeLockHoldingProgressListener()
43 mWakeLock.release(); in onProgressComplete()
48 mWakeLock.acquire(); in onProgressStart()
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DVoiceDialerActivity.java182 private WakeLock mWakeLock; field in VoiceDialerActivity
1152 if (mWakeLock == null) { in acquireWakeLock()
1154 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in acquireWakeLock()
1156 mWakeLock.acquire(); in acquireWakeLock()
1161 if (mWakeLock != null) { in releaseWakeLock()
1162 mWakeLock.release(); in releaseWakeLock()
1163 mWakeLock = null; in releaseWakeLock()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DImportTask.java46 private PowerManager.WakeLock mWakeLock; field in ImportTask
54 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, WAKELOCK_LABEL); in ImportTask()
63 mWakeLock.acquire(); in run()
91 mWakeLock.release(); in run()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaScannerService.java55 private PowerManager.WakeLock mWakeLock; field in MediaScannerService
90 mWakeLock.acquire(); in scan()
114 mWakeLock.release(); in scan()
122 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in onCreate()
/packages/apps/Browser/src/com/android/browser/
DController.java164 private WakeLock mWakeLock; field in Controller
533 if (mWakeLock != null && mWakeLock.isHeld()) { in startHandler()
534 mWakeLock.release(); in startHandler()
644 if (mWakeLock == null) { in onPause()
647 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Browser"); in onPause()
649 mWakeLock.acquire(); in onPause()
716 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock()
718 mWakeLock.release(); in releaseWakeLock()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DExchangeService.java202 private WakeLock mWakeLock = null; field in ExchangeService
1424 if (mWakeLock == null) { in acquireWakeLock()
1426 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MAIL_SERVICE"); in acquireWakeLock()
1427 mWakeLock.acquire(); in acquireWakeLock()
1441 if (mWakeLock != null) { in releaseWakeLock()
1442 mWakeLock.release(); in releaseWakeLock()
1444 mWakeLock = null; in releaseWakeLock()
2093 if (mWakeLock != null) { in shutdown()
2094 mWakeLock.release(); in shutdown()
2095 mWakeLock = null; in shutdown()
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DSoundRecorder.java210 WakeLock mWakeLock; field in SoundRecorder
277 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, in onCreate()
827 mWakeLock.acquire(); // we don't want to go to sleep while recording or playing in onStateChanged()
829 if (mWakeLock.isHeld()) in onStateChanged()
830 mWakeLock.release(); in onStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java77 private final WakeLock mWakeLock; field in A2dpStateMachine
136 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "BluetoothA2dpService"); in A2dpStateMachine()
681 mWakeLock.acquire(); in broadcastConnectionState()
750 mWakeLock.release(); in handleMessage()
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java143 private WakeLock mWakeLock; field in MediaPlaybackService
220 mWakeLock.release();
354 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, this.getClass().getName()); in onCreate()
355 mWakeLock.setReferenceCounted(false); in onCreate()
394 mWakeLock.release(); in onDestroy()
1968 mWakeLock.acquire(30000);