Home
last modified time | relevance | path

Searched refs:ENCRYPTION_KEY_JOB_ID (Results 1 – 2 of 2) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/encryptionkey/
DEncryptionKeyJobServiceTest.java72 private static final int ENCRYPTION_KEY_JOB_ID = ENCRYPTION_KEY_PERIODIC_JOB.getJobId(); field in EncryptionKeyJobServiceTest
106 verify(mMockJobScheduler).cancel(ENCRYPTION_KEY_JOB_ID); in testOnStartJob_killSwitchOn()
123 verify(mMockJobScheduler, never()).cancel(ENCRYPTION_KEY_JOB_ID); in testOnStartJob_killSwitchOff()
143 verify(mMockJobScheduler).cancel(ENCRYPTION_KEY_JOB_ID); in testOnStartJob_shouldDisableJobTrue()
153 doReturn(mMockJobInfo).when(mMockJobScheduler).getPendingJob(ENCRYPTION_KEY_JOB_ID); in testScheduleIfNeeded_killSwitchOn_dontSchedule()
163 verify(mMockJobScheduler, never()).getPendingJob(ENCRYPTION_KEY_JOB_ID); in testScheduleIfNeeded_killSwitchOn_dontSchedule()
179 ENCRYPTION_KEY_JOB_ID, in testScheduleIfNeeded_killSwitchOff_sameJobInfoDontForceSchedule_dontSchedule()
184 doReturn(jobInfo).when(mMockJobScheduler).getPendingJob(ENCRYPTION_KEY_JOB_ID); in testScheduleIfNeeded_killSwitchOff_sameJobInfoDontForceSchedule_dontSchedule()
194 verify(mMockJobScheduler).getPendingJob(ENCRYPTION_KEY_JOB_ID); in testScheduleIfNeeded_killSwitchOff_sameJobInfoDontForceSchedule_dontSchedule()
205 ENCRYPTION_KEY_JOB_ID, in testScheduleIfNeeded_killSwitchOff_diffJobInfoDontForceSchedule_schedule()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/encryptionkey/
DEncryptionKeyJobService.java48 private static final int ENCRYPTION_KEY_JOB_ID = ENCRYPTION_KEY_PERIODIC_JOB.getJobId(); field in EncryptionKeyJobService
64 AdServicesJobServiceLogger.getInstance().recordOnStartJob(ENCRYPTION_KEY_JOB_ID); in onStartJob()
80 ENCRYPTION_KEY_JOB_ID, in onStartJob()
97 .recordOnStopJob(params, ENCRYPTION_KEY_JOB_ID, shouldRetry); in onStopJob()
120 final JobInfo scheduledJob = jobScheduler.getPendingJob(ENCRYPTION_KEY_JOB_ID); in scheduleIfNeeded()
159 ENCRYPTION_KEY_JOB_ID, in buildJobInfo()
169 jobScheduler.cancel(ENCRYPTION_KEY_JOB_ID); in skipAndCancelBackgroundJob()