Home
last modified time | relevance | path

Searched refs:jobService (Results 1 – 11 of 11) sorted by relevance

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/logging/
DJobServiceTest.java135 TestJobService jobService = new TestJobService(mLogger); in testJobExecutionLifeCycle_succeedThenSucceed() local
146 jobService.setOnSuccessCallback(true); in testJobExecutionLifeCycle_succeedThenSucceed()
149 jobService.onStartJob(mMockJobParameters); in testJobExecutionLifeCycle_succeedThenSucceed()
164 jobService.setOnSuccessCallback(true); in testJobExecutionLifeCycle_succeedThenSucceed()
166 jobService.onStartJob(mMockJobParameters); in testJobExecutionLifeCycle_succeedThenSucceed()
185 TestJobService jobService = new TestJobService(mLogger); in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry() local
196 jobService.setOnSuccessCallback(false); in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
197 jobService.setShouldRetryOnJobFinished(true); in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
199 jobService.onStartJob(mMockJobParameters); in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
212 jobService.setOnSuccessCallback(false); in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
[all …]
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DRefreshShortcutsTask.java34 private final JobService jobService; field in RefreshShortcutsTask
36 RefreshShortcutsTask(@NonNull JobService jobService) { in RefreshShortcutsTask() argument
37 this.jobService = jobService; in RefreshShortcutsTask()
57 new DynamicShortcuts(jobService, new IconFactory(jobService)).updateIcons(); // Blocking in doInBackground()
58 new PinnedShortcuts(jobService).refresh(); // Blocking in doInBackground()
69 jobService.jobFinished(params, false /* needsReschedule */); in onPostExecute()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/concurrency/
DJobServiceCallback.java42 public JobServiceCallback expectJobFinished(JobService jobService) { in expectJobFinished() argument
47 () -> new JobFinishedCallback(jobService)); in expectJobFinished()
57 public JobServiceCallback expectJobStopped(JobService jobService) { in expectJobStopped() argument
62 () -> new JobStoppedCallback(jobService)); in expectJobStopped()
111 private JobFinishedCallback(JobService jobService) { in JobFinishedCallback() argument
120 .when(jobService) in JobFinishedCallback()
147 private JobStoppedCallback(JobService jobService) { in JobStoppedCallback() argument
155 .when(jobService) in JobStoppedCallback()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/common/
DFederatedComputeJobUtil.java29 public static boolean cancelAndFinishJob(final JobService jobService, in cancelAndFinishJob() argument
33 JobScheduler jobScheduler = jobService.getSystemService(JobScheduler.class); in cancelAndFinishJob()
37 FederatedComputeJobServiceLogger.getInstance(jobService).recordJobSkipped( in cancelAndFinishJob()
40 jobService.jobFinished(params, /* wantsReschedule = */ false); in cancelAndFinishJob()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ipmemorystore/
DRegularMaintenanceJobServiceTest.kt56 private val jobService = InstrumentedRegularMaintenanceJobService() in <lambda>() constant in com.android.networkstack.ipmemorystore.RegularMaintenanceJobServiceTest
74 jobService.onBind(null) in <lambda>()
94 assertTrue(jobService.onStartJob(params)) in <lambda>()
114 assertFalse(jobService.onStartJob(params)) in <lambda>()
123 assertTrue(jobService.onStopJob(params)) in <lambda>()
137 val (completeParams, reschedule) = jobService.events.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS) in <lambda>()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DAccessibilitySourceServiceTest.kt56 @Mock lateinit var jobService: AccessibilityJobService variable in com.android.permissioncontroller.tests.mocking.privacysources.AccessibilitySourceServiceTest
95 accessibilitySourceService.processAccessibilityJob(jobParameters, jobService) { in processAccessibilityJobWithCancellation()
100 verify(jobService).jobFinished(jobParameters, true) in processAccessibilityJobWithCancellation()
/packages/modules/AdServices/adservices/linter/tests/java/android/adservices/lint/test/
DBackCompatJobServiceDetectorTest.kt237 private val jobService: TestFile = constant in android.adservices.lint.test.BackCompatJobServiceDetectorTest
291 jobService,
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/
DAccessibilitySourceService.kt119 jobService: AccessibilityJobService, in processAccessibilityJob()
135 jobService.jobFinished(params, false) in processAccessibilityJob()
136 jobService.clearJob() in processAccessibilityJob()
166 jobService.jobFinished(params, false) in processAccessibilityJob()
169 jobService.jobFinished(params, true) in processAccessibilityJob()
172 jobService.jobFinished(params, false) in processAccessibilityJob()
174 jobService.clearJob() in processAccessibilityJob()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerStorageCleanUpService.java90 public CleanUpStorageTask(Context context, JobService jobService) { in CleanUpStorageTask() argument
94 mJobService = jobService; in CleanUpStorageTask()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcher.java55 boolean executeFetchTaskIfPossible(JobService jobService, JobParameters params); in executeFetchTaskIfPossible() argument
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeEpgFetcher.java45 public boolean executeFetchTaskIfPossible(JobService jobService, JobParameters params) { in executeFetchTaskIfPossible() argument