Home
last modified time | relevance | path

Searched refs:jobPending (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DPrefetchControllerTest.java328 final JobStatus jobPending = createJobStatus("testConstraintSatisfiedWhenTop", 1); in testConstraintSatisfiedWhenTop() local
330 final int uid = jobPending.getSourceUid(); in testConstraintSatisfiedWhenTop()
332 when(mJobSchedulerService.isCurrentlyRunningLocked(jobPending)).thenReturn(false); in testConstraintSatisfiedWhenTop()
340 trackJobs(jobPending, jobRunning); in testConstraintSatisfiedWhenTop()
345 assertTrue(jobPending.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()
346 assertTrue(jobPending.isReady()); in testConstraintSatisfiedWhenTop()
354 assertFalse(jobPending.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()
355 assertFalse(jobPending.isReady()); in testConstraintSatisfiedWhenTop()
361 assertTrue(jobPending.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()
362 assertTrue(jobPending.isReady()); in testConstraintSatisfiedWhenTop()
DQuotaControllerTest.java2185 JobStatus jobPending = createJobStatus( in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow() local
2187 setStandbyBucket(WORKING_INDEX, jobRunning, jobPending); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()
2206 when(mJobSchedulerService.isCurrentlyRunningLocked(jobPending)).thenReturn(false); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()
2209 trackJobs(jobRunning, jobPending); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()
2220 expected.add(jobPending); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()
2228 assertFalse(mQuotaController.isWithinQuotaLocked(jobPending)); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()
2229 assertFalse(jobPending.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()
2230 assertFalse(jobPending.isReady()); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java2106 final boolean jobPending = mPendingJobQueue.contains(job);
2111 + " pending=" + jobPending);
2114 if (jobPending) {
4027 final boolean jobPending = mPendingJobQueue.contains(job);
4032 + " pending=" + jobPending + " active=" + jobActive);
4038 if (jobPending || jobActive) {