Home
last modified time | relevance | path

Searched refs:getAdCounterKeys (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DAdDataTest.java44 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testBuildValidAdDataSuccess()
51 expect.that(validAdData.getAdCounterKeys()) in testBuildValidAdDataSuccess()
52 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testBuildValidAdDataSuccess()
73 expect.that(fromParcel.getAdCounterKeys()).isNotNull(); in testParcelValidAdDataWithUnsetKeysAndFiltersSuccess()
74 expect.that(fromParcel.getAdCounterKeys()).isEmpty(); in testParcelValidAdDataWithUnsetKeysAndFiltersSuccess()
137 expect.that(validAdData.getAdCounterKeys()).isNotNull(); in testBuildUnsetAdCounterKeysSuccess()
138 expect.that(validAdData.getAdCounterKeys()).isEmpty(); in testBuildUnsetAdCounterKeysSuccess()
149 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testBuildValidAdDataWithUnsetFiltersSuccess()
154 expect.that(validAdData.getAdCounterKeys()) in testBuildValidAdDataWithUnsetFiltersSuccess()
155 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testBuildValidAdDataWithUnsetFiltersSuccess()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/adselection/
DAdCounterKeyCopierImplTest.java65 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_DBAdDataToAdDataBuilder()
75 assertThat(outputAdData.getAdCounterKeys()).isEqualTo(AdDataFixture.getAdCounterKeys()); in testCopyAdCounterKeys_DBAdDataToAdDataBuilder()
82 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows()
104 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_AdDataToRecordArg()
112 new JSONArray(AdDataFixture.getAdCounterKeys())) in testCopyAdCounterKeys_AdDataToRecordArg()
150 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_DBAdDataToRecordArg()
158 new JSONArray(AdDataFixture.getAdCounterKeys())) in testCopyAdCounterKeys_DBAdDataToRecordArg()
190 sourceObject.put("ad_counter_keys", new JSONArray(AdDataFixture.getAdCounterKeys())); in testCopyAdCounterKeys_JsonObjectToAdDataBuilder()
199 assertThat(outputAdData.getAdCounterKeys()).isEqualTo(AdDataFixture.getAdCounterKeys()); in testCopyAdCounterKeys_JsonObjectToAdDataBuilder()
251 .getAdCounterKeys()); in testCopyAdCounterKeys_OutcomeToAdSelectionBuilder()
DAdCounterKeyCopierNoOpImplTest.java63 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_DBAdDataToAdDataBuilder()
73 assertThat(outputAdData.getAdCounterKeys()).isEmpty(); in testCopyAdCounterKeys_DBAdDataToAdDataBuilder()
80 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows()
102 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_AdDataToRecordArg()
141 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in testCopyAdCounterKeys_DBAdDataToRecordArg()
174 sourceObject.put("ad_counter_keys", new JSONArray(AdDataFixture.getAdCounterKeys())); in testCopyAdCounterKeys_JsonObjectToAdDataBuilder()
183 assertThat(outputAdData.getAdCounterKeys()).isEmpty(); in testCopyAdCounterKeys_JsonObjectToAdDataBuilder()
DAuctionServerCustomAudienceFiltererTest.java191 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in test_isValidCustomAudience_emptyAdRenderId_returnsFalse()
226 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in test_isValidCustomAudience_nullAdRenderId_returnsFalse()
246 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in test_isValidCustomAudience_atLeastOneNonNullNonEmptyKeyAndAdRenderId_returnsTrue()
253 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in test_isValidCustomAudience_atLeastOneNonNullNonEmptyKeyAndAdRenderId_returnsTrue()
260 .setAdCounterKeys(AdDataFixture.getAdCounterKeys()) in test_isValidCustomAudience_atLeastOneNonNullNonEmptyKeyAndAdRenderId_returnsTrue()
DAdCounterHistogramUpdaterImplTest.java56 FledgeRoomConverters.serializeIntegerSet(AdDataFixture.getAdCounterKeys());
311 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateWinHistogram_withAdCounterKeysPersists()
421 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateNonWinHistogram_withAdCounterKeysPersists()
464 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOff()
511 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOn()
559 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateNonWinHistogram_withAdCounterKeysPersists_unifiedFlagOn()
DAdDataArgumentUtilTest.java52 .setAdCounterKeys(AdDataFixture.getAdCounterKeys())
71 new JSONArray(AD_DATA_WITH_AD_COUNTER_KEYS.getAdCounterKeys())); in aValidAdDataWithAdCounterKeysJson()
201 AD_DATA_WITH_AD_COUNTER_KEYS.getAdCounterKeys())))); in testConversionToScriptArgumentWithAdCounterKeys()
DFrequencyCapFilteringIntegrationTest.java153 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys())
171 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys())
185 .setAdCounterKeys(AdDataFixture.getAdCounterKeys())
409 verify(mFrequencyCapDaoSpy, times(AdDataFixture.getAdCounterKeys().size())) in testUpdateHistogramForAdSelectionAddsHistogramEvents()
412 for (Integer key : AdDataFixture.getAdCounterKeys()) { in testUpdateHistogramForAdSelectionAddsHistogramEvents()
620 assertThat(histogramInfo.getAdCounterKeys()) in testAdSelectionPersistsAdCounterKeys()
621 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testAdSelectionPersistsAdCounterKeys()
DPerBuyerBiddingRunnerTest.java238 builder.setAdCounterKeys(AdDataFixture.getAdCounterKeys()); in createDBCustomAudience()
244 builder.setAdCounterKeys(AdDataFixture.getAdCounterKeys()); in createDBCustomAudience()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAdCounterKeyCopierImpl.java56 return targetBuilder.setAdCounterKeys(sourceAdData.getAdCounterKeys()); in copyAdCounterKeys()
66 if (sourceAdData.getAdCounterKeys().isEmpty()) { in copyAdCounterKeys()
74 new ArrayList<>(sourceAdData.getAdCounterKeys())))); in copyAdCounterKeys()
85 if (sourceAdData.getAdCounterKeys().isEmpty()) { in copyAdCounterKeys()
93 new ArrayList<>(sourceAdData.getAdCounterKeys())))); in copyAdCounterKeys()
129 sourceOutcome.getAdWithScore().getAdWithBid().getAdData().getAdCounterKeys(); in copyAdCounterKeys()
DAdCounterHistogramUpdaterImpl.java127 Set<Integer> adCounterKeys = winningCustomAudience.getAdCounterKeys(); in updateWinHistogram()
192 Set<Integer> adCounterKeys = histogramInfo.getAdCounterKeys(); in updateNonWinHistogram()
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/data/adselection/
DDBAdSelectionTest.java67 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testBuildDBAdSelection()
80 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testBuildDBAdSelection()
98 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testFailsToBuildRemarketingAdWithNullBiddingLogicUri()
220 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testBuildDBAdSelectionWithNullSellerContextualSignals()
233 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testBuildDBAdSelectionWithNullSellerContextualSignals()
304 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testBuildDBAdSelectionWithUnsetSellerContextualSignals()
316 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testBuildDBAdSelectionWithUnsetSellerContextualSignals()
332 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testEqualDBAdSelectionObjectsHaveSameHashCode()
346 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testEqualDBAdSelectionObjectsHaveSameHashCode()
365 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()) in testNotEqualDBAdSelectionObjectsHaveDifferentHashCode()
[all …]
DDBAdSelectionHistogramInfoTest.java32 FledgeRoomConverters.serializeIntegerSet(AdDataFixture.getAdCounterKeys());
53 assertThat(histogramInfo.getAdCounterKeys()).isEqualTo(AdDataFixture.getAdCounterKeys()); in testGetAdCounterKeysDeserializesCorrectly()
78 assertThat(histogramInfo.getAdCounterKeys()).isNull(); in testGetNullAdCounterKeysDeserializesCorrectly()
DAuctionServerAdSelectionDaoTest.java61 Set<Integer> adCounterKeys = AdDataFixture.getAdCounterKeys(); in testInsertAndRead_validInput_success()
95 Set<Integer> adCounterKeys = AdDataFixture.getAdCounterKeys(); in testUpdate_validInput_success()
122 Set<Integer> adCounterKeys = AdDataFixture.getAdCounterKeys(); in testInsert_duplicateAdSelectionId_aborts()
148 Set<Integer> adCounterKeys = AdDataFixture.getAdCounterKeys(); in testDelete_retrievingDeletedId_fails()
DAdSelectionEntryDaoTest.java151 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys())
1584 assertThat(histogramInfo.getAdCounterKeys()).isNull(); in testGetAdSelectionHistogramInfoInOnDeviceTableWithNullAdCounterKeys()
1602 assertThat(histogramInfo1.getAdCounterKeys()).isNull(); in testGetAdSelectionHistogramInfoWithNullAdCounterKeys()
1624 assertThat(histogramInfo2.getAdCounterKeys()).isNull(); in testGetAdSelectionHistogramInfoWithNullAdCounterKeys()
1649 assertThat(histogramInfo.getAdCounterKeys()).isNull(); in testGetAdSelectionHistogramInfoWithUnifiedTablesNullAdCounterKeys()
1674 assertThat(histogramInfo.getAdCounterKeys()) in testGetAdSelectionHistogramInfoWithUnifiedTables()
1675 .isEqualTo(WINNING_CUSTOM_AUDIENCE_ALL_FIELDS_SET.getAdCounterKeys()); in testGetAdSelectionHistogramInfoWithUnifiedTables()
1709 assertThat(histogramInfo.getAdCounterKeys()).isNotNull(); in testGetAdSelectionHistogramInfoInOnDeviceTable()
1710 assertThat(histogramInfo.getAdCounterKeys()) in testGetAdSelectionHistogramInfoInOnDeviceTable()
1731 assertThat(histogramInfo1.getAdCounterKeys()).isNotNull(); in testGetAdSelectionHistogramInfo()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/
DDBAdDataTest.java54 SAMPLE_AD_DATA.getAdCounterKeys(), in testConstructor()
71 expect.that(dbAdData.getAdCounterKeys()).isEqualTo(Collections.EMPTY_SET); in testConstructorNullsSucceed()
187 SAMPLE_AD_DATA.getAdCounterKeys().forEach(x -> size[0] += 4); in testSize()
248 .setAdCounterKeys(SAMPLE_AD_DATA.getAdCounterKeys()) in testBuilder()
257 expect.that(test.getAdCounterKeys()).isEqualTo(expected.getAdCounterKeys()); in assertEqualsServiceObject()
DFledgeRoomConvertersTest.java148 FledgeRoomConverters.serializeIntegerSet(AdDataFixture.getAdCounterKeys()); in testSerializeDeserializeIntegerSet()
153 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testSerializeDeserializeIntegerSet()
159 new JSONArray(AdDataFixture.getAdCounterKeys()).put("invalid").toString(); in testSerializeDeserializeIntegerSet_invalidIntegerSkipped()
164 .containsExactlyElementsIn(AdDataFixture.getAdCounterKeys()); in testSerializeDeserializeIntegerSet_invalidIntegerSkipped()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DDBAdData.java85 public Set<Integer> getAdCounterKeys() { in getAdCounterKeys() method in DBAdData
108 && mAdCounterKeys.equals(adData.getAdCounterKeys()) in equals()
150 setAdCounterKeys(copyFrom.getAdCounterKeys()); in Builder()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/
DAdDataFixture.java41 public static ImmutableSet<Integer> getAdCounterKeys() { in getAdCounterKeys() method in AdDataFixture
151 .setAdCounterKeys(getAdCounterKeys()) in getValidFilterAdDataBuilderByBuyer()
181 .setAdCounterKeys(getAdCounterKeys()) in getValidFilterAdDataWithAdRenderIdByBuyer()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/common/
DDBAdDataFixture.java37 .setAdCounterKeys(mirrorAdData.getAdCounterKeys()) in getValidDbAdDataBuilder()
93 adData.getAdCounterKeys(), in convertAdDataToDBAdData()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DAdDataConversionStrategyFactory.java57 if (!adData.getAdCounterKeys().isEmpty()) { in toJsonAdCounterKeys()
58 JSONArray jsonCounterKeys = new JSONArray(adData.getAdCounterKeys()); in toJsonAdCounterKeys()
96 adDataBuilder.setAdCounterKeys(parcelable.getAdCounterKeys()); in fromServiceObjectAdCounterKeys()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/adselection/
DDBAdSelectionHistogramInfo.java64 public final Set<Integer> getAdCounterKeys() { in getAdCounterKeys() method in DBAdSelectionHistogramInfo
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/adselection/datahandlers/
DWinningCustomAudience.java41 public abstract Set<Integer> getAdCounterKeys(); in getAdCounterKeys() method in WinningCustomAudience
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/data/adselection/
DDBAdSelectionFixture.java51 .setAdCounterIntKeys(AdDataFixture.getAdCounterKeys()); in getValidDbAdSelectionBuilder()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DDataHandlersFixture.java67 AdDataFixture.getAdCounterKeys();
198 .setAdCounterIntKeys(WINNING_CUSTOM_AUDIENCE_ALL_FIELDS_SET.getAdCounterKeys())
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/common/
DFrequencyCapAdDataValidatorNoOpImplTest.java77 assertThat(adDataWithExceededFrequencyCapLimits.getAdCounterKeys().size()) in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()

12