Home
last modified time | relevance | path

Searched refs:createForDevOptionsDisabled (Results 1 – 25 of 54) sorted by relevance

123

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DCustomAudienceServiceFilterTest.java127 DevContext.createForDevOptionsDisabled())); in testFilterRequest_invalidPackageName_throws()
147 DevContext.createForDevOptionsDisabled())); in testFilterRequest_throttled_throws()
167 DevContext.createForDevOptionsDisabled())); in testFilterRequest_enforceForegroundTrue_foregroundCheckFails_throws()
184 DevContext.createForDevOptionsDisabled()); in testFilterRequest_enforceForegroundFalse_foregroundCheckFails_succeeds()
220 DevContext.createForDevOptionsDisabled())); in testFilterRequest_adTechNotAuthorized_throws()
246 DevContext.createForDevOptionsDisabled())); in testFilterRequest_withLocalhostDomain_doesNotPass()
304 DevContext.createForDevOptionsDisabled()); in testFilterRequest_nullAdTech_skipCheck()
327 DevContext.createForDevOptionsDisabled())); in testFilterRequest_appNotInAllowlist_throws()
340 DevContext.createForDevOptionsDisabled()); in testFilterRequest_enforceConsentTrue_hasUserConsentForApp_succeeds()
360 DevContext.createForDevOptionsDisabled())); in testFilterRequest_enforceConsentTrue_lacksUserConsentForApp_throws()
[all …]
DAdSelectionServiceFilterTest.java125 DevContext.createForDevOptionsDisabled()); in testFilterRequest_noExceptionsThrown_succeeds()
142 DevContext.createForDevOptionsDisabled())); in testFilterRequestThrowsCallerMismatchExceptionWithInvalidPackageName()
166 DevContext.createForDevOptionsDisabled())); in testFilterRequest_throttled_throwsLimitExceededException()
189 DevContext.createForDevOptionsDisabled())); in testFilterRequestThrowsWrongCallingApplicationStateExceptionIfForegroundCheckFails()
209 DevContext.createForDevOptionsDisabled()); in testFilterRequestSucceedsForBackgroundAppsWhenEnforceForegroundFalse()
245 DevContext.createForDevOptionsDisabled())); in testFilterRequestThrowsAdTechNotAllowedExceptionWhenAdTechNotAuthorized()
268 DevContext.createForDevOptionsDisabled())); in testFilterRequestThrowsAppNotAllowedExceptionWhenAppNotInAllowlist()
292 DevContext.createForDevOptionsDisabled())); in testFilterRequest_apiConsentRevoked_throwsRevokedConsentException()
313 DevContext.createForDevOptionsDisabled()); in testFilterRequest_apiConsentRevoked_enforceConsentFalse_succeeds()
326 DevContext.createForDevOptionsDisabled()); in testFilterRequestDoesNotDoEnrollmentCheckWhenAdTechParamIsNull()
[all …]
DProtectedSignalsServiceFilterTest.java119 DevContext.createForDevOptionsDisabled())); in testFilterRequestAndExtractIdentifier_invalidPackageName_throws()
140 DevContext.createForDevOptionsDisabled())); in testFilterRequestAndExtractIdentifier_throttled_throws()
161 DevContext.createForDevOptionsDisabled())); in testFilterRequestAndExtractIdentifier_enforceForegroundTrue_foregroundCheckFails()
189 DevContext.createForDevOptionsDisabled()); in testFilterRequestAndExtractIdentifier_enforceForegroundFalse_foregroundCheckFails()
224 DevContext.createForDevOptionsDisabled())); in testFilterRequestAndExtractIdentifier_enableEnrollmentCheck_invalidAdTech_throws()
240 DevContext.createForDevOptionsDisabled()); in testFilterRequestAndExtractIdentifier_disableEnrollmentCheck_eTLDPlus1NotExtracted()
282 DevContext.createForDevOptionsDisabled())); in testFilterRequestAndExtractIdentifier_appNotInAllowlist_throws()
305 DevContext.createForDevOptionsDisabled()); in testFilterRequestAndExtractIdentifier_enforceConsentTrue_hasUserConsentForApp()
335 DevContext.createForDevOptionsDisabled())); in testFilterRequestAndExtractIdentifier_enforceConsentTrue_lacksUserConsentForApp()
362 DevContext.createForDevOptionsDisabled()); in testFilterRequestAndExtractIdentifier_enforceConsentFalse_lacksUserConsentForApp()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DFetchCustomAudienceImplTest.java241 DevContext.createForDevOptionsDisabled()); in setup()
323 DevContext.createForDevOptionsDisabled()); in testImpl_invalidPackageName_throws()
355 DevContext.createForDevOptionsDisabled()); in testImpl_throttled_throws()
387 DevContext.createForDevOptionsDisabled()); in testImpl_failedForegroundCheck_throws()
420 DevContext.createForDevOptionsDisabled()); in testImpl_failedEnrollmentCheck_throws()
453 DevContext.createForDevOptionsDisabled()); in testImpl_appCannotUsePPAPI_throws()
486 DevContext.createForDevOptionsDisabled()); in testImpl_revokedConsent_failsSilently()
874 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()); in testImpl_runNormally_partialResponse()
901 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()); in testImpl_runNormally_discardedResponseValues()
924 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()); in testImpl_runNormally_completeResponse()
[all …]
DBackgroundFetchRunnerTest.java357 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()) in testFetchAndValidateSuccessfulEmptyCustomAudienceUpdatableData()
385 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()) in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableData()
447 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()) in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableDataWithAuctionServerRequestFlagsEnabled()
507 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()) in testFetchAndValidateSuccessfulFullCustomAudienceUpdatableDataWithAuctionServerRequestFlagsDisabled()
574 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()) in testFetchAndValidateCustomAudienceUpdatableDataNetworkTimeout()
606 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()) in testFetchWithInvalidUriAndValidateCustomAudienceUpdatableData()
651 DevContext.createForDevOptionsDisabled().getDevOptionsEnabled()) in testFetchAndValidateCustomAudienceUpdatableDataResponseTooLarge()
DCustomAudienceServiceImplTest.java172 .doReturn(DevContext.createForDevOptionsDisabled()) in setup()
220 DevContext.createForDevOptionsDisabled()); in testJoinCustomAudience_runNormally()
424 DevContext.createForDevOptionsDisabled()); in testJoinCustomAudience_errorCreateCustomAudience()
441 DevContext.createForDevOptionsDisabled()); in testJoinCustomAudience_errorCreateCustomAudience()
496 DevContext.createForDevOptionsDisabled()); in testJoinCustomAudience_errorReturnCallback()
1098 DevContext.createForDevOptionsDisabled()); in testAppImportanceDisabledCallerInBackground_joinCustomAudienceSucceeds()
1736 DevContext.createForDevOptionsDisabled()); in testEnrollmentCheckDisabled_joinCustomAudience_runNormally()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/
DDevContextFilter.java106 return DevContext.createForDevOptionsDisabled(); in createDevContext()
114 return DevContext.createForDevOptionsDisabled(); in createDevContext()
127 return DevContext.createForDevOptionsDisabled(); in createDevContext()
DDevContext.java52 public static DevContext createForDevOptionsDisabled() { in createForDevOptionsDisabled() method in DevContext
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DReportEventImplTest.java216 DevContext.createForDevOptionsDisabled(), in setup()
392 reportingUri, mInteractionData, DevContext.createForDevOptionsDisabled()); in testImplDoesNotCrashAfterSellerReportingThrowsAnException()
477 reportingUri, mInteractionData, DevContext.createForDevOptionsDisabled()); in testImplDoesNotCrashAfterBuyerReportingThrowsAnException()
677 DevContext.createForDevOptionsDisabled(), in testImplReturnsOnlyReportsUriThatPassesEnrollmentCheck()
762 DevContext.createForDevOptionsDisabled(), in testImplReturnsSuccessButDoesNotDoReportingWhenBothFailEnrollmentCheck()
828 DevContext.createForDevOptionsDisabled()); in testImplFailsWithInvalidPackageName()
896 DevContext.createForDevOptionsDisabled()); in testImplFailsWhenForegroundCheckFails()
1003 DevContext.createForDevOptionsDisabled()); in testImplFailsWhenThrottled()
1070 DevContext.createForDevOptionsDisabled()); in testImplFailsWhenAppNotInAllowList()
1132 DevContext.createForDevOptionsDisabled()); in testImplFailsSilentlyWithoutConsent()
[all …]
DAdSelectionServiceImplTest.java282 private final DevContext mDevContext = DevContext.createForDevOptionsDisabled();
421 DevContext.createForDevOptionsDisabled()); in setUp()
430 .thenReturn(DevContext.createForDevOptionsDisabled()); in setUp()
511 .thenReturn(DevContext.createForDevOptionsDisabled()); in testReportImpressionSuccessWithRegisterAdBeaconDisabled()
639 .thenReturn(DevContext.createForDevOptionsDisabled()); in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled()
767 .thenReturn(DevContext.createForDevOptionsDisabled()); in testReportImpressionFailureCallbackThrowsErrorAuctionServerEnabled()
888 .thenReturn(DevContext.createForDevOptionsDisabled()); in testReportImpressionSuccessCallbackThrowsErrorAuctionServerDisabled()
1016 .thenReturn(DevContext.createForDevOptionsDisabled()); in testReportImpressionFailureCallbackThrowsErrorAuctionServerDisabled()
1136 .thenReturn(DevContext.createForDevOptionsDisabled()); in testReportImpressionSuccessfullyReportsAdCost()
1272 .thenReturn(DevContext.createForDevOptionsDisabled()); in testReportImpressionSuccessfullyReportsDataVersionHeader()
[all …]
DDebugReportSenderStrategyHttpImplTest.java58 mMockHttpsClient, DevContext.createForDevOptionsDisabled()); in setUp()
59 mDevContext = DevContext.createForDevOptionsDisabled(); in setUp()
DAdOutcomeSelectorImplTest.java108 private DevContext mDevContext = DevContext.createForDevOptionsDisabled();
159 DevContext.createForDevOptionsDisabled(), mAdSelectionEntryDao), in setup()
329 DevContext.createForDevOptionsDisabled(), mAdSelectionEntryDao), in testAdOutcomeSelectorTimeoutFailure()
401 DevContext.createForDevOptionsDisabled(), mAdSelectionEntryDao), in testAdOutcomeSelectorWithPrebuiltUriReturnsOutcomeSuccess()
DOutcomeSelectionRunnerTest.java174 DevContext.createForDevOptionsDisabled(), in setup()
187 DevContext.createForDevOptionsDisabled()); in setup()
247 DevContext.createForDevOptionsDisabled()); in testRunOutcomeSelectionRevokedUserConsentEmptyResult()
342 DevContext.createForDevOptionsDisabled(), in testRunOutcomeSelectionOrchestrationTimeoutFailure()
DAppInstallAdvertisersSetterTest.java116 DevContext.createForDevOptionsDisabled()); in setup()
134 DevContext.createForDevOptionsDisabled()); in testSetAppInstallAdvertisersSuccess()
157 DevContext.createForDevOptionsDisabled()); in testSetAppInstallAdvertisersDisabledFailure()
DReportAndRegisterEventFallbackImplTest.java319 .postPlainText(reportingUri, mEventData, DevContext.createForDevOptionsDisabled()); in testImplDoesNotCrashAfterSellerReportingThrowsAnException()
440 .postPlainText(reportingUri, mEventData, DevContext.createForDevOptionsDisabled()); in testImplDoesNotCrashAfterBuyerReportingThrowsAnException()
776 DevContext.createForDevOptionsDisabled()); in testImplFailsWithInvalidPackageName()
828 DevContext.createForDevOptionsDisabled()); in testImplFailsWhenForegroundCheckFails()
883 DevContext.createForDevOptionsDisabled()); in testImplFailsWhenThrottled()
962 DevContext.createForDevOptionsDisabled()); in testImplFailsWhenAppNotInAllowList()
1007 DevContext.createForDevOptionsDisabled()); in testImplFailsSilentlyWithoutConsent()
1552 DevContext.createForDevOptionsDisabled(), in getReportAndRegisterEventFallbackImpl()
DPersistAdSelectionResultRunnerTest.java501 DevContext.createForDevOptionsDisabled(), in setup()
1096 DevContext.createForDevOptionsDisabled(), in testRunner_persistRemarketingResult_forceOnAbsentOwnerFalseSkipsValidation()
1195 DevContext.createForDevOptionsDisabled(), in testRunner_persistRemarketingResult_forceOnAbsentOwnerFalseFuzzySearch()
1374 DevContext.createForDevOptionsDisabled(), in testRunner_persistTimesOut_throwsException()
1416 eq(DevContext.createForDevOptionsDisabled())); in testRunner_revokedUserConsent_returnsEmptyResult()
1600 DevContext.createForDevOptionsDisabled(), in testRunner_persistResultWithLongInteractionKeyAndUri_throwsException()
1685 DevContext.createForDevOptionsDisabled(), in testRunner_withKAnonSignFlagedDisabled_doesNothing()
1728 DevContext.createForDevOptionsDisabled(), in testRunner_kanonSignJoinManagerThrowsException_persistSelectionRunnerIsSuccessful()
1769 DevContext.createForDevOptionsDisabled(), in testRunner_withKAnonEnabled_makesSignAndJoinCalls()
1812 DevContext.createForDevOptionsDisabled(), in testRunner_withKAnonEnabled_createsKAnonEntityWithCorrectEncoding()
[all …]
DReportAndRegisterEventImplTest.java525 DevContext.createForDevOptionsDisabled()); in testImplFailsWithInvalidPackageName()
567 DevContext.createForDevOptionsDisabled()); in testImplFailsWhenForegroundCheckFails()
612 DevContext.createForDevOptionsDisabled()); in testImplFailsWhenThrottled()
665 DevContext.createForDevOptionsDisabled()); in testImplFailsWhenAppNotInAllowList()
700 DevContext.createForDevOptionsDisabled()); in testImplFailsSilentlyWithoutConsent()
1205 DevContext.createForDevOptionsDisabled(), in getReportAndRegisterEventImpl()
DJsVersionHelperTest.java53 DevContext.createForDevOptionsDisabled()); in testGetRequestWithVersionAttribute()
DReportEventDisabledImplTest.java83 DevContext.createForDevOptionsDisabled(), in testReportEventDisabledImplFailsWhenCalled()
DUpdateAdCounterHistogramWorkerTest.java105 DevContext.createForDevOptionsDisabled()); in setup()
185 DevContext.createForDevOptionsDisabled()); in testWorkerFeatureFlagDisabledStopsAndNotifiesFailure()
DEventReporterFactoryTest.java140 DevContext.createForDevOptionsDisabled(), in getEventReporter()
DAuctionServerE2ETest.java446 doReturn(DevContext.createForDevOptionsDisabled()) in setUp()
514 eq(DevContext.createForDevOptionsDisabled())); in testAuctionServer_consentDisabled_throwsException()
526 eq(DevContext.createForDevOptionsDisabled())); in testAuctionServer_consentDisabled_throwsException()
2937 eq(DevContext.createForDevOptionsDisabled()), in testGetAdSelectionData_multiCloudOn_success()
3056 eq(DevContext.createForDevOptionsDisabled()), in testGetAdSelectionData_multiCloudOn_refreshFlagOn_fetchesNewKey()
3131 eq(DevContext.createForDevOptionsDisabled()), in testGetAdSelectionData_multiCloudOn_refreshFlagOn_fetchesNewKey()
3194 eq(DevContext.createForDevOptionsDisabled()), in testGetAdSelectionData_multiCloudOn_refreshFlagOff_noNetworkCall()
3220 eq(DevContext.createForDevOptionsDisabled()), in testGetAdSelectionData_multiCloudOn_refreshFlagOff_noNetworkCall()
3328 eq(DevContext.createForDevOptionsDisabled()), in testGetAdSelectionData_multiCloudOff_refreshFlagOn_fetchesNewKey()
3396 eq(DevContext.createForDevOptionsDisabled()), in testGetAdSelectionData_multiCloudOff_refreshFlagOn_fetchesNewKey()
[all …]
DGetAdSelectionDataRunnerTest.java256 DevContext.createForDevOptionsDisabled()); in setup()
868 eq(DevContext.createForDevOptionsDisabled())); in testRunner_revokedUserConsent_returnsRandomResult()
906 eq(DevContext.createForDevOptionsDisabled())); in testRunner_revokedUserConsent_returnsRandomResultWithExcessiveSizeFormatterVersion()
1115 DevContext.createForDevOptionsDisabled(), in testRunner_getAdSelectionData_timeoutFailure()
1181 DevContext.createForDevOptionsDisabled(), in initRunner()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/updateprocessors/
DUpdateEncoderEventHandlerTest.java90 DevContext.createForDevOptionsDisabled()); in testUpdateEventRegister()
93 .downloadAndUpdate(buyer, DevContext.createForDevOptionsDisabled()); in testUpdateEventRegister()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/
DEncoderLogicHandlerTest.java128 .setDevContext(DevContext.createForDevOptionsDisabled()) in testDownloadAndUpdate_success()
152 .downloadAndUpdate(buyer, DevContext.createForDevOptionsDisabled()) in testDownloadAndUpdate_success()
174 .downloadAndUpdate(buyer, DevContext.createForDevOptionsDisabled()) in testDownloadAndUpdate_skipped()

123