/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/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | WakeLockStateMachine.java | 43 private final PowerManager.WakeLock mWakeLock; field in WakeLockStateMachine 74 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, debugTag); in WakeLockStateMachine() 76 mWakeLock.acquire(); in WakeLockStateMachine() 85 if (mWakeLock.isHeld()) { in releaseWakeLock() 86 mWakeLock.release(); in releaseWakeLock() 89 if (mWakeLock.isHeld()) { in releaseWakeLock() 104 while (mWakeLock.isHeld()) { in onQuitting() 105 mWakeLock.release(); in onQuitting() 151 mWakeLock.acquire(); in exit()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeLocalRequestScheduler.java | 105 private WakeLock mWakeLock; field in IkeLocalRequestScheduler.LocalRequest 119 if (mWakeLock != null && mWakeLock.isHeld()) { in acquireWakeLock() 124 mWakeLock = in acquireWakeLock() 128 mWakeLock.setReferenceCounted(false); in acquireWakeLock() 129 mWakeLock.acquire(); in acquireWakeLock() 134 if (mWakeLock != null) { in releaseWakeLock() 135 mWakeLock.release(); in releaseWakeLock() 136 mWakeLock = null; 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 | 137 private PowerManager.WakeLock mWakeLock; field in BluetoothPbapService 280 if (mWakeLock != null) { in closeService() 281 mWakeLock.release(); in closeService() 282 mWakeLock = null; in closeService() 373 if (mWakeLock == null) { in handleMessage() 375 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleMessage() 377 mWakeLock.setReferenceCounted(false); in handleMessage() 378 mWakeLock.acquire(); in handleMessage() 387 if (mWakeLock != null) { in handleMessage() 388 mWakeLock.release(); in handleMessage() [all …]
|
/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/apps/Settings/src/com/android/settings/ |
D | CryptKeeper.java | 123 PowerManager.WakeLock mWakeLock; field in CryptKeeper 380 if (mWakeLock.isHeld()) { in notifyUser() 384 mWakeLock.release(); in notifyUser() 438 mWakeLock = retained.wakelock; in onCreate() 555 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock); in onRetainNonConfigurationInstance() 557 mWakeLock = null; in onRetainNonConfigurationInstance() 565 if (mWakeLock != null) { in onDestroy() 567 mWakeLock.release(); in onDestroy() 568 mWakeLock = null; in onDestroy() 580 if (mWakeLock == null) { in encryptionProgressInit() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | CryptKeeper.java | 123 PowerManager.WakeLock mWakeLock; field in CryptKeeper 380 if (mWakeLock.isHeld()) { in notifyUser() 384 mWakeLock.release(); in notifyUser() 438 mWakeLock = retained.wakelock; in onCreate() 555 NonConfigurationInstanceState state = new NonConfigurationInstanceState(mWakeLock); in onRetainNonConfigurationInstance() 557 mWakeLock = null; in onRetainNonConfigurationInstance() 565 if (mWakeLock != null) { in onDestroy() 567 mWakeLock.release(); in onDestroy() 568 mWakeLock = null; in onDestroy() 580 if (mWakeLock == null) { in encryptionProgressInit() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapService.java | 108 private PowerManager.WakeLock mWakeLock = null; field in BluetoothMapService 179 if (mWakeLock != null) { in closeService() 180 mWakeLock.release(); in closeService() 184 mWakeLock = null; in closeService() 236 if (mWakeLock == null) { in startObexServerSessions() 238 mWakeLock = in startObexServerSessions() 240 mWakeLock.setReferenceCounted(false); in startObexServerSessions() 241 mWakeLock.acquire(); in startObexServerSessions() 331 if (mWakeLock != null && lastMasInst) { in stopObexServerSessions() 334 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/Gallery2/src/com/android/gallery3d/app/ |
D | MovieActivity.java | 66 private PowerManager.WakeLock mWakeLock = null; field in MovieActivity 224 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK,"Gallery_WAKE_LOCK"); in onStart() 225 mWakeLock.acquire(); in onStart() 235 mWakeLock.release(); in onStop()
|
/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()
|