Home
last modified time | relevance | path

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

12

/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/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/src/com/android/systemui/
DLatencyTester.java67 PowerManager powerManager = mContext.getSystemService(PowerManager.class); in fakeTurnOnScreen() local
72 powerManager.wakeUp(SystemClock.uptimeMillis(), "android.policy:LATENCY_TESTS"); in fakeTurnOnScreen()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DDynamicSystemInstallationService.java301 PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in executeRebootToDynSystemCommand() local
303 if (powerManager != null) { in executeRebootToDynSystemCommand()
304 powerManager.reboot("dynsystem"); in executeRebootToDynSystemCommand()
326 PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in executeRebootToNormalCommand() local
328 if (powerManager != null) { in executeRebootToNormalCommand()
329 powerManager.reboot(null); in executeRebootToNormalCommand()
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyCallbackImpl.java58 PowerManager powerManager = context.getSystemService(PowerManager.class); in TimeDetectorStrategyCallbackImpl() local
60 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG)); in TimeDetectorStrategyCallbackImpl()
/frameworks/base/core/java/android/service/dreams/
DSandman.java93 PowerManager powerManager = in startDream() local
95 powerManager.wakeUp(SystemClock.uptimeMillis(), in startDream()
/frameworks/base/services/core/java/com/android/server/location/
DNtpTimeHelper.java83 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in NtpTimeHelper() local
84 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY); in NtpTimeHelper()
DGeofenceManager.java124 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in GeofenceManager() local
125 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in GeofenceManager()
DGnssNetworkConnectivityHandler.java173 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in GnssNetworkConnectivityHandler() local
174 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY); in GnssNetworkConnectivityHandler()
DGnssVisibilityControl.java102 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in GnssVisibilityControl() local
103 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY); in GnssVisibilityControl()
/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/base/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java61 PowerManager powerManager = new PowerManager(context, mPowerManager, null); in setUp() local
67 return powerManager; in setUp()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java165 PowerManager powerManager = in createBackupWakeLock() local
167 return powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*backup*"); in createBackupWakeLock()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java85 PowerManager powerManager) { in BatteryControllerImpl() argument
88 mPowerManager = powerManager; in BatteryControllerImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationInterruptionStateProvider.java86 PowerManager powerManager, in NotificationInterruptionStateProvider() argument
90 mPowerManager = powerManager; in NotificationInterruptionStateProvider()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNewNitzStateMachine.java106 PowerManager powerManager = in NewNitzStateMachine() local
108 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG); in NewNitzStateMachine()
DOldNitzStateMachine.java107 PowerManager powerManager = in OldNitzStateMachine() local
109 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG); in OldNitzStateMachine()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceTestable.java291 services.powerManager.goToSleep(time, reason, flags); in powerManagerGoToSleep()
296 services.powerManager.reboot(reason); in powerManagerReboot()
DMockSystemServices.java89 public final PowerManagerForMock powerManager; field in MockSystemServices
129 powerManager = mock(PowerManagerForMock.class); in MockSystemServices()
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java224 PowerManager powerManager = in processMessage() local
229 powerManager.isIgnoringBatteryOptimizations(lastapp.packageName)) { in processMessage()
/frameworks/base/services/core/java/com/android/server/power/
DThermalManagerService.java259 final PowerManager powerManager = getContext().getSystemService(PowerManager.class); in shutdownIfNeeded() local
268 powerManager.shutdown(false, PowerManager.SHUTDOWN_THERMAL_STATE, false); in shutdownIfNeeded()
271 powerManager.shutdown(false, PowerManager.SHUTDOWN_BATTERY_THERMAL_STATE, false); in shutdownIfNeeded()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyEventDispatcherTest.java86 PowerManager powerManager = in setUp() local
90 mLock, powerManager, mMessageCapturingHandler); in setUp()
/frameworks/base/services/core/java/com/android/server/attention/
DAttentionManagerService.java109 AttentionManagerService(Context context, PowerManager powerManager, Object lock, in AttentionManagerService() argument
113 mPowerManager = powerManager; in AttentionManagerService()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java731 final PowerManager powerManager = mContext.getSystemService(PowerManager.class); in addLockoutResetCallback() local
739 final PowerManager.WakeLock wakeLock = powerManager.newWakeLock( in addLockoutResetCallback()

12