/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/ |
D | AdSelectionReportingTest.java | 59 doSelectAds(adSelectionConfig).getAdSelectionId(), adSelectionConfig); in testReportImpression_defaultAdSelection_happyPath() 80 doSelectAds(adSelectionConfig).getAdSelectionId(), adSelectionConfig); in testReportImpression_buyerRequestFails_sellerRequestSucceeds() 107 adSelectionOutcome.getAdSelectionId(), config)); in testReportImpression_buyerLogicTimesOut_reportingFails() 138 doSelectAds(config).getAdSelectionId(), config)); in testReportImpression_withMismatchedAdTechUri_sellerRequestFails() 158 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportImpression_registerBuyerAndSellerBeacons_happyPath() 180 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportImpression_failToRegisterBuyerBeacon_sellerBeaconSucceeds() 204 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportImpression_failToRegisterSellerBeacon_buyerBeaconSucceeds() 228 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportImpression_withMismatchedSellerAdTech_buyerStillCalled() 252 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportImpression_withMismatchedBuyerAdTech_sellerStillCalled() 276 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testReportImpression_withBuyerBeacon_onlyReportsForViewInteraction() [all …]
|
D | FledgeCtsDebuggableTest.java | 648 new ReportImpressionRequest(outcome.getAdSelectionId(), AD_SELECTION_CONFIG); in testFledgeAuctionSelectionFlow_overall_Success() 732 new ReportImpressionRequest(outcome.getAdSelectionId(), AD_SELECTION_CONFIG); in testFledgeAuctionSelectionFlow_v3BiddingLogic_overall_Success() 891 new ReportImpressionRequest(outcome.getAdSelectionId(), AD_SELECTION_CONFIG); in testFledgeAuctionSelectionFlow_overall_SuccessWithCpcBillingEnabled() 974 new ReportImpressionRequest(outcome.getAdSelectionId(), AD_SELECTION_CONFIG); in testFledgeAuctionSelectionFlow_overall_SuccessWithCpcBillingDisabled() 1073 outcome.getAdSelectionId(), adSelectionConfigWithSubdomains); in testFledgeAuctionSelectionFlow_overallWithSubdomains_Success() 1171 new ReportImpressionRequest(outcome.getAdSelectionId(), config); in testFledgeAuctionSelectionFlow_scoringPrebuilt_Success() 1288 outcome.getAdSelectionId(), adSelectionConfigWithContextualAds); in testFledgeSelectionFlow_WithContextualAds_Success() 1405 outcome.getAdSelectionId(), adSelectionConfigWithContextualAds); in testFledgeSelectionFlow_WithContextualAdsDisabled_ContextualAdsRemoved() 1523 outcome.getAdSelectionId(), adSelectionConfigWithContextualAds); in testFledgeSelectionFlow_WithContextualAdsLogging_Success() 1604 outcome.getAdSelectionId(), adSelectionConfigOnlyContextualAds); in testFledgeSelectionFlow_OnlyContextualAds_Success() [all …]
|
D | AdSelectionMediationTest.java | 66 .getAdSelectionId())) in testSelectAds_withAdSelectionFromOutcomes_happyPath() 91 long adSelectionId = doSelectAds(config).getAdSelectionId(); in testSelectAds_withImpressionReporting_eventsAreReceived() 135 long adSelectionId = adSelectionOutcome1.getAdSelectionId(); in testAdSelectionFromOutcome_buyerMustEnrolledToParticipate()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBReportingDataTest.java | 56 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testBuild_success() 67 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testCreate_success() 81 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testBuild_sellerEmptyUri_success() 95 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testBuild_buyerEmptyUri_success() 105 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testCreate_sellerEmptyUri_success() 115 assertEquals(AD_SELECTION_ID_1, reportingData.getAdSelectionId()); in testCreate_buyerEmptyUri_success()
|
D | AdSelectionEntryDaoTest.java | 856 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredAdSelection() 859 expiredDBAdSelection.getAdSelectionId())); in testRemoveExpiredAdSelection() 864 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredAdSelection() 867 expiredDBAdSelection.getAdSelectionId())); in testRemoveExpiredAdSelection() 889 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredAdSelectionSellerContextualSignals() 892 expiredDBAdSelection.getAdSelectionId())); in testRemoveExpiredAdSelectionSellerContextualSignals() 897 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredAdSelectionSellerContextualSignals() 900 expiredDBAdSelection.getAdSelectionId())); in testRemoveExpiredAdSelectionSellerContextualSignals() 968 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredBuyerDecisionLogic() 979 mAdSelectionEntryDao.doesAdSelectionIdExist(DB_AD_SELECTION_1.getAdSelectionId())); in testRemoveExpiredBuyerDecisionLogic() [all …]
|
D | DBAdSelectionTest.java | 77 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelection() 203 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithNullAdCounterKeys() 230 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithNullSellerContextualSignals() 259 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithEmptyAdCounterKeys() 286 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithUnsetAdCounterKeys() 313 assertEquals(AD_SELECTION_ID, dbAdSelection.getAdSelectionId()); in testBuildDBAdSelectionWithUnsetSellerContextualSignals()
|
D | DBAdSelectionResultTest.java | 58 assertEquals(AD_SELECTION_ID_1, result.getAdSelectionId()); in testBuild_withoutWinningCustomAudience_success() 82 assertEquals(AD_SELECTION_ID_1, result.getAdSelectionId()); in testBuild_withWinningCustomAudience_success()
|
D | DBAdSelectionInitializationTest.java | 75 assertEquals(AD_SELECTION_ID_1, dbAdSelectionInitialization.getAdSelectionId()); in testBuild_allFieldsSet_success() 105 assertEquals(AD_SELECTION_ID_1, dbAdSelectionInitialization.getAdSelectionId()); in testCreate_allFieldsSet_success()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | GetAdSelectionDataResponseTest.java | 52 expect.that(getAdSelectionDataResponse.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testBuildGetAdSelectionDataResponse() 69 expect.that(getAdSelectionDataResponse.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testBuildGetAdSelectionDataResponseWithAssetFileDescriptor() 90 expect.that(fromParcel.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testParcelGetAdSelectionDataResponse() 113 expect.that(fromParcel.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testParcelGetAdSelectionDataResponseWithAssetFileDescriptor() 135 expect.that(fromParcel.getAdSelectionId()).isEqualTo(TEST_AD_SELECTION_ID); in testParcelGetAdSelectionDataResponseWithNullValues()
|
D | ReportInteractionInputTest.java | 76 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nonNullOptionalParameters() 107 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nullInputEvent() 137 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nullAdId() 168 expect.that(fromParcel.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testWriteToParcel_nullCallerSdkName()
|
D | AdSelectionManagerTest.java | 122 expect.that(input.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testAdSelectionManager_reportEvent_adIdEnabled() 148 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() 213 expect.that(outcomeReceiver.getResult().getAdSelectionId()) in testAdSelectionManagerGetAdSelectionDataWhenResultIsByteArray() 282 assertThat(outcomeReceiver.getResult().getAdSelectionId()).isEqualTo(expectedAdSelectionId); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptor() 314 assertThat(outcomeReceiver.getResult().getAdSelectionId()).isEqualTo(expectedAdSelectionId); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptorWithExcessiveSize()
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ |
D | PersistAdSelectionResultRequestTest.java | 49 assertThat(request.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testPersistAdSelectionResultRequest_validInput_successWithDeprecatedField() 64 assertThat(request.getAdSelectionId()).isEqualTo(AD_SELECTION_ID); in testPersistAdSelectionResultRequest_validInput_successWithUpdatedField() 81 assertThat(request.getAdSelectionId()).isEqualTo(AD_SELECTION_ID + 1); in testPersistAdSelectionResultRequest_validInput_valueOfIdGettersIsSameAfterCallingBothSetters()
|
D | ReportEventRequestTest.java | 62 assertEquals(AD_SELECTION_ID, request.getAdSelectionId()); in testBuildReportEventRequestSuccess_viewInputEvent() 77 assertEquals(AD_SELECTION_ID, request.getAdSelectionId()); in testBuildReportEventRequestSuccess_clickInputEvent() 111 assertEquals(otherAdSelectionId, request.getAdSelectionId()); in testBuildReportEventRequestSuccess_callAllSetters()
|
D | ReportImpressionRequestTest.java | 49 assertThat(request.getAdSelectionId()).isEqualTo(AUCTION_ID); in testBuildsReportImpressionInput() 57 assertThat(request.getAdSelectionId()).isEqualTo(AUCTION_ID); in testBuildsReportImpressionInputWithOnlyAdSelectionId()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/ |
D | KAnonSignJoinManagerTest.java | 147 assertThat(fetchedKAnonEntities.get(0).getAdSelectionId()) in processNewMessage_immediateJoinValueZero_shouldSaveMessageInDatabase() 148 .isEqualTo(kAnonMessageEntity.getAdSelectionId()); in processNewMessage_immediateJoinValueZero_shouldSaveMessageInDatabase() 175 assertThat(kanonMessageEntityArgumentCaptor.getValue().get(0).getAdSelectionId()) in processNewMessage_immediateJoinValueHundred_shouldImmediatelyProcessMessage() 176 .isEqualTo(kAnonMessageEntity.getAdSelectionId()); in processNewMessage_immediateJoinValueHundred_shouldImmediatelyProcessMessage() 250 assertThat(kanonMessageEntityArgumentCaptor.getValue().get(0).getAdSelectionId()) in processNewMessage_messageSignedWithExpiredClientParams_shouldProcessMessage() 251 .isEqualTo(kAnonMessageEntity.getAdSelectionId()); in processNewMessage_messageSignedWithExpiredClientParams_shouldProcessMessage()
|
D | KAnonMessageEntityTest.java | 55 assertThat(kAnonMessageEntity.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuilderKAnonMessageEntity_buildsSuccessfully() 75 assertThat(kAnonMessageEntity.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuilderKAnonMessageEntity_withoutMessageId_buildsSuccessfully() 89 assertThat(kAnonMessageEntity.getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testBuilderKAnonMessageEntity_withoutClientExpiryInstant_buildsSuccessfully()
|
D | KAnonE2ETest.java | 499 assertThat(kAnonMessageEntityListNotProcessed.get(0).getAdSelectionId()) in persistAdSelectionData_withKAnonImmediateValueZero_savesTheMessageInDB() 502 .getAdSelectionId()); in persistAdSelectionData_withKAnonImmediateValueZero_savesTheMessageInDB() 623 assertThat(kAnonMessageEntityList.get(0).getAdSelectionId()) in persistAdSelectionData_withImmediateJoinValueHundred_signsAndJoinsMessage() 626 .getAdSelectionId()); in persistAdSelectionData_withImmediateJoinValueHundred_signsAndJoinsMessage() 675 assertThat(kAnonMessageEntityList.get(0).getAdSelectionId()) in persistAdSelectionData_actGenerateParamsFails_shouldNotUpdateStatusInDB() 678 .getAdSelectionId()); in persistAdSelectionData_actGenerateParamsFails_shouldNotUpdateStatusInDB() 727 assertThat(kAnonMessageEntityList.get(0).getAdSelectionId()) in persistAdSelectionData_httpRegisterClientFails_shouldNotUpdateStatusInDB() 730 .getAdSelectionId()); in persistAdSelectionData_httpRegisterClientFails_shouldNotUpdateStatusInDB() 769 assertThat(kAnonMessageEntityList.get(0).getAdSelectionId()) in persistAdSelectionData_httpFetchServerParamFails_shouldNotUpdateStatusInDB() 772 .getAdSelectionId()); in persistAdSelectionData_httpFetchServerParamFails_shouldNotUpdateStatusInDB() [all …]
|
D | KAnonMessageManagerTest.java | 137 assertThat(dbkAnonMessages.get(0).getAdSelectionId()) in testPersistNewAnonMessageEntities_shouldPersistSuccessfully() 138 .isEqualTo(mKAnonMessageEntity.getAdSelectionId()); in testPersistNewAnonMessageEntities_shouldPersistSuccessfully() 152 .map(KAnonMessageEntity::getAdSelectionId) in testFetchNKAnonMessagesWithStatus_shouldFetchListOfCorrectMessages() 167 assertThat(fetchedKAnonMessage.get(0).getAdSelectionId()).isEqualTo(AD_SELECTION_ID_1); in testFetchKAnonMessagesWithMessage_shouldFetchCorrectMessage()
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/ |
D | AdSelectionManager.java | 263 resultParcel.getAdSelectionId()) in getAdSelectionData() 337 .setAdSelectionId(request.getAdSelectionId()) in persistAdSelectionResult() 352 resultParcel.getAdSelectionId()) in persistAdSelectionResult() 456 resultParcel.getAdSelectionId()) in selectAds() 569 resultParcel.getAdSelectionId()) in selectAds() 692 .setAdSelectionId(request.getAdSelectionId()) in reportImpression() 769 .setAdSelectionId(request.getAdSelectionId()) in reportEvent() 927 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()
|
D | AdBeaconRegistrationTest.java | 91 outcome.getAdSelectionId(), in runAdSelectionAndReporting() 94 doReportEvent(outcome.getAdSelectionId(), "view"); in runAdSelectionAndReporting()
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/ |
D | AdSelectionDataE2ETest.java | 202 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_oneBuyerOneCaOneAd_dummyData_remarketingWinner() 254 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_twoBuyersMultipleCa_dummyData_remarketingWinner() 307 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_fiveBuyersMultipleCa_dummyData_remarketingWinner() 358 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_noAdRenderId_baReturnsError_ppapiThrowsError() 412 .setAdSelectionId(outcome.getAdSelectionId()) in runAdSelection_baReturnsIsChaffTrue_noAdReturnedByPpapi() 470 .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/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()
|
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/protectedaudience/ |
D | FledgeCtsDebuggableJetpackTest.java | 246 outcome.getAdSelectionId(), DEFAULT_AD_SELECTION_CONFIG); in testFledgeAuctionSelectionFlow_overall_Success() 345 outcome.getAdSelectionId(), adSelectionConfigWithEtldViolations); in testReportImpression_etldViolation_failure() 396 outcome.getAdSelectionId(), DEFAULT_AD_SELECTION_CONFIG); in testAdSelection_skipAdsMalformedBiddingLogic_success() 485 outcome.getAdSelectionId(), DEFAULT_AD_SELECTION_CONFIG); in testAdSelection_skipAdsFailedGettingBiddingLogic_success() 581 outcome.getAdSelectionId(), DEFAULT_AD_SELECTION_CONFIG); in testAdSelectionFlow_skipNonActivatedCA_Success() 633 outcome.getAdSelectionId(), DEFAULT_AD_SELECTION_CONFIG); in testAdSelectionFlow_skipExpiredCA_Success() 677 outcome.getAdSelectionId(), DEFAULT_AD_SELECTION_CONFIG); in testAdSelectionFlow_skipCAsThatTimeoutDuringBidding_Success()
|