Home
last modified time | relevance | path

Searched refs:TriggerSpecs (Results 1 – 21 of 21) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DTriggerSpecsTest.java50 new TriggerSpecs( in equals_constructorThreeParameters_returnsTrue()
52 new TriggerSpecs( in equals_constructorThreeParameters_returnsTrue()
61 new TriggerSpecs( in equals_constructorThreeParameters_maxBucketIncrementsDifferent_returnsFalse()
63 new TriggerSpecs( in equals_constructorThreeParameters_maxBucketIncrementsDifferent_returnsFalse()
71 new TriggerSpecs( in equals_constructorThreeParameters_triggerSpecContentDifferent_returnsFalse()
73 new TriggerSpecs( in equals_constructorThreeParameters_triggerSpecContentDifferent_returnsFalse()
79 TriggerSpecs testObject = new TriggerSpecs( in constructorThreeParameters_completeExpectation_success()
139 new TriggerSpecs( in equals_fourParamConstructor_returnsTrue()
144 new TriggerSpecs( in equals_fourParamConstructor_returnsTrue()
156 new TriggerSpecs(triggerSpecsString, "3", null, PRIVACY_PARAMETERS_JSON), in equals_fourParamConstructorFromRawJSON_returnsTrue()
[all …]
DSourceTest.java130 TriggerSpecs triggerSpecs = SourceFixture.getValidTriggerSpecsValueSum(); in testEqualsPass()
466 TriggerSpecs triggerSpecsValueSumBased = SourceFixture.getValidTriggerSpecsValueSum(5); in testEqualsFail()
467 TriggerSpecs triggerSpecsCountBased = SourceFixture.getValidTriggerSpecsCountBased(); in testEqualsFail()
1279 TriggerSpecs originalTriggerSpecs = validSource.getTriggerSpecs(); in triggerSpecs_encodingDecoding_equal()
1284 TriggerSpecs triggerSpecs = in triggerSpecs_encodingDecoding_equal()
1285 new TriggerSpecs( in triggerSpecs_encodingDecoding_equal()
1569 .setTriggerSpecs(new TriggerSpecs( in validateAndSetNumReportStates_fullFlexValid_returnsTrue()
1614 .setTriggerSpecs(new TriggerSpecs( in validateAndSetNumReportStates_fullFlexArithmeticInvalid_returnsFalse()
1671 .setTriggerSpecs(new TriggerSpecs( in validateAndSetNumReportStates_fullFlexIterativeInvalid_returnsFalse()
1714 new TriggerSpecs(triggerSpecsArray, maxEventLevelReports, null)) in validateAndSetMaxEventStates_fullFlexAttributionScopeMaxEventStatesNull_returnsFalse()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DTriggerSpec.java191 jsonObject, TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_DATA)); in Builder()
192 if (!jsonObject.isNull(TriggerSpecs.FlexEventReportJsonKeys.EVENT_REPORT_WINDOWS)) { in Builder()
195 TriggerSpecs.FlexEventReportJsonKeys.EVENT_REPORT_WINDOWS); in Builder()
197 TriggerSpecs.FlexEventReportJsonKeys.START_TIME)) { in Builder()
200 TriggerSpecs.FlexEventReportJsonKeys.START_TIME)); in Builder()
205 TriggerSpecs.FlexEventReportJsonKeys.END_TIMES)); in Builder()
209 TriggerSpecs.FlexEventReportJsonKeys.SUMMARY_WINDOW_OPERATOR)) { in Builder()
214 TriggerSpecs.FlexEventReportJsonKeys in Builder()
218 if (!jsonObject.isNull(TriggerSpecs.FlexEventReportJsonKeys.SUMMARY_BUCKETS)) { in Builder()
222 TriggerSpecs.FlexEventReportJsonKeys.SUMMARY_BUCKETS)); in Builder()
[all …]
DAttributedTrigger.java71 if (!json.isNull(TriggerSpecs.FlexEventReportJsonKeys.PRIORITY)) { in AttributedTrigger()
72 mPriority = json.getLong(TriggerSpecs.FlexEventReportJsonKeys.PRIORITY); in AttributedTrigger()
76 if (!json.isNull(TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_DATA)) { in AttributedTrigger()
78 json.getString(TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_DATA)); in AttributedTrigger()
82 if (!json.isNull(TriggerSpecs.FlexEventReportJsonKeys.VALUE)) { in AttributedTrigger()
83 mValue = json.getLong(TriggerSpecs.FlexEventReportJsonKeys.VALUE); in AttributedTrigger()
87 if (!json.isNull(TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_TIME)) { in AttributedTrigger()
88 mTriggerTime = json.getLong(TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_TIME); in AttributedTrigger()
200 TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_DATA, in encodeToJson()
217 TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_DATA, in encodeToJsonFlexApi()
[all …]
DTriggerSpecs.java44 public class TriggerSpecs { class
71 public TriggerSpecs( in TriggerSpecs() method in TriggerSpecs
94 public TriggerSpecs( in TriggerSpecs() method in TriggerSpecs
128 public TriggerSpecs(@NonNull TriggerSpec[] triggerSpecs, int maxEventLevelReports, in TriggerSpecs() method in TriggerSpecs
391 if (!(obj instanceof TriggerSpecs)) { in equals()
394 TriggerSpecs t = (TriggerSpecs) obj; in equals()
DSource.java102 @Nullable private TriggerSpecs mTriggerSpecs;
563 public TriggerSpecs getTriggerSpecs() { in getTriggerSpecs()
1314 new TriggerSpecs( in buildTriggerSpecs()
1712 public Builder setTriggerSpecs(@Nullable TriggerSpecs triggerSpecs) { in setTriggerSpecs()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/
DSourceFixture.java187 public static TriggerSpecs getValidTriggerSpecsCountBased() throws JSONException { in getValidTriggerSpecsCountBased()
201 TriggerSpecs triggerSpecs = new TriggerSpecs( in getValidTriggerSpecsCountBased()
209 public static TriggerSpecs getValidTriggerSpecsCountBasedWithFewerState() throws JSONException { in getValidTriggerSpecsCountBasedWithFewerState()
218 TriggerSpecs triggerSpecs = new TriggerSpecs( in getValidTriggerSpecsCountBasedWithFewerState()
226 public static TriggerSpecs getValidTriggerSpecsWithNonDefaultEpsilon() throws JSONException { in getValidTriggerSpecsWithNonDefaultEpsilon()
237 TriggerSpecs triggerSpecs = new TriggerSpecs(triggerSpecsString, "1", source, jsonString); in getValidTriggerSpecsWithNonDefaultEpsilon()
242 public static TriggerSpecs getValidTriggerSpecsValueSum() throws JSONException { in getValidTriggerSpecsValueSum()
247 public static TriggerSpecs getValidTriggerSpecsValueSum(int maxReports) throws JSONException { in getValidTriggerSpecsValueSum()
252 TriggerSpecs triggerSpecs = new TriggerSpecs( in getValidTriggerSpecsValueSum()
262 public static TriggerSpecs getValidTriggerSpecsValueSumWithStartTime(long startTime) in getValidTriggerSpecsValueSumWithStartTime()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncSourceFetcher.java41 import com.android.adservices.service.measurement.TriggerSpecs;
469 new TriggerSpecs( in parseCommonSourceParams()
615 triggerSpecJson, TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_DATA); in getValidTriggerSpec()
630 || triggerData.compareTo(TriggerSpecs.MAX_TRIGGER_DATA_VALUE) > 0) { in getValidTriggerSpec()
635 if (!triggerSpecJson.isNull(TriggerSpecs.FlexEventReportJsonKeys.EVENT_REPORT_WINDOWS)) { in getValidTriggerSpec()
639 TriggerSpecs.FlexEventReportJsonKeys.EVENT_REPORT_WINDOWS), in getValidTriggerSpec()
648 if (!triggerSpecJson.isNull(TriggerSpecs.FlexEventReportJsonKeys.SUMMARY_WINDOW_OPERATOR)) { in getValidTriggerSpec()
655 TriggerSpecs.FlexEventReportJsonKeys in getValidTriggerSpec()
660 if (!triggerSpecJson.isNull(TriggerSpecs.FlexEventReportJsonKeys.SUMMARY_BUCKETS)) { in getValidTriggerSpec()
662 triggerSpecJson, TriggerSpecs.FlexEventReportJsonKeys.SUMMARY_BUCKETS); in getValidTriggerSpec()
[all …]
DAsyncTriggerFetcher.java40 import com.android.adservices.service.measurement.TriggerSpecs;
610 if (value < 1L || value > TriggerSpecs.MAX_BUCKET_THRESHOLD) { in getValidEventTriggerData()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/noising/
DImpressionNoiseUtilTest.java31 import com.android.adservices.service.measurement.TriggerSpecs;
86 private final FourArgumentConsumer<TriggerSpecs, Integer, List<int[]>, ThreadLocalRandom>
339 TriggerSpecs testTriggerSpecsObject = getValidTriggerSpecsForRandomOrderTest(); in selectFlexEventReportRandomStateAndGenerateReportConfigs_singleDestinationType_equal()
439 private static TriggerSpecs getValidTriggerSpecsForRandomOrderTest() throws JSONException { in getValidTriggerSpecsForRandomOrderTest()
441 TriggerSpecs triggerSpecs = new TriggerSpecs(getValidTriggerSpecArray(), 3, source); in getValidTriggerSpecsForRandomOrderTest()
DSourceNoiseHandlerTest.java33 import com.android.adservices.service.measurement.TriggerSpecs;
113 TriggerSpecs triggerSpecs = in fakeReports_flexEventReport_setsTriggerTime()
156 TriggerSpecs triggerSpecs = in fakeReports_flexEventReport_correctlyOrdersTriggerSummaryBucket()
203 TriggerSpecs triggerSpecs = in fakeReports_flexEventReport_ordersTriggerSummaryBucket_attributionScopeOff()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/noising/
DSourceNoiseHandler.java25 import com.android.adservices.service.measurement.TriggerSpecs;
85 TriggerSpecs triggerSpecs = source.getTriggerSpecs(); in assignAttributionModeAndGenerateFakeReports()
154 TriggerSpecs.getSummaryBucketFromIndex(bucketIndex, buckets); in assignAttributionModeAndGenerateFakeReports()
DImpressionNoiseUtil.java19 import com.android.adservices.service.measurement.TriggerSpecs;
103 TriggerSpecs triggerSpecs, int destinationMultiplier, ThreadLocalRandom rand) { in selectFlexEventReportRandomStateAndGenerateReportConfigs()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DEventReportWindowCalcDelegateTest.java33 import com.android.adservices.service.measurement.TriggerSpecs;
1409 TriggerSpecs triggerSpecs = in getReportingTimeForNoisingFlexEventApi_validTime_equal()
1410 new TriggerSpecs( in getReportingTimeForNoisingFlexEventApi_validTime_equal()
1453 TriggerSpecs triggerSpecs = in getReportingAndTriggerTimeForNoisingFlexEventApi_validTime_equal()
1454 new TriggerSpecs( in getReportingAndTriggerTimeForNoisingFlexEventApi_validTime_equal()
1498 TriggerSpecs testTriggerSpecs = in getFlexEventReportingTime_triggerTimeEarlierThanSourceTime_signalsInvalid()
1499 new TriggerSpecs( in getFlexEventReportingTime_triggerTimeEarlierThanSourceTime_signalsInvalid()
1519 TriggerSpecs testTriggerSpecs = new TriggerSpecs(triggerSpecArray, 3, null); in getFlexEventReportingTime_triggerTimeEarlierThanReportWindowStart_signalsInvalid()
1540 TriggerSpecs testTriggerSpecs = new TriggerSpecs(triggerSpecArray, 3, null); in getFlexEventReportingTime_variousReportWindows_calculatesCorrectly()
1964 TriggerSpecs testTriggerSpecs = new TriggerSpecs(triggerSpecArray, 3, null); in fallsWithinWindow_flexApi_windowNotStarted()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DEventReportWindowCalcDelegate.java35 import com.android.adservices.service.measurement.TriggerSpecs;
160 TriggerSpecs triggerSpecs = source.getTriggerSpecs(); in fallsWithinWindow()
287 TriggerSpecs triggerSpecs,
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/
DAttributionJobHandler.java50 import com.android.adservices.service.measurement.TriggerSpecs;
1081 TriggerSpecs triggerSpecs = source.getTriggerSpecs(); in generateFlexEventReports()
1168 TriggerSpecs triggerSpecs = source.getTriggerSpecs(); in updateFlexAttributionStateAndGetNumReports()
1205 TriggerSpecs.getSummaryBucketFromIndex(i, buckets), in updateFlexAttributionStateAndGetNumReports()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/attribution/
DAttributionJobHandlerTest.java65 import com.android.adservices.service.measurement.TriggerSpecs;
5122 TriggerSpecs triggerSpecs = SourceFixture.getValidTriggerSpecsValueSum();
5211 TriggerSpecs triggerSpecs = SourceFixture.getValidTriggerSpecsValueSum();
5309 Pair<Long, Long> secondBucket = Pair.create(100L, TriggerSpecs.MAX_BUCKET_THRESHOLD);
5330 TriggerSpecs templateTriggerSpecs = SourceFixture.getValidTriggerSpecsValueSum();
5492 TriggerSpecs templateTriggerSpecs = SourceFixture.getValidTriggerSpecsValueSum();
5523 Pair<Long, Long> secondBucket = Pair.create(100L, TriggerSpecs.MAX_BUCKET_THRESHOLD);
5650 Pair<Long, Long> secondBucket = Pair.create(100L, TriggerSpecs.MAX_BUCKET_THRESHOLD);
5670 TriggerSpecs templateTriggerSpecs = SourceFixture.getValidTriggerSpecsValueSum();
5823 Pair<Long, Long> secondBucket = Pair.create(100L, TriggerSpecs.MAX_BUCKET_THRESHOLD);
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncRegistrationQueueRunnerTest.java80 import com.android.adservices.service.measurement.TriggerSpecs;
3304 .setTriggerSpecs(new TriggerSpecs( in isSourceAllowedToInsert_flexEventApiValidNav_pass()
3368 .setTriggerSpecs(new TriggerSpecs( in isSourceAllowedToInsert_flexEventApiInvalidEventExceedMaxInfoGain_fail()
3436 .setTriggerSpecs(new TriggerSpecs( in isSourceAllowedToInsert_flexEventApiInvalidEventExceedNumStatesArithmetic_fail()
3519 .setTriggerSpecs(new TriggerSpecs( in isSourceAllowedToInsert_flexEventApiInvalidEventExceedNumStatesIterative_fail()
3607 .setTriggerSpecs(new TriggerSpecs( in isSourceAllowedToInsert_fullFlexHighBoundAndStateCountIterative_catchesException()
3769 .setTriggerSpecs(new TriggerSpecs( in isSourceAllowedToInsert_flexEventApiValidV1ParamsNavExceedMaxInfoGain_fail()
3833 .setTriggerSpecs(new TriggerSpecs( in isSourceAllowedToInsert_flexEventApiValidV1NavNearBoundaryDualDestination_fail()
3895 .setTriggerSpecs(new TriggerSpecs( in isSourceAllowedToInsert_flexEventApiValidV1NavNearBoundary_pass()
3955 .setTriggerSpecs(new TriggerSpecs( in isSourceAllowedToInsert_flexEventApiV1ParamEventNearBoundary_pass()
DAsyncTriggerFetcherTest.java73 import com.android.adservices.service.measurement.TriggerSpecs;
1393 long tooLarge = TriggerSpecs.MAX_BUCKET_THRESHOLD + 1L; in testTriggerRequest_eventTriggerDataWithValueTooLarge_fail()
DAsyncSourceFetcherTest.java74 import com.android.adservices.service.measurement.TriggerSpecs;
6950 TriggerSpecs triggerSpecs = result.getTriggerSpecs(); in fetchSource_flexibleEventReportApi_setsDefaults()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DMeasurementDaoTest.java84 import com.android.adservices.service.measurement.TriggerSpecs;
7477 TriggerSpecs testTriggerSpecs = SourceFixture.getValidTriggerSpecsCountBased(); in fetchFlexSourceIdsFor_bringsMatchingSources_expectedSourceReturned()
7505 List<TriggerSpecs> triggerSpecsList = List.of( in fetchFlexSourceIdsFor_bringsMatchingSources_expectedSourceReturned()
7509 for (TriggerSpecs triggerSpecs : triggerSpecsList) { in fetchFlexSourceIdsFor_bringsMatchingSources_expectedSourceReturned()
7599 TriggerSpecs testTriggerSpecs = SourceFixture.getValidTriggerSpecsCountBased(); in fetchFlexSourceIdsFor_moreThanSqliteMaxCompoundSelect_expectedSourceReturned()
7627 List<TriggerSpecs> triggerSpecsList = List.of( in fetchFlexSourceIdsFor_moreThanSqliteMaxCompoundSelect_expectedSourceReturned()
7631 for (TriggerSpecs triggerSpecs : triggerSpecsList) { in fetchFlexSourceIdsFor_moreThanSqliteMaxCompoundSelect_expectedSourceReturned()
7721 TriggerSpecs testTriggerSpecs = SourceFixture.getValidTriggerSpecsCountBased(); in fetchFlexSourceIdsFor_emptyInputSourceId_noSourceReturned()
7750 List<TriggerSpecs> triggerSpecsList = List.of( in fetchFlexSourceIdsFor_emptyInputSourceId_noSourceReturned()
7754 for (TriggerSpecs triggerSpecs : triggerSpecsList) { in fetchFlexSourceIdsFor_emptyInputSourceId_noSourceReturned()
[all …]