Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
H A DTimeControllerTest.java456 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
457 assertFalse(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
458 assertFalse(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
467 assertTrue(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
468 assertFalse(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
477 assertTrue(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
478 assertTrue(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
514 assertFalse(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in testCheckExpiredDelaysAndResetAlarm_SomeNotReady()
515 assertFalse(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in testCheckExpiredDelaysAndResetAlarm_SomeNotReady()
525 assertTrue(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in testCheckExpiredDelaysAndResetAlarm_SomeNotReady()
[all …]
H A DJobStatusTest.java41 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_TIMING_DELAY;
747 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
757 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
857 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_RequestedTimingDelay()
859 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_RequestedTimingDelay()
863 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_RequestedTimingDelay()
865 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_RequestedTimingDelay()
1197 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()
1209 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()
1221 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_TIMING_DELAY)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()
[all …]
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
H A DTimeController.java126 && wouldBeReadyWithConstraintLocked(job, JobStatus.CONSTRAINT_TIMING_DELAY)) { in maybeStartTrackingJobLocked()
175 && !job.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY) in evaluateStateLocked()
183 } else if (wouldBeReadyWithConstraintLocked(job, JobStatus.CONSTRAINT_TIMING_DELAY)) { in evaluateStateLocked()
205 || job.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)) in canStopTrackingJobLocked()
301 if (!wouldBeReadyWithConstraintLocked(job, JobStatus.CONSTRAINT_TIMING_DELAY)) { in checkExpiredDelaysAndResetAlarm()
H A DJobStatus.java118 public static final int CONSTRAINT_TIMING_DELAY = 1 << 31; field in JobStatus
204 | CONSTRAINT_TIMING_DELAY
638 requiredConstraints |= CONSTRAINT_TIMING_DELAY; in JobStatus()
1471 return hasConstraint(CONSTRAINT_TIMING_DELAY); in hasTimingDelayConstraint()
1951 case CONSTRAINT_TIMING_DELAY: in constraintToStopReason()
2031 if ((CONSTRAINT_TIMING_DELAY & unsatisfiedConstraints) != 0) { in getPendingJobReason()
2443 if ((constraints & CONSTRAINT_TIMING_DELAY) != 0) { in dumpConstraints()
2510 case CONSTRAINT_TIMING_DELAY: in getProtoConstraint()
2511 return JobServerProtoEnums.CONSTRAINT_TIMING_DELAY; in getProtoConstraint()
2530 if ((constraints & CONSTRAINT_TIMING_DELAY) != 0) { in dumpConstraints()
[all …]
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobServiceContext.java496 job.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY), in executeRunnableJob()
1557 completedJob.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY), in closeAndCleanupJobLocked()
H A DJobSchedulerService.java2216 cancelled.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY),