Home
last modified time | relevance | path

Searched refs:intervalOptions (Results 1 – 9 of 9) sorted by relevance

/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/data/
DFederatedTrainingTask.java84 public abstract byte[] intervalOptions(); in intervalOptions() method in FederatedTrainingTask
91 if (intervalOptions() == null) { in getTrainingIntervalOptions()
95 ByteBuffer.wrap(intervalOptions())); in getTrainingIntervalOptions()
191 public abstract Builder intervalOptions(@Nullable byte[] intervalOptions); in intervalOptions() method in FederatedTrainingTask.Builder
252 if (intervalOptions() != null) { in addToDatabase()
253 values.put(FederatedTrainingTaskColumns.INTERVAL_OPTIONS, intervalOptions()); in addToDatabase()
392 byte[] intervalOptions = in readFederatedTrainingTasksFromDatabase()
396 if (intervalOptions != null) { in readFederatedTrainingTasksFromDatabase()
397 trainingTaskBuilder.intervalOptions(intervalOptions); in readFederatedTrainingTasksFromDatabase()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DFederatedComputeJobManagerTest.java197 .intervalOptions(createDefaultTrainingInterval()) in testOnTrainerStartCalledSuccess()
259 .intervalOptions(createDefaultTrainingInterval()) in testOnTrainerStartCalledFailureDueToTaskLimit()
286 .intervalOptions(createDefaultTrainingInterval()) in testOnTrainerStartCalled_firstTime()
293 .intervalOptions(createDefaultTrainingInterval()) in testOnTrainerStartCalled_firstTime()
381 .intervalOptions(createDefaultTrainingInterval()) in testOnTrainerStartCalled_multipleTimes_sameParams()
672 .intervalOptions(createDefaultTrainingInterval()) in testOnTrainerStartCalled_multipleTimes_changingPopulationName()
679 .intervalOptions(createDefaultTrainingInterval()) in testOnTrainerStartCalled_multipleTimes_changingPopulationName()
723 .intervalOptions(createDefaultTrainingInterval()) in testOnTrainerStartCalled_twoJobsWithSamePopulationName()
905 byte[] intervalOptions = createTrainingIntervalOptions(SchedulingMode.ONE_TIME, 0); in testRescheduleFLTask_didnotContribute_oneOff()
911 ByteBuffer.wrap(intervalOptions)), in testRescheduleFLTask_didnotContribute_oneOff()
[all …]
DJobSchedulerHelperTest.java73 .intervalOptions(INTERVAL_OPTIONS)
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DFederatedComputeJobManager.java151 return !Arrays.equals(incomingTrainingIntervalOptions, existingTask.intervalOptions()); in trainingIntervalChanged()
215 .intervalOptions( in onTrainerStartCalled()
242 newTaskBuilder.intervalOptions(null).lastRunStartTime(null).lastRunEndTime(null); in onTrainerStartCalled()
245 .intervalOptions( in onTrainerStartCalled()
444 TrainingIntervalOptions intervalOptions, in rescheduleFederatedTaskAfterTraining() argument
458 if (intervalOptions != null in rescheduleFederatedTaskAfterTraining()
459 && intervalOptions.schedulingMode() == SchedulingMode.ONE_TIME in rescheduleFederatedTaskAfterTraining()
469 nowMillis, intervalOptions, taskRetry, hasContributed, mFlags); in rescheduleFederatedTaskAfterTraining()
481 if (checkRescheduleLimitsExceeded(intervalOptions, rescheduleCount)) { in rescheduleFederatedTaskAfterTraining()
501 TrainingIntervalOptions intervalOptions, int rescheduleCount) { in checkRescheduleLimitsExceeded() argument
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/data/
DFederatedTrainingTaskTest.java116 assertThat(storedFederatedTrainingTask.intervalOptions()).isEqualTo(INTERVAL_OPTIONS); in readAndWrite_onlyRequiredFields()
150 assertThat(trainingTask.intervalOptions()).isEqualTo(INTERVAL_OPTIONS); in buildFederatedTrainingTask()
183 .intervalOptions(INTERVAL_OPTIONS) in createFederatedTrainingTaskWithAllFields()
204 .intervalOptions(INTERVAL_OPTIONS) in createFederatedTrainingTaskWithRequiredFields()
DDataTestUtil.java30 assertThat(task1.intervalOptions()).isEqualTo(task2.intervalOptions()); in isEqualTask()
DFederatedTrainingTaskDaoTest.java361 .intervalOptions(INTERVAL_OPTIONS) in createDefaultFederatedTrainingTask()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/
DResultCallbackHelperTest.java78 .intervalOptions(INTERVAL_OPTIONS)
DFederatedComputeWorkerTest.java282 .intervalOptions(INTERVAL_OPTIONS)