Home
last modified time | relevance | path

Searched refs:CONSTRAINT_DEADLINE (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java38 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_DEADLINE;
830 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
840 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
960 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedOverrideDeadline()
962 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedOverrideDeadline()
966 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedOverrideDeadline()
968 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedOverrideDeadline()
1124 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedMixture_WithDeadline()
1131 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedMixture_WithDeadline()
1141 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedMixture_WithDeadline()
[all …]
DTimeControllerTest.java568 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
569 assertFalse(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
570 assertFalse(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
578 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
579 assertTrue(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
580 assertFalse(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
588 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
589 assertTrue(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
590 assertTrue(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
626 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in testCheckExpiredDeadlinesAndResetAlarm_SomeNotReady()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DTimeController.java126 && wouldBeReadyWithConstraintLocked(job, JobStatus.CONSTRAINT_DEADLINE)) { in maybeStartTrackingJobLocked()
153 && !job.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE) in evaluateStateLocked()
164 } else if (wouldBeReadyWithConstraintLocked(job, JobStatus.CONSTRAINT_DEADLINE)) { in evaluateStateLocked()
203 || job.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in canStopTrackingJobLocked()
241 if (!wouldBeReadyWithConstraintLocked(job, JobStatus.CONSTRAINT_DEADLINE)) { in checkExpiredDeadlinesAndResetAlarm()
DJobStatus.java117 public static final int CONSTRAINT_DEADLINE = 1 << 30; field in JobStatus
195 | CONSTRAINT_DEADLINE
675 requiredConstraints |= CONSTRAINT_DEADLINE; in JobStatus()
1586 return hasConstraint(CONSTRAINT_DEADLINE); in hasDeadlineConstraint()
1833 if (setConstraintSatisfied(CONSTRAINT_DEADLINE, nowElapsed, state)) { in setDeadlineConstraintSatisfied()
2042 case CONSTRAINT_DEADLINE: in constraintToStopReason()
2254 case CONSTRAINT_DEADLINE: in readinessStatusWithConstraint()
2293 case CONSTRAINT_DEADLINE: in readinessStatusWithConstraint()
2528 if ((constraints & CONSTRAINT_DEADLINE) != 0) { in dumpConstraints()
2575 case CONSTRAINT_DEADLINE: in getProtoConstraint()
[all …]
/frameworks/proto_logging/stats/enums/server/job/
Denums.proto36 CONSTRAINT_DEADLINE = 5; enumerator
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java2373 cancelled.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE),