Home
last modified time | relevance | path

Searched refs:mJobScheduler (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DPrioritySchedulingTest.java36 JobScheduler mJobScheduler; field in PrioritySchedulingTest
43 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 …]
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobSchedulerTest.java67 private JobScheduler mJobScheduler; field in SystemJobSchedulerTest
79 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()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobScheduler.java49 private final JobScheduler mJobScheduler; field in SystemJobScheduler
68 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()
/frameworks/support/compat/src/main/java/androidx/core/app/
DJobIntentService.java329 private final JobScheduler mJobScheduler; field in JobIntentService.JobWorkEnqueuer
336 mJobScheduler = (JobScheduler) context.getApplicationContext().getSystemService( in JobWorkEnqueuer()
343 mJobScheduler.enqueue(mJobInfo, new JobWorkItem(work)); in enqueueWork()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java239 private JobScheduler mJobScheduler; field in SyncManager
510 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()