Home
last modified time | relevance | path

Searched refs:JOB_ID (Results 1 – 24 of 24) sorted by relevance

/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/data/
DFederatedTrainingTaskDaoTest.java58 private static final int JOB_ID = 123; field in FederatedTrainingTaskDaoTest
71 .setJobId(JOB_ID)
109 FederatedTrainingTask removedTask = mTrainingTaskDao.findAndRemoveTaskByJobId(JOB_ID); in findAndRemoveTaskByJobId_success()
117 FederatedTrainingTask removedTask = mTrainingTaskDao.findAndRemoveTaskByJobId(JOB_ID); in findAndRemoveTaskByJobId_nonExist()
135 mTrainingTaskDao.findAndRemoveTaskByPopulationAndJobId(POPULATION_NAME, JOB_ID); in findAndRemoveTaskByPopulationNameAndJobId_success()
161 mTrainingTaskDao.findAndRemoveTaskByPopulationAndJobId(POPULATION_NAME, JOB_ID); in findAndRemoveTaskByPopulationNameAndJobId_nonExist()
267 mTrainingTaskDao.getLatestTaskHistory(JOB_ID, POPULATION_NAME, TASK_NAME); in getLatestTaskHistory_nonExist()
277 mTrainingTaskDao.getLatestTaskHistory(JOB_ID, POPULATION_NAME, TASK_ID); in insertTaskHistory_success()
289 .setJobId(JOB_ID) in updateTaskHistory_success()
298 mTrainingTaskDao.getLatestTaskHistory(JOB_ID, POPULATION_NAME, TASK_ID); in updateTaskHistory_success()
[all …]
DFederatedTrainingTaskTest.java54 private static final int JOB_ID = 123; field in FederatedTrainingTaskTest
111 assertThat(storedFederatedTrainingTask.jobId()).isEqualTo(JOB_ID); in readAndWrite_onlyRequiredFields()
136 new String[] {String.valueOf(JOB_ID)}); in queryWithJobId()
145 assertThat(trainingTask.jobId()).isEqualTo(JOB_ID); in buildFederatedTrainingTask()
177 .jobId(JOB_ID) in createFederatedTrainingTaskWithAllFields()
198 .jobId(JOB_ID) in createFederatedTrainingTaskWithRequiredFields()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/logging/
DJobSchedulingLoggerTest.java48 private static final int JOB_ID = 1; field in JobSchedulingLoggerTest
94 mSpyJobSchedulingLogger.recordOnScheduling(JOB_ID, RESULT_CODE); in testRecordOnScheduling_disabled()
105 mSpyJobSchedulingLogger.recordOnScheduling(JOB_ID, RESULT_CODE); in testRecordOnScheduling_enabled()
109 .logSchedulingStatsHelper(JOB_ID, RESULT_CODE, SCHEDULER_TYPE_SPE); in testRecordOnScheduling_enabled()
117 mSpyJobSchedulingLogger.recordOnSchedulingLegacy(JOB_ID, RESULT_CODE); in testRecordOnSchedulingLagacy_disabled()
128 mSpyJobSchedulingLogger.recordOnSchedulingLegacy(JOB_ID, RESULT_CODE); in testRecordOnSchedulingLagacy_enabled()
132 .logSchedulingStatsHelper(JOB_ID, RESULT_CODE, SCHEDULER_TYPE_JOB_SCHEDULER); in testRecordOnSchedulingLagacy_enabled()
143 mSpyJobSchedulingLogger.logSchedulingStatsHelper(JOB_ID, RESULT_CODE, SCHEDULER_TYPE_SPE); in testLogJobStatsHelper()
149 .setJobId(JOB_ID) in testLogJobStatsHelper()
DJobServiceTest.java76 private static final int JOB_ID = 1; field in JobServiceTest
97 new ImmutableMap.Builder<Integer, String>().put(JOB_ID, "job").build();
157 JOB_ID, in testJobExecutionLifeCycle_succeedThenSucceed()
174 JOB_ID, in testJobExecutionLifeCycle_succeedThenSucceed()
206 JOB_ID, in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
222 JOB_ID, in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
262 JOB_ID, in testJobExecutionLifeCycle_onStopWithRetryThenOnStopWithoutRetry()
279 JOB_ID, in testJobExecutionLifeCycle_onStopWithRetryThenOnStopWithoutRetry()
311 JOB_ID, in testJobExecutionLifeCycle_successThenHaltedByDevice()
340 JOB_ID, in testJobExecutionLifeCycle_successThenHaltedByDevice()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/
DFederatedComputeWorkerTest.java157 private static final int JOB_ID = 1234; field in FederatedComputeWorkerTest
278 .jobId(JOB_ID)
423 mSpyWorker.startTrainingRun(JOB_ID, mMockJobServiceOnFinishCallback).get(); in testJobNonExist_returnsFail()
428 eq(JOB_ID), eq(POPULATION_NAME), any(), any(), any(), anyBoolean()); in testJobNonExist_returnsFail()
438 mSpyWorker.startTrainingRun(JOB_ID, mMockJobServiceOnFinishCallback).get(); in testTrainingConditionsCheckFailed_returnsFail()
443 eq(JOB_ID), eq(POPULATION_NAME), any(), any(), any(), eq(false)); in testTrainingConditionsCheckFailed_returnsFail()
466 () -> mSpyWorker.startTrainingRun(JOB_ID, mMockJobServiceOnFinishCallback).get()); in testCheckinFails_throwsException()
484 mSpyWorker.startTrainingRun(JOB_ID, mMockJobServiceOnFinishCallback).get(); in testCheckinWithRetryRejection()
513 () -> mSpyWorker.startTrainingRun(JOB_ID, mMockJobServiceOnFinishCallback).get()); in testCheckinWithUnAuthRejection_fails()
544 mSpyWorker.startTrainingRun(JOB_ID, mMockJobServiceOnFinishCallback).get(); in testCheckinWithUnAuthRejection_success()
[all …]
DEligibilityDeciderTest.java79 private static final int JOB_ID = 123; field in EligibilityDeciderTest
156 .setJobId(JOB_ID) in testMinSepPolicy_eligible()
186 .setJobId(JOB_ID) in testMinSepPolicy_joinSameRound_notEligible()
227 .setJobId(JOB_ID) in testMinSepPolicy_joinNextRound_eligible()
271 .setJobId(JOB_ID) in testMinSepPolicy_notEligible()
380 .setJobId(JOB_ID) in dataAvailabilityPassMinSeparationFail_notEligible()
448 .jobId(JOB_ID) in createDefaultFederatedTrainingTask()
/packages/modules/ExtServices/java/tests/src/android/ext/services/common/
DAdServicesAppsearchDeleteJobTest.java257 .getPendingJob(AdServicesAppsearchDeleteJob.JOB_ID); in schedulePeriodic_onNonExistingJob_EnabledJob_shouldSchedule()
266 assertEquals(AdServicesAppsearchDeleteJob.JOB_ID, in schedulePeriodic_onNonExistingJob_EnabledJob_shouldSchedule()
283 doReturn(AdServicesAppsearchDeleteJob.JOB_ID).when(jobParameters).getJobId(); in onStartJob_disabledJob()
312 doReturn(AdServicesAppsearchDeleteJob.JOB_ID).when(jobParameters).getJobId(); in onStartJob_onDoNothing()
339 doReturn(AdServicesAppsearchDeleteJob.JOB_ID).when(jobParameters).getJobId(); in onStartJob_enabledJob_firstTimeOta_appsearchDataNotFound()
376 doReturn(AdServicesAppsearchDeleteJob.JOB_ID).when(jobParameters).getJobId(); in onStartJob_enabledJob_firstTimeOta_appsearchDataFound()
414 doReturn(AdServicesAppsearchDeleteJob.JOB_ID).when(jobParameters).getJobId(); in onStartJob_enabledJob_minMinutesFromOTAPassed_shouldDelete()
470 doReturn(AdServicesAppsearchDeleteJob.JOB_ID).when(jobParameters).getJobId(); in onStartJob_enabledJob_deleteDbsException_shouldNotCancel()
528 doReturn(AdServicesAppsearchDeleteJob.JOB_ID).when(jobParameters).getJobId(); in onStartJob_enabledJob_deleteDbsException_onMaxAttempts_shouldCancel()
585 doReturn(AdServicesAppsearchDeleteJob.JOB_ID).when(jobParameters).getJobId(); in onStartJob_enabledJob_minMinutesToCheckAdServicesNotPassed_shouldDoNothing()
[all …]
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/data/
DTaskHistoryContract.java31 public static final String JOB_ID = "job_id"; field in TaskHistoryContract.TaskHistoryEntry
47 + JOB_ID
DFederatedTrainingTaskDao.java301 values.put(TaskHistoryContract.TaskHistoryEntry.JOB_ID, taskHistory.getJobId()); in updateOrInsertTaskHistory()
346 TaskHistoryContract.TaskHistoryEntry.JOB_ID in getTaskHistory()
/packages/modules/ExtServices/java/src/android/ext/services/common/
DAdServicesAppsearchDeleteJob.java63 public static final int JOB_ID = 27; // The job id matches the placeholder in AdServicesJobInfo field in AdServicesAppsearchDeleteJob
430 final JobInfo oldJob = jobScheduler.getPendingJob(JOB_ID); in scheduleAdServicesAppsearchDeletePeriodicJob()
433 + " with job id:" + JOB_ID in scheduleAdServicesAppsearchDeletePeriodicJob()
437 JobInfo.Builder jobInfoBuild = new JobInfo.Builder(JOB_ID, in scheduleAdServicesAppsearchDeletePeriodicJob()
449 Log.d(TAG, "Scheduled AdServicesAppsearchDeleteJobService with job id: " + JOB_ID); in scheduleAdServicesAppsearchDeletePeriodicJob()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DDeleteExpiredJobServiceTest.java85 private static final int JOB_ID = 123; field in DeleteExpiredJobServiceTest
179 .setJobId(JOB_ID) in deletedExpiredTaskHistory_success()
188 .setJobId(JOB_ID) in deletedExpiredTaskHistory_success()
197 assertThat(mTrainingTaskDao.getTaskHistoryList(JOB_ID, POPULATION_NAME, TASK_ID)) in deletedExpiredTaskHistory_success()
205 assertThat(mTrainingTaskDao.getTaskHistoryList(JOB_ID, POPULATION_NAME, TASK_ID)) in deletedExpiredTaskHistory_success()
DJobSchedulerHelperTest.java59 private static final int JOB_ID = 10281993; field in JobSchedulerHelperTest
77 .jobId(JOB_ID)
191 assertThat(jobInfo.getId()).isEqualTo(JOB_ID); in verifyJobInfo()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DDeferredMetricsReader.java40 private static final int JOB_ID = 1; field in DeferredMetricsReader
54 final JobInfo jobInfo = new JobInfo.Builder(JOB_ID, PROCESS_METRICS_SERVICE_COMPONENT) in scheduleDumpMetrics()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPackagesMonitor.java45 public static final int JOB_ID = 1; field in PackagesMonitor.AsyncService
48 enqueueWork(context, AsyncService.class, JOB_ID, work); in enqueueWork()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DBackgroundWorkerService.java47 public static final int JOB_ID = 1001; field in BackgroundWorkerService
101 enqueueWork(context, BackgroundWorkerService.class, JOB_ID, work); in enqueueWork()
DActionServiceImpl.java45 public static final int JOB_ID = 1000; field in ActionServiceImpl
232 enqueueWork(context, ActionServiceImpl.class, JOB_ID, work); in enqueueWork()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DCancelActivity.java39 /* package */ final static String JOB_ID = "job_id"; field in CancelActivity
77 mJobId = Integer.parseInt(uri.getQueryParameter(JOB_ID)); in onCreate()
DNotificationImportExportListener.java218 .appendQueryParameter(CancelActivity.JOB_ID, String.valueOf(jobId)) in constructProgressNotification()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/scheduling/
DJobSpecTest.java31 private static final int JOB_ID = 1; field in JobSpecTest
32 private static final JobPolicy sJobPolicy = JobPolicy.newBuilder().setJobId(JOB_ID).build();
/packages/modules/Virtualization/java/service/src/com/android/system/virtualmachine/
DSecretkeeperJobService.java55 private static final int JOB_ID = 1; field in SecretkeeperJobService
64 new JobInfo.Builder(JOB_ID, serviceName) in scheduleJob()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaService.java44 private static final int JOB_ID = -300; field in MediaService
62 enqueueWork(context, MediaService.class, JOB_ID, work); in enqueueWork()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProviderJobService.java30 static final int JOB_ID = CalendarProviderJobService.class.hashCode(); field in CalendarProviderJobService
DCalendarProviderBroadcastReceiver.java49 JobInfo.Builder alarmJobBuilder = new JobInfo.Builder(CalendarProviderJobService.JOB_ID, in onReceive()
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/federatedcompute/
DResultHandlingServiceTest.java49 private static final int JOB_ID = 12345; field in ResultHandlingServiceTest