Home
last modified time | relevance | path

Searched refs:getAdSelectionId (Results 1 – 25 of 91) sorted by relevance

1234

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/adselection/
DViewAuctionResultCommandTest.java117 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/
DAdSelectionReportingTest.java76 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 …]
DFledgeCtsDebuggableTest.java653 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/
DDBReportingDataTest.java54 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()
DAdSelectionEntryDaoTest.java857 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 …]
DDBAdSelectionTest.java71 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()
DDBAdSelectionResultTest.java56 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/
DReportEventRequestTest.java59 .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()
DAdSelectionOutcomeTest.java57 .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()
DPersistAdSelectionResultRequestTest.java41 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()
DReportImpressionRequestTest.java38 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/
DGetAdSelectionDataResponseTest.java50 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()
DPersistAdSelectionResultResponseTest.java56 .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()
DAdSelectionResponseTest.java50 .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()
DAdSelectionManagerTest.java130 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()
DReportInteractionInputTest.java74 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/
DKAnonSignJoinManagerTest.java137 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()
DKAnonMessageEntityTest.java50 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()
DKAnonE2ETest.java514 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 …]
DKAnonMessageManagerTest.java132 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/
DAdSelectionDataE2ETest.java168 .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()
DBaselinePerfTest.java86 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/
DAdSelectionManager.java264 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/
DFledgeMaintenanceJobTest.java69 () -> 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/
DKAnonMessageManager.java66 .setAdSelectionId(currentEntity.getAdSelectionId()) in persistNewAnonMessageEntities()
127 .setAdSelectionId(kAnonMessageEntity.getAdSelectionId()) in parseKAnonMessageEntityToNewDBKAnonMessage()
147 .setAdSelectionId(dbkAnonMessage.getAdSelectionId()) in parseDBKAnonMessageToKAnonMessageEntity()

1234