Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java148 private PowerManager.WakeLock mWakeLock = null; field in BluetoothPbapService
429 if (mWakeLock != null) { in closeService()
430 mWakeLock.release(); in closeService()
431 mWakeLock = null; in closeService()
453 if (mWakeLock == null) { in startObexServerSession()
455 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in startObexServerSession()
457 mWakeLock.setReferenceCounted(false); in startObexServerSession()
458 mWakeLock.acquire(); in startObexServerSession()
494 if (mWakeLock != null) { in stopObexServerSession()
495 mWakeLock.release(); in stopObexServerSession()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java116 private PowerManager.WakeLock mWakeLock = null; field in BluetoothMapService
261 if (mWakeLock != null) { in closeService()
262 mWakeLock.release(); in closeService()
263 mWakeLock = null; in closeService()
290 if (mWakeLock == null) { in startObexServerSession()
292 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in startObexServerSession()
294 mWakeLock.setReferenceCounted(false); in startObexServerSession()
295 mWakeLock.acquire(); in startObexServerSession()
329 if (mWakeLock != null) { in stopObexServerSession()
330 mWakeLock.release(); in stopObexServerSession()
[all …]
/packages/apps/Settings/src/com/android/settings/
DCryptKeeper.java114 PowerManager.WakeLock mWakeLock; field in CryptKeeper
325 mWakeLock = retained.wakelock; in onCreate()
381 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock); in onRetainNonConfigurationInstance()
383 mWakeLock = null; in onRetainNonConfigurationInstance()
391 if (mWakeLock != null) { in onDestroy()
393 mWakeLock.release(); in onDestroy()
394 mWakeLock = null; in onDestroy()
406 if (mWakeLock == null) { in encryptionProgressInit()
409 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG); in encryptionProgressInit()
410 mWakeLock.acquire(); in encryptionProgressInit()
[all …]
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackPresenter.java170 private PowerManager.WakeLock mWakeLock; field in VoicemailPlaybackPresenter
183 mWakeLock = wakeLock; in VoicemailPlaybackPresenter()
378 if (mWakeLock.isHeld()) { in onDestroy()
379 mWakeLock.release(); in onDestroy()
475 if (!mWakeLock.isHeld()) { in onPostExecute()
476 mWakeLock.acquire(); in onPostExecute()
515 if (mWakeLock.isHeld()) { in stopPlaybackAtPosition()
516 mWakeLock.release(); in stopPlaybackAtPosition()
650 if (mWakeLock.isHeld()) { in onPause()
651 mWakeLock.release(); in onPause()
/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.java149 private PowerManager.WakeLock mWakeLock; field in TransactionService
509 if (mWakeLock == null) { in createWakeLock()
511 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MMS Connectivity"); in createWakeLock()
512 mWakeLock.setReferenceCounted(false); in createWakeLock()
520 mWakeLock.acquire(); in acquireWakeLock()
525 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock()
527 mWakeLock.release(); in releaseWakeLock()
/packages/apps/Email/src/com/android/email/
DEmailConnectivityManager.java61 private final WakeLock mWakeLock; field in EmailConnectivityManager
77 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); in EmailConnectivityManager()
177 mWakeLock.acquire(); in waitForConnectivity()
199 mWakeLock.release(); in waitForConnectivity()
206 mWakeLock.acquire(); in waitForConnectivity()
212 if (mWakeLock.isHeld()) { in waitForConnectivity()
213 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/services/Telephony/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.java208 private PowerManager.WakeLock mWakeLock; field in PhoneGlobals
430 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, LOG_TAG); in onCreate()
804 if (mWakeLock.isHeld()) { in requestWakeState()
805 mWakeLock.release(); in requestWakeState()
811 mWakeLock.acquire(); in requestWakeState()
819 if (mWakeLock.isHeld()) { in requestWakeState()
820 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/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/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()
92 mWakeLock.release(); in run()
/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/Email/emailsync/src/com/android/emailsync/
DSyncManager.java187 private WakeLock mWakeLock = null; field in SyncManager
995 if (mWakeLock == null) { in acquireWakeLock()
997 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MAIL_SERVICE"); in acquireWakeLock()
998 mWakeLock.acquire(); in acquireWakeLock()
1019 if (mWakeLock != null) { in releaseWakeLock()
1020 mWakeLock.release(); in releaseWakeLock()
1022 mWakeLock = null; in releaseWakeLock()
1617 if (mWakeLock != null) { in shutdown()
1618 mWakeLock.release(); in shutdown()
1619 mWakeLock = null; in shutdown()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.java61 private WakeLock mWakeLock; field in StopwatchFragment
1034 if (mWakeLock == null) { in acquireWakeLock()
1037 mWakeLock = pm.newWakeLock( in acquireWakeLock()
1039 mWakeLock.setReferenceCounted(false); in acquireWakeLock()
1041 mWakeLock.acquire(); in acquireWakeLock()
1045 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock()
1046 mWakeLock.release(); in releaseWakeLock()
/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.java162 private WakeLock mWakeLock; field in Controller
527 if (mWakeLock != null && mWakeLock.isHeld()) { in startHandler()
528 mWakeLock.release(); in startHandler()
638 if (mWakeLock == null) { in onPause()
641 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Browser"); in onPause()
643 mWakeLock.acquire(); in onPause()
710 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock()
712 mWakeLock.release(); in releaseWakeLock()
/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()
683 mWakeLock.acquire(); in broadcastConnectionState()
752 mWakeLock.release(); in handleMessage()
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java143 private WakeLock mWakeLock; field in MediaPlaybackService
222 mWakeLock.release();
360 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, this.getClass().getName()); in onCreate()
361 mWakeLock.setReferenceCounted(false); in onCreate()
400 mWakeLock.release(); in onDestroy()
1974 mWakeLock.acquire(30000);