/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 1520 WakeLock wakeLock; 1524 wakeLock = mWakeLocks.get(index); 1525 if (!wakeLock.hasSameProperties(flags, tag, ws, uid, pid, callback)) { 1527 notifyWakeLockChangingLocked(wakeLock, flags, tag, packageName, 1529 wakeLock.updateProperties(flags, tag, packageName, ws, historyTag, uid, pid, 1541 wakeLock = new WakeLock(lock, displayId, flags, tag, packageName, ws, historyTag, 1543 mWakeLocks.add(wakeLock); 1544 setWakeLockDisabledStateLocked(wakeLock); 1548 applyWakeLockFlagsOnAcquireLocked(wakeLock, isCallerPrivileged); 1557 notifyWakeLockAcquiredLocked(wakeLock); [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastSenderTest.kt | 47 private lateinit var wakeLock: WakeLockFake variable in com.android.systemui.broadcast.BroadcastSenderTest 53 wakeLock = WakeLockFake() in setUp() 55 wakeLockBuilder.setWakeLock(wakeLock) in setUp() 140 assertThat(wakeLock.isHeld).isTrue() in runExecutorAssertingWakelock() 143 assertThat(wakeLock.isHeld).isFalse() in runExecutorAssertingWakelock()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/ |
D | AWakeLock.h | 46 explicit PMDeathRecipient(AWakeLock *wakeLock) : mWakeLock(wakeLock) {} in PMDeathRecipient() argument
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/wakelock/ |
D | WakeLockFake.java | 61 public void setWakeLock(WakeLock wakeLock) { 62 mWakeLock = wakeLock;
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | NotificationController.java | 370 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleCancelPrintJob() local 372 wakeLock.acquire(); in handleCancelPrintJob() 392 wakeLock.release(); in handleCancelPrintJob() 409 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleRestartPrintJob() local 411 wakeLock.acquire(); in handleRestartPrintJob() 429 wakeLock.release(); in handleRestartPrintJob()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/ |
D | NitzSignalInputFilterPredicateFactory.java | 124 final WakeLock wakeLock = in createBogusElapsedRealtimeCheck() local 133 wakeLock.acquire(); in createBogusElapsedRealtimeCheck() 148 wakeLock.release(); in createBogusElapsedRealtimeCheck()
|
/frameworks/base/services/companion/java/com/android/server/companion/virtual/ |
D | VirtualDeviceImpl.java | 266 mPerDisplayWakelocks.forEach((displayId, wakeLock) -> { 269 wakeLock.release(); 579 PowerManager.WakeLock wakeLock = powerManager.newWakeLock( 582 mPerDisplayWakelocks.put(displayId, wakeLock); 583 wakeLock.acquire(); 635 PowerManager.WakeLock wakeLock = mPerDisplayWakelocks.get(displayId); 636 if (wakeLock != null) { 637 wakeLock.release();
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamController.java | 112 boolean isPreviewMode, boolean canDoze, int userId, PowerManager.WakeLock wakeLock, in startDream() argument 124 mCurrentDream = new DreamRecord(token, name, isPreviewMode, canDoze, userId, wakeLock); in startDream() 346 boolean canDoze, int userId, PowerManager.WakeLock wakeLock) { in DreamRecord() argument 352 mWakeLock = wakeLock; in DreamRecord()
|
D | DreamManagerService.java | 676 PowerManager.WakeLock wakeLock = mPowerManager in startDreamLocked() local 679 mHandler.post(wakeLock.wrap(() -> { in startDreamLocked() 681 mController.startDream(dreamToken, name, isPreviewMode, canDoze, userId, wakeLock, in startDreamLocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/ |
D | TemporaryViewDisplayController.kt | 172 wakeLock = null, in <lambda>() 235 displayInfo.wakeLock = newWakeLock in <lambda>() 393 displayInfo.wakeLock?.release(displayInfo.info.wakeReason) in <lambda>() 496 var wakeLock: WakeLock?, in <lambda>() variable in com.android.systemui.temporarydisplay.TemporaryViewDisplayController.DisplayInfo
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibrationThread.java | 117 VibrationThread(PowerManager.WakeLock wakeLock, VibratorManagerHooks vibratorManagerHooks) { in VibrationThread() argument 118 mWakeLock = wakeLock; in VibrationThread()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeUi.java | 61 WakeLock wakeLock, DozeHost host, @Main Handler handler, in DozeUi() argument 66 mWakeLock = wakeLock; in DozeUi()
|
D | DozeScreenState.java | 91 WakeLock wakeLock, in DozeScreenState() argument 100 mWakeLock = new SettableWakeLock(wakeLock, TAG); in DozeScreenState()
|
D | DozeTriggers.java | 195 WakeLock wakeLock, DockManager dockManager, in DozeTriggers() argument 210 mWakeLock = wakeLock; in DozeTriggers() 215 config, wakeLock, this::onSensor, this::onProximityFar, dozeLog, proximitySensor, in DozeTriggers()
|
D | DozeMachine.java | 163 WakeLock wakeLock, WakefulnessLifecycle wakefulnessLifecycle, in DozeMachine() argument 169 mWakeLock = wakeLock; in DozeMachine()
|
D | DozeSensors.java | 150 WakeLock wakeLock, in DozeSensors() argument 162 mWakeLock = wakeLock; in DozeSensors()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | BackupManagerServiceTestUtils.java | 116 UserBackupManagerService.BackupWakeLock wakeLock, in setUpBackupManagerServiceBasics() argument 125 when(backupManagerService.getWakelock()).thenReturn(wakeLock); in setUpBackupManagerServiceBasics()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageInstallerService.java | 504 private PackageInstallListener(Context context, PowerManager.WakeLock wakeLock, in PackageInstallListener() argument 507 mWakeLock = wakeLock; in PackageInstallListener() 544 private PackageDeleteObserver(PowerManager.WakeLock wakeLock, int startId) { in PackageDeleteObserver() argument 545 mWakeLock = wakeLock; in PackageDeleteObserver()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 149 PowerManager.WakeLock wakeLock = mPm.newWakeLock( in testWakeLockWithWorkChains() local 155 wakeLock.setWorkSource(workSource); in testWakeLockWithWorkChains() 157 doTestWakeLock(wakeLock); in testWakeLockWithWorkChains()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 2219 WakeLock wakeLock = acquireWakeLock("fgsWakeLock", PowerManager.PARTIAL_WAKE_LOCK); in testLowPowerStandby_whenInactive_FgsWakeLockEnabled() local 2220 mService.updateUidProcStateInternal(wakeLock.mOwnerUid, PROCESS_STATE_FOREGROUND_SERVICE); in testLowPowerStandby_whenInactive_FgsWakeLockEnabled() 2223 assertThat(wakeLock.mDisabled).isFalse(); in testLowPowerStandby_whenInactive_FgsWakeLockEnabled() 2230 WakeLock wakeLock = acquireWakeLock("fgsWakeLock", PowerManager.PARTIAL_WAKE_LOCK); in testLowPowerStandby_whenActive_FgsWakeLockDisabled() local 2231 mService.updateUidProcStateInternal(wakeLock.mOwnerUid, PROCESS_STATE_FOREGROUND_SERVICE); in testLowPowerStandby_whenActive_FgsWakeLockDisabled() 2235 assertThat(wakeLock.mDisabled).isTrue(); in testLowPowerStandby_whenActive_FgsWakeLockDisabled() 2242 WakeLock wakeLock = acquireWakeLock("fgsWakeLock", PowerManager.PARTIAL_WAKE_LOCK); in testLowPowerStandby_whenActive_FgsWakeLockEnabledIfAllowlisted() local 2243 mService.updateUidProcStateInternal(wakeLock.mOwnerUid, PROCESS_STATE_FOREGROUND_SERVICE); in testLowPowerStandby_whenActive_FgsWakeLockEnabledIfAllowlisted() 2246 mService.setLowPowerStandbyAllowlistInternal(new int[]{wakeLock.mOwnerUid}); in testLowPowerStandby_whenActive_FgsWakeLockEnabledIfAllowlisted() 2248 assertThat(wakeLock.mDisabled).isFalse(); in testLowPowerStandby_whenActive_FgsWakeLockEnabledIfAllowlisted() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
D | VirtualDeviceManagerServiceTest.java | 367 IBinder wakeLock = wakeLockCaptor.getValue(); in onVirtualDisplayRemovedLocked_wakeLockIsReleased() local 369 verify(mIPowerManagerMock).releaseWakeLock(eq(wakeLock), anyInt()); in onVirtualDisplayRemovedLocked_wakeLockIsReleased() 382 IBinder wakeLock = wakeLockCaptor.getValue(); in addVirtualDisplay_displayNotReleased_wakeLockIsReleased() local 386 verify(mIPowerManagerMock).releaseWakeLock(eq(wakeLock), anyInt()); in addVirtualDisplay_displayNotReleased_wakeLockIsReleased()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeTriggersTest.java | 125 WakeLock wakeLock = new WakeLockFake(); in setupDozeTriggers() local 134 asyncSensorManager, wakeLock, mDockManager, mProximitySensor, in setupDozeTriggers()
|
/frameworks/base/core/java/android/hardware/face/ |
D | FaceManager.java | 707 final PowerManager.WakeLock wakeLock = powerManager.newWakeLock( in addLockoutResetCallback() 710 wakeLock.acquire(); in addLockoutResetCallback() 715 wakeLock.release(); in addLockoutResetCallback()
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
D | FingerprintManager.java | 1192 final PowerManager.WakeLock wakeLock = powerManager.newWakeLock( in addLockoutResetCallback() 1194 wakeLock.acquire(); in addLockoutResetCallback() 1199 wakeLock.release(); in addLockoutResetCallback()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncManager.java | 3145 PowerManager.WakeLock wakeLock = mWakeLocks.get(wakeLockKey); in getSyncWakeLock() local 3146 if (wakeLock == null) { in getSyncWakeLock() 3148 wakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); in getSyncWakeLock() 3149 wakeLock.setReferenceCounted(false); in getSyncWakeLock() 3150 mWakeLocks.put(wakeLockKey, wakeLock); in getSyncWakeLock() 3152 return wakeLock; in getSyncWakeLock()
|