Home
last modified time | relevance | path

Searched refs:powerManager (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DRestartDozeListenerTest.kt46 @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/
DBlurController.java62 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/
DRestartDozeListener.kt36 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/
DCachedDeviceStateService.java96 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/
DRecoverySystemServiceTestable.java39 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/
DUnlockedScreenOffAnimationControllerTest.kt78 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/
DGlobalActionsImeTest.java121 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/
DKeyguardUnlockAnimationControllerTest.kt62 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/
DSideFpsEventHandler.java81 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/
DAospPolicyModule.java44 PowerManager powerManager, in provideBatteryController() argument
53 powerManager, in provideBatteryController()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DKeyEventDispatcher.java85 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/
DSipWakeLock.java32 SipWakeLock(PowerManager powerManager) { in SipWakeLock() argument
33 mPowerManager = powerManager; in SipWakeLock()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DTestableNotificationInterruptStateProviderImpl.java40 PowerManager powerManager, in TestableNotificationInterruptStateProviderImpl() argument
53 powerManager, in TestableNotificationInterruptStateProviderImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/scrim/
DBouncerlessScrimController.java75 PowerManager powerManager) { in BouncerlessScrimController() argument
77 mPowerManager = powerManager; in BouncerlessScrimController()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/receiver/
DFakeMediaTttChipControllerReceiver.kt43 powerManager: PowerManager,
61 powerManager,
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DEmergencyButtonController.java95 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/
DThermalStatusRestriction.java50 final PowerManager powerManager = in onSystemServicesReady() local
53 powerManager.addThermalStatusListener(new OnThermalStatusChangedListener() { in onSystemServicesReady()
/frameworks/base/core/java/android/service/dreams/
DSandman.java90 PowerManager powerManager = in startDream() local
92 powerManager.wakeUp(SystemClock.uptimeMillis(), in startDream()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemLocationPowerSaveModeHelperTest.java82 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/
DEmergencyButtonControllerTest.kt55 @Mock lateinit var powerManager: PowerManager variable in com.android.keyguard.EmergencyButtonControllerTest
75 powerManager, in setup()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DDynamicSystemInstallationService.java396 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/
DNtpTimeHelper.java98 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/
DEnvironmentImpl.java65 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/
DNotificationController.java368 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/
DPackageManagerServiceHibernationTests.kt62 lateinit var powerManager: PowerManager variable in com.android.server.pm.PackageManagerServiceHibernationTests
82 return powerManager in setup()

1234