Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0f72d995 authored by Kweku Adams's avatar Kweku Adams
Browse files

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
parent e7143188
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment