Home
last modified time | relevance | path

Searched refs:sourceAdData (Results 1 – 6 of 6) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAdCounterKeyCopierImpl.java53 @NonNull AdData.Builder targetBuilder, @NonNull DBAdData sourceAdData) { in copyAdCounterKeys() argument
55 Objects.requireNonNull(sourceAdData); in copyAdCounterKeys()
56 return targetBuilder.setAdCounterKeys(sourceAdData.getAdCounterKeys()); in copyAdCounterKeys()
62 @NonNull JSScriptRecordArgument originalRecordArgument, @NonNull AdData sourceAdData) { in copyAdCounterKeys() argument
64 Objects.requireNonNull(sourceAdData); in copyAdCounterKeys()
66 if (sourceAdData.getAdCounterKeys().isEmpty()) { in copyAdCounterKeys()
74 new ArrayList<>(sourceAdData.getAdCounterKeys())))); in copyAdCounterKeys()
81 @NonNull DBAdData sourceAdData) { in copyAdCounterKeys() argument
83 Objects.requireNonNull(sourceAdData); in copyAdCounterKeys()
85 if (sourceAdData.getAdCounterKeys().isEmpty()) { in copyAdCounterKeys()
[all …]
DAdCounterKeyCopierNoOpImpl.java43 @NonNull AdData.Builder targetBuilder, @NonNull DBAdData sourceAdData) { in copyAdCounterKeys() argument
45 Objects.requireNonNull(sourceAdData); in copyAdCounterKeys()
52 @NonNull JSScriptRecordArgument originalRecordArgument, @NonNull AdData sourceAdData) { in copyAdCounterKeys() argument
54 Objects.requireNonNull(sourceAdData); in copyAdCounterKeys()
62 @NonNull DBAdData sourceAdData) { in copyAdCounterKeys() argument
64 Objects.requireNonNull(sourceAdData); in copyAdCounterKeys()
DAdCounterKeyCopier.java41 @NonNull AdData.Builder targetBuilder, @NonNull DBAdData sourceAdData); in copyAdCounterKeys() argument
49 @NonNull JSScriptRecordArgument originalRecordArgument, @NonNull AdData sourceAdData); in copyAdCounterKeys() argument
57 @NonNull JSScriptRecordArgument originalRecordArgument, @NonNull DBAdData sourceAdData); in copyAdCounterKeys() argument
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdCounterKeyCopierNoOpImplTest.java50 DBAdData sourceAdData = DBAdDataFixture.VALID_DB_AD_DATA_NO_FILTERS; in testCopyAdCounterKeys_DBAdDataToAdDataBuilder_NullBuilderThrows() local
54 () -> mAdCounterKeyCopier.copyAdCounterKeys((AdData.Builder) null, sourceAdData)); in testCopyAdCounterKeys_DBAdDataToAdDataBuilder_NullBuilderThrows()
66 DBAdData sourceAdData = in testCopyAdCounterKeys_DBAdDataToAdDataBuilder() local
75 mAdCounterKeyCopier.copyAdCounterKeys(targetBuilder, sourceAdData); in testCopyAdCounterKeys_DBAdDataToAdDataBuilder()
83 AdData sourceAdData = in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows() local
90 () -> mAdCounterKeyCopier.copyAdCounterKeys(null, sourceAdData)); in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows()
105 AdData sourceAdData = in testCopyAdCounterKeys_AdDataToRecordArg() local
114 mAdCounterKeyCopier.copyAdCounterKeys(originalRecordArg, sourceAdData); in testCopyAdCounterKeys_AdDataToRecordArg()
123 DBAdData sourceAdData = DBAdDataFixture.VALID_DB_AD_DATA_NO_FILTERS; in testCopyAdCounterKeys_DBAdDataToRecordArg_NullBuilderThrows() local
129 (JSScriptRecordArgument) null, sourceAdData)); in testCopyAdCounterKeys_DBAdDataToRecordArg_NullBuilderThrows()
[all …]
DAdCounterKeyCopierImplTest.java52 DBAdData sourceAdData = DBAdDataFixture.VALID_DB_AD_DATA_NO_FILTERS; in testCopyAdCounterKeys_DBAdDataToAdDataBuilder_NullBuilderThrows() local
56 () -> mAdCounterKeyCopier.copyAdCounterKeys((AdData.Builder) null, sourceAdData)); in testCopyAdCounterKeys_DBAdDataToAdDataBuilder_NullBuilderThrows()
68 DBAdData sourceAdData = in testCopyAdCounterKeys_DBAdDataToAdDataBuilder() local
77 mAdCounterKeyCopier.copyAdCounterKeys(targetBuilder, sourceAdData); in testCopyAdCounterKeys_DBAdDataToAdDataBuilder()
85 AdData sourceAdData = in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows() local
92 () -> mAdCounterKeyCopier.copyAdCounterKeys(null, sourceAdData)); in testCopyAdCounterKeys_AdDataToRecordArg_NullBuilderThrows()
107 AdData sourceAdData = in testCopyAdCounterKeys_AdDataToRecordArg() local
121 mAdCounterKeyCopier.copyAdCounterKeys(originalRecordArg, sourceAdData); in testCopyAdCounterKeys_AdDataToRecordArg()
132 DBAdData sourceAdData = DBAdDataFixture.VALID_DB_AD_DATA_NO_FILTERS; in testCopyAdCounterKeys_DBAdDataToRecordArg_NullBuilderThrows() local
138 (JSScriptRecordArgument) null, sourceAdData)); in testCopyAdCounterKeys_DBAdDataToRecordArg_NullBuilderThrows()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/
DAdDataFixture.java193 AdData sourceAdData = getValidAdDataByBuyer(buyer, sequenceNumber); in getAdDataWithExceededFrequencyCapLimits() local
196 sourceAdData.getRenderUri().writeToParcel(sourceParcel, 0); in getAdDataWithExceededFrequencyCapLimits()
197 sourceParcel.writeString(sourceAdData.getMetadata()); in getAdDataWithExceededFrequencyCapLimits()