Fix memory leak.
BatteryController only starts tracking jobs that have a power constraint and stops tracking them if it had previously marked them as being tracked by the controller. Adding all top-started jobs to its list of top-started jobs meant that the top-started list would slowly accumulate jobs that didn't have a power constraint since the controller would never attempt to remove them from the list. Bug: 239797636 Test: atest CtsJobSchedulerTestCases Change-Id: I084586c13772c6942ba841647458f72a941cc087
Loading
Please register or sign in to comment