Home
last modified time | relevance | path

Searched refs:CONSTRAINT_IDLE (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DIdleController.java114 logDeviceWideConstraintStateToStatsd(JobStatus.CONSTRAINT_IDLE, isIdle); in reportNewIdleState()
118 JobStatus.CONSTRAINT_IDLE, isIdle, nowElapsed); in reportNewIdleState()
DJobStatus.java110 public static final int CONSTRAINT_IDLE = JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE; // 1 << 2 field in JobStatus
147 | CONSTRAINT_IDLE;
1590 return hasConstraint(CONSTRAINT_IDLE); in hasIdleConstraint()
1843 return setConstraintSatisfied(CONSTRAINT_IDLE, nowElapsed, state); in setIdleConstraintSatisfied()
2002 case CONSTRAINT_IDLE: in constraintToStopReason()
2104 if ((CONSTRAINT_IDLE & unsatisfiedConstraints) != 0) { in getPendingJobReason()
2105 if ((CONSTRAINT_IDLE & requiredConstraints) != 0) { in getPendingJobReason()
2333 | CONSTRAINT_IDLE | CONSTRAINT_CONTENT_TRIGGER | CONSTRAINT_PREFETCH
2339 | CONSTRAINT_TIMING_DELAY | CONSTRAINT_IDLE | CONSTRAINT_PREFETCH
2531 if ((constraints & CONSTRAINT_IDLE) != 0) { in dumpConstraints()
[all …]
DFlexibilityController.java32 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;
90 | CONSTRAINT_IDLE;
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DFlexibilityControllerTest.java51 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;
327 CONSTRAINT_IDLE, false, in testAppliedConstraints()
1409 mFlexibilityController.setConstraintSatisfied(CONSTRAINT_IDLE, false, FROZEN_TIME); in testSetConstraintSatisfied_Constraints()
1410 assertFalse(mFlexibilityController.isConstraintSatisfied(CONSTRAINT_IDLE)); in testSetConstraintSatisfied_Constraints()
1412 mFlexibilityController.setConstraintSatisfied(CONSTRAINT_IDLE, true, FROZEN_TIME); in testSetConstraintSatisfied_Constraints()
1413 assertTrue(mFlexibilityController.isConstraintSatisfied(CONSTRAINT_IDLE)); in testSetConstraintSatisfied_Constraints()
1415 mFlexibilityController.setConstraintSatisfied(CONSTRAINT_IDLE, false, FROZEN_TIME); in testSetConstraintSatisfied_Constraints()
1416 assertFalse(mFlexibilityController.isConstraintSatisfied(CONSTRAINT_IDLE)); in testSetConstraintSatisfied_Constraints()
1423 CONSTRAINT_IDLE & CONSTRAINT_CHARGING & CONSTRAINT_BATTERY_NOT_LOW, in testSetConstraintSatisfied_Jobs()
1424 CONSTRAINT_IDLE & CONSTRAINT_BATTERY_NOT_LOW, in testSetConstraintSatisfied_Jobs()
[all …]
DJobStatusTest.java41 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_IDLE;
826 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
836 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
876 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()
878 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()
882 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()
884 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_RequestedDeviceIdle()
1276 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()
1288 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()
1300 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_IDLE)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()
[all …]
/frameworks/proto_logging/stats/enums/server/job/
Denums.proto37 CONSTRAINT_IDLE = 6; enumerator
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerShellCommand.java391 enabled |= JobStatus.CONSTRAINT_IDLE; in enableFlexPolicy()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java262 | JobStatus.CONSTRAINT_IDLE in testDynamicConstraintsNotPersisted()