Searched refs:mJobScheduler (Results 1 – 5 of 5) sorted by relevance
36 JobScheduler mJobScheduler; field in PrioritySchedulingTest43 mJobScheduler = (JobScheduler) getContext().getSystemService(Context.JOB_SCHEDULER_SERVICE); in setUp()44 mJobScheduler.cancelAll(); in setUp()49 mJobScheduler.cancelAll(); in tearDown()71 mJobScheduler.schedule(job1); in testLowerPriorityJobPreempted()72 mJobScheduler.schedule(job2); in testLowerPriorityJobPreempted()73 mJobScheduler.schedule(job3); in testLowerPriorityJobPreempted()74 mJobScheduler.schedule(job4); in testLowerPriorityJobPreempted()109 mJobScheduler.schedule(job1); in testHigherPriorityJobNotPreempted()110 mJobScheduler.schedule(job2); in testHigherPriorityJobNotPreempted()[all …]
67 private JobScheduler mJobScheduler; field in SystemJobSchedulerTest79 mJobScheduler = mock(JobScheduler.class); in setUp()85 doReturn(RESULT_SUCCESS).when(mJobScheduler).schedule(any(JobInfo.class)); in setUp()97 doReturn(allJobInfos).when(mJobScheduler).getAllPendingJobs(); in setUp()103 mJobScheduler, in setUp()150 verify(mJobScheduler, times(2)).cancel(anyInt()); in testSystemJobScheduler_cancelsAllOnApi23()158 verify(mJobScheduler, times(1)).cancel(anyInt()); in testSystemJobScheduler_cancelsOnceAtOrAboveApi24()
49 private final JobScheduler mJobScheduler; field in SystemJobScheduler68 mJobScheduler = jobScheduler; in SystemJobScheduler()126 mJobScheduler.schedule(jobInfo); in scheduleInternal()134 List<JobInfo> allJobInfos = mJobScheduler.getAllPendingJobs(); in cancel()145 mJobScheduler.cancel(jobInfo.getId()); in cancel()
329 private final JobScheduler mJobScheduler; field in JobIntentService.JobWorkEnqueuer336 mJobScheduler = (JobScheduler) context.getApplicationContext().getSystemService( in JobWorkEnqueuer()343 mJobScheduler.enqueue(mJobInfo, new JobWorkItem(work)); in enqueueWork()
239 private JobScheduler mJobScheduler; field in SyncManager510 if (mJobScheduler != null) { in verifyJobScheduler()518 mJobScheduler = (JobScheduler) mContext.getSystemService( in verifyJobScheduler()522 List<JobInfo> pendingJobs = mJobScheduler.getAllPendingJobs(); in verifyJobScheduler()575 return mJobScheduler; in getJobScheduler()