summaryrefslogtreecommitdiff
path: root/packages/Shell/src
diff options
context:
space:
mode:
author Kweku Adams <kwekua@google.com> 2022-12-21 20:28:17 +0000
committer Kweku Adams <kwekua@google.com> 2023-03-16 20:54:07 +0000
commiteb72459a8994180ddc1c9ee05d15ac31413ee2ea (patch)
tree10f9745b1f7f26ea64cdac57a7a84fb7d486d6d2 /packages/Shell/src
parentaa24b1bdc5ef790a17ad10957ded596fe03e4c4c (diff)
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
Diffstat (limited to 'packages/Shell/src')
0 files changed, 0 insertions, 0 deletions