Home
last modified time | relevance | path

Searched refs:contextualAds (Results 1 – 16 of 16) sorted by relevance

/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DSignedContextualAdsTest.java49 SignedContextualAds contextualAds = in testBuildContextualAdsSuccess() local
57 assertThat(contextualAds.getBuyer()).isEqualTo(SignedContextualAdsFixture.BUYER); in testBuildContextualAdsSuccess()
58 assertThat(contextualAds.getDecisionLogicUri()) in testBuildContextualAdsSuccess()
60 assertThat(contextualAds.getAdsWithBid()) in testBuildContextualAdsSuccess()
62 assertThat(contextualAds.getSignature()).isEqualTo(TEST_SIGNATURE); in testBuildContextualAdsSuccess()
68 SignedContextualAds contextualAds = SignedContextualAdsFixture.aSignedContextualAds(); in testBuildContextualAdsBuilderSuccess() local
69 assertThat(contextualAds.getBuyer()).isNotEqualTo(newAdTech); in testBuildContextualAdsBuilderSuccess()
72 new SignedContextualAds.Builder(contextualAds).setBuyer(newAdTech).build(); in testBuildContextualAdsBuilderSuccess()
78 SignedContextualAds contextualAds = SignedContextualAdsFixture.aSignedContextualAds(); in testParcelValidContextualAdsSuccess() local
81 contextualAds.writeToParcel(p, 0); in testParcelValidContextualAdsSuccess()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/
DSignedContextualAdsTest.java43 SignedContextualAds contextualAds = in testBuildContextualAdsSuccess() local
51 expect.that(contextualAds.getBuyer()).isEqualTo(SignedContextualAdsFixture.BUYER); in testBuildContextualAdsSuccess()
52 expect.that(contextualAds.getDecisionLogicUri()) in testBuildContextualAdsSuccess()
54 expect.that(contextualAds.getAdsWithBid()) in testBuildContextualAdsSuccess()
56 expect.that(contextualAds.getSignature()).isEqualTo(TEST_SIGNATURE); in testBuildContextualAdsSuccess()
62 SignedContextualAds contextualAds = SignedContextualAdsFixture.aSignedContextualAds(); in testBuildContextualAdsBuilderSuccess() local
63 expect.that(contextualAds.getBuyer()).isNotEqualTo(newAdTech); in testBuildContextualAdsBuilderSuccess()
66 new SignedContextualAds.Builder(contextualAds).setBuyer(newAdTech).build(); in testBuildContextualAdsBuilderSuccess()
72 SignedContextualAds contextualAds = SignedContextualAdsFixture.aSignedContextualAds(); in testParcelValidContextualAdsSuccess() local
75 contextualAds.writeToParcel(p, 0); in testParcelValidContextualAdsSuccess()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DFrequencyCapAdFiltererNoOpImplTest.java72 final SignedContextualAds contextualAds = in testFilterNullAdFilters() local
77 assertEquals(contextualAds, mFrequencyCapAdFilterer.filterContextualAds(contextualAds)); in testFilterNullAdFilters()
90 final SignedContextualAds contextualAds = in testFilterNullComponentFilters() local
94 assertEquals(contextualAds, mFrequencyCapAdFilterer.filterContextualAds(contextualAds)); in testFilterNullComponentFilters()
108 final SignedContextualAds contextualAds = in testAppInstallFilter() local
112 assertEquals(contextualAds, mFrequencyCapAdFilterer.filterContextualAds(contextualAds)); in testAppInstallFilter()
130 final SignedContextualAds contextualAds = in testMultipleApps() local
134 assertEquals(contextualAds, mFrequencyCapAdFilterer.filterContextualAds(contextualAds)); in testMultipleApps()
159 final SignedContextualAds contextualAds = in testMultipleAds() local
165 assertEquals(contextualAds, mFrequencyCapAdFilterer.filterContextualAds(contextualAds)); in testMultipleAds()
DAppInstallAdFiltererNoOpImplTest.java72 final SignedContextualAds contextualAds = in testFilterNullAdFilters() local
77 assertEquals(contextualAds, mAdFilterer.filterContextualAds(contextualAds)); in testFilterNullAdFilters()
90 final SignedContextualAds contextualAds = in testFilterNullComponentFilters() local
94 assertEquals(contextualAds, mAdFilterer.filterContextualAds(contextualAds)); in testFilterNullComponentFilters()
108 final SignedContextualAds contextualAds = in testAppInstallFilter() local
112 assertEquals(contextualAds, mAdFilterer.filterContextualAds(contextualAds)); in testAppInstallFilter()
130 final SignedContextualAds contextualAds = in testMultipleApps() local
134 assertEquals(contextualAds, mAdFilterer.filterContextualAds(contextualAds)); in testMultipleApps()
159 final SignedContextualAds contextualAds = in testMultipleAds() local
165 assertEquals(contextualAds, mAdFilterer.filterContextualAds(contextualAds)); in testMultipleAds()
DAppInstallAdFiltererImplTest.java111 final SignedContextualAds contextualAds = in testFilterContextualAdsDoesNotFilterNullAdFilters() local
116 assertEquals(contextualAds, mAdFilterer.filterContextualAds(contextualAds)); in testFilterContextualAdsDoesNotFilterNullAdFilters()
129 final SignedContextualAds contextualAds = in testFilterContextualAdsDoesNotFilterNullComponentFilters() local
134 assertEquals(contextualAds, mAdFilterer.filterContextualAds(contextualAds)); in testFilterContextualAdsDoesNotFilterNullComponentFilters()
150 final SignedContextualAds contextualAds = in testFilterContextualAdsDoesNotFilterForAppNotInstalled() local
155 assertEquals(contextualAds, mAdFilterer.filterContextualAds(contextualAds)); in testFilterContextualAdsDoesNotFilterForAppNotInstalled()
174 final SignedContextualAds contextualAds = in testFilterContextualAdsFiltersForAppInstalled() local
181 mAdFilterer.filterContextualAds(contextualAds).getAdsWithBid()); in testFilterContextualAdsFiltersForAppInstalled()
206 final SignedContextualAds contextualAds = in testFilterContextualAdsFiltersForMixedApps() local
213 mAdFilterer.filterContextualAds(contextualAds).getAdsWithBid()); in testFilterContextualAdsFiltersForMixedApps()
[all …]
DFrequencyCapAdFiltererImplTest.java96 final SignedContextualAds contextualAds = in testFilterContextualAdsDoesNotFilterNullAdFilters() local
101 assertEquals(contextualAds, mFrequencyCapAdFilterer.filterContextualAds(contextualAds)); in testFilterContextualAdsDoesNotFilterNullAdFilters()
114 final SignedContextualAds contextualAds = in testFilterContextualAdsDoesNotFilterNullComponentFilters() local
119 assertEquals(contextualAds, mFrequencyCapAdFilterer.filterContextualAds(contextualAds)); in testFilterContextualAdsDoesNotFilterNullComponentFilters()
142 final SignedContextualAds contextualAds = in testFilterContextualAdsWithEmptyFrequencyCapFilters() local
145 assertThat(mFrequencyCapAdFilterer.filterContextualAds(contextualAds).getAdsWithBid()) in testFilterContextualAdsWithEmptyFrequencyCapFilters()
170 final SignedContextualAds contextualAds = in testFilterContextualAdsForNonMatchingFrequencyCap() local
173 assertThat(mFrequencyCapAdFilterer.filterContextualAds(contextualAds).getAdsWithBid()) in testFilterContextualAdsForNonMatchingFrequencyCap()
212 final SignedContextualAds contextualAds = in testFilterContextualAdsForMatchingFrequencyCap() local
215 assertThat(mFrequencyCapAdFilterer.filterContextualAds(contextualAds).getAdsWithBid()) in testFilterContextualAdsForMatchingFrequencyCap()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAppInstallAdFiltererImpl.java106 public SignedContextualAds filterContextualAds(SignedContextualAds contextualAds) { in filterContextualAds() argument
113 contextualAds.getAdsWithBid().size(), currentTime); in filterContextualAds()
114 for (AdWithBid ad : contextualAds.getAdsWithBid()) { in filterContextualAds()
116 if (doesAdPassAppInstallFilters(dbAdData, contextualAds.getBuyer())) { in filterContextualAds()
122 adsList.size(), contextualAds.getAdsWithBid().size()); in filterContextualAds()
124 return new SignedContextualAds.Builder(contextualAds).setAdsWithBid(adsList).build(); in filterContextualAds()
DFrequencyCapAdFiltererImpl.java110 public SignedContextualAds filterContextualAds(SignedContextualAds contextualAds) { in filterContextualAds() argument
117 contextualAds.getAdsWithBid().size(), currentTime); in filterContextualAds()
118 for (AdWithBid ad : contextualAds.getAdsWithBid()) { in filterContextualAds()
121 dbAdData, contextualAds.getBuyer(), null, null, currentTime)) { in filterContextualAds()
126 new SignedContextualAds.Builder(contextualAds).setAdsWithBid(adsList).build(); in filterContextualAds()
130 adsList.size(), contextualAds.getAdsWithBid().size()); in filterContextualAds()
DAdsScoreGeneratorImpl.java162 List<SignedContextualAds> contextualAds; in runAdScoring() local
168 contextualAds = in runAdScoring()
172 contextualAds = new ArrayList<>(); in runAdScoring()
195 contextualAds, in runAdScoring()
206 contextualAds, in runAdScoring()
275 @NonNull List<SignedContextualAds> contextualAds, in getAdScores() argument
289 for (SignedContextualAds ctx : contextualAds) { in getAdScores()
475 List<SignedContextualAds> contextualAds,
483 adBiddingOutcomes.size(), contextualAds.size(), adScores.size());
517 for (SignedContextualAds ctx : contextualAds) {
DAppInstallAdFiltererNoOpImpl.java50 public SignedContextualAds filterContextualAds(SignedContextualAds contextualAds) { in filterContextualAds() argument
52 return contextualAds; in filterContextualAds()
DFrequencyCapAdFiltererNoOpImpl.java50 public SignedContextualAds filterContextualAds(SignedContextualAds contextualAds) { in filterContextualAds() argument
52 return contextualAds; in filterContextualAds()
DFrequencyCapAdFilterer.java46 SignedContextualAds filterContextualAds(SignedContextualAds contextualAds); in filterContextualAds() argument
DAppInstallAdFilterer.java46 SignedContextualAds filterContextualAds(SignedContextualAds contextualAds); in filterContextualAds() argument
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/signature/
DBinarySerializerSignedContextualAdsTest.java126 SignedContextualAds contextualAds = in testContextualAdSerialization_fullObject_success() local
144 byte[] serialized = new SignedContextualAdsHashUtil().serialize(contextualAds); in testContextualAdSerialization_fullObject_success()
194 SignedContextualAds contextualAds = in testContextualAdSerialization_minimalistObject_success() local
216 byte[] serialized = new SignedContextualAdsHashUtil().serialize(contextualAds); in testContextualAdSerialization_minimalistObject_success()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DSignedContextualAdsFixture.java197 .mapToInt(contextualAds -> contextualAds.getAdsWithBid().size()) in countAdsIn()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFledgeE2ETest.java5559 SignedContextualAds contextualAds = in createContextualAds() local
5566 buyerContextualAds.put(buyer, contextualAds); in createContextualAds()