/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | CalendarReceiver.java | 41 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 D | IntegrationTestUtils.java | 51 @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 D | EmailConnectivityManager.java | 59 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 D | NotificationPlayer.java | 238 private PowerManager.WakeLock mWakeLock; field in class:NotificationPlayer 330 if (mWakeLock != null || mThread != null) { 333 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock 337 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag); 341 if (mWakeLock != null) { 342 mWakeLock.acquire(); 347 if (mWakeLock != null) { 348 mWakeLock.release();
|
H A D | TransactionService.java | 138 private PowerManager.WakeLock mWakeLock; field in class:TransactionService 469 if (mWakeLock == null) { 471 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MMS Connectivity"); 472 mWakeLock.setReferenceCounted(false); 479 mWakeLock.acquire(); 484 if (mWakeLock != null && mWakeLock.isHeld()) { 485 mWakeLock.release();
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | CallerInfoCache.java | 96 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 D | PhoneApp.java | 237 private PowerManager.WakeLock mWakeLock; field in class:PhoneApp 512 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK 1074 if (mWakeLock.isHeld()) { 1075 mWakeLock.release(); 1081 mWakeLock.acquire(); 1089 if (mWakeLock.isHeld()) { 1090 mWakeLock.release();
|
/packages/apps/Contacts/src/com/android/contacts/voicemail/ |
H A D | VoicemailPlaybackPresenter.java | 171 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 D | CryptKeeper.java | 110 PowerManager.WakeLock mWakeLock; field in class:CryptKeeper 316 mWakeLock = retained.wakelock; 368 * mWakeLock so the subsequent call to onDestroy does not release it. 372 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock); 374 mWakeLock = null; 382 if (mWakeLock != null) { 384 mWakeLock.release(); 385 mWakeLock = null; 397 if (mWakeLock == null) { 400 mWakeLock [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
H A D | BluetoothPbapService.java | 140 private PowerManager.WakeLock mWakeLock = null; field in class:BluetoothPbapService 301 if (mWakeLock != null) { 302 mWakeLock.release(); 303 mWakeLock = null; 423 if (mWakeLock == null) { 425 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 427 mWakeLock.setReferenceCounted(false); 428 mWakeLock.acquire(); 457 if (mWakeLock != null) { 458 mWakeLock [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
H A D | CellBroadcastAlertService.java | 57 private PowerManager.WakeLock mWakeLock; field in class:CellBroadcastAlertService 161 if (mWakeLock == null) { 166 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK 169 mWakeLock.acquire(timeout);
|
H A D | CellBroadcastAlertAudio.java | 71 private PowerManager.WakeLock mWakeLock; field in class:CellBroadcastAlertAudio 193 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); 194 mWakeLock.acquire(); 216 mWakeLock.release();
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MediaScannerService.java | 55 private PowerManager.WakeLock mWakeLock; field in class:MediaScannerService 89 mWakeLock.acquire(); 112 mWakeLock.release(); 119 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
H A D | ImportVCardActivity.java | 222 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 D | BluetoothOppObexServerSession.java | 94 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/VoiceDialer/src/com/android/voicedialer/ |
H A D | VoiceDialerActivity.java | 182 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/SoundRecorder/src/com/android/soundrecorder/ |
H A D | SoundRecorder.java | 210 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 D | Controller.java | 162 private WakeLock mWakeLock; field in class:Controller 531 if (mWakeLock != null && mWakeLock.isHeld()) { 532 mWakeLock.release(); 642 if (mWakeLock == null) { 645 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Browser"); 647 mWakeLock.acquire(); 714 if (mWakeLock != null && mWakeLock.isHeld()) { 716 mWakeLock [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
H A D | ExchangeService.java | 202 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 D | MediaPlaybackService.java | 143 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(); 1950 mWakeLock.acquire(30000);
|
/packages/apps/Nfc/src/com/android/nfc/ |
H A D | NfcService.java | 204 private PowerManager.WakeLock mWakeLock; field in class:NfcService 336 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "NfcService"); 1813 mWakeLock.acquire(); 1817 mWakeLock.release();
|