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

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

Add methods to mark some constraints as optional.

These methods will let apps mark battery-not-low, charging,
and/or idle as optional (but preferred) instead of just as a
hard requirement. This gives JobScheduler more freedom to defer
the job to more ideal times if it can without confusing developers
further.

For now, the methods are hidden because there's a little bit more work
to be done on the communication and documentation.

Bug: 236261941
Test: atest CtsJobSchedulerTestCases:FlexibilityConstraintTest
Test: atest CtsJobSchedulerTestCases:JobInfoTest
Test: atest CtsJobSchedulerTestCases:JobSchedulingTest
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Change-Id: Ia27947b3a40f59d0278698e3d12a6b656b18aa16
parent aa24b1bd
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