OSDN Git Service

Allow system jobs to be exempted from app-standby
authorMakoto Onuki <omakoto@google.com>
Fri, 26 Jan 2018 22:10:03 +0000 (14:10 -0800)
committerMakoto Onuki <omakoto@google.com>
Fri, 26 Jan 2018 22:10:03 +0000 (14:10 -0800)
commit959acb52739f4883400a4a0aac7d8837e35f014b
tree0e898d72c80ca2bcd03b3513c2b812388ab9fe3e
parent83f489b583570523257e2b1c838ae73ad0829c4c
Allow system jobs to be exempted from app-standby

This flag will allow the sync manager to exempt certain kind of sync requests.

- This will only exempt jobs from app-standby.

- EBS still won't exempt them. Battery saver cuts background network anyway, so
background syncs will still not work, and it didn't used to work pre-P either.

- Manual force-app standby still doesn't allow them to run.

Bug: 72443754
Test: Build and boot. The behavior shouldn't change since none uses the flag yet.
Test: atest CtsJobSchedulerTestCases
Change-Id: I806b97bb4b7da773479e878e6eccb792b03eadc1
core/java/android/app/job/JobInfo.java
services/core/java/com/android/server/job/JobSchedulerService.java