/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | CustomAudienceServiceFilterTest.java | 127 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 …]
|
D | AdSelectionServiceFilterTest.java | 125 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 …]
|
D | ProtectedSignalsServiceFilterTest.java | 119 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/ |
D | FetchCustomAudienceImplTest.java | 241 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 …]
|
D | BackgroundFetchRunnerTest.java | 357 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()
|
D | CustomAudienceServiceImplTest.java | 172 .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/ |
D | DevContextFilter.java | 106 return DevContext.createForDevOptionsDisabled(); in createDevContext() 114 return DevContext.createForDevOptionsDisabled(); in createDevContext() 127 return DevContext.createForDevOptionsDisabled(); in createDevContext()
|
D | DevContext.java | 52 public static DevContext createForDevOptionsDisabled() { in createForDevOptionsDisabled() method in DevContext
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | ReportEventImplTest.java | 216 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 …]
|
D | AdSelectionServiceImplTest.java | 282 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 …]
|
D | DebugReportSenderStrategyHttpImplTest.java | 58 mMockHttpsClient, DevContext.createForDevOptionsDisabled()); in setUp() 59 mDevContext = DevContext.createForDevOptionsDisabled(); in setUp()
|
D | AdOutcomeSelectorImplTest.java | 108 private DevContext mDevContext = DevContext.createForDevOptionsDisabled(); 159 DevContext.createForDevOptionsDisabled(), mAdSelectionEntryDao), in setup() 329 DevContext.createForDevOptionsDisabled(), mAdSelectionEntryDao), in testAdOutcomeSelectorTimeoutFailure() 401 DevContext.createForDevOptionsDisabled(), mAdSelectionEntryDao), in testAdOutcomeSelectorWithPrebuiltUriReturnsOutcomeSuccess()
|
D | OutcomeSelectionRunnerTest.java | 174 DevContext.createForDevOptionsDisabled(), in setup() 187 DevContext.createForDevOptionsDisabled()); in setup() 247 DevContext.createForDevOptionsDisabled()); in testRunOutcomeSelectionRevokedUserConsentEmptyResult() 342 DevContext.createForDevOptionsDisabled(), in testRunOutcomeSelectionOrchestrationTimeoutFailure()
|
D | AppInstallAdvertisersSetterTest.java | 116 DevContext.createForDevOptionsDisabled()); in setup() 134 DevContext.createForDevOptionsDisabled()); in testSetAppInstallAdvertisersSuccess() 157 DevContext.createForDevOptionsDisabled()); in testSetAppInstallAdvertisersDisabledFailure()
|
D | ReportAndRegisterEventFallbackImplTest.java | 319 .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()
|
D | PersistAdSelectionResultRunnerTest.java | 501 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 …]
|
D | ReportAndRegisterEventImplTest.java | 525 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()
|
D | JsVersionHelperTest.java | 53 DevContext.createForDevOptionsDisabled()); in testGetRequestWithVersionAttribute()
|
D | ReportEventDisabledImplTest.java | 83 DevContext.createForDevOptionsDisabled(), in testReportEventDisabledImplFailsWhenCalled()
|
D | UpdateAdCounterHistogramWorkerTest.java | 105 DevContext.createForDevOptionsDisabled()); in setup() 185 DevContext.createForDevOptionsDisabled()); in testWorkerFeatureFlagDisabledStopsAndNotifiesFailure()
|
D | EventReporterFactoryTest.java | 140 DevContext.createForDevOptionsDisabled(), in getEventReporter()
|
D | AuctionServerE2ETest.java | 446 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 …]
|
D | GetAdSelectionDataRunnerTest.java | 256 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/ |
D | UpdateEncoderEventHandlerTest.java | 90 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/ |
D | EncoderLogicHandlerTest.java | 128 .setDevContext(DevContext.createForDevOptionsDisabled()) in testDownloadAndUpdate_success() 152 .downloadAndUpdate(buyer, DevContext.createForDevOptionsDisabled()) in testDownloadAndUpdate_success() 174 .downloadAndUpdate(buyer, DevContext.createForDevOptionsDisabled()) in testDownloadAndUpdate_skipped()
|