Combine battery trackers.
Combine the separate Controller battery/charging trackers into one so that JobScheduler only has to receive the battery change broadcasts once to update all of the state. This also makes testing easier since the test can be sure that once the battery sequence is updated, all of JS has processed the battery state change. Bug: 141645789 Bug: 213277873 Test: atest --rerun-until-failure 25 CtsJobSchedulerTestCases:android.jobscheduler.cts.JobThrottlingTest#testRestrictingStopReason_Quota Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job Test: atest CtsJobSchedulerTestCases Change-Id: I7151798f17c177eb5e86a6ec51c2d545768a4fcd
Loading
Please register or sign in to comment