Merge "DO NOT MERGE Change scheduling logic to run network jobs sooner" into mnc-dr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6875011626
@@ -73,7 +73,7 @@ import com.android.server.job.controllers.TimeController;
|
|||||||
*/
|
*/
|
||||||
public class JobSchedulerService extends com.android.server.SystemService
|
public class JobSchedulerService extends com.android.server.SystemService
|
||||||
implements StateChangedListener, JobCompletedListener {
|
implements StateChangedListener, JobCompletedListener {
|
||||||
static final boolean DEBUG = false;
|
public static final boolean DEBUG = false;
|
||||||
/** The number of concurrent jobs we run at one time. */
|
/** The number of concurrent jobs we run at one time. */
|
||||||
private static final int MAX_JOB_CONTEXTS_COUNT
|
private static final int MAX_JOB_CONTEXTS_COUNT
|
||||||
= ActivityManager.isLowRamDeviceStatic() ? 1 : 3;
|
= ActivityManager.isLowRamDeviceStatic() ? 1 : 3;
|
||||||
@@ -99,7 +99,7 @@ public class JobSchedulerService extends com.android.server.SystemService
|
|||||||
* Minimum # of connectivity jobs that must be ready in order to force the JMS to schedule
|
* Minimum # of connectivity jobs that must be ready in order to force the JMS to schedule
|
||||||
* things early.
|
* things early.
|
||||||
*/
|
*/
|
||||||
static final int MIN_CONNECTIVITY_COUNT = 2;
|
static final int MIN_CONNECTIVITY_COUNT = 1; // Run connectivity jobs as soon as ready.
|
||||||
/**
|
/**
|
||||||
* Minimum # of jobs (with no particular constraints) for which the JMS will be happy running
|
* Minimum # of jobs (with no particular constraints) for which the JMS will be happy running
|
||||||
* some work early.
|
* some work early.
|
||||||
|
|||||||
Reference in New Issue
Block a user