Home
last modified time | relevance | path

Searched refs:filterMap (Results 1 – 12 of 12) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DFilterMap.java213 Map<String, List<String>> filterMap = new HashMap<>(); in buildFilterData() local
222 filterMap.put(key, filterMapList); in buildFilterData()
224 mBuilding.mAttributionFilterMap = filterMap; in buildFilterData()
230 Map<String, FilterValue> filterMap = new HashMap<>(); in buildFilterDataV2() local
237 filterMap.put(key, FilterValue.ofLong(Long.parseLong(value))); in buildFilterDataV2()
249 filterMap.put(key, FilterValue.ofStringList(filterMapList)); in buildFilterDataV2()
252 mBuilding.mAttributionFilterMapWithLongValue = filterMap; in buildFilterDataV2()
DSource.java1239 FilterMap filterMap = getFilterData(trigger, flags); in getSharedFilterData() local
1241 return filterMap; in getSharedFilterData()
1247 filterMap.getAttributionFilterMapWithLongValue())) in getSharedFilterData()
1252 extractSharedFilterMapFromJson(filterMap.getAttributionFilterMap())) in getSharedFilterData()
1613 public Builder setFilterDataString(@Nullable String filterMap) { in setFilterDataString() argument
1614 mBuilding.mFilterDataString = filterMap; in setFilterDataString()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DFilterMapTest.java160 FilterMap filterMap = new FilterMap(); in testIsEmpty_lookbackWindowFilterEnabled_empty() local
161 filterMap.getAttributionFilterMap().put("a", stringList); in testIsEmpty_lookbackWindowFilterEnabled_empty()
162 assertThat(filterMap.isEmpty(mFlags)).isTrue(); in testIsEmpty_lookbackWindowFilterEnabled_empty()
169 FilterMap filterMap = new FilterMap(); in testIsEmpty_lookbackWindowFilterDisabled_notEmpty() local
170 filterMap.getAttributionFilterMap().put("a", stringList); in testIsEmpty_lookbackWindowFilterDisabled_notEmpty()
171 assertThat(filterMap.isEmpty(mFlags)).isFalse(); in testIsEmpty_lookbackWindowFilterDisabled_notEmpty()
DSourceTest.java119 JSONObject filterMap = new JSONObject(); in testEqualsPass() local
120 filterMap.put( in testEqualsPass()
122 filterMap.put("product", Arrays.asList("1234", "2345")); in testEqualsPass()
159 .setFilterDataString(filterMap.toString()) in testEqualsPass()
213 .setFilterDataString(filterMap.toString()) in testEqualsPass()
813 final Map<String, List<String>> filterMap = Map.of("x", List.of("1")); in testAggregatableAttributionSource() local
819 .setAttributionFilterMap(filterMap) in testAggregatableAttributionSource()
842 filterMap, in testAggregatableAttributionSource()
952 FilterMap filterMap = source.getFilterData(trigger, mFlags); in testGetFilterData_nonEmpty() local
953 assertEquals(filterMap.getAttributionFilterMap().size(), 3); in testGetFilterData_nonEmpty()
[all …]
DTriggerTest.java944 JSONObject filterMap = new JSONObject(); in createFilterJSONArray() local
945 filterMap.put( in createFilterJSONArray()
947 filterMap.put("product", new JSONArray(Arrays.asList("1234", "2345"))); in createFilterJSONArray()
949 filterSet.put(filterMap); in createFilterJSONArray()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/attribution/
DXnaSourceCreatorTest.java646 JSONObject filterMap = new JSONObject(); in buildMatchingFilterData() local
647 filterMap.put( in buildMatchingFilterData()
651 filterMap.put(FilterMap.LOOKBACK_WINDOW, LOOKBACK_WINDOW_VALUE); in buildMatchingFilterData()
653 return filterMap.toString(); in buildMatchingFilterData()
662 JSONObject filterMap = new JSONObject(); in buildNonMatchingFilterData() local
663 filterMap.put( in buildNonMatchingFilterData()
666 return filterMap.toString(); in buildNonMatchingFilterData()
675 JSONObject filterMap = new JSONObject(); in buildMatchingSharedFilterData() local
676 filterMap.put( in buildMatchingSharedFilterData()
679 filterMap.put("product", new JSONArray(Collections.singletonList("123"))); in buildMatchingSharedFilterData()
[all …]
DAttributionJobHandlerTest.java8129 JSONObject filterMap = new JSONObject(); in buildMatchingFilterData() local
8130 filterMap.put( in buildMatchingFilterData()
8133 return filterMap.toString(); in buildMatchingFilterData()
8156 JSONObject filterMap = new JSONObject(); in createFilterJSONArray() local
8157 filterMap.put( in createFilterJSONArray()
8159 filterMap.put("product", new JSONArray(Arrays.asList("1234", "2345"))); in createFilterJSONArray()
8161 filterSet.put(filterMap); in createFilterJSONArray()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/util/
DFilter.java57 for (FilterMap filterMap : triggerFilters) { in isFilterMatch()
58 if (isFilterMatch(sourceFilter, filterMap, isFilter)) { in isFilterMatch()
152 FilterMap filterMap = in deserializeFilterSet() local
156 filterSet.add(filterMap); in deserializeFilterSet()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregateTriggerDataTest.java90 FilterMap filterMap = in testHashCode_notEquals() local
118 createExampleBuilder().setFilterSet(List.of(filterMap)).build().hashCode()); in testHashCode_notEquals()
136 FilterMap filterMap = in createExampleBuilder() local
152 .setFilterSet(List.of(filterMap)) in createExampleBuilder()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregatableAttributionSource.java90 public Builder setFilterMap(FilterMap filterMap) { in setFilterMap() argument
91 mBuilding.mFilterMap = filterMap; in setFilterMap()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/
DSourceFixture.java158 JSONObject filterMap = new JSONObject(); in buildFilterDataString() local
159 filterMap.put("conversion_subdomain", in buildFilterDataString()
161 filterMap.put("product", new JSONArray(Arrays.asList("1234", "2345"))); in buildFilterDataString()
162 return filterMap.toString(); in buildFilterDataString()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/
DAttributionJobHandler.java1585 FilterMap filterMap = in extractFilterSetV1() local
1589 filterSet.add(filterMap); in extractFilterSetV1()