Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/servicestests/src/com/android/server/recoverysystem/
DRecoverySystemServiceTestable.java35 PowerManager powerManager, FileWriter uncryptPackageFileWriter, in MockInjector() argument
39 mPowerManager = powerManager; in MockInjector()
91 PowerManager powerManager, FileWriter uncryptPackageFileWriter, in RecoverySystemServiceTestable() argument
93 super(new MockInjector(context, systemProperties, powerManager, uncryptPackageFileWriter, in RecoverySystemServiceTestable()
/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/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsImeTest.java97 PowerManager powerManager = mContext.getSystemService(PowerManager.class); in turnScreenOn() local
98 assertNotNull(powerManager); in turnScreenOn()
99 if (powerManager.isInteractive()) { in turnScreenOn()
103 waitUntil("Device not interactive", powerManager::isInteractive); in turnScreenOn()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DActiveSourceActionTest.java71 PowerManager powerManager = new PowerManager(mContextSpy, mIPowerManagerMock, in setUp() local
73 when(mContextSpy.getSystemService(Context.POWER_SERVICE)).thenReturn(powerManager); in setUp()
74 when(mContextSpy.getSystemService(PowerManager.class)).thenReturn(powerManager); in setUp()
100 return powerManager; in setUp()
DHdmiCecLocalDeviceTvTest.java71 PowerManager powerManager = new PowerManager(context, mIPowerManagerMock, in setUp() local
92 return powerManager; in setUp()
DHdmiControlServiceTest.java136 PowerManager powerManager = new PowerManager(mContextSpy, mIPowerManagerMock, in setUp() local
138 when(mContextSpy.getSystemService(Context.POWER_SERVICE)).thenReturn(powerManager); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/
DTestableNotificationInterruptStateProviderImpl.java36 PowerManager powerManager, in TestableNotificationInterruptStateProviderImpl() argument
45 powerManager, in TestableNotificationInterruptStateProviderImpl()
/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/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyCallbackImpl.java56 PowerManager powerManager = context.getSystemService(PowerManager.class); in TimeDetectorStrategyCallbackImpl() local
58 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG)); in TimeDetectorStrategyCallbackImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/dagger/
DKeyguardModule.java63 PowerManager powerManager, in newKeyguardViewMediator() argument
78 powerManager, in newKeyguardViewMediator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DLatencyTester.java57 PowerManager powerManager, BroadcastDispatcher broadcastDispatcher) { in LatencyTester() argument
61 mPowerManager = powerManager; in LatencyTester()
/frameworks/base/core/java/android/service/dreams/
DSandman.java90 PowerManager powerManager = in startDream() local
92 powerManager.wakeUp(SystemClock.uptimeMillis(), in startDream()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DDynamicSystemInstallationService.java350 PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in executeRebootToDynSystemCommand() local
352 if (powerManager != null) { in executeRebootToDynSystemCommand()
353 powerManager.reboot("dynsystem"); in executeRebootToDynSystemCommand()
375 PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in executeRebootToNormalCommand() local
377 if (powerManager != null) { in executeRebootToNormalCommand()
378 powerManager.reboot(null); in executeRebootToNormalCommand()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpTimeHelper.java100 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in NtpTimeHelper() local
101 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY); in NtpTimeHelper()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java366 PowerManager powerManager = (PowerManager) in handleCancelPrintJob() local
368 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleCancelPrintJob()
405 PowerManager powerManager = (PowerManager) in handleRestartPrintJob() local
407 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleRestartPrintJob()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DNitzSignalInputFilterPredicateFactory.java122 PowerManager powerManager = in createBogusElapsedRealtimeCheck() local
125 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG); in createBogusElapsedRealtimeCheck()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeParameters.java64 PowerManager powerManager, in DozeParameters() argument
71 mPowerManager = powerManager; in DozeParameters()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java166 PowerManager powerManager = in createBackupWakeLock() local
169 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*backup*"), 0); in createBackupWakeLock()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java63 PowerManager powerManager = new PowerManager(context, mPowerManager, mThermalService, null); in setUp() local
69 return powerManager; in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DSystemUIDefaultModule.java94 EnhancedEstimates enhancedEstimates, PowerManager powerManager, in provideBatteryController() argument
97 BatteryController bC = new BatteryControllerImpl(context, enhancedEstimates, powerManager, in provideBatteryController()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/
DCarSystemUIModule.java126 EnhancedEstimates enhancedEstimates, PowerManager powerManager, in provideBatteryController() argument
129 BatteryController bC = new BatteryControllerImpl(context, enhancedEstimates, powerManager, in provideBatteryController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java77 PowerManager powerManager, in NotificationInterruptStateProviderImpl() argument
86 mPowerManager = powerManager; in NotificationInterruptStateProviderImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java85 PowerManager powerManager, BroadcastDispatcher broadcastDispatcher, in BatteryControllerImpl() argument
90 mPowerManager = powerManager; in BatteryControllerImpl()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/statusbar/
DCarStatusBarModule.java175 PowerManager powerManager, in provideStatusBar()
254 powerManager, in provideStatusBar()

123