Searched refs:mWakeLock (Results 1 - 21 of 21) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DWakeLockHoldingProgressListener.java28 private PowerManager.WakeLock mWakeLock; field in class:WakeLockHoldingProgressListener
38 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, label);
43 mWakeLock.release();
48 mWakeLock.acquire();
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarReceiver.java41 private PowerManager.WakeLock mWakeLock; field in class:CalendarReceiver
45 if (mWakeLock == null) {
47 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "CalendarReceiver_Provider");
48 mWakeLock.setReferenceCounted(true);
50 mWakeLock.acquire();
65 mWakeLock.release();
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DIntegrationTestUtils.java51 @GuardedBy("mLock") private PowerManager.WakeLock mWakeLock; field in class:IntegrationTestUtils
112 Preconditions.checkState(mWakeLock == null, "mWakeLock was already held");
113 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE))
115 mWakeLock.acquire();
129 if (mWakeLock != null) {
130 mWakeLock.release();
131 mWakeLock = null;
/packages/apps/Email/src/com/android/email/
H A DEmailConnectivityManager.java59 private final WakeLock mWakeLock; field in class:EmailConnectivityManager
75 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name);
175 mWakeLock.acquire();
197 mWakeLock.release();
204 mWakeLock.acquire();
210 if (mWakeLock.isHeld()) {
211 mWakeLock.release();
/packages/apps/Mms/src/com/android/mms/transaction/
H A DNotificationPlayer.java237 private PowerManager.WakeLock mWakeLock; field in class:NotificationPlayer
329 if (mWakeLock != null || mThread != null) {
332 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock
336 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
340 if (mWakeLock != null) {
341 mWakeLock.acquire();
346 if (mWakeLock != null) {
347 mWakeLock.release();
H A DTransactionService.java143 private PowerManager.WakeLock mWakeLock; field in class:TransactionService
479 if (mWakeLock == null) {
481 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MMS Connectivity");
482 mWakeLock.setReferenceCounted(false);
489 mWakeLock.acquire();
494 if (mWakeLock != null && mWakeLock.isHeld()) {
495 mWakeLock.release();
/packages/apps/Phone/src/com/android/phone/
H A DCallerInfoCache.java96 private PowerManager.WakeLock mWakeLock; field in class:CallerInfoCache.CacheAsyncTask
106 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG);
107 mWakeLock.acquire();
133 if (mWakeLock != null && mWakeLock.isHeld()) {
134 mWakeLock.release();
H A DPhoneGlobals.java215 private PowerManager.WakeLock mWakeLock; field in class:PhoneGlobals
488 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, LOG_TAG);
969 if (mWakeLock.isHeld()) {
970 mWakeLock.release();
976 mWakeLock.acquire();
984 if (mWakeLock.isHeld()) {
985 mWakeLock.release();
/packages/apps/Contacts/src/com/android/contacts/voicemail/
H A DVoicemailPlaybackPresenter.java171 private PowerManager.WakeLock mWakeLock; field in class:VoicemailPlaybackPresenter
184 mWakeLock = wakeLock;
374 if (mWakeLock.isHeld()) {
375 mWakeLock.release();
465 if (!mWakeLock.isHeld()) {
466 mWakeLock.acquire();
493 if (mWakeLock.isHeld()) {
494 mWakeLock.release();
626 if (mWakeLock.isHeld()) {
627 mWakeLock
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DCryptKeeper.java113 PowerManager.WakeLock mWakeLock; field in class:CryptKeeper
323 mWakeLock = retained.wakelock;
375 * mWakeLock so the subsequent call to onDestroy does not release it.
379 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock);
381 mWakeLock = null;
389 if (mWakeLock != null) {
391 mWakeLock.release();
392 mWakeLock = null;
404 if (mWakeLock == null) {
407 mWakeLock
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapService.java143 private PowerManager.WakeLock mWakeLock = null; field in class:BluetoothPbapService
300 if (mWakeLock != null) {
301 mWakeLock.release();
302 mWakeLock = null;
430 if (mWakeLock == null) {
432 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
434 mWakeLock.setReferenceCounted(false);
435 mWakeLock.acquire();
464 if (mWakeLock != null) {
465 mWakeLock
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaScannerService.java55 private PowerManager.WakeLock mWakeLock; field in class:MediaScannerService
90 mWakeLock.acquire();
114 mWakeLock.release();
122 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DImportVCardActivity.java222 private PowerManager.WakeLock mWakeLock; field in class:ImportVCardActivity.VCardCacheThread
234 mWakeLock = powerManager.newWakeLock(
242 if (mWakeLock != null && mWakeLock.isHeld()) {
244 mWakeLock.release();
256 mWakeLock.acquire();
372 mWakeLock.release();
615 private PowerManager.WakeLock mWakeLock; field in class:ImportVCardActivity.VCardScanThread
627 mWakeLock = powerManager.newWakeLock(
636 mWakeLock
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppObexServerSession.java94 private WakeLock mWakeLock; field in class:BluetoothOppObexServerSession
104 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP
119 mWakeLock.acquire();
307 if (mWakeLock.isHeld()) {
309 mWakeLock.release();
563 if (mWakeLock.isHeld()) {
564 mWakeLock.release();
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DStopwatchFragment.java56 private WakeLock mWakeLock; field in class:StopwatchFragment
811 if (mWakeLock == null) {
814 mWakeLock = pm.newWakeLock(
816 mWakeLock.setReferenceCounted(false);
818 mWakeLock.acquire();
822 if (mWakeLock != null && mWakeLock.isHeld()) {
823 mWakeLock.release();
/packages/apps/VoiceDialer/src/com/android/voicedialer/
H A DVoiceDialerActivity.java182 private WakeLock mWakeLock; field in class:VoiceDialerActivity
1152 if (mWakeLock == null) {
1154 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
1156 mWakeLock.acquire();
1161 if (mWakeLock != null) {
1162 mWakeLock.release();
1163 mWakeLock = null;
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpStateMachine.java78 private final WakeLock mWakeLock; field in class:A2dpStateMachine
137 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "BluetoothA2dpService");
682 mWakeLock.acquire();
755 mWakeLock.release();
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
H A DSoundRecorder.java210 WakeLock mWakeLock; field in class:SoundRecorder
277 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK,
827 mWakeLock.acquire(); // we don't want to go to sleep while recording or playing
829 if (mWakeLock.isHeld())
830 mWakeLock.release();
/packages/apps/Browser/src/com/android/browser/
H A DController.java163 private WakeLock mWakeLock; field in class:Controller
532 if (mWakeLock != null && mWakeLock.isHeld()) {
533 mWakeLock.release();
643 if (mWakeLock == null) {
646 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Browser");
648 mWakeLock.acquire();
715 if (mWakeLock != null && mWakeLock.isHeld()) {
717 mWakeLock
[all...]
/packages/apps/Exchange/exchange2/src/com/android/exchange/
H A DExchangeService.java202 private WakeLock mWakeLock = null; field in class:ExchangeService
1424 if (mWakeLock == null) {
1426 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MAIL_SERVICE");
1427 mWakeLock.acquire();
1441 if (mWakeLock != null) {
1442 mWakeLock.release();
1444 mWakeLock = null;
2093 if (mWakeLock != null) {
2094 mWakeLock.release();
2095 mWakeLock
[all...]
/packages/apps/Music/src/com/android/music/
H A DMediaPlaybackService.java143 private WakeLock mWakeLock; field in class:MediaPlaybackService
220 mWakeLock.release();
354 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, this.getClass().getName());
355 mWakeLock.setReferenceCounted(false);
394 mWakeLock.release();
1968 mWakeLock.acquire(30000);

Completed in 659 milliseconds