summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/power/ShutdownThread.java
AgeCommit message (Collapse)Author
2013-12-19Move some system services to separate directoriesAmith Yamasani
Refactored the directory structure so that services can be optionally excluded. This is step 1. Will be followed by another change that makes it possible to remove services from the build. Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
2013-07-08am 58d52298: am 57512008: am 8f793103: Merge "Set foreground priority for ↵Jean-Baptiste Queru
shutdown receivers." * commit '58d52298bebe21c4fb79ec8fc5e1c76a7503e0a5': Set foreground priority for shutdown receivers.
2013-05-08PowerManagerService: Don't reboot directly.Nick Kralevich
Instead of calling the reboot system call ourselves, send a message to init asking it to reboot the system. Init is in a better position to make sure the system is cleanly shutdown. Get rid of CAP_SYS_BOOT from system_server. Bug: 8646621 Change-Id: I200722412844ad8d99e35a442021c6263c3ebc05
2013-02-04Set foreground priority for shutdown receivers.Martin Wallgren
The broadcast of ACTION_SHUTDOWN has a timeout of 10 seconds. To reduce the risk of hitting the timeout and speeding up the shutdown sequence in ShutdownThread we set the priority of the BroadcastReceivers to FLAG_RECEIVER_FOREGROUND. We have seen that this change reduces the shutdown time when the system is under heavy load. Change-Id: I22cbf6af8cf6fc4bdefaa1c3da8a7eed7e7b7674
2012-08-30Improve multi-user broadcasts.Dianne Hackborn
You can now use ALL and CURRENT when sending broadcasts, to specify where the broadcast goes. Sticky broadcasts are now correctly separated per user, and registered receivers are filtered based on the requested target user. New Context APIs for more kinds of sending broadcasts as users. Updating a bunch of system code that sends broadcasts to explicitly specify which user the broadcast goes to. Made a single version of the code for interpreting the requested target user ID that all entries to activity manager (start activity, send broadcast, start service) use. Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
2012-07-16Fix merge error, put in tmp workaround for input manager.Matthew Xie
Fix merge error, missing enableNoAutoConnect api. Remove bluetoothF from inputManageF.systemReady call as tmp workaround. Recover shutdownRadios(MAX_RADIO_WAIT_TIME) call in ShutdownThread Change-Id: Ice2b5c54267755bdbf56c742feabbb8709b92570
2012-07-16Non persistent adapter servicefredc
Change-Id: Ib13d5c77416e58161df0e04d7a15ec0dddbde8b5 Conflicts: core/java/android/bluetooth/BluetoothInputDevice.java Conflicts: core/java/com/android/internal/app/ShutdownThread.java services/java/com/android/server/SystemServer.java Conflicts: services/java/com/android/server/SystemServer.java services/java/com/android/server/pm/ShutdownThread.java
2012-07-16Add a new version of the disable API.Jaikumar Ganesh
This allows for the setting to be persisted or not. Also turn on Bluetooth in System Server if needed. It won't work currently because the service wouldn't have started. Change-Id: I15fa2bff93aa32134c1b565fcbe90ba68614b6a1
2012-07-13Changes to Bluetooth Service structure.Jaikumar Ganesh
Changes to make Bluetooth Service part of the system_service. These changes may be temporary. Changes to update to the new disable API. Change-Id: If89dba17e6e6c6daa53c37684221763a2da076e9 Conflicts: services/java/com/android/server/pm/PackageManagerService.java
2012-06-18Move power manager to a new package.Jeff Brown
Change-Id: I5f5a6435e64354b7d6535e8e9a63934ba7a3f448