/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomWakeLock.java | 29 private PowerManager.WakeLock mWakeLock; field in TelecomWakeLock.WakeLockAdapter 32 mWakeLock = wakeLock; in WakeLockAdapter() 36 mWakeLock.acquire(); in acquire() 40 return mWakeLock.isHeld(); in isHeld() 44 mWakeLock.release(flags); in release() 48 mWakeLock.setReferenceCounted(isReferencedCounted); in setReferenceCounted() 58 private WakeLockAdapter mWakeLock; field in TelecomWakeLock 64 mWakeLock = getWakeLockFromPowerManager(); in TelecomWakeLock() 73 mWakeLock = wakeLockAdapter; in TelecomWakeLock() 87 return mWakeLock != null && mWakeLock.isHeld(); in isHeld() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | WakeLockHelper.java | 41 private PowerManager.WakeLock mWakeLock; field in WakeLockHelper 53 if (mWakeLock == null) { in acquire() 59 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mWakeLockId); in acquire() 65 mWakeLock.acquire(); in acquire() 74 return (respectWakeLock && mWakeLock.isHeld()); in isHeld() 92 + " opcode: " + opcode + " sWakeLock: " + mWakeLock + " isHeld: " in ensure() 93 + ((mWakeLock == null) ? "(null)" : mWakeLock.isHeld())); in ensure() 110 mWakeLock.release(); in release() 113 + intent.getAction() + " opcode: " + opcode + " sWakeLock: " + mWakeLock in release() 114 + " isHeld: " + ((mWakeLock == null) ? "(null)" : mWakeLock.isHeld())); in release()
|
D | NotificationPlayer.java | 243 private PowerManager.WakeLock mWakeLock; field in NotificationPlayer 340 if (mWakeLock != null || mThread != null) { in setUsesWakeLock() 343 throw new RuntimeException("assertion failed mWakeLock=" + mWakeLock in setUsesWakeLock() 348 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag); in setUsesWakeLock() 352 if (mWakeLock != null) { in acquireWakeLock() 353 mWakeLock.acquire(); in acquireWakeLock() 358 if (mWakeLock != null) { in releaseWakeLock() 359 mWakeLock.release(); in releaseWakeLock()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapService.java | 150 private PowerManager.WakeLock mWakeLock = null; field in BluetoothPbapService 462 if (mWakeLock != null) { in closeService() 463 mWakeLock.release(); in closeService() 464 mWakeLock = null; in closeService() 486 if (mWakeLock == null) { in startObexServerSession() 488 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in startObexServerSession() 490 mWakeLock.setReferenceCounted(false); in startObexServerSession() 491 mWakeLock.acquire(); in startObexServerSession() 527 if (mWakeLock != null) { in stopObexServerSession() 528 mWakeLock.release(); in stopObexServerSession() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapService.java | 80 private PowerManager.WakeLock mWakeLock = null; field in SapService 236 if (mWakeLock != null) { in closeService() 239 mWakeLock.release(); in closeService() 240 mWakeLock = null; in closeService() 252 if (mWakeLock == null) { in startSapServerSession() 254 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in startSapServerSession() 256 mWakeLock.setReferenceCounted(false); in startSapServerSession() 257 mWakeLock.acquire(); in startSapServerSession() 288 if (mWakeLock != null) { in stopSapServerSession() 289 mWakeLock.release(); in stopSapServerSession() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | CryptKeeper.java | 124 PowerManager.WakeLock mWakeLock; field in CryptKeeper 382 if (mWakeLock.isHeld()) { in notifyUser() 386 mWakeLock.release(); in notifyUser() 440 mWakeLock = retained.wakelock; in onCreate() 557 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock); in onRetainNonConfigurationInstance() 559 mWakeLock = null; in onRetainNonConfigurationInstance() 567 if (mWakeLock != null) { in onDestroy() 569 mWakeLock.release(); in onDestroy() 570 mWakeLock = null; in onDestroy() 582 if (mWakeLock == null) { in encryptionProgressInit() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapService.java | 114 private PowerManager.WakeLock mWakeLock = null; field in BluetoothMapService 191 if (mWakeLock != null) { in closeService() 192 mWakeLock.release(); in closeService() 194 mWakeLock = null; in closeService() 240 if (mWakeLock == null) { in startObexServerSessions() 242 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in startObexServerSessions() 244 mWakeLock.setReferenceCounted(false); in startObexServerSessions() 245 mWakeLock.acquire(); in startObexServerSessions() 329 if (mWakeLock != null && lastMasInst) { in stopObexServerSessions() 332 mWakeLock.release(); in stopObexServerSessions() [all …]
|
/packages/apps/Email/provider_src/com/android/email/ |
D | EmailConnectivityManager.java | 60 private final WakeLock mWakeLock; field in EmailConnectivityManager 76 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); in EmailConnectivityManager() 176 mWakeLock.acquire(); in waitForConnectivity() 198 mWakeLock.release(); in waitForConnectivity() 205 mWakeLock.acquire(); in waitForConnectivity() 211 if (mWakeLock.isHeld()) { in waitForConnectivity() 212 mWakeLock.release(); in waitForConnectivity()
|
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/ |
D | IntegrationTestUtils.java | 51 @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/ |
D | CalendarReceiver.java | 40 private PowerManager.WakeLock mWakeLock; field in CalendarReceiver 44 if (mWakeLock == null) { in onReceive() 46 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "CalendarReceiver_Provider"); in onReceive() 47 mWakeLock.setReferenceCounted(true); in onReceive() 49 mWakeLock.acquire(); in onReceive() 61 mWakeLock.release(); in onReceive()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchFragment.java | 86 private PowerManager.WakeLock mWakeLock; field in StopwatchFragment 429 if (mWakeLock == null) { in acquireWakeLock() 431 mWakeLock = pm.newWakeLock(SCREEN_BRIGHT_WAKE_LOCK | ON_AFTER_RELEASE, TAG); in acquireWakeLock() 432 mWakeLock.setReferenceCounted(false); in acquireWakeLock() 434 mWakeLock.acquire(); in acquireWakeLock() 438 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock() 439 mWakeLock.release(); in releaseWakeLock()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallerInfoCache.java | 90 private PowerManager.WakeLock mWakeLock; field in CallerInfoCache.CacheAsyncTask 100 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in acquireWakeLockAndExecute() 101 mWakeLock.acquire(); in acquireWakeLockAndExecute() 127 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock() 128 mWakeLock.release(); in releaseWakeLock()
|
D | PhoneGlobals.java | 158 private PowerManager.WakeLock mWakeLock; field in PhoneGlobals 307 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, LOG_TAG); in onCreate() 531 if (mWakeLock.isHeld()) { in requestWakeState() 532 mWakeLock.release(); in requestWakeState() 538 mWakeLock.acquire(); in requestWakeState() 546 if (mWakeLock.isHeld()) { in requestWakeState() 547 mWakeLock.release(); in requestWakeState()
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
D | FullScreenActivity.java | 37 private PowerManager.WakeLock mWakeLock; field in FullScreenActivity 46 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Incoming Call"); in onCreate() 47 mWakeLock.acquire(15 * 1000); in onCreate() 73 if (mWakeLock.isHeld()) { in dismiss() 74 mWakeLock.release(); in dismiss()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WriteWifiConfigToNfcDialog.java | 62 private final PowerManager.WakeLock mWakeLock; field in WriteWifiConfigToNfcDialog 83 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE)) in WriteWifiConfigToNfcDialog() 95 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE)) in WriteWifiConfigToNfcDialog() 135 mWakeLock.acquire(); in onClick() 227 if (mWakeLock.isHeld()) { in dismiss() 228 mWakeLock.release(); in dismiss()
|
/packages/apps/Camera2/src/com/android/camera/processing/ |
D | ProcessingService.java | 90 private WakeLock mWakeLock; field in ProcessingService 109 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG.toString()); in onCreate() 110 mWakeLock.acquire(); in onCreate() 127 if (mWakeLock.isHeld()) { in onDestroy() 128 mWakeLock.release(); in onDestroy()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | WakeLockHoldingProgressListener.java | 28 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/data/ |
D | ImportTask.java | 56 private PowerManager.WakeLock mWakeLock; field in ImportTask 64 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, WAKELOCK_LABEL); in ImportTask() 73 mWakeLock.acquire(); in run() 102 mWakeLock.release(); in run()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
D | ImportVCardActivity.java | 179 private PowerManager.WakeLock mWakeLock; field in ImportVCardActivity.VCardCacheThread 193 mWakeLock = powerManager.newWakeLock( in VCardCacheThread() 201 if (mWakeLock != null && mWakeLock.isHeld()) { in finalize() 203 mWakeLock.release(); in finalize() 215 mWakeLock.acquire(); in run() 286 mWakeLock.release(); in run()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageInstallerService.java | 563 private PowerManager.WakeLock mWakeLock; field in WearPackageInstallerService.PackageInstallObserver 569 mWakeLock = wakeLock; in PackageInstallObserver() 600 finishService(mWakeLock, mStartId); in packageInstalled() 606 private PowerManager.WakeLock mWakeLock; field in WearPackageInstallerService.PackageDeleteObserver 610 mWakeLock = wakeLock; in PackageDeleteObserver() 623 finishService(mWakeLock, mStartId); in packageDeleted()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaScannerService.java | 48 private PowerManager.WakeLock mWakeLock; field in MediaScannerService 64 mWakeLock.acquire(); in scan() 89 mWakeLock.release(); in scan() 96 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in onCreate()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 206 private PowerManager.WakeLock mWakeLock; field in AdapterService 662 if (mWakeLock != null) { in cleanup() 663 if (mWakeLock.isHeld()) in cleanup() 664 mWakeLock.release(); in cleanup() 665 mWakeLock = null; in cleanup() 2299 if (mWakeLock == null) { in acquireWakeLock() 2301 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, lockName); in acquireWakeLock() 2304 if (!mWakeLock.isHeld()) in acquireWakeLock() 2305 mWakeLock.acquire(); in acquireWakeLock() 2316 if (mWakeLock == null) { in releaseWakeLock() [all …]
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
D | SoundRecorder.java | 211 WakeLock mWakeLock; field in SoundRecorder 278 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, in onCreate() 825 mWakeLock.acquire(); // we don't want to go to sleep while recording or playing in onStateChanged() 827 if (mWakeLock.isHeld()) in onStateChanged() 828 mWakeLock.release(); in onStateChanged()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachine.java | 77 private final WakeLock mWakeLock; field in A2dpStateMachine 132 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "BluetoothA2dpService"); in A2dpStateMachine() 718 mWakeLock.acquire(); in broadcastConnectionState() 787 mWakeLock.release(); in handleMessage()
|
/packages/apps/Music/src/com/android/music/ |
D | MediaPlaybackService.java | 143 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() 1976 mWakeLock.acquire(30000);
|