Home
last modified time | relevance | path

Searched refs:DeleteExpiredJobService (Results 1 – 14 of 14) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DDeleteExpiredJobServiceTest.java85 private DeleteExpiredJobService mSpyService;
94 .spyStatic(DeleteExpiredJobService.class)
103 mSpyService = spy(new DeleteExpiredJobService()); in setUp()
211 DeleteExpiredJobService.scheduleIfNeeded( in scheduleIfNeeded_killSwitchOn_dontSchedule()
216 () -> DeleteExpiredJobService.schedule(any(), any()), never()); in scheduleIfNeeded_killSwitchOn_dontSchedule()
237 mockContext, DeleteExpiredJobService.class)) in scheduleIfNeeded_sameJobInfoNoForceSchedule_dontSchedule()
247 DeleteExpiredJobService.scheduleIfNeeded( in scheduleIfNeeded_sameJobInfoNoForceSchedule_dontSchedule()
252 () -> DeleteExpiredJobService.schedule(any(), any()), never()); in scheduleIfNeeded_sameJobInfoNoForceSchedule_dontSchedule()
273 mockContext, DeleteExpiredJobService.class)) in scheduleIfNeeded_diffJobInfoNoForceSchedule_dontSchedule()
283 DeleteExpiredJobService.scheduleIfNeeded( in scheduleIfNeeded_diffJobInfoNoForceSchedule_dontSchedule()
[all …]
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DDeleteExpiredJobService.java52 public class DeleteExpiredJobService extends JobService { class
54 private static final String TAG = DeleteExpiredJobService.class.getSimpleName();
60 public DeleteExpiredJobService() { in DeleteExpiredJobService() method in DeleteExpiredJobService
65 public DeleteExpiredJobService(Injector injector) { in DeleteExpiredJobService() method in DeleteExpiredJobService
147 FederatedComputeJobServiceLogger.getInstance(DeleteExpiredJobService.this) in onStartJob()
159 FederatedComputeJobServiceLogger.getInstance(DeleteExpiredJobService.this) in onStartJob()
193 new ComponentName(context, DeleteExpiredJobService.class)) in scheduleJobIfNeeded()
DDeleteExpiredJob.java51 private static final String TAG = DeleteExpiredJobService.class.getSimpleName();
144 DeleteExpiredJobService.scheduleJobIfNeeded( in schedule()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DDeleteExpiredJobServiceTest.java87 private DeleteExpiredJobService mSpyService;
111 mSpyService = spy(new DeleteExpiredJobService(new TestInjector())); in setUp()
128 DeleteExpiredJobService instance = new DeleteExpiredJobService(); in testDefaultNoArgConstructor()
215 DeleteExpiredJobService.scheduleJobIfNeeded( in enableKillSwitch()
248 DeleteExpiredJobService.Injector injector = new DeleteExpiredJobService.Injector(); in testDefaultInjector()
281 class TestInjector extends DeleteExpiredJobService.Injector {
DDeleteExpiredJobTest.java72 @MockStatic(DeleteExpiredJobService.class)
162 DeleteExpiredJobService.scheduleJobIfNeeded( in testSchedule_legacy()
170 DeleteExpiredJobService.scheduleJobIfNeeded( in testSchedule_legacy()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/sharedlibrary/spe/
DFederatedComputeJobServiceFactoryTest.java33 import com.android.federatedcompute.services.scheduling.DeleteExpiredJobService;
52 @MockStatic(DeleteExpiredJobService.class)
120 DeleteExpiredJobService.scheduleJobIfNeeded( in testRescheduleJobWithLegacyMethod()
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/measurement/
DMeasurementServiceTest.java51 import com.android.adservices.service.measurement.DeleteExpiredJobService;
87 @SpyStatic(DeleteExpiredJobService.class)
233 .when(() -> DeleteExpiredJobService.scheduleIfNeeded(any(), anyBoolean())); in runWithMocks()
273 () -> DeleteExpiredJobService.scheduleIfNeeded(any(), anyBoolean()), in assertJobScheduled()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/measurement/
DMeasurementService.java37 import com.android.adservices.service.measurement.DeleteExpiredJobService;
112 DeleteExpiredJobService.scheduleIfNeeded(this, false); in schedulePeriodicJobsIfNeeded()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/sharedlibrary/spe/
DFederatedComputeJobServiceFactory.java35 import com.android.federatedcompute.services.scheduling.DeleteExpiredJobService;
182 DeleteExpiredJobService.scheduleJobIfNeeded(context, mFlags, forceSchedule); in rescheduleJobWithLegacyMethod()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DDeleteExpiredJobService.java44 public final class DeleteExpiredJobService extends JobService { class
160 new ComponentName(context, DeleteExpiredJobService.class)) in buildJobInfo()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DBackgroundJobsManagerTest.java64 import com.android.adservices.service.measurement.DeleteExpiredJobService;
95 @SpyStatic(DeleteExpiredJobService.class)
129 doNothing().when(() -> DeleteExpiredJobService.scheduleIfNeeded(any(), anyBoolean())); in setDefaultExpectations()
573 () -> DeleteExpiredJobService.scheduleIfNeeded(any(), eq(false)), in assertMeasurementJobsScheduled()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DBackgroundJobsManager.java59 import com.android.adservices.service.measurement.DeleteExpiredJobService;
239 DeleteExpiredJobService.scheduleIfNeeded(context, /* forceSchedule= */ false); in scheduleMeasurementBackgroundJobs()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java130 import com.android.adservices.service.measurement.DeleteExpiredJobService;
192 @SpyStatic(DeleteExpiredJobService.class)
333 doNothing().when(() -> DeleteExpiredJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
648 verify(() -> DeleteExpiredJobService.scheduleIfNeeded(any(Context.class), eq(false))); in testJobsAreScheduledAfterEnablingKillSwitchOff()
716 () -> DeleteExpiredJobService.scheduleIfNeeded(any(Context.class), eq(false)), in testJobsAreNotScheduledAfterEnablingKillSwitchOn()
DConsentManagerTest.java134 import com.android.adservices.service.measurement.DeleteExpiredJobService;
197 @SpyStatic(DeleteExpiredJobService.class)
311 doNothing().when(() -> DeleteExpiredJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
655 verify(() -> DeleteExpiredJobService.scheduleIfNeeded(any(Context.class), eq(false))); in testJobsAreScheduledAfterEnablingKillSwitchOff()
723 () -> DeleteExpiredJobService.scheduleIfNeeded(any(Context.class), eq(false)), in testJobsAreNotScheduledAfterEnablingKillSwitchOn()