Home
last modified time | relevance | path

Searched refs:SchedulingMode (Results 1 – 19 of 19) sorted by relevance

/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DSchedulingUtil.java28 import com.android.federatedcompute.services.data.fbs.SchedulingMode;
55 unsanitizedMillis, SchedulingMode.UNDEFINED, flags); in getEarliestRuntimeForFCReschedule()
57 if (interval.schedulingMode() == SchedulingMode.RECURRENT && hasContributed) { in getEarliestRuntimeForFCReschedule()
63 userSpecifiedLatency, SchedulingMode.RECURRENT, flags); in getEarliestRuntimeForFCReschedule()
88 : SchedulingMode.ONE_TIME; in getEarliestRuntimeForInitialSchedule()
89 if (schedulingMode != SchedulingMode.RECURRENT) { in getEarliestRuntimeForInitialSchedule()
127 : SchedulingMode.ONE_TIME; in getEarliestRuntimeForExistingTask()
155 if (schedulingMode == SchedulingMode.RECURRENT) { in sanitizeMinimumLatencyMillis()
170 public static int convertSchedulingMode(@TrainingInterval.SchedulingMode int schedulingMode) { in convertSchedulingMode()
172 return SchedulingMode.RECURRENT; in convertSchedulingMode()
[all …]
DFederatedComputeJobManager.java40 import com.android.federatedcompute.services.data.fbs.SchedulingMode;
127 builder, SchedulingMode.ONE_TIME, 0)); in buildDefaultTrainingInterval()
459 && intervalOptions.schedulingMode() == SchedulingMode.ONE_TIME in rescheduleFederatedTaskAfterTraining()
505 } else if (intervalOptions.schedulingMode() == SchedulingMode.RECURRENT) { in checkRescheduleLimitsExceeded()
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DTrainingInterval.java43 @SchedulingMode private int mSchedulingMode = SCHEDULING_MODE_ONE_TIME;
77 public @interface SchedulingMode {} annotation in TrainingInterval
81 public static String schedulingModeToString(@SchedulingMode int value) { in schedulingModeToString()
94 @SchedulingMode int schedulingMode, @NonNull Duration minimumInterval) { in TrainingInterval()
123 public @SchedulingMode int getSchedulingMode() { in getSchedulingMode()
178 private @SchedulingMode int mSchedulingMode;
191 public @NonNull Builder setSchedulingMode(@SchedulingMode int value) { in setSchedulingMode()
DFederatedComputeScheduler.java178 private @android.federatedcompute.common.TrainingInterval.SchedulingMode int
/packages/modules/OnDevicePersonalization/framework/java/android/federatedcompute/common/
DTrainingInterval.java43 @SchedulingMode private int mSchedulingMode;
65 public @interface SchedulingMode {} annotation in TrainingInterval
68 public static String schedulingModeToString(@SchedulingMode int value) { in schedulingModeToString()
81 @SchedulingMode int schedulingMode, long minimumIntervalMillis) { in TrainingInterval()
108 public @SchedulingMode int getSchedulingMode() { in getSchedulingMode()
213 private @SchedulingMode int mSchedulingMode;
221 public @android.annotation.NonNull Builder setSchedulingMode(@SchedulingMode int value) { in setSchedulingMode()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DFederatedComputeJobManagerTest.java49 import com.android.federatedcompute.services.data.fbs.SchedulingMode;
334 createTrainingIntervalOptions(SchedulingMode.RECURRENT, userDefinedIntervalMillis); in testOnTrainerStartCalledFLWithInterval()
424 createTrainingIntervalOptions(SchedulingMode.RECURRENT, minIntervalMills); in testOnTrainerStartCalled_multipleTimes_sameParamsFLWithIntervalLargerThanServerMax()
467 createTrainingIntervalOptions(SchedulingMode.RECURRENT, minIntervalMills); in testOnTrainerStartCalled_multipleTimes_sameParamsFLWithIntervalDifferentMax()
502 createTrainingIntervalOptions(SchedulingMode.RECURRENT, newMinIntervalMills); in testOnTrainerStartCalled_multipleTimes_sameParamsFLWithIntervalDifferentMax()
542 byte[] expectedInterval = createTrainingIntervalOptions(SchedulingMode.RECURRENT, 1000L); in testOnTrainerStartCalled_fLCustomerSpecifiedIntervalSmallerThanDefinedMin()
577 createTrainingIntervalOptions(SchedulingMode.RECURRENT, minTrainingIntervalMillis); in testOnTrainerStartCalled_trainingIntervalChange_FL()
594 createTrainingIntervalOptions(SchedulingMode.RECURRENT, newInterval); in testOnTrainerStartCalled_trainingIntervalChange_FL()
610 byte[] trainingIntervalOption3 = createTrainingIntervalOptions(SchedulingMode.ONE_TIME, 0L); in testOnTrainerStartCalled_trainingIntervalChange_FL()
755 ByteBuffer.wrap(createTrainingIntervalOptions(SchedulingMode.ONE_TIME, 0))), in testOnTrainerStartCalled_existingTask_rescheduleCountClear()
[all …]
DJobSchedulerHelperTest.java34 import com.android.federatedcompute.services.data.fbs.SchedulingMode;
217 builder, SchedulingMode.ONE_TIME, 0)); in createDefaultTrainingIntervalOptions()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/data/fbs/
DTrainingTask.fbs9 enum SchedulingMode : int {
18 scheduling_mode:SchedulingMode;
/packages/modules/Uwb/service/java/com/android/server/uwb/data/
DUwbConfig.java117 @FiraParams.SchedulingMode
160 @FiraParams.SchedulingMode int scheduleMode, in UwbConfig()
241 @FiraParams.SchedulingMode
348 UwbConfig.Builder setScheduleMode(@FiraParams.SchedulingMode int scheduleMode) { in setScheduleMode()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/
DResultCallbackHelperTest.java39 import com.android.federatedcompute.services.data.fbs.SchedulingMode;
208 builder, SchedulingMode.ONE_TIME, 0)); in createDefaultTrainingIntervalOptions()
DFederatedComputeWorkerTest.java73 import com.android.federatedcompute.services.data.fbs.SchedulingMode;
357 builder, SchedulingMode.ONE_TIME, 0)); in createDefaultTrainingIntervalOptions()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/data/
DFederatedTrainingTaskTest.java31 import com.android.federatedcompute.services.data.fbs.SchedulingMode;
170 builder, SchedulingMode.ONE_TIME, 0)); in createDefaultTrainingIntervalOptions()
DFederatedTrainingTaskDaoTest.java29 import com.android.federatedcompute.services.data.fbs.SchedulingMode;
348 builder, SchedulingMode.ONE_TIME, 0)); in createDefaultTrainingIntervalOptions()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/
DSessionDataTest.java62 @FiraParams.SchedulingMode int scheduledMode = 0; in testConversion()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/fira/
DFiraOpenSessionParams.java89 @SchedulingMode private final int mScheduledMode;
301 @SchedulingMode int scheduledMode, in FiraOpenSessionParams()
581 @SchedulingMode
1218 @SchedulingMode private int mScheduledMode = TIME_SCHEDULED_RANGING;
1744 public FiraOpenSessionParams.Builder setScheduledMode(@SchedulingMode int scheduledMode) { in setScheduledMode()
DFiraParams.java238 public @interface SchedulingMode {} annotation in FiraParams
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/data/
DUwbConfigTest.java105 @FiraParams.SchedulingMode int scheduledMode = TIME_SCHEDULED_RANGING; in testUwbconfig()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/csml/
DConfigurationParams.java553 ConfigurationParams.Builder setScheduleMode(@FiraParams.SchedulingMode int scheduleMode) { in setScheduleMode()
DUwbCapability.java480 @FiraParams.SchedulingMode