Apply flex policy to jobs with short deadlines.
Apply flex policy to all jobs with deadlines and adjust other factors to accomodate increased scope: 1. Don't exclude jobs with short deadlines from flex policy. 2. Use the standard flex fallback duration for the policy, unless the job's own deadline results in a later end time. In that case, use the job's deadline instead. 3. Exclude jobs from the TOP app from score calculation so that apps aren't penalized for doing work while in the TOP state. 4. Cache job score to avoid recalculating if buckets haven't changed. 5. Address comments from previous change. 6. Adjust scores and max values to avoid extreme delays. Bug: 236261941 Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job Test: CtsJobSchedulerTestCases:FlexibilityConstraintTest Change-Id: I2dd85732eddc4aace3ab81a914d781fb25d9c6f6
Loading
Please register or sign in to comment