Home
last modified time | relevance | path

Searched refs:getAttributionScopes (Results 1 – 8 of 8) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/
DAttributionJobHandler.java752 triggerAttributionScopes = trigger.getAttributionScopes(); in selectSourceToAttribute()
762 if (source.getAttributionScopes() == null) { in selectSourceToAttribute()
766 new HashSet<>(source.getAttributionScopes()); in selectSourceToAttribute()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DTrigger.java584 public List<String> getAttributionScopes() throws JSONException { in getAttributionScopes() method in Trigger
DSource.java1325 public List<String> getAttributionScopes() { in getAttributionScopes() method in Source
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DMeasurementDao.java483 || pendingSource.getAttributionScopes() == null in removeOldAttributionScopes()
484 || pendingSource.getAttributionScopes().isEmpty()) { in removeOldAttributionScopes()
790 if (attributionScopeEnabled && source.getAttributionScopes() != null) { in insertSource()
791 for (String attributionScope : new HashSet<>(source.getAttributionScopes())) { in insertSource()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DTriggerTest.java903 Truth.assertThat(trigger.getAttributionScopes()).containsExactly("1", "2"); in getAttributionScopes_validJsonStringArray_parseSuccess()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DMeasurementDaoTest.java396 assertThat(attributionScopes).containsExactlyElementsIn(validSource.getAttributionScopes()); in testInsertSource_attributionScopeEnabled_success()
4405 .map(Source::getAttributionScopes) in testGetMatchingActiveSources_attributionScopeEnabled_populateScopes()
4423 .map(Source::getAttributionScopes) in testGetMatchingActiveSources_attributionScopeEnabled_populateScopes()
4427 .containsExactly(source0.getAttributionScopes(), source1.getAttributionScopes()); in testGetMatchingActiveSources_attributionScopeEnabled_populateScopes()
4441 .map(Source::getAttributionScopes) in testGetMatchingActiveSources_attributionScopeEnabled_populateScopes()
4445 .containsExactly(source0.getAttributionScopes(), source2.getAttributionScopes()); in testGetMatchingActiveSources_attributionScopeEnabled_populateScopes()
10070 .containsExactlyElementsIn(source.getAttributionScopes()); in testUpdateSourcesForAttributionScope_scopesNotSelected_removesScopes()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncSourceFetcherTest.java9750 assertThat(fetch.get().getAttributionScopes()).isEqualTo(List.of("1", "2", "3")); in fetchSource_attributionScopeEnabled_parsesAttributionScopeFields()
9787 assertThat(fetch.get().getAttributionScopes()).isNull(); in fetchSource_attributionScopeDisabled_skipsAttributionScopeFields()
9895 assertThat(fetch.get().getAttributionScopes()).isEqualTo(List.of("", "1")); in fetchSource_attributionScopeEmpty_pass()
10002 assertThat(fetch.get().getAttributionScopes()).isEqualTo(List.of()); in fetchSource_emptyAttributionScopesAndLimitSet_success()
DAsyncTriggerFetcherTest.java6776 assertThat(fetch.get().getAttributionScopes()).containsExactly("5", "6"); in fetchTrigger_attributionScopeEnabled_parsesAttributionScopeFields()
6856 assertThat(fetch.get().getAttributionScopes()).containsExactly(""); in fetchTrigger_attributionScopeEmpty_pass()
6910 assertThat(fetch.get().getAttributionScopes()).isNull(); in fetchTrigger_attributionScopeDisabled_skipsAttributionScopeFields()