Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java27 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_DEADLINE;
132 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
142 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
262 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedOverrideDeadline()
264 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedOverrideDeadline()
268 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedOverrideDeadline()
270 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedOverrideDeadline()
426 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedMixture_WithDeadline()
433 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedMixture_WithDeadline()
443 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_DEADLINE)); in testWouldBeReadyWithConstraint_RequestedMixture_WithDeadline()
[all …]
DTimeControllerTest.java721 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
722 assertFalse(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
723 assertFalse(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
731 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
732 assertTrue(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
733 assertFalse(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
741 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
742 assertTrue(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
743 assertTrue(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in runTestCheckExpiredDeadlinesAndResetAlarm()
780 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in testCheckExpiredDeadlinesAndResetAlarm_WithSkipping_SomeNotReady()
[all …]
/frameworks/base/services/core/java/com/android/server/job/controllers/
DTimeController.java144 if (wouldBeReadyWithConstraintLocked(job, JobStatus.CONSTRAINT_DEADLINE)) { in maybeStartTrackingJobLocked()
180 && !job.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE) in evaluateStateLocked()
189 job, JobStatus.CONSTRAINT_DEADLINE); in evaluateStateLocked()
228 || job.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in canStopTrackingJobLocked()
266 job, JobStatus.CONSTRAINT_DEADLINE)) { in checkExpiredDeadlinesAndResetAlarm()
DJobStatus.java78 static final int CONSTRAINT_DEADLINE = 1<<30; field in JobStatus
101 | CONSTRAINT_DEADLINE
414 requiredConstraints |= CONSTRAINT_DEADLINE; in JobStatus()
847 return (requiredConstraints&CONSTRAINT_DEADLINE) != 0; in hasDeadlineConstraint()
955 if (setConstraintSatisfied(CONSTRAINT_DEADLINE, state)) { in setDeadlineConstraintSatisfied()
1078 case CONSTRAINT_DEADLINE: in wouldBeReadyWithConstraint()
1101 case CONSTRAINT_DEADLINE: in wouldBeReadyWithConstraint()
1296 if ((constraints&CONSTRAINT_DEADLINE) != 0) { in dumpConstraints()
1337 case CONSTRAINT_DEADLINE: in getProtoConstraint()
1338 return JobServerProtoEnums.CONSTRAINT_DEADLINE; in getProtoConstraint()
[all …]
/frameworks/base/core/proto/android/server/job/
Denums.proto36 CONSTRAINT_DEADLINE = 5; enumerator