/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/federatedcompute/common/ |
D | TrainingIntervalTest.java | 36 TrainingInterval interval = in testRecurrentTask() 37 createInterval(TrainingInterval.SCHEDULING_MODE_RECURRENT, minimumIntervalMillis); in testRecurrentTask() 39 .isEqualTo(TrainingInterval.SCHEDULING_MODE_RECURRENT); in testRecurrentTask() 45 TrainingInterval interval = createInterval(TrainingInterval.SCHEDULING_MODE_ONE_TIME, 0); in testOneOffTask() 47 .isEqualTo(TrainingInterval.SCHEDULING_MODE_ONE_TIME); in testOneOffTask() 55 new TrainingInterval.Builder() in testInvalidRecurrentTask() 56 .setSchedulingMode(TrainingInterval.SCHEDULING_MODE_RECURRENT) in testInvalidRecurrentTask() 63 TrainingInterval interval = in testEquals() 64 createInterval(TrainingInterval.SCHEDULING_MODE_RECURRENT, 10000); in testEquals() 65 TrainingInterval copy = interval; in testEquals() [all …]
|
D | ScheduleFederatedComputeRequestTest.java | 19 import static android.federatedcompute.common.TrainingInterval.SCHEDULING_MODE_ONE_TIME; 42 new TrainingInterval.Builder() in buildScheduleFederatedComputeRequest_success() 59 new TrainingInterval.Builder() in testScheduleFederatedComputeRequestEquals() 70 new TrainingInterval.Builder() in testScheduleFederatedComputeRequestEquals()
|
D | TrainingOptionsTest.java | 19 import static android.federatedcompute.common.TrainingInterval.SCHEDULING_MODE_ONE_TIME; 36 private static final TrainingInterval TRAINING_INTERVAL = 37 new TrainingInterval.Builder().setSchedulingMode(SCHEDULING_MODE_ONE_TIME).build();
|
/packages/modules/OnDevicePersonalization/framework/java/android/federatedcompute/common/ |
D | TrainingInterval.java | 34 public final class TrainingInterval implements Parcelable { class 80 /* package-private */ TrainingInterval( in TrainingInterval() method in TrainingInterval 127 TrainingInterval that = (TrainingInterval) o; in equals() 165 /* package-private */ TrainingInterval(@android.annotation.NonNull android.os.Parcel in) { in TrainingInterval() method in TrainingInterval 194 public static final @android.annotation.NonNull Parcelable.Creator<TrainingInterval> CREATOR = 195 new Parcelable.Creator<TrainingInterval>() { 197 public TrainingInterval[] newArray(int size) { 198 return new TrainingInterval[size]; 202 public TrainingInterval createFromParcel( 204 return new TrainingInterval(in); [all …]
|
D | TrainingOptions.java | 53 @Nullable private TrainingInterval mTrainingInterval = null; 79 @Nullable TrainingInterval trainingInterval, in TrainingOptions() 120 public @Nullable TrainingInterval getTrainingInterval() { in getTrainingInterval() 203 TrainingInterval trainingInterval = in TrainingOptions() 206 : (TrainingInterval) in.readTypedObject(TrainingInterval.CREATOR); in TrainingOptions() 242 private @Nullable TrainingInterval mTrainingInterval; 288 public @NonNull Builder setTrainingInterval(@NonNull TrainingInterval value) { in setTrainingInterval()
|
D | TrainingInterval.aidl | 3 parcelable TrainingInterval;
|
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/ |
D | FederatedComputeScheduler.java | 72 android.federatedcompute.common.TrainingInterval trainingInterval = in schedule() 170 private android.federatedcompute.common.TrainingInterval convertTrainingInterval( in convertTrainingInterval() 171 TrainingInterval interval) { in convertTrainingInterval() 172 return new android.federatedcompute.common.TrainingInterval.Builder() in convertTrainingInterval() 178 private @android.federatedcompute.common.TrainingInterval.SchedulingMode int 179 convertSchedulingMode(TrainingInterval interval) { in convertSchedulingMode() 181 case TrainingInterval.SCHEDULING_MODE_ONE_TIME: in convertSchedulingMode() 182 return android.federatedcompute.common.TrainingInterval.SCHEDULING_MODE_ONE_TIME; in convertSchedulingMode() 183 case TrainingInterval.SCHEDULING_MODE_RECURRENT: in convertSchedulingMode() 184 return android.federatedcompute.common.TrainingInterval.SCHEDULING_MODE_RECURRENT; in convertSchedulingMode() [all …]
|
D | TrainingInterval.java | 31 public final class TrainingInterval { class 93 /* package-private */ TrainingInterval( in TrainingInterval() method in TrainingInterval 154 TrainingInterval that = (TrainingInterval) o; in equals() 219 public @NonNull TrainingInterval build() { in build() 229 TrainingInterval o = new TrainingInterval(mSchedulingMode, mMinimumInterval); in build()
|
D | TrainingInterval.aidl | 19 parcelable TrainingInterval;
|
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/ |
D | FederatedComputeSchedulerTest.java | 54 TrainingInterval interval = in testScheduleSuccess() 55 new TrainingInterval.Builder() in testScheduleSuccess() 57 .setSchedulingMode(TrainingInterval.SCHEDULING_MODE_ONE_TIME) in testScheduleSuccess() 70 TrainingInterval interval = in testScheduleNull() 71 new TrainingInterval.Builder() in testScheduleNull() 73 .setSchedulingMode(TrainingInterval.SCHEDULING_MODE_ONE_TIME) in testScheduleNull() 83 TrainingInterval interval = in testScheduleErr() 84 new TrainingInterval.Builder() in testScheduleErr() 86 .setSchedulingMode(TrainingInterval.SCHEDULING_MODE_ONE_TIME) in testScheduleErr()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/federatedcompute/ |
D | FederatedComputeServiceImplTest.java | 35 import android.federatedcompute.common.TrainingInterval; 126 TrainingInterval interval = in testSchedule() 127 new TrainingInterval.Builder() in testSchedule() 150 TrainingInterval interval = in testScheduleMeasurementControlRevoked() 151 new TrainingInterval.Builder() in testScheduleMeasurementControlRevoked() 173 TrainingInterval interval = in testScheduleUrlOverride() 174 new TrainingInterval.Builder() in testScheduleUrlOverride() 203 TrainingInterval interval = in testScheduleUrlDeviceConfigOverride() 204 new TrainingInterval.Builder() in testScheduleUrlDeviceConfigOverride() 224 TrainingInterval interval = in testScheduleErr() [all …]
|
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/ |
D | DataClassesTest.java | 36 import android.adservices.ondevicepersonalization.TrainingInterval; 160 TrainingInterval data = new TrainingInterval.Builder() in testTrainingInterval() 161 .setSchedulingMode(TrainingInterval.SCHEDULING_MODE_RECURRENT) in testTrainingInterval() 166 assertEquals(TrainingInterval.SCHEDULING_MODE_RECURRENT, data.getSchedulingMode()); in testTrainingInterval() 171 TrainingInterval data = new TrainingInterval.Builder() in testFederatedComputeSchedulerParams() 172 .setSchedulingMode(TrainingInterval.SCHEDULING_MODE_RECURRENT) in testFederatedComputeSchedulerParams() 178 assertEquals(TrainingInterval.SCHEDULING_MODE_RECURRENT, in testFederatedComputeSchedulerParams()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/ |
D | FederatedComputeJobManagerTest.java | 39 import android.federatedcompute.common.TrainingInterval; 325 new TrainingInterval.Builder() in testOnTrainerStartCalledFLWithInterval() 327 TrainingInterval.SCHEDULING_MODE_RECURRENT) in testOnTrainerStartCalledFLWithInterval() 405 new TrainingInterval.Builder() in testOnTrainerStartCalled_multipleTimes_sameParamsFLWithIntervalLargerThanServerMax() 407 TrainingInterval.SCHEDULING_MODE_RECURRENT) in testOnTrainerStartCalled_multipleTimes_sameParamsFLWithIntervalLargerThanServerMax() 454 new TrainingInterval.Builder() in testOnTrainerStartCalled_multipleTimes_sameParamsFLWithIntervalDifferentMax() 456 TrainingInterval.SCHEDULING_MODE_RECURRENT) in testOnTrainerStartCalled_multipleTimes_sameParamsFLWithIntervalDifferentMax() 490 new TrainingInterval.Builder() in testOnTrainerStartCalled_multipleTimes_sameParamsFLWithIntervalDifferentMax() 492 TrainingInterval.SCHEDULING_MODE_RECURRENT) in testOnTrainerStartCalled_multipleTimes_sameParamsFLWithIntervalDifferentMax() 530 new TrainingInterval.Builder() in testOnTrainerStartCalled_fLCustomerSpecifiedIntervalSmallerThanDefinedMin() [all …]
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/ |
D | SchedulingUtil.java | 23 import android.federatedcompute.common.TrainingInterval; 170 public static int convertSchedulingMode(@TrainingInterval.SchedulingMode int schedulingMode) { in convertSchedulingMode() 171 if (schedulingMode == TrainingInterval.SCHEDULING_MODE_RECURRENT) { in convertSchedulingMode() 173 } else if (schedulingMode == TrainingInterval.SCHEDULING_MODE_ONE_TIME) { in convertSchedulingMode()
|
D | FederatedComputeJobManager.java | 31 import android.federatedcompute.common.TrainingInterval; 132 @Nullable TrainingInterval trainingInterval) { in buildTrainingIntervalOptions()
|
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/federatedcompute/ |
D | ResultHandlingServiceTest.java | 21 import static android.federatedcompute.common.TrainingInterval.SCHEDULING_MODE_ONE_TIME; 31 import android.federatedcompute.common.TrainingInterval; 55 new TrainingInterval.Builder()
|
/packages/modules/OnDevicePersonalization/framework/api/ |
D | current.txt | 104 …ratedComputeScheduler.Params(@NonNull android.adservices.ondevicepersonalization.TrainingInterval); 105 …method @NonNull public android.adservices.ondevicepersonalization.TrainingInterval getTrainingInte… 304 …ersonalization.flags.on_device_personalization_apis_enabled") public final class TrainingInterval { 311 public static final class TrainingInterval.Builder { 312 ctor public TrainingInterval.Builder(); 313 method @NonNull public android.adservices.ondevicepersonalization.TrainingInterval build(); 314 …method @NonNull public android.adservices.ondevicepersonalization.TrainingInterval.Builder setMini… 315 …method @NonNull public android.adservices.ondevicepersonalization.TrainingInterval.Builder setSche…
|
/packages/modules/OnDevicePersonalization/tests/cts/service/src/com/android/ondevicepersonalization/testing/sampleservice/ |
D | SampleWorker.java | 37 import android.adservices.ondevicepersonalization.TrainingInterval; 469 TrainingInterval interval = in handleScheduleFederatedJob() 470 new TrainingInterval.Builder() in handleScheduleFederatedJob() 472 .setSchedulingMode(TrainingInterval.SCHEDULING_MODE_ONE_TIME) in handleScheduleFederatedJob()
|
/packages/modules/OnDevicePersonalization/samples/odpsamplenetwork/src/main/java/com/example/odpsamplenetwork/ |
D | SampleHandler.java | 44 import android.adservices.ondevicepersonalization.TrainingInterval; 450 TrainingInterval interval; in handleOnExecute() 460 new TrainingInterval.Builder() in handleOnExecute() 462 .setSchedulingMode(TrainingInterval.SCHEDULING_MODE_RECURRENT) in handleOnExecute() 466 new TrainingInterval.Builder() in handleOnExecute() 468 .setSchedulingMode(TrainingInterval.SCHEDULING_MODE_ONE_TIME) in handleOnExecute()
|