diff options
author | Kweku Adams <kwekua@google.com> | 2020-07-09 14:56:38 -0700 |
---|---|---|
committer | Kweku Adams <kwekua@google.com> | 2020-07-10 23:58:27 +0000 |
commit | c6b55f33ac8499a127deab1558a738bab58f8e3d (patch) | |
tree | 8062ea5b2a27044ca739f1772f95f6e5cdd69c05 /core/proto | |
parent | fd910278e92783c515e43fa625b6fd6a6b42c414 (diff) |
Don't count proxied jobs toward scheduling limit.
1. Some API calls (such as SyncManager calls) can result in multiple job
schedule calls. Given that underlying implementation detail, we don't
count jobs scheduled via proxy towards the source app's schedule limit.
Calls using scheduleAsPackage for itself will still count.
2. Limit the number of times we log that a specific app has exceeded the
limit to once per minute.
3. Update the error message and documentation to help developers
identify what to do when they encounter the issue.
Bug: 160796417
Test: atest JobSchedulerServiceTest
Test: atest JobSchedulingTest
Change-Id: Ia682aa889ec2a26d373d0309e8c0324570f7d816
Merged-In: Ia682aa889ec2a26d373d0309e8c0324570f7d816
Diffstat (limited to 'core/proto')
-rw-r--r-- | core/proto/android/server/jobscheduler.proto | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/proto/android/server/jobscheduler.proto b/core/proto/android/server/jobscheduler.proto index ec99684bf636..f2f20e3ac12e 100644 --- a/core/proto/android/server/jobscheduler.proto +++ b/core/proto/android/server/jobscheduler.proto @@ -236,6 +236,8 @@ message ConstantsProto { optional int64 api_quota_schedule_window_ms = 33; // Whether or not to throw an exception when an app hits its schedule quota limit. optional bool api_quota_schedule_throw_exception = 34; + // Whether or not to return a failure result when an app hits its schedule quota limit. + optional bool api_quota_schedule_return_failure_result = 35; message QuotaController { option (.android.msg_privacy).dest = DEST_AUTOMATIC; @@ -335,7 +337,7 @@ message ConstantsProto { // In this time after screen turns on, we increase job concurrency. optional int32 screen_off_job_concurrency_increase_delay_ms = 28; - // Next tag: 35 + // Next tag: 36 } // Next tag: 4 |