Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/recoverysystem/
DRecoverySystemServiceTestable.java32 PowerManager powerManager, FileWriter uncryptPackageFileWriter, in MockInjector() argument
36 mPowerManager = powerManager; in MockInjector()
82 PowerManager powerManager, FileWriter uncryptPackageFileWriter, in RecoverySystemServiceTestable() argument
84 super(new MockInjector(context, systemProperties, powerManager, uncryptPackageFileWriter, in RecoverySystemServiceTestable()
DRecoverySystemServiceTest.java71 PowerManager powerManager = new PowerManager(mock(Context.class), mIPowerManager, in setup() local
75 powerManager, mUncryptUpdateFileWriter, mUncryptSocket); in setup()
/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/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/core/java/android/service/dreams/
DSandman.java93 PowerManager powerManager = in startDream() local
95 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/
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.java103 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in GnssVisibilityControl() local
104 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/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/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.java166 PowerManager powerManager = in createBackupWakeLock() local
169 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.java95 PowerManager powerManager, in NotificationInterruptionStateProvider() argument
102 mPowerManager = powerManager; in NotificationInterruptionStateProvider()
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationInterruptionStateProviderTest.java584 PowerManager powerManager, IDreamManager dreamManager, in TestableNotificationInterruptionStateProvider() argument
589 super(context, powerManager, dreamManager, ambientDisplayConfiguration, in TestableNotificationInterruptionStateProvider()
/frameworks/base/services/core/java/com/android/server/power/
DThermalManagerService.java263 final PowerManager powerManager = getContext().getSystemService(PowerManager.class); in shutdownIfNeeded() local
272 powerManager.shutdown(false, PowerManager.SHUTDOWN_THERMAL_STATE, false); in shutdownIfNeeded()
275 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()

12