Home
last modified time | relevance | path

Searched refs:MaintenanceJobService (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/
DMaintenanceJobServiceTest.java80 @SpyStatic(MaintenanceJobService.class)
97 @Spy private MaintenanceJobService mSpyMaintenanceJobService;
177 new ComponentName(sContext, MaintenanceJobService.class)) in testOnStartJob_TopicsKillSwitchOn()
232 new ComponentName(sContext, MaintenanceJobService.class)) in testOnStartJob_SelectAdsKillSwitchOn()
288 new ComponentName(sContext, MaintenanceJobService.class)) in testOnStartJob_SignalsDisabled()
375 new ComponentName(sContext, MaintenanceJobService.class)) in testOnStartJob_killSwitchOnDoesFledgeJobWhenTopicsJobThrowsException()
440 new ComponentName(sContext, MaintenanceJobService.class)) in testOnStartJob_killSwitchOnDoesTopicsJobWhenFledgeThrowsException()
499 new ComponentName(sContext, MaintenanceJobService.class)) in testOnStartJob_globalKillswitchOverridesAll()
555 assertThat(MaintenanceJobService.scheduleIfNeeded(sContext, /* forceSchedule */ false)) in testScheduleIfNeeded_Success()
569 assertThat(MaintenanceJobService.scheduleIfNeeded(sContext, /* forceSchedule */ false)) in testScheduleIfNeeded_ScheduledWithSameParameters()
[all …]
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/adselection/
DAdSelectionServiceTest.java41 import com.android.adservices.service.MaintenanceJobService;
58 @SpyStatic(MaintenanceJobService.class)
100 doReturn(true).when(() -> MaintenanceJobService.scheduleIfNeeded(any(), anyBoolean())); in testBindableAdSelectionServiceKillSwitchOffGaUxEnabled()
116 verify(() -> MaintenanceJobService.scheduleIfNeeded(any(), anyBoolean())); in testBindableAdSelectionServiceKillSwitchOffGaUxEnabled()
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/topics/
DTopicsServiceTest.java46 import com.android.adservices.service.MaintenanceJobService;
69 @SpyStatic(MaintenanceJobService.class)
103 .when(() -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false))); in testBindableTopicsService_killswitchOff()
165 .when(() -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false))); in testBindableTopicsService_killswitchOffGaUxFeatureFlagOn()
193 verify(() -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false))); in verifyMethodExecutionOnUserConsentGiven()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/adselection/
DAdSelectionService.java30 import com.android.adservices.service.MaintenanceJobService;
74 MaintenanceJobService.scheduleIfNeeded(this, /* forceSchedule */ false); in onCreate()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/topics/
DTopicsService.java35 import com.android.adservices.service.MaintenanceJobService;
102 MaintenanceJobService.scheduleIfNeeded(this, /* forceSchedule */ false); in schedulePeriodicJobs()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DBackgroundJobsManager.java55 import com.android.adservices.service.MaintenanceJobService;
148 MaintenanceJobService.scheduleIfNeeded(context, /* forceSchedule= */ false); in scheduleFledgeBackgroundJobs()
173 MaintenanceJobService.scheduleIfNeeded(context, /* forceSchedule= */ false); in scheduleTopicsBackgroundJobs()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/
DMaintenanceJobService.java53 public final class MaintenanceJobService extends JobService { class
193 new ComponentName(context, MaintenanceJobService.class)) in schedule()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DBackgroundJobsManagerTest.java61 import com.android.adservices.service.MaintenanceJobService;
98 @SpyStatic(MaintenanceJobService.class)
131 doReturn(true).when(() -> MaintenanceJobService.scheduleIfNeeded(any(), anyBoolean())); in setDefaultExpectations()
592 () -> MaintenanceJobService.scheduleIfNeeded(any(), eq(false)), in assertMaintenanceJobScheduled()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java121 import com.android.adservices.service.MaintenanceJobService;
202 @SpyStatic(MaintenanceJobService.class)
299 .when(() -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false))); in setup()
335 doReturn(true).when(() -> MaintenanceJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
620 () -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false)), in testJobsAreScheduledAfterEnablingKillSwitchOff()
670 () -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false)), in testJobsAreNotScheduledAfterEnablingKillSwitchOn()
DConsentManagerTest.java126 import com.android.adservices.service.MaintenanceJobService;
207 @SpyStatic(MaintenanceJobService.class)
277 .when(() -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false))); in setup()
313 doReturn(true).when(() -> MaintenanceJobService.scheduleIfNeeded(any(), anyBoolean())); in setup()
627 () -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false)), in testJobsAreScheduledAfterEnablingKillSwitchOff()
677 () -> MaintenanceJobService.scheduleIfNeeded(any(Context.class), eq(false)), in testJobsAreNotScheduledAfterEnablingKillSwitchOn()