/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/adselection/ |
D | ViewAuctionResultCommandTest.java | 117 AD_SELECTION.getAdSelectionId(), true)) in testRun_withUnknownAdSelectionId_throwsException() 120 AD_SELECTION.getAdSelectionId(), FLAG_REPORTING_DESTINATION_SELLER)) in testRun_withUnknownAdSelectionId_throwsException() 123 AD_SELECTION.getAdSelectionId(), FLAG_REPORTING_DESTINATION_BUYER)) in testRun_withUnknownAdSelectionId_throwsException() 132 Long.toString(AD_SELECTION.getAdSelectionId())); in testRun_withUnknownAdSelectionId_throwsException() 136 "no auction result found for ad selection id: " + AD_SELECTION.getAdSelectionId(), in testRun_withUnknownAdSelectionId_throwsException() 144 AD_SELECTION.getAdSelectionId(), true)) in testRun_withWinningCustomAudience_fieldsArePresent() 147 AD_SELECTION.getAdSelectionId())) in testRun_withWinningCustomAudience_fieldsArePresent() 150 List.of(AD_SELECTION.getAdSelectionId()))) in testRun_withWinningCustomAudience_fieldsArePresent() 153 AD_SELECTION.getAdSelectionId())) in testRun_withWinningCustomAudience_fieldsArePresent() 161 when(mAdSelectionEntryDao.getReportingUris(AD_SELECTION.getAdSelectionId())) in testRun_withWinningCustomAudience_fieldsArePresent() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/ |
D | AdSelectionReportingTest.java | 76 doSelectAds(adSelectionConfig).getAdSelectionId(), in testReportImpression_defaultAdSelection_helper() 98 doSelectAds(adSelectionConfig).getAdSelectionId(), adSelectionConfig); in testReportImpression_buyerRequestFails_sellerRequestSucceeds() 125 adSelectionOutcome.getAdSelectionId(), config)); in testReportImpression_buyerLogicTimesOut_reportingFails() 156 doSelectAds(config).getAdSelectionId(), config)); in testReportImpression_withMismatchedAdTechUri_sellerRequestFails() 188 long adSelectionId = doSelectAds(adSelectionClient, config).getAdSelectionId(); in testReportEvent_registerBuyerAndSellerBeacons_happyPath_helper() 209 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportEvent_failToRegisterBuyerBeacon_sellerBeaconSucceeds() 232 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportEvent_failToRegisterSellerBeacon_buyerBeaconSucceeds() 255 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportEvent_withMismatchedSellerAdTech_buyerStillCalled() 278 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportEvent_withMismatchedBuyerAdTech_sellerStillCalled() 301 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportEvent_withBuyerBeacon_onlyReportsForViewInteraction() [all …]
|
D | FledgeCtsDebuggableTest.java | 653 new ReportImpressionRequest(outcome.getAdSelectionId(), AD_SELECTION_CONFIG); in testFledgeAuctionSelectionFlow_overall_Success() 737 new ReportImpressionRequest(outcome.getAdSelectionId(), AD_SELECTION_CONFIG); in testFledgeAuctionSelectionFlow_v3BiddingLogic_overall_Success() 896 new ReportImpressionRequest(outcome.getAdSelectionId(), AD_SELECTION_CONFIG); in testFledgeAuctionSelectionFlow_overall_SuccessWithCpcBillingEnabled() 979 new ReportImpressionRequest(outcome.getAdSelectionId(), AD_SELECTION_CONFIG); in testFledgeAuctionSelectionFlow_overall_SuccessWithCpcBillingDisabled() 1078 outcome.getAdSelectionId(), adSelectionConfigWithSubdomains); in testFledgeAuctionSelectionFlow_overallWithSubdomains_Success() 1176 new ReportImpressionRequest(outcome.getAdSelectionId(), config); in testFledgeAuctionSelectionFlow_scoringPrebuilt_Success() 1293 outcome.getAdSelectionId(), adSelectionConfigWithContextualAds); in testFledgeSelectionFlow_WithContextualAds_Success() 1410 outcome.getAdSelectionId(), adSelectionConfigWithContextualAds); in testFledgeSelectionFlow_WithContextualAdsDisabled_ContextualAdsRemoved() 1528 outcome.getAdSelectionId(), adSelectionConfigWithContextualAds); in testFledgeSelectionFlow_WithContextualAdsLogging_Success() 1609 outcome.getAdSelectionId(), adSelectionConfigOnlyContextualAds); in testFledgeSelectionFlow_OnlyContextualAds_Success() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/data/adselection/ |
D | DBReportingDataTest.java | 54 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testBuild_success() 68 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testBuild_sellerEmptyUri_success() 82 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testBuild_buyerEmptyUri_success() 97 .that(reportingData.getAdSelectionId()) in testCreate_withComponentSeller_success() 121 .that(reportingData.getAdSelectionId()) in testBuild_withComponentSeller_success() 144 .that(reportingData.getAdSelectionId()) in testBuild_emptyComponentSeller_success()
|
D | AdSelectionEntryDaoTest.java | 857 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredAdSelection() 860 expiredDBAdSelection.getAdSelectionId())); in testRemoveExpiredAdSelection() 865 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredAdSelection() 868 expiredDBAdSelection.getAdSelectionId())); in testRemoveExpiredAdSelection() 890 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredAdSelectionSellerContextualSignals() 893 expiredDBAdSelection.getAdSelectionId())); in testRemoveExpiredAdSelectionSellerContextualSignals() 898 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredAdSelectionSellerContextualSignals() 901 expiredDBAdSelection.getAdSelectionId())); in testRemoveExpiredAdSelectionSellerContextualSignals() 969 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredBuyerDecisionLogic() 980 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredBuyerDecisionLogic() [all …]
|
D | DBAdSelectionTest.java | 71 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelection() 197 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithNullAdCounterKeys() 224 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithNullSellerContextualSignals() 253 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithEmptyAdCounterKeys() 280 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithUnsetAdCounterKeys() 307 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithUnsetSellerContextualSignals()
|
D | DBAdSelectionResultTest.java | 56 assertEquals(AD_SELECTION_ID_1, result.getAdSelectionId()); in testBuild_withoutWinningCustomAudience_success() 81 assertEquals(AD_SELECTION_ID_1, result.getAdSelectionId()); in testBuild_withWinningCustomAudience_success() 102 expect.that(result.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuild_withWinningComponentAdRenderUris_success()
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ |
D | ReportEventRequestTest.java | 59 .that(request.getAdSelectionId()) in testBuildReportEventRequestSuccess_viewInputEvent() 78 .that(request.getAdSelectionId()) in testBuildReportEventRequestSuccess_clickInputEvent() 115 .that(request.getAdSelectionId()) in testBuildReportEventRequestSuccess_callAllSetters() 143 .that(request.getAdSelectionId()) in testBuildReportEventRequestSuccess_withComponentSellerAsDestination_success() 166 .that(request.getAdSelectionId()) in testBuildReportEventRequestSuccess_withAllDestinationsIncludingComponentSeller()
|
D | AdSelectionOutcomeTest.java | 57 .that(adSelectionOutcome.getAdSelectionId()) in testBuildAdSelectionOutcome() 77 .that(adSelectionOutcome.getAdSelectionId()) in testBuildAdSelectionOutcome_withoutWinningSellerAndComponentAds() 105 .that(adSelectionOutcome.getAdSelectionId()) in testBuildAdSelectionOutcome_withWinningSellerAndComponentAds() 129 .that(adSelectionOutcome.getAdSelectionId()) in testBuildAdSelectionOutcome_withWinningSeller_buildsCorrectly() 150 .that(adSelectionOutcome.getAdSelectionId()) in testBuildAdSelectionOutcomeWithAdComponentUrisSucceeds()
|
D | PersistAdSelectionResultRequestTest.java | 41 expect.that(request.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testPersistAdSelectionResultRequest_validInput_successWithDeprecatedField() 56 expect.that(request.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testPersistAdSelectionResultRequest_validInput_successWithUpdatedField() 73 expect.that(request.getAdSelectionId()).isEqualTo(AD_SELECTION_ID + 1); in testPersistAdSelectionResultRequest_validInput_valueOfIdGettersIsSameAfterCallingBothSetters()
|
D | ReportImpressionRequestTest.java | 38 expect.that(request.getAdSelectionId()).isEqualTo(AUCTION_ID); in testBuildsReportImpressionInput() 46 expect.that(request.getAdSelectionId()).isEqualTo(AUCTION_ID); in testBuildsReportImpressionInputWithOnlyAdSelectionId()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | GetAdSelectionDataResponseTest.java | 50 expect.that(getAdSelectionDataResponse.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testBuildGetAdSelectionDataResponse() 67 expect.that(getAdSelectionDataResponse.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testBuildGetAdSelectionDataResponseWithAssetFileDescriptor() 88 expect.that(fromParcel.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testParcelGetAdSelectionDataResponse() 111 expect.that(fromParcel.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testParcelGetAdSelectionDataResponseWithAssetFileDescriptor() 133 expect.that(fromParcel.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testParcelGetAdSelectionDataResponseWithNullValues()
|
D | PersistAdSelectionResultResponseTest.java | 56 .that(persistAdSelectionResultResponse.getAdSelectionId()) in testBuildPersistAdSelectionResultResponse() 76 .that(persistAdSelectionResultResponse.getAdSelectionId()) in testBuildPersistAdSelectionResultResponse_withWinningSeller_buildsCorrectly() 104 .that(fromParcel.getAdSelectionId()) in testParcelPersistAdSelectionResultResponse() 130 .that(fromParcel.getAdSelectionId()) in testParcelPersistAdSelectionResultResponse_withWinningSeller_buildsCorrectly() 291 expect.that(response.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testBuildPersistAdSelectionResultResponse_withComponentAds_buildsCorrectly() 315 expect.that(unparceledResponse.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testParcelPersistAdSelectionResultResponse_withComponentAds()
|
D | AdSelectionResponseTest.java | 50 .that(adSelectionResponse.getAdSelectionId()) in testBuildAdSelectionResponse() 67 .that(adSelectionResponse.getAdSelectionId()) in testBuildAdSelectionResponse_withWinningSeller_buildsCorrectly() 91 .that(fromParcel.getAdSelectionId()) in testParcelAdSelectionResponse() 113 .that(fromParcel.getAdSelectionId()) in testParcelAdSelectionResponse_withWinningSeller_buildsCorrectly()
|
D | AdSelectionManagerTest.java | 130 expect.that(input.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testAdSelectionManager_reportEvent_adIdEnabled() 152 expect.that(input.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testAdSelectionManager_reportEvent_adIdZeroOut() 174 expect.that(input.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testAdSelectionManager_reportEvent_adIdDisabled() 201 expect.that(result.getAdSelectionId()).isEqualTo(expectedAdSelectionId); in testAdSelectionManagerGetAdSelectionDataWhenResultIsByteArray() 282 assertThat(result.getAdSelectionId()).isEqualTo(expectedAdSelectionId); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptor() 307 assertThat(result.getAdSelectionId()).isEqualTo(expectedAdSelectionId); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptorWithExcessiveSize()
|
D | ReportInteractionInputTest.java | 74 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nonNullOptionalParameters() 105 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nullInputEvent() 135 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nullAdId() 166 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nullCallerSdkName()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/kanon/ |
D | KAnonSignJoinManagerTest.java | 137 assertThat(fetchedKAnonEntities.get(0).getAdSelectionId()) in processNewMessage_immediateJoinValueZero_shouldSaveMessageInDatabase() 138 .isEqualTo(kAnonMessageEntity.getAdSelectionId()); in processNewMessage_immediateJoinValueZero_shouldSaveMessageInDatabase() 165 assertThat(kanonMessageEntityArgumentCaptor.getValue().get(0).getAdSelectionId()) in processNewMessage_immediateJoinValueHundred_shouldImmediatelyProcessMessage() 166 .isEqualTo(kAnonMessageEntity.getAdSelectionId()); in processNewMessage_immediateJoinValueHundred_shouldImmediatelyProcessMessage() 240 assertThat(kanonMessageEntityArgumentCaptor.getValue().get(0).getAdSelectionId()) in processNewMessage_messageSignedWithExpiredClientParams_shouldProcessMessage() 241 .isEqualTo(kAnonMessageEntity.getAdSelectionId()); in processNewMessage_messageSignedWithExpiredClientParams_shouldProcessMessage()
|
D | KAnonMessageEntityTest.java | 50 assertThat(kAnonMessageEntity.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuilderKAnonMessageEntity_buildsSuccessfully() 70 assertThat(kAnonMessageEntity.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuilderKAnonMessageEntity_withoutMessageId_buildsSuccessfully() 84 assertThat(kAnonMessageEntity.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuilderKAnonMessageEntity_withoutClientExpiryInstant_buildsSuccessfully()
|
D | KAnonE2ETest.java | 514 assertThat(kAnonMessageEntityListNotProcessed.get(0).getAdSelectionId()) in persistAdSelectionData_withKAnonImmediateValueZero_savesTheMessageInDB() 517 .getAdSelectionId()); in persistAdSelectionData_withKAnonImmediateValueZero_savesTheMessageInDB() 609 assertThat(kAnonMessageEntityList.get(0).getAdSelectionId()) in persistAdSelectionData_withImmediateJoinValueHundred_signsAndJoinsMessage() 612 .getAdSelectionId()); in persistAdSelectionData_withImmediateJoinValueHundred_signsAndJoinsMessage() 649 assertThat(kAnonMessageEntityList.get(0).getAdSelectionId()) in persistAdSelectionData_actGenerateParamsFails_shouldNotUpdateStatusInDB() 652 .getAdSelectionId()); in persistAdSelectionData_actGenerateParamsFails_shouldNotUpdateStatusInDB() 685 assertThat(kAnonMessageEntityList.get(0).getAdSelectionId()) in persistAdSelectionData_httpRegisterClientFails_shouldNotUpdateStatusInDB() 688 .getAdSelectionId()); in persistAdSelectionData_httpRegisterClientFails_shouldNotUpdateStatusInDB() 717 assertThat(kAnonMessageEntityList.get(0).getAdSelectionId()) in persistAdSelectionData_httpFetchServerParamFails_shouldNotUpdateStatusInDB() 720 .getAdSelectionId()); in persistAdSelectionData_httpFetchServerParamFails_shouldNotUpdateStatusInDB() [all …]
|
D | KAnonMessageManagerTest.java | 132 assertThat(dbkAnonMessages.get(0).getAdSelectionId()) in testPersistNewAnonMessageEntities_shouldPersistSuccessfully() 133 .isEqualTo(mKAnonMessageEntity.getAdSelectionId()); in testPersistNewAnonMessageEntities_shouldPersistSuccessfully() 147 .map(KAnonMessageEntity::getAdSelectionId) in testFetchNKAnonMessagesWithStatus_shouldFetchListOfCorrectMessages() 162 assertThat(fetchedKAnonMessage.get(0).getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testFetchKAnonMessagesWithMessage_shouldFetchCorrectMessage()
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/ |
D | AdSelectionDataE2ETest.java | 168 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_oneBuyerOneCaOneAd_dummyData_remarketingWinner() 220 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_twoBuyersMultipleCa_dummyData_remarketingWinner() 273 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_fiveBuyersMultipleCa_dummyData_remarketingWinner() 324 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_noAdRenderId_baReturnsError_ppapiThrowsError() 378 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_baReturnsIsChaffTrue_noAdReturnedByPpapi() 436 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_oneBuyerOneCaOneAd_dummyData_remarketingWinner_withMediaTypeChanged()
|
D | BaselinePerfTest.java | 86 new ReportImpressionRequest(outcome.getAdSelectionId(), createAdSelectionConfig()); in testAdSelectionAndReporting_normalFlow_success() 136 new ReportImpressionRequest(outcome.getAdSelectionId(), createAdSelectionConfig()); in testAdSelectionAndReporting_normalFlowWithThrottling_success() 222 new ReportImpressionRequest(outcome.getAdSelectionId(), createAdSelectionConfig()); in testAdSelectionAndReporting_executionHeavyJS_success() 304 new ReportImpressionRequest(outcome.getAdSelectionId(), createAdSelectionConfig()); in testAdSelectionAndReporting_memoryHeavyJS_success() 359 new ReportImpressionRequest(outcome.getAdSelectionId(), createAdSelectionConfig()); in testAdSelectionAndReporting_multipleCustomAudienceList_success()
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/ |
D | AdSelectionManager.java | 264 resultParcel.getAdSelectionId()) in getAdSelectionData() 338 .setAdSelectionId(request.getAdSelectionId()) in persistAdSelectionResult() 353 resultParcel.getAdSelectionId()) in persistAdSelectionResult() 462 resultParcel.getAdSelectionId()) in selectAds() 577 resultParcel.getAdSelectionId()) in selectAds() 702 .setAdSelectionId(request.getAdSelectionId()) in reportImpression() 779 .setAdSelectionId(request.getAdSelectionId()) in reportEvent() 937 updateAdCounterHistogramRequest.getAdSelectionId(), in updateAdCounterHistogram()
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/rootcts/ |
D | FledgeMaintenanceJobTest.java | 69 () -> doReportImpression(result.getAdSelectionId(), adSelectionConfig)); in testAdSelection_afterExpirationWindow_adSelectionDataCleared() 98 doReportImpression(result.getAdSelectionId(), adSelectionConfig); in testAdSelection_afterExpirationWindow_adInteractionsIsCleared() 104 () -> doReportEvent(result.getAdSelectionId(), "click")); in testAdSelection_afterExpirationWindow_adInteractionsIsCleared()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/kanon/ |
D | KAnonMessageManager.java | 66 .setAdSelectionId(currentEntity.getAdSelectionId()) in persistNewAnonMessageEntities() 127 .setAdSelectionId(kAnonMessageEntity.getAdSelectionId()) in parseKAnonMessageEntityToNewDBKAnonMessage() 147 .setAdSelectionId(dbkAnonMessage.getAdSelectionId()) in parseDBKAnonMessageToKAnonMessageEntity()
|