Add initial RebootReadinessManager implementation
Add RebootReadinessManager to Scheduling module. The system
service lifecycle class will be started from SystemServer.java,
by calling into service-scheduling.jar. It will run in the
system_server process.
This initial implementation of reboot readiness detection only
tracks one criterion: system components which may register
callbacks to block the reboot. Future iterations will add
more logic to the reboot readiness heuristic.
Also added tests which cover all of the RebootReadinessManager
APIs.
Test: atest CtsRebootReadinessTestCases
Bug: 161353402
Change-Id: If0cb9372642711030931ff99ef69ee03acd9cc3b
12 files changed