/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomWakeLock.java | 30 private PowerManager.WakeLock mWakeLock; field in TelecomWakeLock.WakeLockAdapter 33 mWakeLock = wakeLock; in WakeLockAdapter() 37 mWakeLock.acquire(); in acquire() 41 return mWakeLock.isHeld(); in isHeld() 45 mWakeLock.release(flags); in release() 49 mWakeLock.setReferenceCounted(isReferencedCounted); in setReferenceCounted() 59 private WakeLockAdapter mWakeLock; field in TelecomWakeLock 65 mWakeLock = getWakeLockFromPowerManager(); in TelecomWakeLock() 74 mWakeLock = wakeLockAdapter; in TelecomWakeLock() 88 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/sap/ |
D | SapService.java | 78 private PowerManager.WakeLock mWakeLock = null; field in SapService 247 if (mWakeLock != null) { in closeService() 250 mWakeLock.release(); in closeService() 251 mWakeLock = null; in closeService() 267 if (mWakeLock == null) { in startSapServerSession() 269 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "StartingSapTransaction"); in startSapServerSession() 270 mWakeLock.setReferenceCounted(false); in startSapServerSession() 271 mWakeLock.acquire(); in startSapServerSession() 306 if (mWakeLock != null) { in stopSapServerSession() 307 mWakeLock.release(); in stopSapServerSession() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapService.java | 135 private PowerManager.WakeLock mWakeLock; field in BluetoothPbapService 277 if (mWakeLock != null) { in closeService() 278 mWakeLock.release(); in closeService() 279 mWakeLock = null; in closeService() 370 if (mWakeLock == null) { in handleMessage() 372 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleMessage() 374 mWakeLock.setReferenceCounted(false); in handleMessage() 375 mWakeLock.acquire(); in handleMessage() 384 if (mWakeLock != null) { in handleMessage() 385 mWakeLock.release(); in handleMessage() [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/Contacts/tests/src/com/android/contacts/test/ |
D | IntegrationTestUtils.java | 47 @GuardedBy("mLock") private PowerManager.WakeLock mWakeLock; field in IntegrationTestUtils 108 Preconditions.checkState(mWakeLock == null, "mWakeLock was already held"); 109 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE)) 112 mWakeLock.acquire(); 126 if (mWakeLock != null) { 127 mWakeLock.release(); 128 mWakeLock = null;
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarReceiver.java | 45 private PowerManager.WakeLock mWakeLock; field in CalendarReceiver 59 if (mWakeLock == null) { in onReceive() 61 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "CalendarReceiver_Provider"); in onReceive() 62 mWakeLock.setReferenceCounted(true); in onReceive() 64 mWakeLock.acquire(); in onReceive() 73 mWakeLock.release(); in onReceive()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | FileOperationService.java | 134 private PowerManager.WakeLock mWakeLock; // the wake lock, if held. field in FileOperationService 234 if (mWakeLock == null) { in handleOperation() 235 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in handleOperation() 260 mWakeLock.acquire(); in handleOperation() 321 mWakeLock.release(); in deleteJob() 322 if (!mWakeLock.isHeld()) { in deleteJob() 323 mWakeLock = null; in deleteJob() 342 assert(mWakeLock == null); in shutdown() 358 return mWakeLock != null && mWakeLock.isHeld(); in holdsWakeLock()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | CryptKeeper.java | 124 PowerManager.WakeLock mWakeLock; field in CryptKeeper 381 if (mWakeLock.isHeld()) { in notifyUser() 385 mWakeLock.release(); in notifyUser() 439 mWakeLock = retained.wakelock; in onCreate() 556 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock); in onRetainNonConfigurationInstance() 558 mWakeLock = null; in onRetainNonConfigurationInstance() 566 if (mWakeLock != null) { in onDestroy() 568 mWakeLock.release(); in onDestroy() 569 mWakeLock = null; in onDestroy() 581 if (mWakeLock == null) { in encryptionProgressInit() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | CryptKeeper.java | 124 PowerManager.WakeLock mWakeLock; field in CryptKeeper 381 if (mWakeLock.isHeld()) { in notifyUser() 385 mWakeLock.release(); in notifyUser() 439 mWakeLock = retained.wakelock; in onCreate() 556 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock); in onRetainNonConfigurationInstance() 558 mWakeLock = null; in onRetainNonConfigurationInstance() 566 if (mWakeLock != null) { in onDestroy() 568 mWakeLock.release(); in onDestroy() 569 mWakeLock = null; in onDestroy() 581 if (mWakeLock == null) { in encryptionProgressInit() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapService.java | 103 private PowerManager.WakeLock mWakeLock = null; field in BluetoothMapService 173 if (mWakeLock != null) { in closeService() 174 mWakeLock.release(); in closeService() 178 mWakeLock = null; in closeService() 230 if (mWakeLock == null) { in startObexServerSessions() 232 mWakeLock = in startObexServerSessions() 234 mWakeLock.setReferenceCounted(false); in startObexServerSessions() 235 mWakeLock.acquire(); in startObexServerSessions() 325 if (mWakeLock != null && lastMasInst) { in stopObexServerSessions() 328 mWakeLock.release(); in stopObexServerSessions() [all …]
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | PMCMainActivity.java | 81 private PowerManager.WakeLock mWakeLock; field in PMCMainActivity 332 if (mWakeLock == null) { in turnScreenOn() 334 mWakeLock = pm.newWakeLock( in turnScreenOn() 337 if (mWakeLock != null && !mWakeLock.isHeld()) { in turnScreenOn() 339 mWakeLock.acquire(); in turnScreenOn() 344 if (mWakeLock != null && mWakeLock.isHeld()) { in turnScreenOff() 346 mWakeLock.release(); in turnScreenOff()
|
D | WifiConnScanReceiver.java | 24 private PowerManager.WakeLock mWakeLock; field in WifiConnScanReceiver 50 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "WIFITEST"); in onReceive() 52 mWakeLock.acquire(); in onReceive() 118 mWakeLock.release(); in onCancelled() 135 mWakeLock.release(); in onPostExecute()
|
D | WifiGScanReceiver.java | 27 private PowerManager.WakeLock mWakeLock; field in WifiGScanReceiver 57 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "WIFITEST"); in onReceive() 59 mWakeLock.acquire(); in onReceive() 124 mWakeLock.release(); in onCancelled() 140 mWakeLock.release(); in onPostExecute()
|
D | WifiDownloadReceiver.java | 29 private PowerManager.WakeLock mWakeLock; field in WifiDownloadReceiver 58 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "WIFITEST"); in onReceive() 60 mWakeLock.acquire(); in onReceive() 141 mWakeLock.release(); in onCancelled() 158 mWakeLock.release(); in onPostExecute()
|
D | IperfClient.java | 42 private PowerManager.WakeLock mWakeLock; field in IperfClient 84 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "WIFITEST"); in startClient() 86 mWakeLock.acquire(); in startClient() 109 mWakeLock.release(); in stopClient()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallerInfoCache.java | 86 private PowerManager.WakeLock mWakeLock; field in CallerInfoCache.CacheAsyncTask 96 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG); in acquireWakeLockAndExecute() 97 mWakeLock.acquire(); in acquireWakeLockAndExecute() 123 if (mWakeLock != null && mWakeLock.isHeld()) { in releaseWakeLock() 124 mWakeLock.release(); in releaseWakeLock()
|
/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/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/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/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaService.java | 56 private PowerManager.WakeLock mWakeLock; field in MediaService 62 mWakeLock = getSystemService(PowerManager.class).newWakeLock( in onCreate() 68 mWakeLock.acquire(); in onHandleIntent() 105 mWakeLock.release(); in onHandleIntent()
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | ImportVCardActivity.java | 180 private PowerManager.WakeLock mWakeLock; field in ImportVCardActivity.VCardCacheThread 194 mWakeLock = powerManager.newWakeLock( in VCardCacheThread() 202 if (mWakeLock != null && mWakeLock.isHeld()) { in finalize() 204 mWakeLock.release(); in finalize() 216 mWakeLock.acquire(); in run() 292 mWakeLock.release(); in run()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexClientSession.java | 156 private WakeLock mWakeLock; field in BluetoothOppObexClientSession.ClientThread 172 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in ClientThread() 188 mWakeLock.acquire(); in run() 220 if (mWakeLock.isHeld()) { in run() 224 mWakeLock.release(); in run()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 190 private PowerManager.WakeLock mWakeLock; field in AdapterService 681 if (mWakeLock != null) { in cleanup() 682 if (mWakeLock.isHeld()) { in cleanup() 683 mWakeLock.release(); in cleanup() 685 mWakeLock = null; in cleanup() 2614 if (mWakeLock == null) { in acquireWakeLock() 2616 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, lockName); in acquireWakeLock() 2619 if (!mWakeLock.isHeld()) { in acquireWakeLock() 2620 mWakeLock.acquire(); in acquireWakeLock() 2632 if (mWakeLock == null) { in releaseWakeLock() [all …]
|