/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | UpdateAdCounterHistogramWorker.java | 115 @NonNull UpdateAdCounterHistogramInput inputParams, in updateAdCounterHistogram() 117 Objects.requireNonNull(inputParams); in updateAdCounterHistogram() 123 FluentFuture.from(mExecutorService.submit(() -> validateRequest(inputParams))) in updateAdCounterHistogram() 126 submitUpdateAdCounterHistogram(inputParams, currentTimestamp), in updateAdCounterHistogram() 135 inputParams.getCallerPackageName(), in updateAdCounterHistogram() 138 notifySuccess(inputParams.getCallerPackageName(), callback); in updateAdCounterHistogram() 146 invokeFailure(inputParams.getCallerPackageName(), callback, t); in updateAdCounterHistogram() 153 @NonNull UpdateAdCounterHistogramInput inputParams, @NonNull Instant currentTimestamp) { in submitUpdateAdCounterHistogram() 158 inputParams.getAdSelectionId(), in submitUpdateAdCounterHistogram() 159 inputParams.getCallerPackageName(), in submitUpdateAdCounterHistogram() [all …]
|
D | AdSelectionServiceImpl.java | 382 GetAdSelectionDataInput inputParams, in getAdSelectionData() argument 391 inputParams.getCallerPackageName(), in getAdSelectionData() 403 inputParams.getCallerPackageName(), in getAdSelectionData() 410 Objects.requireNonNull(inputParams); in getAdSelectionData() 411 Objects.requireNonNull(inputParams.getSeller()); in getAdSelectionData() 417 inputParams.getCallerPackageName(), in getAdSelectionData() 426 mContext, inputParams.getCallerPackageName(), apiName, PERMISSIONS_SET); in getAdSelectionData() 433 inputParams, in getAdSelectionData() 444 PersistAdSelectionResultInput inputParams, in persistAdSelectionResult() argument 454 inputParams.getCallerPackageName(), in persistAdSelectionResult() [all …]
|
D | OutcomeSelectionRunner.java | 241 @NonNull AdSelectionFromOutcomesInput inputParams, in runOutcomeSelection() 244 Objects.requireNonNull(inputParams); in runOutcomeSelection() 248 inputParams.getAdSelectionFromOutcomesConfig(); in runOutcomeSelection() 258 inputParams.getCallerPackageName(), in runOutcomeSelection() 266 validateAdSelectionFromOutcomesConfig(inputParams); in runOutcomeSelection() 279 inputParams.getAdSelectionFromOutcomesConfig(), in runOutcomeSelection() 280 inputParams.getCallerPackageName(), in runOutcomeSelection() 289 inputParams.getCallerPackageName(), result, callback); in runOutcomeSelection() 310 inputParams.getCallerPackageName(), in runOutcomeSelection() 315 inputParams.getCallerPackageName(), t, callback); in runOutcomeSelection() [all …]
|
D | AdSelectionRunner.java | 327 @NonNull AdSelectionInput inputParams, in runAdSelection() 332 Objects.requireNonNull(inputParams); in runAdSelection() 335 String callerAppPackageName = inputParams.getCallerPackageName(); in runAdSelection() 343 validateRequest(inputParams, devContext); in runAdSelection() 357 inputParams.getAdSelectionConfig(), in runAdSelection() 358 inputParams.getCallerPackageName()), in runAdSelection() 401 inputParams.getCallerPackageName(), in runAdSelection() 406 inputParams.getCallerPackageName(), callback, t); in runAdSelection() 453 notifyFailureToCaller(inputParams.getCallerPackageName(), callback, t); in runAdSelection() 485 @NonNull AdSelectionInput inputParams, @NonNull DevContext devContext) { [all …]
|
D | GetAdSelectionDataRunner.java | 326 @NonNull GetAdSelectionDataInput inputParams, in run() 328 Objects.requireNonNull(inputParams); in run() 338 getServerAuctionCoordinatorSourceFromUri(inputParams.getCoordinatorOriginUri())); in run() 347 inputParams.getSeller(), in run() 348 inputParams.getCallerPackageName(), in run() 358 inputParams.getCoordinatorOriginUri()); in run() 370 inputParams.getSeller(), in run() 372 inputParams.getCallerPackageName(), in run() 373 inputParams.getCoordinatorOriginUri(), in run()
|
D | PersistAdSelectionResultRunner.java | 205 @NonNull PersistAdSelectionResultInput inputParams, in run() 207 Objects.requireNonNull(inputParams); in run() 212 long adSelectionId = inputParams.getAdSelectionId(); in run() 223 inputParams.getSeller(), in run() 224 inputParams.getCallerPackageName(), in run() 231 validateSellerAndCallerPackageName(inputParams, adSelectionId); in run() 242 orchestratePersistAdSelectionResultRunner(inputParams), in run() 805 PersistAdSelectionResultInput inputParams, long adSelectionId) { 819 AdTechIdentifier sellerInRequest = inputParams.getSeller(); 821 String callerInRequest = inputParams.getCallerPackageName();
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | ReportEventImplTest.java | 296 ReportInteractionInput inputParams = in testImplSuccessfullyReportsRegisteredInteractions() local 306 ReportInteractionTestCallback callback = callReportInteraction(inputParams, true); in testImplSuccessfullyReportsRegisteredInteractions() 378 ReportInteractionInput inputParams = in testImplDoesNotCrashAfterSellerReportingThrowsAnException() local 395 ReportInteractionTestCallback callback = callReportInteraction(inputParams, true); in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 463 ReportInteractionInput inputParams = in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() local 480 ReportInteractionTestCallback callback = callReportInteraction(inputParams, true); in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 541 ReportInteractionInput inputParams = in testImplOnlyReportsBuyersRegisteredInteractions() local 551 ReportInteractionTestCallback callback = callReportInteraction(inputParams, true); in testImplOnlyReportsBuyersRegisteredInteractions() 612 ReportInteractionInput inputParams = in testImplOnlyReportsSellerRegisteredInteractions() local 622 ReportInteractionTestCallback callback = callReportInteraction(inputParams, true); in testImplOnlyReportsSellerRegisteredInteractions() [all …]
|
D | GetAdSelectionDataRunnerTest.java | 295 GetAdSelectionDataInput inputParams = in testRunner_getAdSelectionData_returnsSuccess() local 302 invokeGetAdSelectionData(mGetAdSelectionDataRunner, inputParams); in testRunner_getAdSelectionData_returnsSuccess() 362 GetAdSelectionDataInput inputParams = in testRunner_getAdSelectionData_returnsSuccessGetAdSelectionDataPayloadMetricsEnabled() local 383 invokeGetAdSelectionData(mGetAdSelectionDataRunner, inputParams); in testRunner_getAdSelectionData_returnsSuccessGetAdSelectionDataPayloadMetricsEnabled() 465 GetAdSelectionDataInput inputParams = in testRunner_getAdSelectionData_success_MetricsEnabled_withDefaultSourceCoordinator() local 486 invokeGetAdSelectionData(mGetAdSelectionDataRunner, inputParams); in testRunner_getAdSelectionData_success_MetricsEnabled_withDefaultSourceCoordinator() 571 GetAdSelectionDataInput inputParams = in testRunner_getAdSelectionData_returnsSuccessMetricsEnabled_withApiSourceCoordinator() local 593 invokeGetAdSelectionData(mGetAdSelectionDataRunner, inputParams); in testRunner_getAdSelectionData_returnsSuccessMetricsEnabled_withApiSourceCoordinator() 662 GetAdSelectionDataInput inputParams = in testRunner_getAdSelectionData_multiCloudFlagOn_invalidCoordinator_throwsError() local 670 invokeGetAdSelectionData(mGetAdSelectionDataRunner, inputParams); in testRunner_getAdSelectionData_multiCloudFlagOn_invalidCoordinator_throwsError() [all …]
|
D | PersistAdSelectionResultRunnerTest.java | 542 PersistAdSelectionResultInput inputParams = in testRunner_persistRemarketingResult_success() local 550 invokePersistAdSelectionResult(mPersistAdSelectionResultRunner, inputParams); in testRunner_persistRemarketingResult_success() 655 PersistAdSelectionResultInput inputParams = in testRunner_persistAppInstallResult_success() local 663 invokePersistAdSelectionResult(mPersistAdSelectionResultRunner, inputParams); in testRunner_persistAppInstallResult_success() 771 PersistAdSelectionResultInput inputParams = in testRunner_persistRemarketingResult_withInvalidSellerReportingUriSuccess() local 779 invokePersistAdSelectionResult(mPersistAdSelectionResultRunner, inputParams); in testRunner_persistRemarketingResult_withInvalidSellerReportingUriSuccess() 877 PersistAdSelectionResultInput inputParams = in testRunner_persistAppInstallResult_withInvalidSellerReportingUriSuccess() local 885 invokePersistAdSelectionResult(mPersistAdSelectionResultRunner, inputParams); in testRunner_persistAppInstallResult_withInvalidSellerReportingUriSuccess() 983 PersistAdSelectionResultInput inputParams = in testRunner_persistRemarketingResult_withInvalidBuyerReportingUriSuccess() local 991 invokePersistAdSelectionResult(mPersistAdSelectionResultRunner, inputParams); in testRunner_persistRemarketingResult_withInvalidBuyerReportingUriSuccess() [all …]
|
D | ReportAndRegisterEventImplTest.java | 1045 ReportInteractionInput inputParams = in testReportEventImplFailsWithUnknownAdSelectionId_serverAuctionEnabled() local 1058 ReportEventTestCallback callback = callReportEvent(inputParams, true); in testReportEventImplFailsWithUnknownAdSelectionId_serverAuctionEnabled() 1089 ReportInteractionInput inputParams = in test_idFoundInInitializationDb_registeredInteractionsReported() local 1096 ReportEventTestCallback callback = callReportEvent(inputParams, true); in test_idFoundInInitializationDb_registeredInteractionsReported() 1108 verifyRegisterEvent(SELLER_INTERACTION_REPORTING_PATH + CLICK_EVENT, inputParams); in test_idFoundInInitializationDb_registeredInteractionsReported() 1109 verifyRegisterEvent(BUYER_INTERACTION_REPORTING_PATH + CLICK_EVENT, inputParams); in test_idFoundInInitializationDb_registeredInteractionsReported() 1212 private ReportEventTestCallback callReportEvent(ReportInteractionInput inputParams) in callReportEvent() argument 1214 return callReportEvent(inputParams, false); in callReportEvent() 1221 ReportInteractionInput inputParams, boolean shouldCountLog) throws Exception { in callReportEvent() argument 1236 mEventReporter.reportInteraction(inputParams, callback); in callReportEvent()
|
D | ReportAndRegisterEventFallbackImplTest.java | 1380 ReportInteractionInput inputParams = in testReportEventImplFailsWithUnknownAdSelectionId_serverAuctionEnabled() local 1393 ReportEventTestCallback callback = callReportEvent(inputParams, true); in testReportEventImplFailsWithUnknownAdSelectionId_serverAuctionEnabled() 1428 ReportInteractionInput inputParams = in test_idFoundInInitializationDb_registeredInteractionsReported() local 1435 ReportEventTestCallback callback = callReportEvent(inputParams, true); in test_idFoundInInitializationDb_registeredInteractionsReported() 1455 verifyRegisterEvent(SELLER_INTERACTION_REPORTING_PATH + CLICK_EVENT, inputParams); in test_idFoundInInitializationDb_registeredInteractionsReported() 1456 verifyRegisterEvent(BUYER_INTERACTION_REPORTING_PATH + CLICK_EVENT, inputParams); in test_idFoundInInitializationDb_registeredInteractionsReported() 1559 private ReportEventTestCallback callReportEvent(ReportInteractionInput inputParams) in callReportEvent() argument 1561 return callReportEvent(inputParams, SHOULD_NOT_COUNT_LOG); in callReportEvent() 1568 ReportInteractionInput inputParams, boolean shouldCountLog) throws Exception { in callReportEvent() argument 1583 mEventReporter.reportInteraction(inputParams, callback); in callReportEvent()
|
D | AdSelectionServiceImplTest.java | 10140 UpdateAdCounterHistogramInput inputParams = in testUpdateAdCounterHistogramNullCallbackThrows() local 10161 () -> adSelectionService.updateAdCounterHistogram(inputParams, null)); in testUpdateAdCounterHistogramNullCallbackThrows() 10189 ReportInteractionInput inputParams = in testReportEvent_nullCallback_throws() local 10211 () -> adSelectionService.reportInteraction(inputParams, null)); in testReportEvent_nullCallback_throws() 10247 ReportInteractionInput inputParams = in testReportEvent_callbackErrorReported() local 10271 adSelectionService.reportInteraction(inputParams, callback); in testReportEvent_callbackErrorReported() 10339 ReportInteractionInput inputParams = in testReportEvent_onlyReport_success() local 10352 callReportInteraction(generateAdSelectionServiceImpl(), inputParams, true); in testReportEvent_onlyReport_success() 10378 SetAdCounterHistogramOverrideInput inputParams = in testSetAdCounterHistogramOverrideNullCallbackThrows() local 10400 () -> adSelectionService.setAdCounterHistogramOverride(inputParams, null)); in testSetAdCounterHistogramOverrideNullCallbackThrows() [all …]
|
D | ReportAndRegisterEventE2ETest.java | 1157 private ReportAndRegisterEventTestCallback callReportEvent(ReportInteractionInput inputParams) in callReportEvent() argument 1159 return callReportEvent(inputParams, true); in callReportEvent() 1166 ReportInteractionInput inputParams, boolean shouldCountLog) throws Exception { in callReportEvent() argument 1184 mAdSelectionService.reportInteraction(inputParams, callback); in callReportEvent()
|
D | FrequencyCapFilteringE2ETest.java | 1027 UpdateAdCounterHistogramInput inputParams) throws InterruptedException { in callUpdateAdCounterHistogram() argument 1032 mAdSelectionServiceImpl.updateAdCounterHistogram(inputParams, callback); in callUpdateAdCounterHistogram()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | AdSelectionFromOutcomesInputTest.java | 43 AdSelectionFromOutcomesInput inputParams = createAdSelectionFromOutcomesInput(config); in testBuildValidAdSelectionFromOutcomesInputSuccess() local 45 expect.that(inputParams.getAdSelectionFromOutcomesConfig()).isEqualTo(config); in testBuildValidAdSelectionFromOutcomesInputSuccess() 46 expect.that(inputParams.getCallerPackageName()).isEqualTo(CALLER_PACKAGE_NAME); in testBuildValidAdSelectionFromOutcomesInputSuccess() 54 AdSelectionFromOutcomesInput inputParams = createAdSelectionFromOutcomesInput(config); in testParcelValidInputSuccess() local 57 inputParams.writeToParcel(p, 0); in testParcelValidInputSuccess() 62 expect.that(inputParams.getAdSelectionFromOutcomesConfig()).isEqualTo(config); in testParcelValidInputSuccess() 64 .isEqualTo(inputParams.getCallerPackageName()); in testParcelValidInputSuccess()
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/ |
D | AdSelectionService.aidl | 146 void selectAdsFromOutcomes(in AdSelectionFromOutcomesInput inputParams, in selectAdsFromOutcomes() argument 178 in ReportInteractionInput inputParams, in ReportInteractionCallback callback); in reportInteraction() argument 184 void updateAdCounterHistogram(in UpdateAdCounterHistogramInput inputParams, in updateAdCounterHistogram() argument 274 void setAdCounterHistogramOverride(in SetAdCounterHistogramOverrideInput inputParams, in setAdCounterHistogramOverride() argument 280 void removeAdCounterHistogramOverride(in RemoveAdCounterHistogramOverrideInput inputParams, in removeAdCounterHistogramOverride() argument
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/cobalt/ |
D | EncryptedCobaltEnvelopeParamsTest.java | 64 EncryptedCobaltEnvelopeParams inputParams = in parcelContents_areEqualToInput() local 68 inputParams.writeToParcel(parcel, 0); in parcelContents_areEqualToInput()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeE2ETest.java | 4165 UpdateAdCounterHistogramInput inputParams = in updateHistogramAndAssertSuccess() local 4177 mAdSelectionService.updateAdCounterHistogram(inputParams, callback); in updateHistogramAndAssertSuccess() 5068 AdSelectionServiceImpl adSelectionService, ReportInteractionInput inputParams) in callReportInteraction() argument 5074 adSelectionService.reportInteraction(inputParams, callback); in callReportInteraction()
|