Searched refs:jobRunning (Results 1 – 2 of 2) sorted by relevance
329 final JobStatus jobRunning = createJobStatus("testConstraintSatisfiedWhenTop", 2); in testConstraintSatisfiedWhenTop() local333 when(mJobSchedulerService.isCurrentlyRunningLocked(jobRunning)).thenReturn(true); in testConstraintSatisfiedWhenTop()340 trackJobs(jobPending, jobRunning); in testConstraintSatisfiedWhenTop()347 assertTrue(jobRunning.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()348 assertTrue(jobRunning.isReady()); in testConstraintSatisfiedWhenTop()356 assertTrue(jobRunning.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()357 assertTrue(jobRunning.isReady()); in testConstraintSatisfiedWhenTop()363 assertTrue(jobRunning.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()364 assertTrue(jobRunning.isReady()); in testConstraintSatisfiedWhenTop()
2183 JobStatus jobRunning = createJobStatus( in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow() local2187 setStandbyBucket(WORKING_INDEX, jobRunning, jobPending); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()2205 when(mJobSchedulerService.isCurrentlyRunningLocked(jobRunning)).thenReturn(true); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()2209 trackJobs(jobRunning, jobPending); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()2214 mQuotaController.prepareForExecutionLocked(jobRunning); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()2225 assertTrue(mQuotaController.isWithinQuotaLocked(jobRunning)); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()2226 assertTrue(jobRunning.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()2227 assertTrue(jobRunning.isReady()); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()2236 mQuotaController.maybeStopTrackingJobLocked(jobRunning, null); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()