Searched defs:mWakeLock (Results 1 - 23 of 23) sorted by relevance

/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/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/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/
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))
116 mWakeLock.acquire();
130 if (mWakeLock != null) {
131 mWakeLock.release();
132 mWakeLock = null;
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
H A DImportTask.java46 private PowerManager.WakeLock mWakeLock; field in class:ImportTask
54 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, WAKELOCK_LABEL);
63 mWakeLock.acquire();
92 mWakeLock.release();
/packages/apps/Email/src/com/android/email/
H A DEmailConnectivityManager.java61 private final WakeLock mWakeLock; field in class:EmailConnectivityManager
77 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name);
177 mWakeLock.acquire();
199 mWakeLock.release();
206 mWakeLock.acquire();
212 if (mWakeLock.isHeld()) {
213 mWakeLock.release();
/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/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();
308 if (mWakeLock.isHeld()) {
310 mWakeLock.release();
587 if (mWakeLock.isHeld()) {
588 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.java149 private PowerManager.WakeLock mWakeLock; field in class:TransactionService
509 if (mWakeLock == null) {
511 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MMS Connectivity");
512 mWakeLock.setReferenceCounted(false);
520 mWakeLock.acquire();
525 if (mWakeLock != null && mWakeLock.isHeld()) {
527 mWakeLock.release();
/packages/services/Telephony/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.java208 private PowerManager.WakeLock mWakeLock; field in class:PhoneGlobals
430 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, LOG_TAG);
803 if (mWakeLock.isHeld()) {
804 mWakeLock.release();
810 mWakeLock.acquire();
818 if (mWakeLock.isHeld()) {
819 mWakeLock.release();
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpStateMachine.java77 private final WakeLock mWakeLock; field in class:A2dpStateMachine
136 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "BluetoothA2dpService");
681 mWakeLock.acquire();
750 mWakeLock.release();
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapService.java110 private PowerManager.WakeLock mWakeLock = null; field in class:BluetoothMapService
255 if (mWakeLock != null) {
256 mWakeLock.release();
257 mWakeLock = null;
284 if (mWakeLock == null) {
286 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
288 mWakeLock.setReferenceCounted(false);
289 mWakeLock.acquire();
314 if (mWakeLock != null) {
315 mWakeLock
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapService.java143 private PowerManager.WakeLock mWakeLock = null; field in class:BluetoothPbapService
424 if (mWakeLock != null) {
425 mWakeLock.release();
426 mWakeLock = null;
448 if (mWakeLock == null) {
450 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
452 mWakeLock.setReferenceCounted(false);
453 mWakeLock.acquire();
482 if (mWakeLock != null) {
483 mWakeLock
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DCryptKeeper.java114 PowerManager.WakeLock mWakeLock; field in class:CryptKeeper
325 mWakeLock = retained.wakelock;
377 * mWakeLock so the subsequent call to onDestroy does not release it.
381 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock);
383 mWakeLock = null;
391 if (mWakeLock != null) {
393 mWakeLock.release();
394 mWakeLock = null;
406 if (mWakeLock == null) {
409 mWakeLock
[all...]
/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/ContactsCommon/src/com/android/contacts/common/vcard/
H A DImportVCardActivity.java220 private PowerManager.WakeLock mWakeLock; field in class:ImportVCardActivity.VCardCacheThread
232 mWakeLock = powerManager.newWakeLock(
240 if (mWakeLock != null && mWakeLock.isHeld()) {
242 mWakeLock.release();
254 mWakeLock.acquire();
370 mWakeLock.release();
613 private PowerManager.WakeLock mWakeLock; field in class:ImportVCardActivity.VCardScanThread
625 mWakeLock = powerManager.newWakeLock(
634 mWakeLock
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DStopwatchFragment.java61 private WakeLock mWakeLock; field in class:StopwatchFragment
1034 if (mWakeLock == null) {
1037 mWakeLock = pm.newWakeLock(
1039 mWakeLock.setReferenceCounted(false);
1041 mWakeLock.acquire();
1045 if (mWakeLock != null && mWakeLock.isHeld()) {
1046 mWakeLock.release();
/packages/apps/Dialer/src/com/android/dialer/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/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/Email/emailsync/src/com/android/emailsync/
H A DSyncManager.java187 private WakeLock mWakeLock = null; field in class:SyncManager
995 if (mWakeLock == null) {
997 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MAIL_SERVICE");
998 mWakeLock.acquire();
1019 if (mWakeLock != null) {
1020 mWakeLock.release();
1022 mWakeLock = null;
1617 if (mWakeLock != null) {
1618 mWakeLock.release();
1619 mWakeLock
[all...]
/packages/apps/Music/src/com/android/music/
H A DMediaPlaybackService.java143 private WakeLock mWakeLock; field in class:MediaPlaybackService
222 mWakeLock.release();
360 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, this.getClass().getName());
361 mWakeLock.setReferenceCounted(false);
400 mWakeLock.release();
1974 mWakeLock.acquire(30000);
/packages/apps/Browser/src/com/android/browser/
H A DController.java162 private WakeLock mWakeLock; field in class:Controller
527 if (mWakeLock != null && mWakeLock.isHeld()) {
528 mWakeLock.release();
638 if (mWakeLock == null) {
641 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Browser");
643 mWakeLock.acquire();
710 if (mWakeLock != null && mWakeLock.isHeld()) {
712 mWakeLock
[all...]

Completed in 416 milliseconds