/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/ |
D | AdSelectionDevOverridesHelper.java | 49 private final DevContext mDevContext; field in AdSelectionDevOverridesHelper 61 this.mDevContext = devContext; in AdSelectionDevOverridesHelper() 115 if (!mDevContext.getDevOptionsEnabled()) { in getDecisionLogicOverride() 120 mDevContext.getCallingAppPackageName()); in getDecisionLogicOverride() 134 if (!mDevContext.getDevOptionsEnabled()) { in getPerBuyerDecisionLogicOverride() 140 mDevContext.getCallingAppPackageName()) in getPerBuyerDecisionLogicOverride() 159 if (!mDevContext.getDevOptionsEnabled()) { in getTrustedScoringSignalsOverride() 165 mDevContext.getCallingAppPackageName()); in getTrustedScoringSignalsOverride() 184 if (!mDevContext.getDevOptionsEnabled()) { in addAdSelectionSellerOverride() 191 .setAppPackageName(mDevContext.getCallingAppPackageName()) in addAdSelectionSellerOverride() [all …]
|
D | CustomAudienceDevOverridesHelper.java | 42 private final DevContext mDevContext; field in CustomAudienceDevOverridesHelper 54 this.mDevContext = devContext; in CustomAudienceDevOverridesHelper() 72 if (!mDevContext.getDevOptionsEnabled()) { in getBiddingLogicOverride() 77 String appPackageName = mDevContext.getCallingAppPackageName(); in getBiddingLogicOverride() 103 if (!mDevContext.getDevOptionsEnabled()) { in getTrustedBiddingSignalsOverride() 107 String appPackageName = mDevContext.getCallingAppPackageName(); in getTrustedBiddingSignalsOverride() 141 if (!mDevContext.getDevOptionsEnabled()) { in addOverride() 145 String appPackageName = mDevContext.getCallingAppPackageName(); in addOverride() 187 if (!mDevContext.getDevOptionsEnabled()) { in removeOverride() 191 String appPackageName = mDevContext.getCallingAppPackageName(); in removeOverride() [all …]
|
D | CustomAudienceOverrider.java | 55 @NonNull private final DevContext mDevContext; field in CustomAudienceOverrider 88 this.mDevContext = devContext; in CustomAudienceOverrider() 268 mDevContext.getCallingAppPackageName())) { in callAddOverride() 290 mDevContext.getCallingAppPackageName())) { 304 mDevContext.getCallingAppPackageName())) { 333 this.mDevContext.getCallingAppPackageName(), 355 this.mDevContext.getCallingAppPackageName(),
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | DebugReportSenderStrategyHttpImplTest.java | 47 private DevContext mDevContext; field in DebugReportSenderStrategyHttpImplTest 59 mDevContext = DevContext.createForDevOptionsDisabled(); in setUp() 68 .getAndReadNothing(uri, mDevContext); in testSend_withSingleReport_allRequestsAreSuccessful() 74 verify(mMockHttpsClient, times(1)).getAndReadNothing(uri, mDevContext); in testSend_withSingleReport_allRequestsAreSuccessful() 84 .getAndReadNothing(uri1, mDevContext); in testSend_withMultipleReports_allRequestsAreSuccessful() 87 .getAndReadNothing(uri2, mDevContext); in testSend_withMultipleReports_allRequestsAreSuccessful() 93 verify(mMockHttpsClient, times(1)).getAndReadNothing(uri1, mDevContext); in testSend_withMultipleReports_allRequestsAreSuccessful() 94 verify(mMockHttpsClient, times(1)).getAndReadNothing(uri2, mDevContext); in testSend_withMultipleReports_allRequestsAreSuccessful() 104 .getAndReadNothing(uri1, mDevContext); in testSend_withFailedRequest_otherRequestsAreSuccessful() 107 .getAndReadNothing(uri2, mDevContext); in testSend_withFailedRequest_otherRequestsAreSuccessful() [all …]
|
D | ObliviousHttpEncryptorWithSeedImplTest.java | 68 private DevContext mDevContext; field in ObliviousHttpEncryptorWithSeedImplTest 82 mDevContext = in setUp() 95 AUCTION, 1000L, null, mDevContext)) in test_encryptBytes_success() 123 mDevContext) in test_encryptBytes_success() 135 AUCTION, 1000L, null, mDevContext)) in test_encryptBytes_success_withServerAuctionMediaTypeChange() 162 mDevContext) in test_encryptBytes_success_withServerAuctionMediaTypeChange() 187 AUCTION, 1000, null, mDevContext)) in test_decryptBytes_success() 203 encryptor.encryptBytes(plainTextBytes, 1L, 1000L, null, mDevContext).get(); in test_decryptBytes_success() 227 AUCTION, 1000, null, mDevContext)) in test_decryptBytes_success_withServerAuctionMediaTypeChange() 243 encryptor.encryptBytes(plainTextBytes, 1L, 1000L, null, mDevContext).get(); in test_decryptBytes_success_withServerAuctionMediaTypeChange()
|
D | AdBidGeneratorImplTest.java | 328 private DevContext mDevContext; field in AdBidGeneratorImplTest 351 mDevContext = DevContext.createForDevOptionsDisabled(); in setUp() 366 mDevContext); in setUp() 429 new CustomAudienceDevOverridesHelper(mDevContext, mCustomAudienceDao); in testRunAdBiddingPerCASuccess_preV3BiddingLogic() 442 mDevContext, in testRunAdBiddingPerCASuccess_preV3BiddingLogic() 527 new CustomAudienceDevOverridesHelper(mDevContext, mCustomAudienceDao); in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderEnabled() 553 mDevContext, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderEnabled() 645 new CustomAudienceDevOverridesHelper(mDevContext, mCustomAudienceDao); in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderDisabled() 671 mDevContext, in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderDisabled() 761 new CustomAudienceDevOverridesHelper(mDevContext, mCustomAudienceDao); in testRunAdBiddingPerCASuccess_preV3BiddingLogicWithDataVersionHeaderTakesFirstOfMultipleValues() [all …]
|
D | TrustedBiddingDataFetcherTest.java | 89 @Mock private DevContext mDevContext; field in TrustedBiddingDataFetcherTest 102 mDevContext, in setup() 159 verify(mDevContext).getDevOptionsEnabled(); in testDevOptionDisabled_fetchForMultipleUri() 161 mAdServicesHttpsClient, mDevContext, mCustomAudienceDevOverridesHelper); in testDevOptionDisabled_fetchForMultipleUri() 225 verify(mDevContext).getDevOptionsEnabled(); in testDevOptionDisabled_fetchForMultipleUriWithHeaders() 227 mAdServicesHttpsClient, mDevContext, mCustomAudienceDevOverridesHelper); in testDevOptionDisabled_fetchForMultipleUriWithHeaders() 272 verify(mDevContext).getDevOptionsEnabled(); in testDevOptionDisabled_fetchFailedOrNoResultFromServer() 274 mAdServicesHttpsClient, mDevContext, mCustomAudienceDevOverridesHelper); in testDevOptionDisabled_fetchFailedOrNoResultFromServer() 322 verify(mDevContext).getDevOptionsEnabled(); in testDevOptionDisabled_serverReturnedMalformedData() 324 mAdServicesHttpsClient, mDevContext, mCustomAudienceDevOverridesHelper); in testDevOptionDisabled_serverReturnedMalformedData() [all …]
|
D | JsFetcherTest.java | 110 private DevContext mDevContext = field in JsFetcherTest 150 mDevContext = DevContext.createForDevOptionsDisabled(); in setUp() 173 mDevContext); in setUp() 186 new CustomAudienceDevOverridesHelper(mDevContext, mCustomAudienceDao); in setUp() 188 new AdSelectionDevOverridesHelper(mDevContext, mAdSelectionEntryDao); in setUp() 195 mDevContext); in setUp() 207 mDevContext = in testSuccessfulGetBuyerLogicWithOverride() 214 new CustomAudienceDevOverridesHelper(mDevContext, mCustomAudienceDao); in testSuccessfulGetBuyerLogicWithOverride() 227 mDevContext = in testSuccessfulGetBuyerLogicWithOverrideWithLogger() 234 new CustomAudienceDevOverridesHelper(mDevContext, mCustomAudienceDao); in testSuccessfulGetBuyerLogicWithOverrideWithLogger() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/ |
D | ProtectedServersEncryptionConfigManagerTest.java | 117 private DevContext mDevContext; field in ProtectedServersEncryptionConfigManagerTest 141 mDevContext = in setUp() 261 eq(mDevContext), in test_fetchAndPersistAuctionKey_fetchSuccess_returnsLatestActiveAuctionKey() 279 mDevContext, in test_fetchAndPersistAuctionKey_fetchSuccess_returnsLatestActiveAuctionKey() 290 eq(mDevContext), in test_fetchAndPersistAuctionKey_fetchSuccess_withLogging() 308 mDevContext, in test_fetchAndPersistAuctionKey_fetchSuccess_withLogging() 323 eq(mDevContext), in test_multipleCoordinatorKeys_fetchSuccess_returnsLatestActiveAuctionKey() 331 Uri.parse(AUCTION_KEY_FETCH_DEFAULT_URI), mDevContext, mKeyFetchLogger)) in test_multipleCoordinatorKeys_fetchSuccess_returnsLatestActiveAuctionKey() local 354 mDevContext, in test_multipleCoordinatorKeys_fetchSuccess_returnsLatestActiveAuctionKey() 366 mDevContext, in test_multipleCoordinatorKeys_fetchSuccess_returnsLatestActiveAuctionKey() [all …]
|
D | KAnonObliviousHttpEncryptorImplTest.java | 62 private DevContext mDevContext; field in KAnonObliviousHttpEncryptorImplTest 70 mDevContext = in setUp() 86 null, UNUSED_CONTEXT_ID, KEY_FETCH_TIMEOUT_MS, null, mDevContext)); in test_encryptBytes_invalidPlainText() 93 JOIN, KEY_FETCH_TIMEOUT_MS, null, mDevContext)) in test_encryptBytes_success() 109 mDevContext) in test_encryptBytes_success() 121 JOIN, KEY_FETCH_TIMEOUT_MS, null, mDevContext)) in test_encryptBytes_success_withServerAuctionMediaTypeNoChange() 137 mDevContext) in test_encryptBytes_success_withServerAuctionMediaTypeNoChange() 175 JOIN, KEY_FETCH_TIMEOUT_MS, null, mDevContext)) in test_decryptBytes_success() 188 mDevContext) in test_decryptBytes_success() 202 JOIN, KEY_FETCH_TIMEOUT_MS, null, mDevContext)) in test_decryptBytes_success_withServerAuctionMediaTypeNoChange() [all …]
|
D | ObliviousHttpEncryptorImplTest.java | 69 private DevContext mDevContext; field in ObliviousHttpEncryptorImplTest 87 mDevContext = in setUp() 100 () -> mObliviousHttpEncryptor.encryptBytes(null, 1L, 1000L, null, mDevContext)); in test_encryptBytes_invalidPlainText() 107 AUCTION, 1000L, null, mDevContext)) in test_encryptBytes_success() 123 mDevContext) in test_encryptBytes_success() 135 AUCTION, 1000L, null, mDevContext)) in test_encryptBytes_success_withServerAuctionMediaTypeChange() 151 mDevContext) in test_encryptBytes_success_withServerAuctionMediaTypeChange() 183 AUCTION, 1000, null, mDevContext)) in test_decryptBytes_success() 191 .encryptBytes(plainTextBytes, 1L, 1000L, null, mDevContext) in test_decryptBytes_success() 211 AUCTION, 1000, null, mDevContext)) in test_decryptBytes_success_withServerAuctionMediaTypeChange() [all …]
|
D | AdSelectionEncryptionKeyManagerTest.java | 109 private DevContext mDevContext; field in AdSelectionEncryptionKeyManagerTest 134 mDevContext = in setUp() 317 eq(mDevContext), in test_fetchAndPersistAuctionKey_fetchSuccess_returnsLatestActiveAuctionKey() 333 mDevContext, in test_fetchAndPersistAuctionKey_fetchSuccess_returnsLatestActiveAuctionKey() 352 .setDevContext(mDevContext) in test_fetchAndPersistJoinKey_fetchSuccess_returnsLatestActiveJoinKey() 370 mDevContext, in test_fetchAndPersistJoinKey_fetchSuccess_returnsLatestActiveJoinKey() 387 eq(mDevContext), in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey() 411 mDevContext) in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey() 431 eq(mDevContext), in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey() 444 mDevContext) in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey() [all …]
|
D | BackgroundKeyFetchWorkerTest.java | 118 private DevContext mDevContext; field in BackgroundKeyFetchWorkerTest 146 mDevContext = in setup() 155 mKeyManagerSpy, mDevContext, mFlags, mClockMock, mAdServicesLoggerMock); in setup() 169 mDevContext, in testBackgroundKeyFetchWorker_nullInputs_causeFailure() 189 mDevContext, in testBackgroundKeyFetchWorker_nullInputs_causeFailure() 199 mDevContext, in testBackgroundKeyFetchWorker_nullInputs_causeFailure() 209 mDevContext, in testBackgroundKeyFetchWorker_nullInputs_causeFailure() 265 mDevContext, in testRunBackgroundKeyFetch_longRuntime_throwsTimeoutDuringFetch() 332 mDevContext, 379 mDevContext, [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | EventReporterFactory.java | 59 @NonNull private final DevContext mDevContext; field in EventReporterFactory 102 mDevContext = devContext; in EventReporterFactory() 134 mDevContext, in getEventReporter() 152 mDevContext, in getEventReporter() 170 mDevContext, in getEventReporter() 191 mDevContext, in getEventReporter()
|
D | DebugReportingEnabled.java | 37 private final DevContext mDevContext; field in DebugReportingEnabled 48 mDevContext = devContext; in DebugReportingEnabled() 61 ? new DebugReportSenderStrategyHttpImpl(mAdServicesHttpsClient, mDevContext) in getSenderStrategy() 63 mContext, mAdSelectionDebugReportDao, mDevContext); in getSenderStrategy()
|
D | DebugReportSenderStrategyBatchImpl.java | 52 @NonNull private final DevContext mDevContext; field in DebugReportSenderStrategyBatchImpl 64 mDevContext = devContext; in DebugReportSenderStrategyBatchImpl() 75 mDevContext.getDevOptionsEnabled(), in enqueue() 89 mDevContext.getDevOptionsEnabled(), in batchEnqueue()
|
D | TrustedBiddingDataFetcher.java | 56 @NonNull private final DevContext mDevContext; field in TrustedBiddingDataFetcher 68 mDevContext = devContext; in TrustedBiddingDataFetcher() 110 if (mDevContext.getDevOptionsEnabled()) { in getTrustedBiddingDataForBuyer() 192 uri, ImmutableSet.of(DATA_VERSION_HEADER_BIDDING_KEY), mDevContext); 194 return mAdServicesHttpsClient.fetchPayload(uri, mDevContext);
|
D | DebugReportSenderStrategyHttpImpl.java | 42 @NonNull private final DevContext mDevContext; field in DebugReportSenderStrategyHttpImpl 51 mDevContext = devContext; in DebugReportSenderStrategyHttpImpl() 76 return mHttpsClient.getAndReadNothing(uri, mDevContext); in flush()
|
D | AdOutcomeSelectorImpl.java | 69 @NonNull private final DevContext mDevContext; field in AdOutcomeSelectorImpl 96 mDevContext = devContext; in AdOutcomeSelectorImpl() 104 mDevContext); in AdOutcomeSelectorImpl() 128 .setDevContext(mDevContext) in runAdOutcomeSelector()
|
D | ImpressionReporterLegacy.java | 122 @NonNull private final DevContext mDevContext; field in ImpressionReporterLegacy 165 mDevContext = devContext; in ImpressionReporterLegacy() 190 mDevContext); in ImpressionReporterLegacy() 207 mDevContext); in ImpressionReporterLegacy() 289 mDevContext); in reportImpression() 444 reportingUris.sellerReportingUri, mDevContext)) in doReport() 485 reportingUris.buyerReportingUri, mDevContext)) in doReport() 581 .setDevContext(mDevContext) 611 .setDevContext(mDevContext)
|
D | AdsScoreGeneratorImpl.java | 100 @NonNull private final DevContext mDevContext; field in AdsScoreGeneratorImpl 131 mDevContext = devContext; in AdsScoreGeneratorImpl() 133 new AdSelectionDevOverridesHelper(mDevContext, adSelectionEntryDao); in AdsScoreGeneratorImpl() 142 mDevContext); in AdsScoreGeneratorImpl() 179 .setDevContext(mDevContext) in runAdScoring() 454 uri, ImmutableSet.of(DATA_VERSION_HEADER_SCORING_KEY), mDevContext); 456 return mAdServicesHttpsClient.fetchPayload(uri, mDevContext);
|
D | EventReporter.java | 90 @NonNull private final DevContext mDevContext; field in EventReporter 124 mDevContext = devContext; in EventReporter() 157 mDevContext); in filterAndValidateRequest() 254 mAdServicesHttpsClient.postPlainText(uri, eventData, mDevContext));
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | ScheduleCustomAudienceUpdateImplTest.java | 90 private DevContext mDevContext; field in ScheduleCustomAudienceUpdateImplTest 107 mDevContext = in setup() 121 eq(mDevContext))) in setup() 174 eq(mDevContext)); in testScheduleCustomAudienceUpdate_Success() 207 eq(mDevContext)); in testScheduleCustomAudienceUpdate_OverDelay_Failure() 247 eq(mDevContext))) in testScheduleCustomAudienceUpdate_MissingBuyer_Failure() 273 eq(mDevContext)); in testScheduleCustomAudienceUpdate_MissingBuyer_Failure() 315 impl.doScheduleCustomAudienceUpdate(input, testCallback, mDevContext); in callScheduleUpdate()
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/ |
D | DevContextUtils.java | 41 DevContext mDevContext = DevContextFilter.create(context).createDevContext(Process.myUid()); in isDevOptionsEnabled() local 43 devContextFilter.isDebuggable(mDevContext.getCallingAppPackageName()); in isDevOptionsEnabled() 49 return mDevContext.getDevOptionsEnabled(); in isDevOptionsEnabled()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | ProtectedSignalsServiceImplTest.java | 111 private DevContext mDevContext; field in ProtectedSignalsServiceImplTest 146 mDevContext = in setup() 155 when(mDevContextFilterMock.createDevContext()).thenReturn(mDevContext); in setup() 165 eq(mDevContext))) in setup() 173 eq(URI), eq(ADTECH), eq(PACKAGE), eq(mDevContext), any())) in setup() 214 eq(mDevContext)); in testUpdateSignalsSuccess() 217 .orchestrateUpdate(eq(URI), eq(ADTECH), eq(PACKAGE), eq(mDevContext), any()); in testUpdateSignalsSuccess() 289 eq(mDevContext))) in testUpdateSignalsFilterException() 313 eq(URI), eq(ADTECH), eq(PACKAGE), eq(mDevContext), any())) in testUpdateSignalsIllegalArgumentException()
|