/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | ReportImpressionScriptEngineTest.java | 220 AdSelectionConfig adSelectionConfig = AdSelectionConfigFixture.anAdSelectionConfig(); in testReportResultSuccessfulCaseRegisterAdBeaconEnabled() local 224 reportResult(jsScript, adSelectionConfig, TEST_DOMAIN_URI, bid, mContextualSignals); in testReportResultSuccessfulCaseRegisterAdBeaconEnabled() 228 SELLER_KEY + adSelectionConfig.getSeller() + "\"}")) in testReportResultSuccessfulCaseRegisterAdBeaconEnabled() 247 AdSelectionConfig adSelectionConfig = AdSelectionConfigFixture.anAdSelectionConfig(); in testReportResultSuccessfulCaseRegisterAdBeaconDisabled() local 251 reportResult(jsScript, adSelectionConfig, TEST_DOMAIN_URI, bid, mContextualSignals); in testReportResultSuccessfulCaseRegisterAdBeaconDisabled() 255 SELLER_KEY + adSelectionConfig.getSeller() + "\"}")) in testReportResultSuccessfulCaseRegisterAdBeaconDisabled() 270 AdSelectionConfig adSelectionConfig = AdSelectionConfigFixture.anAdSelectionConfig(); in testReportResultSuccessfulCaseWithMoreResultsFieldsThanExpected() local 274 reportResult(jsScript, adSelectionConfig, TEST_DOMAIN_URI, bid, mContextualSignals); in testReportResultSuccessfulCaseWithMoreResultsFieldsThanExpected() 278 SELLER_KEY + adSelectionConfig.getSeller() + "\"}")) in testReportResultSuccessfulCaseWithMoreResultsFieldsThanExpected() 297 AdSelectionConfig adSelectionConfig = AdSelectionConfigFixture.anAdSelectionConfig(); in testReportResultSuccessfulCaseWithCallingRegisterAdBeacon() local [all …]
|
D | AdSelectionConfigValidatorTest.java | 138 AdSelectionConfig adSelectionConfig = mAdSelectionConfigBuilder.build(); in testVerifyAdSelectionConfigSuccess() local 142 adSelectionConfigValidator.validate(adSelectionConfig); in testVerifyAdSelectionConfigSuccess() 147 AdSelectionConfig adSelectionConfig = in testVerifyAdSelectionConfigSuccessSellerWithPrefix() local 156 adSelectionConfigValidator.validate(adSelectionConfig); in testVerifyAdSelectionConfigSuccessSellerWithPrefix() 161 AdSelectionConfig adSelectionConfig = in testVerifyEmptySeller() local 169 () -> adSelectionConfigValidator.validate(adSelectionConfig)); in testVerifyEmptySeller() 178 AdSelectionConfig adSelectionConfig = in testVerifyNotDomainNameSeller() local 187 () -> adSelectionConfigValidator.validate(adSelectionConfig)); in testVerifyNotDomainNameSeller() 196 AdSelectionConfig adSelectionConfig = in testVerifyInvalidSeller() local 204 () -> adSelectionConfigValidator.validate(adSelectionConfig)); in testVerifyInvalidSeller() [all …]
|
D | OnDeviceAdSelectionRunnerTest.java | 446 AdSelectionConfig adSelectionConfig = mAdSelectionConfigBuilder.build(); in testRunAdSelectionSuccess() local 447 verifyAndSetupCommonSuccessScenario(adSelectionConfig); in testRunAdSelectionSuccess() 511 invokeRunAdSelection(mAdSelectionRunner, adSelectionConfig, MY_APP_PACKAGE_NAME); in testRunAdSelectionSuccess() 518 adSelectionConfig); in testRunAdSelectionSuccess() 524 adSelectionConfig); in testRunAdSelectionSuccess() 526 verify(mMockAdsScoreGenerator).runAdScoring(mAdBiddingOutcomeList, adSelectionConfig); in testRunAdSelectionSuccess() 553 AdSelectionConfig adSelectionConfig = mAdSelectionConfigBuilder.build(); in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() local 554 verifyAndSetupCommonSuccessScenario(adSelectionConfig); in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() 633 invokeRunAdSelection(mAdSelectionRunner, adSelectionConfig, MY_APP_PACKAGE_NAME); in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() 640 adSelectionConfig); in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() [all …]
|
D | AdSelectionServiceImplTest.java | 508 AdSelectionConfig adSelectionConfig = mAdSelectionConfigBuilder.build(); in testReportImpressionSuccessWithRegisterAdBeaconDisabled() local 548 .setAdSelectionConfig(adSelectionConfig) in testReportImpressionSuccessWithRegisterAdBeaconDisabled() 636 AdSelectionConfig adSelectionConfig = mAdSelectionConfigBuilder.build(); in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled() local 676 .setAdSelectionConfig(adSelectionConfig) in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled() 764 AdSelectionConfig adSelectionConfig = mAdSelectionConfigBuilder.build(); in testReportImpressionFailureCallbackThrowsErrorAuctionServerEnabled() local 804 .setAdSelectionConfig(adSelectionConfig) in testReportImpressionFailureCallbackThrowsErrorAuctionServerEnabled() 885 AdSelectionConfig adSelectionConfig = mAdSelectionConfigBuilder.build(); in testReportImpressionSuccessCallbackThrowsErrorAuctionServerDisabled() local 925 .setAdSelectionConfig(adSelectionConfig) in testReportImpressionSuccessCallbackThrowsErrorAuctionServerDisabled() 1013 AdSelectionConfig adSelectionConfig = mAdSelectionConfigBuilder.build(); in testReportImpressionFailureCallbackThrowsErrorAuctionServerDisabled() local 1053 .setAdSelectionConfig(adSelectionConfig) in testReportImpressionFailureCallbackThrowsErrorAuctionServerDisabled() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/ |
D | AdSelectionDevOverridesHelper.java | 71 @NonNull AdSelectionConfig adSelectionConfig) { in calculateAdSelectionConfigId() 74 hasher.putUnencodedChars(adSelectionConfig.getSeller().toString()) in calculateAdSelectionConfigId() 75 .putUnencodedChars(adSelectionConfig.getDecisionLogicUri().toString()) in calculateAdSelectionConfigId() 76 .putUnencodedChars(adSelectionConfig.getAdSelectionSignals().toString()) in calculateAdSelectionConfigId() 77 .putUnencodedChars(adSelectionConfig.getSellerSignals().toString()); in calculateAdSelectionConfigId() 79 adSelectionConfig.getCustomAudienceBuyers().stream() in calculateAdSelectionConfigId() 82 adSelectionConfig.getPerBuyerSignals().entrySet().stream() in calculateAdSelectionConfigId() 112 public String getDecisionLogicOverride(@NonNull AdSelectionConfig adSelectionConfig) { in getDecisionLogicOverride() argument 113 Objects.requireNonNull(adSelectionConfig); in getDecisionLogicOverride() 119 calculateAdSelectionConfigId(adSelectionConfig), in getDecisionLogicOverride() [all …]
|
D | AdSelectionOverrider.java | 120 @NonNull AdSelectionConfig adSelectionConfig, in addOverride() 144 adSelectionConfig, in addOverride() 173 @NonNull AdSelectionConfig adSelectionConfig, in removeOverride() 192 ignoredVoid -> callRemoveOverride(adSelectionConfig), in removeOverride() 405 @NonNull AdSelectionConfig adSelectionConfig, in callAddOverride() 419 adSelectionConfig, in callAddOverride() 427 private FluentFuture<Integer> callRemoveOverride(@NonNull AdSelectionConfig adSelectionConfig) { in callRemoveOverride() argument 438 adSelectionConfig); in callRemoveOverride()
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/rootcts/ |
D | CustomAudienceBackgroundFetchTest.java | 61 AdSelectionConfig adSelectionConfig = in testAdSelection_withInvalidFields_backgroundJobUpdatesSuccessfully() local 66 assertThrows(ExecutionException.class, () -> doSelectAds(adSelectionConfig)); in testAdSelection_withInvalidFields_backgroundJobUpdatesSuccessfully() 69 assertThat(doSelectAds(adSelectionConfig).hasOutcome()).isTrue(); in testAdSelection_withInvalidFields_backgroundJobUpdatesSuccessfully() 88 AdSelectionConfig adSelectionConfig = in testAdSelection_withInvalidAds_backgroundJobUpdateFails() local 93 assertThrows(ExecutionException.class, () -> doSelectAds(adSelectionConfig)); in testAdSelection_withInvalidAds_backgroundJobUpdateFails() 96 assertThrows(ExecutionException.class, () -> doSelectAds(adSelectionConfig)); in testAdSelection_withInvalidAds_backgroundJobUpdateFails() 116 AdSelectionConfig adSelectionConfig = in testAdSelection_withHighLatencyBackend_backgroundJobFails() local 121 assertThrows(ExecutionException.class, () -> doSelectAds(adSelectionConfig)); in testAdSelection_withHighLatencyBackend_backgroundJobFails() 128 assertThrows(ExecutionException.class, () -> doSelectAds(adSelectionConfig)); in testAdSelection_withHighLatencyBackend_backgroundJobFails() 147 AdSelectionConfig adSelectionConfig = in testAdSelection_withOverlyLargeDailyUpdate_backgroundJobFails() local [all …]
|
D | FledgeMaintenanceJobTest.java | 58 AdSelectionConfig adSelectionConfig = in testAdSelection_afterExpirationWindow_adSelectionDataCleared() local 63 AdSelectionOutcome result = doSelectAds(adSelectionConfig); in testAdSelection_afterExpirationWindow_adSelectionDataCleared() 69 () -> doReportImpression(result.getAdSelectionId(), adSelectionConfig)); in testAdSelection_afterExpirationWindow_adSelectionDataCleared() 92 AdSelectionConfig adSelectionConfig = in testAdSelection_afterExpirationWindow_adInteractionsIsCleared() local 97 AdSelectionOutcome result = doSelectAds(adSelectionConfig); in testAdSelection_afterExpirationWindow_adInteractionsIsCleared() 98 doReportImpression(result.getAdSelectionId(), adSelectionConfig); in testAdSelection_afterExpirationWindow_adInteractionsIsCleared() local
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/ |
D | AdSelectionTest.java | 80 AdSelectionConfig adSelectionConfig = in testAdSelection_withBiddingAndScoringLogic_happyPath() local 85 AdSelectionOutcome result = doSelectAds(adSelectionConfig); in testAdSelection_withBiddingAndScoringLogic_happyPath() 121 AdSelectionConfig adSelectionConfig = in testAdSelection_withBiddingLogicV3_happyPath() local 127 AdSelectionOutcome result = doSelectAds(adSelectionConfig); in testAdSelection_withBiddingLogicV3_happyPath() 149 AdSelectionConfig adSelectionConfig = in testAdSelection_withAdCostInUrl_happyPath() local 156 AdSelectionOutcome result = doSelectAds(adSelectionConfig); in testAdSelection_withAdCostInUrl_happyPath() 164 doReportImpression(adSelectionId, adSelectionConfig); in testAdSelection_withAdCostInUrl_happyPath() 180 AdSelectionConfig adSelectionConfig = in testAdSelection_withAdCostInUrl_adCostIsReported() local 187 AdSelectionOutcome result = doSelectAds(adSelectionConfig); in testAdSelection_withAdCostInUrl_adCostIsReported() 189 doReportImpression(adSelectionId, adSelectionConfig); in testAdSelection_withAdCostInUrl_adCostIsReported() [all …]
|
D | AdSelectionReportingTest.java | 53 AdSelectionConfig adSelectionConfig = in testReportImpression_defaultAdSelection_happyPath() local 59 doSelectAds(adSelectionConfig).getAdSelectionId(), adSelectionConfig); in testReportImpression_defaultAdSelection_happyPath() local 74 AdSelectionConfig adSelectionConfig = in testReportImpression_buyerRequestFails_sellerRequestSucceeds() local 80 doSelectAds(adSelectionConfig).getAdSelectionId(), adSelectionConfig); in testReportImpression_buyerRequestFails_sellerRequestSucceeds() local
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | AdSelectionConfigArgumentUtil.java | 60 AdSelectionConfig adSelectionConfig, String name) throws JSONException { in asScriptArgument() argument 63 adSelectionConfig.getPerBuyerSignals().entrySet()) { in asScriptArgument() 69 stringArg(SELLER_FIELD_NAME, adSelectionConfig.getSeller().toString()), in asScriptArgument() 72 adSelectionConfig.getDecisionLogicUri().toString()), in asScriptArgument() 75 adSelectionConfig.getCustomAudienceBuyers().stream() in asScriptArgument() 80 adSelectionConfig.getAdSelectionSignals().toString()), in asScriptArgument() 81 jsonArg(SELLER_SIGNALS_FIELD_NAME, adSelectionConfig.getSellerSignals().toString()), in asScriptArgument() 85 adSelectionConfig.getTrustedScoringSignalsUri().toString())); in asScriptArgument()
|
D | AdSelectionConfigValidator.java | 79 @NonNull AdSelectionConfig adSelectionConfig, in addValidation() 81 if (Objects.isNull(adSelectionConfig)) { in addValidation() 85 String sellerString = adSelectionConfig.getSeller().toString(); in addValidation() 88 if (mPrebuiltLogicGenerator.isPrebuiltUri(adSelectionConfig.getDecisionLogicUri())) { in addValidation() 99 adSelectionConfig.getDecisionLogicUri(), violations); in addValidation() 102 if (!adSelectionConfig.getTrustedScoringSignalsUri().equals(Uri.EMPTY)) { in addValidation() 110 adSelectionConfig.getTrustedScoringSignalsUri(), violations); in addValidation() 114 validateSignedContextualAds(adSelectionConfig.getPerBuyerSignedContextualAds())); in addValidation()
|
D | AdsScoreGeneratorImpl.java | 157 @NonNull final AdSelectionConfig adSelectionConfig) { in runAdScoring() argument 169 new ArrayList<>(adSelectionConfig.getPerBuyerSignedContextualAds().values()); in runAdScoring() 177 .setUri(adSelectionConfig.getDecisionLogicUri()) in runAdScoring() 186 adSelectionConfig, in runAdScoring() 196 adSelectionConfig); in runAdScoring() 208 adSelectionConfig, in runAdScoring() 276 @NonNull final AdSelectionConfig adSelectionConfig) { in getAdScores() argument 278 final AdSelectionSignals sellerSignals = adSelectionConfig.getSellerSignals(); in getAdScores() 280 getTrustedScoringSignals(adSelectionConfig, adBiddingOutcomes); in getAdScores() 308 adSelectionConfig, in getAdScores() [all …]
|
D | AdSelectionRunner.java | 492 AdSelectionConfig adSelectionConfig = inputParams.getAdSelectionConfig(); 494 adSelectionConfig.getSeller(), 502 validateAdSelectionConfig(adSelectionConfig); 626 @NonNull final AdSelectionConfig adSelectionConfig, 634 adSelectionConfigInput = getAdSelectionConfigWithoutContextualAds(adSelectionConfig); 638 getAdSelectionConfigFilterContextualAds(adSelectionConfig, callerPackageName); 655 adSelectionConfig.getSeller()); 676 @NonNull AdSelectionConfig adSelectionConfig, 688 final AdSelectionConfig adSelectionConfig) { 693 !(adSelectionConfig.getCustomAudienceBuyers().isEmpty() [all …]
|
D | PerBuyerBiddingRunner.java | 87 final AdSelectionConfig adSelectionConfig) { in runBidding() argument 105 adSelectionConfig, in runBidding() 124 AdSelectionConfig adSelectionConfig, in runBidPerCAWorkPartition() argument 137 adSelectionConfig, in runBidPerCAWorkPartition() 146 @NonNull final AdSelectionConfig adSelectionConfig, in runBiddingPerCA() argument 153 adSelectionConfig in runBiddingPerCA() 160 adSelectionConfig.getAdSelectionSignals(), in runBiddingPerCA()
|
D | OnDeviceAdSelectionRunner.java | 256 @NonNull final AdSelectionConfig adSelectionConfig, in orchestrateAdSelection() 265 buyerCAs -> runAdBidding(buyerCAs, adSelectionConfig); in orchestrateAdSelection() 271 mapBidsToScores = bids -> runAdScoring(bids, adSelectionConfig); in orchestrateAdSelection() 412 @NonNull final AdSelectionConfig adSelectionConfig) { in runAdBidding() argument 434 adSelectionConfig); in runAdBidding() 472 @NonNull final AdSelectionConfig adSelectionConfig) in runAdScoring() argument 480 && adSelectionConfig.getPerBuyerSignedContextualAds().isEmpty()) { in runAdScoring() 495 adSelectionConfig.getPerBuyerSignedContextualAds().size()); in runAdScoring() 497 .runAdScoring(validBiddingOutcomes, adSelectionConfig) in runAdScoring()
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/ |
D | AdSelectionInput.java | 48 @NonNull AdSelectionConfig adSelectionConfig, @NonNull String callerPackageName) { in AdSelectionInput() 49 Objects.requireNonNull(adSelectionConfig); in AdSelectionInput() 51 this.mAdSelectionConfig = adSelectionConfig; in AdSelectionInput() 104 @NonNull AdSelectionConfig adSelectionConfig) { in setAdSelectionConfig() 105 Objects.requireNonNull(adSelectionConfig); in setAdSelectionConfig() 107 this.mAdSelectionConfig = adSelectionConfig; in setAdSelectionConfig()
|
D | ReportImpressionInput.java | 55 @NonNull AdSelectionConfig adSelectionConfig, in ReportImpressionInput() argument 57 Objects.requireNonNull(adSelectionConfig); in ReportImpressionInput() 60 this.mAdSelectionConfig = adSelectionConfig; in ReportImpressionInput() 131 @NonNull AdSelectionConfig adSelectionConfig) { in setAdSelectionConfig() 132 Objects.requireNonNull(adSelectionConfig); in setAdSelectionConfig() 134 this.mAdSelectionConfig = adSelectionConfig; in setAdSelectionConfig()
|
D | AddAdSelectionOverrideRequest.java | 60 @NonNull AdSelectionConfig adSelectionConfig, in AddAdSelectionOverrideRequest() 64 Objects.requireNonNull(adSelectionConfig); in AddAdSelectionOverrideRequest() 69 mAdSelectionConfig = adSelectionConfig; in AddAdSelectionOverrideRequest() 85 @NonNull AdSelectionConfig adSelectionConfig, in AddAdSelectionOverrideRequest() 89 adSelectionConfig, in AddAdSelectionOverrideRequest()
|
D | ReportImpressionRequest.java | 50 long adSelectionId, @NonNull AdSelectionConfig adSelectionConfig) { in ReportImpressionRequest() argument 51 Objects.requireNonNull(adSelectionConfig); in ReportImpressionRequest() 56 mAdSelectionConfig = adSelectionConfig; in ReportImpressionRequest()
|
D | RemoveAdSelectionOverrideRequest.java | 35 public RemoveAdSelectionOverrideRequest(@NonNull AdSelectionConfig adSelectionConfig) { in RemoveAdSelectionOverrideRequest() argument 36 mAdSelectionConfig = adSelectionConfig; in RemoveAdSelectionOverrideRequest()
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/appoptout/src/com/android/adservices/tests/permissions/ |
D | PermissionsAppOptOutTest.java | 189 AdSelectionConfig adSelectionConfig = in testNoEnrollment_selectAds_adSelectionConfig() local 202 () -> mAdSelectionClient.selectAds(adSelectionConfig).get()); in testNoEnrollment_selectAds_adSelectionConfig() 210 AdSelectionConfig adSelectionConfig = in testWithEnrollment_selectAds_adSelectionConfig() local 225 () -> mAdSelectionClient.selectAds(adSelectionConfig).get()); in testWithEnrollment_selectAds_adSelectionConfig() 273 AdSelectionConfig adSelectionConfig = in testNoEnrollment_reportImpression() local 286 new ReportImpressionRequest(adSelectionId, adSelectionConfig); in testNoEnrollment_reportImpression() 299 AdSelectionConfig adSelectionConfig = in testWithEnrollment_reportImpression() local 312 new ReportImpressionRequest(adSelectionId, adSelectionConfig); in testWithEnrollment_reportImpression()
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/noperm/src/com/android/adservices/tests/permissions/ |
D | PermissionsNoPermTest.java | 232 AdSelectionConfig adSelectionConfig = AdSelectionConfigFixture.anAdSelectionConfig(); in testPermissionNotRequested_selectAds_adSelectionConfig() local 243 () -> mAdSelectionClient.selectAds(adSelectionConfig).get()); in testPermissionNotRequested_selectAds_adSelectionConfig() 266 AdSelectionConfig adSelectionConfig = AdSelectionConfigFixture.anAdSelectionConfig(); in testPermissionNotRequested_reportImpression() local 277 new ReportImpressionRequest(adSelectionId, adSelectionConfig); in testPermissionNotRequested_reportImpression() 333 AdSelectionConfig adSelectionConfig = AdSelectionConfigFixture.anAdSelectionConfig(); in testPermissionNotRequested_fledgeOverrideAdSelectionConfigRemoteInfo() local 337 adSelectionConfig, decisionLogicJs, trustedScoringSignals); in testPermissionNotRequested_fledgeOverrideAdSelectionConfigRemoteInfo() 359 AdSelectionConfig adSelectionConfig = AdSelectionConfigFixture.anAdSelectionConfig(); in testPermissionNotRequested_fledgeRemoveAdSelectionConfigRemoteInfo() local 362 new RemoveAdSelectionOverrideRequest(adSelectionConfig); in testPermissionNotRequested_fledgeRemoveAdSelectionConfigRemoteInfo()
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/customaudience/src/com/android/adservices/tests/cts/customaudience/ |
D | CustomAudienceTest.java | 262 AdSelectionConfig adSelectionConfig = getAdSelectionConfig(); in testCustomAudience_dataPurgedForUninstalledApp() local 269 .selectAds(adSelectionConfig) in testCustomAudience_dataPurgedForUninstalledApp() 324 .selectAds(adSelectionConfig) in testCustomAudience_dataPurgedForUninstalledApp() 348 .selectAds(adSelectionConfig) in testCustomAudience_dataPurgedForUninstalledApp() 375 AdSelectionConfig adSelectionConfig = getAdSelectionConfig(); in testCustomAudience_doesNotPersistAfterAppUninstallAndReinstall() local 416 .selectAds(adSelectionConfig) in testCustomAudience_doesNotPersistAfterAppUninstallAndReinstall() 445 .selectAds(adSelectionConfig) in testCustomAudience_doesNotPersistAfterAppUninstallAndReinstall() 480 .selectAds(adSelectionConfig) in testCustomAudience_doesNotPersistAfterAppUninstallAndReinstall()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | AppManifestConfigParser.java | 64 AppManifestAdSelectionConfig adSelectionConfig = null; in getConfig() local 149 if (adSelectionConfig != null) { in getConfig() 153 adSelectionConfig = in getConfig() 210 adSelectionConfig, in getConfig()
|