diff options
author | Christopher Tate <ctate@google.com> | 2015-04-28 15:43:44 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2015-04-28 15:43:44 -0700 |
commit | 90a5187d3266e0faa75133c2e8ac2763a17450d0 (patch) | |
tree | 611487dfd97f2421e09cee3a78dd7d5c7a851c1d | |
parent | 354b70f7d209e79e4442d4b70fb1d849163eae3d (diff) | |
download | frameworks_base-90a5187d3266e0faa75133c2e8ac2763a17450d0.zip frameworks_base-90a5187d3266e0faa75133c2e8ac2763a17450d0.tar.gz frameworks_base-90a5187d3266e0faa75133c2e8ac2763a17450d0.tar.bz2 |
Give scheduled jobs a more substantial timeslice
One minute turns out to be quite limiting in practice, and we still
shut them down summarily when their run constraints become unsatisfied,
so widen the window to 10 minutes.
Bug 20143368
Change-Id: I2aba521f65b94e9fb8d519b0492625d35aaba267
-rw-r--r-- | services/core/java/com/android/server/job/JobServiceContext.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/job/JobServiceContext.java b/services/core/java/com/android/server/job/JobServiceContext.java index 53ceb2e..b066d6b 100644 --- a/services/core/java/com/android/server/job/JobServiceContext.java +++ b/services/core/java/com/android/server/job/JobServiceContext.java @@ -68,7 +68,7 @@ public class JobServiceContext extends IJobCallback.Stub implements ServiceConne private static final int defaultMaxActiveJobsPerService = ActivityManager.isLowRamDeviceStatic() ? 1 : 3; /** Amount of time a job is allowed to execute for before being considered timed-out. */ - private static final long EXECUTING_TIMESLICE_MILLIS = 60 * 1000; + private static final long EXECUTING_TIMESLICE_MILLIS = 10 * 60 * 1000; /** Amount of time the JobScheduler will wait for a response from an app for a message. */ private static final long OP_TIMEOUT_MILLIS = 8 * 1000; |