Home
last modified time | relevance | path

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

/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobSchedulerWrapper.java54 private JobScheduler mJobScheduler; field in JobSchedulerWrapper
69 mJobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); in JobSchedulerWrapper()
80 printJobsOnce(mJobScheduler.getAllPendingJobs()); in JobSchedulerWrapper()
169 mJobScheduler.schedule(jobInfo); in scheduleAJob()
209 for (JobInfo job : mJobScheduler.getAllPendingJobs()) { in checkIdForExistence()
241 List<JobInfo> currentJobs = mJobScheduler.getAllPendingJobs(); in updateJobs()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageBroadcastReceiverTest.java43 @Mock private JobScheduler mJobScheduler; field in AutomaticStorageBroadcastReceiverTest
54 mJobScheduler); in testSetupJobServicesOnBoot()
61 verify(mJobScheduler, times(1)).schedule(jobCaptor.capture()); in testSetupJobServicesOnBoot()
62 verifyNoMoreInteractions(mJobScheduler); in testSetupJobServicesOnBoot()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyConfigJobServiceTest.java61 private JobScheduler mJobScheduler; field in AnomalyConfigJobServiceTest
69 mJobScheduler = spy(mContext.getSystemService(JobScheduler.class)); in setUp()
70 when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler); in setUp()
99 verify(mJobScheduler, times(1)).schedule(any()); in testScheduleConfigUpdate_invokeTwice_onlyScheduleOnce()
DAnomalyCleanupJobServiceTest.java64 private JobScheduler mJobScheduler; field in AnomalyCleanupJobServiceTest
73 mJobScheduler = spy(mContext.getSystemService(JobScheduler.class)); in setUp()
74 when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler); in setUp()
102 verify(mJobScheduler, times(1)).schedule(any()); in scheduleCleanUp_invokeTwice_onlyScheduleOnce()
/packages/services/Car/service/src/com/android/car/garagemode/
DGarageMode.java70 private JobScheduler mJobScheduler; field in GarageMode
145 mJobScheduler = controller.getJobSchedulerService(); in GarageMode()
279 List<JobInfo> startedJobs = mJobScheduler.getStartedJobs(); in getListOfIdleJobsRunning()
304 List<JobSnapshot> allScheduledJobs = mJobScheduler.getAllJobSnapshots(); in getListOfPendingJobs()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java143 private final JobScheduler mJobScheduler; field in AbstractDownloadProviderFunctionalTest.TestContext
150 mJobScheduler = mock(JobScheduler.class); in TestContext()
171 return mJobScheduler; in getSystemService()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java114 private final JobScheduler mJobScheduler; field in DynamicShortcuts
128 mJobScheduler = jobScheduler; in DynamicShortcuts()
441 mJobScheduler.cancel(ContactsJobService.DYNAMIC_SHORTCUTS_JOB_ID); in handleFlagDisabled()
472 mJobScheduler.schedule(job); in scheduleUpdateJob()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DLocationAccessCheck.java145 private final @NonNull JobScheduler mJobScheduler; field in LocationAccessCheck
323 mJobScheduler = getSystemServiceSafe(mContext, JobScheduler.class); in LocationAccessCheck()
730 int scheduleResult = mJobScheduler.schedule(b.build()); in checkLocationAccessSoon()