Home
last modified time | relevance | path

Searched refs:addValidation (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DCustomAudienceBlobValidator.java107 public void addValidation( in addValidation() method in CustomAudienceBlobValidator
116 mNameValidator.addValidation(customAudience.getName(), violations); in addValidation()
122 mUserBiddingSignalsValidator.addValidation( in addValidation()
131 mActivationTimeValidator.addValidation(calculatedActivationTime, violations); in addValidation()
138 mExpirationTimeValidator.addValidation( in addValidation()
145 mBuyerValidator.addValidation(customAudience.getBuyer().toString(), violations); in addValidation()
159 mBiddingLogicUriValidator.addValidation( in addValidation()
168 mDailyUpdateUriValidator.addValidation( in addValidation()
177 mTrustedBiddingDataValidator.addValidation( in addValidation()
186 mAdsValidator.addValidation(customAudience.getAds(), buyer, violations); in addValidation()
DCustomAudienceValidator.java144 public void addValidation( in addValidation() method in CustomAudienceValidator
151 mCustomAudienceTimestampValidator.addValidation(customAudience, violations); in addValidation()
152 mCustomAudienceFieldSizeValidator.addValidation(customAudience, violations); in addValidation()
158 mBuyerValidator.addValidation(buyer, violations); in validateFieldFormat()
164 .addValidation(customAudience.getDailyUpdateUri(), violations); in validateFieldFormat()
170 .addValidation(customAudience.getBiddingLogicUri(), violations); in validateFieldFormat()
172 mUserBiddingSignalsValidator.addValidation( in validateFieldFormat()
177 .addValidation( in validateFieldFormat()
189 adDataValidator.addValidation(adData, violations); in validateFieldFormat()
DCustomAudienceBiddingLogicUriValidator.java83 addValidation(biddingLogicUri, buyer, violations); in getValidationViolations()
99 public void addValidation( in addValidation() method in CustomAudienceBiddingLogicUriValidator
113 adTechUriValidator.addValidation(biddingLogicUri, violations); in addValidation()
DCustomAudienceDailyUpdateUriValidator.java83 addValidation(dailyUpdateUri, buyer, violations); in getValidationViolations()
99 public void addValidation( in addValidation() method in CustomAudienceDailyUpdateUriValidator
113 adTechUriValidator.addValidation(dailyUpdateUri, violations); in addValidation()
DTrustedBiddingDataValidator.java87 addValidation(trustedBiddingData, buyer, violations); in getValidationViolations()
103 public void addValidation( in addValidation() method in TrustedBiddingDataValidator
118 adTechUriValidator.addValidation(trustedBiddingData.getTrustedBiddingUri(), violations); in addValidation()
DCustomAudienceAdsValidator.java104 addValidation(ads, buyer, violations); in getValidationViolations()
123 public void addValidation( in addValidation() method in CustomAudienceAdsValidator
139 adDataValidator.addValidation(ad, violations); in addValidation()
DCustomAudienceUserBiddingSignalsValidator.java65 public void addValidation( in addValidation() method in CustomAudienceUserBiddingSignalsValidator
72 mJsonValidator.addValidation(userBiddingSignals.toString(), violations); in addValidation()
DCustomAudienceExpirationTimeValidator.java88 addValidation(expirationTime, calculatedActivationTime, violations); in getValidationViolations()
107 public void addValidation( in addValidation() method in CustomAudienceExpirationTimeValidator
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFrequencyCapAdDataValidatorImplTest.java54 () -> mFrequencyCapAdDataValidator.addValidation(null, ImmutableList.builder())); in testAddValidation_nullAdDataThrows()
62 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_nullViolationsThrows()
72 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_validKeysAndFiltersNoViolationsFound()
111 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
127 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_nullKeyedFrequencyCapReturnsViolations()
159 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_KeyedFrequencyCapsWithNegativeFieldsReturnsViolations()
196 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_KeyedFrequencyCapsWithZeroFieldsReturnsViolations()
233 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_KeyedFrequencyCapsWithExcessiveIntervalReturnsViolations()
261 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_noKeysOrFiltersNoViolationsFound()
DFrequencyCapAdDataValidatorNoOpImplTest.java45 () -> mFrequencyCapAdDataValidator.addValidation(null, ImmutableList.builder())); in testAddValidation_nullAdDataThrows()
53 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_nullViolationsThrows()
63 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_validKeysAndFiltersNoViolationsFound()
102 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_excessiveNumKeysAndFiltersReturnsViolations()
114 mFrequencyCapAdDataValidator.addValidation( in testAddValidation_noKeysOrFiltersNoViolationsFound()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAdDataValidator.java67 public void addValidation( in addValidation() method in AdDataValidator
73 mUriValidator.addValidation(adData.getRenderUri(), adDataViolations); in addValidation()
74 mMetadataValidator.addValidation(adData.getMetadata(), adDataViolations); in addValidation()
75 mFrequencyCapAdDataValidator.addValidation(adData, adDataViolations); in addValidation()
76 mAdRenderIdValidator.addValidation(adData.getAdRenderId(), adDataViolations); in addValidation()
DValidator.java57 addValidation(object, violations); in getValidationViolations()
62 void addValidation(T object, ImmutableCollection.Builder<String> violations); in addValidation() method
DFrequencyCapAdDataValidator.java30 void addValidation( in addValidation() method
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAdSelectionConfigValidator.java78 public void addValidation( in addValidation() method in AdSelectionConfigValidator
86 mAdTechIdentifierValidator.addValidation(sellerString, violations); in addValidation()
98 sellerDecisionLogicUriValidator.addValidation( in addValidation()
109 trustedScoringSignalsUriValidator.addValidation( in addValidation()
130 buyerUriValidator.addValidation(entry.getValue().getDecisionLogicUri(), violations); in validateSignedContextualAds()
140 adDataValidator.addValidation(ad.getAdData(), violations); in validateSignedContextualAds()
DAdvertiserSetValidator.java66 public void addValidation( in addValidation() method in AdvertiserSetValidator
82 mAdTechIdentifierValidator.addValidation(advertiserString, violations); in addValidation()
DAuctionResultValidator.java77 public void addValidation( in addValidation() method in AuctionResultValidator
107 adRenderUriValidator.addValidation(Uri.parse(auctionResult.getAdRenderUrl()), violations); in addValidation()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceDailyUpdateUriValidatorTest.java76 () -> mValidator.addValidation(null, VALID_BUYER_1, new ImmutableList.Builder<>())); in testAddValidation_nullDailyUpdateUri_throws()
84 mValidator.addValidation( in testAddValidation_nullBuyer_throws()
95 mValidator.addValidation( in testAddValidation_nullViolations_throws()
DCustomAudienceBiddingLogicUriValidatorTest.java77 () -> mValidator.addValidation(null, VALID_BUYER_1, new ImmutableList.Builder<>())); in testAddValidation_nullBiddingLogicUri_throws()
85 mValidator.addValidation( in testAddValidation_nullBuyer_throws()
96 mValidator.addValidation( in testAddValidation_nullViolations_throws()
DTrustedBiddingDataValidatorTest.java76 () -> mValidator.addValidation(null, VALID_BUYER_1, new ImmutableList.Builder<>())); in testAddValidation_nullTrustedBiddingData_throws()
84 mValidator.addValidation( in testAddValidation_nullBuyer_throws()
95 mValidator.addValidation( in testAddValidation_nullViolations_throws()
DCustomAudienceExpirationTimeValidatorTest.java98 mValidator.addValidation( in testAddValidation_nullExpirationTime_throws()
107 mValidator.addValidation( in testAddValidation_nullCalculatedActivationTime_throws()
115 () -> mValidator.addValidation(VALID_EXPIRATION_TIME, VALID_ACTIVATION_TIME, null)); in testAddValidation_nullViolations_throws()
DCustomAudienceNameValidatorTest.java54 () -> mValidator.addValidation(null, new ImmutableList.Builder<>())); in testAddValidation_nullName_throws()
59 assertThrows(NullPointerException.class, () -> mValidator.addValidation(VALID_NAME, null)); in testAddValidation_nullViolations_throws()
DCustomAudienceActivationTimeValidatorTest.java80 () -> mValidator.addValidation(null, new ImmutableList.Builder<>())); in testAddValidation_nullActivationTime_throws()
87 () -> mValidator.addValidation(VALID_ACTIVATION_TIME, null)); in testAddValidation_nullViolations_throws()
DCustomAudienceUserBiddingSignalsValidatorTest.java69 () -> mValidator.addValidation(null, new ImmutableList.Builder<>())); in testAddValidation_nullUserBiddingSignals_throws()
76 () -> mValidator.addValidation(VALID_USER_BIDDING_SIGNALS, null)); in testAddValidation_nullViolations_throws()
DCustomAudienceAdsValidatorTest.java139 () -> mValidator.addValidation(null, VALID_BUYER_1, new ImmutableList.Builder<>())); in testAddValidation_nullAds_throws()
146 () -> mValidator.addValidation(mValidAds, null, new ImmutableList.Builder<>())); in testAddValidation_nullBuyer_throws()
153 () -> mValidator.addValidation(mValidAds, VALID_BUYER_1, null)); in testAddValidation_nullViolations_throws()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdvertiserSetValidatorTest.java94 .addValidation(eq(CommonFixture.VALID_BUYER_1.toString()), any()); in testSuccessValidSet()
96 .addValidation(eq(CommonFixture.VALID_BUYER_2.toString()), any()); in testSuccessValidSet()

12