Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DEventReportTest.java265 List<EventTrigger> eventTriggers = trigger.parseEventTriggers(mFlags); in populateFromSourceAndTrigger_eventSourceAppDestWithoutInstallAttribution() local
271 eventTriggers.get(0), in populateFromSourceAndTrigger_eventSourceAppDestWithoutInstallAttribution()
317 List<EventTrigger> eventTriggers = trigger.parseEventTriggers(mFlags); in populate_eventSourceAppDestWithoutInstallConfigured() local
323 eventTriggers.get(0), in populate_eventSourceAppDestWithoutInstallConfigured()
359 List<EventTrigger> eventTriggers = trigger.parseEventTriggers(mFlags); in testpopulate_shouldTruncateTriggerDataWith64thBit() local
360 EventTrigger eventTrigger = spy(eventTriggers.get(0)); in testpopulate_shouldTruncateTriggerDataWith64thBit()
404 List<EventTrigger> eventTriggers = trigger.parseEventTriggers(mFlags); in populate_eventSourceWebDestWithoutInstallAttribution() local
410 eventTriggers.get(0), in populate_eventSourceWebDestWithoutInstallAttribution()
442 List<EventTrigger> eventTriggers = trigger.parseEventTriggers(mFlags); in populate_eventSourceAppDestWithInstallAttribution() local
448 eventTriggers.get(0), in populate_eventSourceAppDestWithInstallAttribution()
[all …]
DTriggerTest.java911 String eventTriggers, in assertInvalidTriggerArguments() argument
929 .setEventTriggers(eventTriggers) in assertInvalidTriggerArguments()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV3.java327 private static void updateEventTrigger(SQLiteDatabase db, String id, String eventTriggers) { in updateEventTrigger() argument
329 values.put(MeasurementTables.TriggerContract.EVENT_TRIGGERS, eventTriggers); in updateEventTrigger()
369 String eventTriggers = cursor.getString(cursor.getColumnIndex( in updateTrigger() local
377 updateEventTriggers(eventTriggers)); in updateTrigger()
435 private static String updateEventTriggers(String eventTriggers) { in updateEventTriggers() argument
436 if (eventTriggers == null) { in updateEventTriggers()
441 return updateEventTriggers(new JSONArray(eventTriggers)); in updateEventTriggers()
449 private static String updateEventTriggers(JSONArray eventTriggers) throws JSONException { in updateEventTriggers() argument
450 for (int i = 0; i < eventTriggers.length(); i++) { in updateEventTriggers()
451 JSONObject eventTrigger = eventTriggers.getJSONObject(i); in updateEventTriggers()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DTrigger.java484 List<EventTrigger> eventTriggers = new ArrayList<>(); in parseEventTriggers() local
528 eventTriggers.add(eventTriggerBuilder.build()); in parseEventTriggers()
531 return eventTriggers; in parseEventTriggers()
650 public Builder setEventTriggers(@NonNull String eventTriggers) { in setEventTriggers() argument
651 Validation.validateNonNull(eventTriggers); in setEventTriggers()
652 mBuilding.mEventTriggers = eventTriggers; in setEventTriggers()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV6Test.java311 String eventTriggers) { in insertTrigger() argument
316 values.put(MeasurementTables.TriggerContract.EVENT_TRIGGERS, eventTriggers); in insertTrigger()
DMeasurementDbMigratorV3Test.java668 private static void insertTrigger(SQLiteDatabase db, String id, String eventTriggers, in insertTrigger() argument
672 values.put(MeasurementTables.TriggerContract.EVENT_TRIGGERS, eventTriggers); in insertTrigger()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncTriggerFetcherTest.java1037 StringBuilder eventTriggers = new StringBuilder("[{\"trigger_data\":\"2\",\"filters\":["); in testTriggerRequest_eventTriggerData_tooManyFilterMaps() local
1039 eventTriggers.append("{\"key-" + i + "\":[\"val1" + i + "\", \"val2" + i + "\"]}"); in testTriggerRequest_eventTriggerData_tooManyFilterMaps()
1041 eventTriggers.append("}]"); in testTriggerRequest_eventTriggerData_tooManyFilterMaps()
1048 List.of("{\"event_trigger_data\":" + eventTriggers + "}"))); in testTriggerRequest_eventTriggerData_tooManyFilterMaps()
1065 String eventTriggers = "[{\"trigger_data\":\"2\",\"filters\":[" in testTriggerRequest_eventTriggerData_filterMapIncludesReservedPrefix_fails() local
1073 List.of("{\"event_trigger_data\":" + eventTriggers + "}"))); in testTriggerRequest_eventTriggerData_filterMapIncludesReservedPrefix_fails()
1148 StringBuilder eventTriggers = new StringBuilder( in testTriggerRequest_eventTriggerData_tooManyNotFilterMaps() local
1152 eventTriggers.append("{\"key-" + i + "\":[\"val1" + i + "\", \"val2" + i + "\"]},"); in testTriggerRequest_eventTriggerData_tooManyNotFilterMaps()
1154 eventTriggers.append("{\"key-" + i + "\":[\"val1" + i + "\", \"val2" + i + "\"]}"); in testTriggerRequest_eventTriggerData_tooManyNotFilterMaps()
1155 eventTriggers.append("}]"); in testTriggerRequest_eventTriggerData_tooManyNotFilterMaps()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/
DAttributionJobHandler.java1526 List<EventTrigger> eventTriggers = trigger.parseEventTriggers(mFlags); in findFirstMatchingEventTrigger() local
1528 eventTriggers.stream() in findFirstMatchingEventTrigger()
1537 if (!matchingEventTrigger.isPresent() && !eventTriggers.isEmpty()) { in findFirstMatchingEventTrigger()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/attribution/
DAttributionJobHandlerTest.java468 String eventTriggers = in shouldNotCreateEventReportAfterEventReportWindow_prioritisedSource() local
479 .setEventTriggers(eventTriggers) in shouldNotCreateEventReportAfterEventReportWindow_prioritisedSource()
760 String eventTriggers = in shouldNotReplaceHighPriorityReports() local
771 .setEventTriggers(eventTriggers) in shouldNotReplaceHighPriorityReports()
1531 String eventTriggers = in shouldIgnoreLowPrioritySourceWhileAttribution() local
1546 .setEventTriggers(eventTriggers) in shouldIgnoreLowPrioritySourceWhileAttribution()
1611 String eventTriggers = in performAttributions_sourceDeactivationAfterFilteringFlagOn_ignoresWithoutAttribution() local
1625 .setEventTriggers(eventTriggers) in performAttributions_sourceDeactivationAfterFilteringFlagOn_ignoresWithoutAttribution()
1689 String eventTriggers = in performAttributions_sourceDeactivationAfterFilteringFlagOff_doesNotIgnoreWithoutAttr() local
1703 .setEventTriggers(eventTriggers) in performAttributions_sourceDeactivationAfterFilteringFlagOff_doesNotIgnoreWithoutAttr()
[all …]