/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/ |
D | RestartDozeListenerTest.kt | 46 @Mock lateinit var powerManager: PowerManager variable in com.android.systemui.flags.RestartDozeListenerTest 55 RestartDozeListener(settings, statusBarStateController, powerManager, clock, executor) in setup() 83 verify(powerManager) in testRestoreDozeState_dozingShouldStart() 85 verify(powerManager).goToSleep(clock.uptimeMillis()) in testRestoreDozeState_dozingShouldStart() 94 verify(powerManager, never()).wakeUp(anyLong(), anyInt(), anyString()) in testRestoreDozeState_dozingShouldNotStart() 95 verify(powerManager, never()).goToSleep(anyLong()) in testRestoreDozeState_dozingShouldNotStart()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | BlurController.java | 62 BlurController(Context context, PowerManager powerManager) { in BlurController() argument 73 mInPowerSaveMode = powerManager.isPowerSaveMode(); in BlurController() 78 mInPowerSaveMode = powerManager.isPowerSaveMode(); in BlurController() 94 powerManager.addThermalStatusListener((status) -> { in BlurController() 98 mCriticalThermalStatus = powerManager.getCurrentThermalStatus() >= THERMAL_STATUS_CRITICAL; in BlurController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/ |
D | RestartDozeListener.kt | 36 private val powerManager: PowerManager, constant in com.android.systemui.flags.RestartDozeListener 72 powerManager.wakeUp( in maybeRestartSleep() 77 powerManager.goToSleep(systemClock.uptimeMillis()) in maybeRestartSleep()
|
/frameworks/base/services/core/java/com/android/server/ |
D | CachedDeviceStateService.java | 96 final PowerManager powerManager = context.getSystemService(PowerManager.class); in queryScreenInteractive() local 97 if (powerManager == null) { in queryScreenInteractive() 101 return powerManager.isInteractive(); in queryScreenInteractive()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/recoverysystem/ |
D | RecoverySystemServiceTestable.java | 39 PowerManager powerManager, FileWriter uncryptPackageFileWriter, in MockInjector() argument 45 mPowerManager = powerManager; in MockInjector() 148 PowerManager powerManager, FileWriter uncryptPackageFileWriter, in RecoverySystemServiceTestable() argument 152 super(new MockInjector(context, systemProperties, powerManager, uncryptPackageFileWriter, in RecoverySystemServiceTestable()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | UnlockedScreenOffAnimationControllerTest.kt | 78 private lateinit var powerManager: PowerManager variable in com.android.systemui.statusbar.phone.UnlockedScreenOffAnimationControllerTest 95 powerManager, in setUp() 146 `when`(powerManager.isInteractive).thenReturn(false) in testAodUiShownIfNotInteractive() 169 `when`(powerManager.isInteractive).thenReturn(true) in testAodUiNotShownIfInteractive()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | GlobalActionsImeTest.java | 121 PowerManager powerManager = mContext.getSystemService(PowerManager.class); in turnScreenOn() local 122 assertNotNull(powerManager); in turnScreenOn() 123 if (powerManager.isInteractive()) { in turnScreenOn() 127 waitUntil("Device not interactive", powerManager::isInteractive); in turnScreenOn()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardUnlockAnimationControllerTest.kt | 62 private lateinit var powerManager: PowerManager in <lambda>() variable in com.android.systemui.keyguard.KeyguardUnlockAnimationControllerTest 86 notificationShadeWindowController, powerManager in <lambda>() 92 whenever(powerManager.isInteractive).thenReturn(true) in <lambda>() 292 whenever(powerManager.isInteractive).thenReturn(false) in <lambda>() 316 whenever(powerManager.isInteractive).thenReturn(true) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SideFpsEventHandler.java | 81 PowerManager powerManager) { in SideFpsEventHandler() argument 82 this(context, handler, powerManager, (ctx) -> { in SideFpsEventHandler() 95 PowerManager powerManager, in SideFpsEventHandler() argument 99 mPowerManager = powerManager; in SideFpsEventHandler()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | AospPolicyModule.java | 44 PowerManager powerManager, in provideBatteryController() argument 53 powerManager, in provideBatteryController()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | KeyEventDispatcher.java | 85 int messageTypeForSendKeyEvent, Object lock, PowerManager powerManager) { in KeyEventDispatcher() argument 97 mPowerManager = powerManager; in KeyEventDispatcher() 106 int messageTypeForSendKeyEvent, Object lock, PowerManager powerManager, in KeyEventDispatcher() argument 108 this(handlerToSendKeyEventsToInputFilter, messageTypeForSendKeyEvent, lock, powerManager); in KeyEventDispatcher()
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipWakeLock.java | 32 SipWakeLock(PowerManager powerManager) { in SipWakeLock() argument 33 mPowerManager = powerManager; in SipWakeLock()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/ |
D | TestableNotificationInterruptStateProviderImpl.java | 40 PowerManager powerManager, in TestableNotificationInterruptStateProviderImpl() argument 53 powerManager, in TestableNotificationInterruptStateProviderImpl()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/scrim/ |
D | BouncerlessScrimController.java | 75 PowerManager powerManager) { in BouncerlessScrimController() argument 77 mPowerManager = powerManager; in BouncerlessScrimController()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/receiver/ |
D | FakeMediaTttChipControllerReceiver.kt | 43 powerManager: PowerManager, 61 powerManager,
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | EmergencyButtonController.java | 95 PowerManager powerManager, ActivityTaskManager activityTaskManager, in EmergencyButtonController() argument 104 mPowerManager = powerManager; in EmergencyButtonController() 225 PowerManager powerManager, ActivityTaskManager activityTaskManager, in Factory() argument 235 mPowerManager = powerManager; in Factory()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/restrictions/ |
D | ThermalStatusRestriction.java | 50 final PowerManager powerManager = in onSystemServicesReady() local 53 powerManager.addThermalStatusListener(new OnThermalStatusChangedListener() { in onSystemServicesReady()
|
/frameworks/base/core/java/android/service/dreams/ |
D | Sandman.java | 90 PowerManager powerManager = in startDream() local 92 powerManager.wakeUp(SystemClock.uptimeMillis(), in startDream()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | SystemLocationPowerSaveModeHelperTest.java | 82 PowerManager powerManager = mock(PowerManager.class); in setUp() local 83 doReturn(LOCATION_MODE_NO_CHANGE).when(powerManager).getLocationPowerSaveMode(); in setUp() 85 doReturn(powerManager).when(context).getSystemService(PowerManager.class); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | EmergencyButtonControllerTest.kt | 55 @Mock lateinit var powerManager: PowerManager variable in com.android.keyguard.EmergencyButtonControllerTest 75 powerManager, in setup()
|
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/ |
D | DynamicSystemInstallationService.java | 396 PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in executeRebootToDynSystemCommand() local 398 if (powerManager != null) { in executeRebootToDynSystemCommand() 399 powerManager.reboot("dynsystem"); in executeRebootToDynSystemCommand() 432 PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in executeRebootToNormalCommand() local 434 if (powerManager != null) { in executeRebootToNormalCommand() 435 powerManager.reboot(null); in executeRebootToNormalCommand()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | NtpTimeHelper.java | 98 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in NtpTimeHelper() local 99 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY); in NtpTimeHelper()
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | EnvironmentImpl.java | 65 PowerManager powerManager = context.getSystemService(PowerManager.class); in EnvironmentImpl() local 67 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG)); in EnvironmentImpl()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | NotificationController.java | 368 PowerManager powerManager = (PowerManager) in handleCancelPrintJob() local 370 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleCancelPrintJob() 407 PowerManager powerManager = (PowerManager) in handleRestartPrintJob() local 409 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleRestartPrintJob()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageManagerServiceHibernationTests.kt | 62 lateinit var powerManager: PowerManager variable in com.android.server.pm.PackageManagerServiceHibernationTests 82 return powerManager in setup()
|