Searched refs:mJobScheduler (Results 1 – 4 of 4) 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 …]
302 private final JobScheduler mJobScheduler; field in JobIntentService.JobWorkEnqueuer309 mJobScheduler = (JobScheduler) context.getApplicationContext().getSystemService( in JobWorkEnqueuer()316 mJobScheduler.enqueue(mJobInfo, new JobWorkItem(work)); in enqueueWork()
104 private @Mock JobScheduler mJobScheduler; field in RetailDemoModeServiceTest121 when(mContext.getSystemService(Context.JOB_SCHEDULER_SERVICE)).thenReturn(mJobScheduler); in setUp()232 verify(mJobScheduler).schedule(any(JobInfo.class)); in testSettingsObserver_disableDemoMode()
225 private JobScheduler mJobScheduler; field in SyncManager458 mJobScheduler.cancel(opy.jobId); in cleanupJobs()467 if (mJobScheduler != null) { in verifyJobScheduler()473 mJobScheduler = (JobScheduler) mContext.getSystemService( in verifyJobScheduler()477 List<JobInfo> pendingJobs = mJobScheduler.getAllPendingJobs(); in verifyJobScheduler()493 return mJobScheduler; in getJobScheduler()