Home
last modified time | relevance | path

Searched refs:dispatcher (Results 1 – 25 of 117) sorted by relevance

12345

/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/
DAdSelectionReportingTest.java49 ScenarioDispatcher dispatcher = in testReportImpression_defaultAdSelection_happyPath() local
54 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testReportImpression_defaultAdSelection_happyPath()
64 assertThat(dispatcher.getCalledPaths()) in testReportImpression_defaultAdSelection_happyPath()
65 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testReportImpression_defaultAdSelection_happyPath()
70 ScenarioDispatcher dispatcher = in testReportImpression_buyerRequestFails_sellerRequestSucceeds() local
75 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testReportImpression_buyerRequestFails_sellerRequestSucceeds()
85 assertThat(dispatcher.getCalledPaths()) in testReportImpression_buyerRequestFails_sellerRequestSucceeds()
86 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testReportImpression_buyerRequestFails_sellerRequestSucceeds()
87 assertThat(dispatcher.getCalledPaths()) in testReportImpression_buyerRequestFails_sellerRequestSucceeds()
88 .containsNoneIn(dispatcher.getVerifyNotCalledPaths()); in testReportImpression_buyerRequestFails_sellerRequestSucceeds()
[all …]
DScenarioDispatcherTest.java42 ScenarioDispatcher dispatcher = in testScenarioDispatcher_happyPath_httpGetSuccess() local
47 String baseAddress = dispatcher.getBaseAddressWithPrefix().toString(); in testScenarioDispatcher_happyPath_httpGetSuccess()
51 assertThat(dispatcher.getCalledPaths()).containsExactlyElementsIn(List.of("/bidding")); in testScenarioDispatcher_happyPath_httpGetSuccess()
56 ScenarioDispatcher dispatcher = in testScenarioDispatcher_withPrefix_httpGetSuccess() local
61 URL url = new URL(dispatcher.getBaseAddressWithPrefix() + "/bidding"); in testScenarioDispatcher_withPrefix_httpGetSuccess()
64 assertThat(dispatcher.getCalledPaths()).containsExactlyElementsIn(List.of("/bidding")); in testScenarioDispatcher_withPrefix_httpGetSuccess()
69 ScenarioDispatcher dispatcher = in testScenarioDispatcher_withVerifyCalled_success() local
74 String baseAddress = dispatcher.getBaseAddressWithPrefix().toString(); in testScenarioDispatcher_withVerifyCalled_success()
78 assertThat(dispatcher.getCalledPaths()) in testScenarioDispatcher_withVerifyCalled_success()
79 .containsExactlyElementsIn(dispatcher.getVerifyCalledPaths()); in testScenarioDispatcher_withVerifyCalled_success()
[all …]
DAdSelectionTest.java76 ScenarioDispatcher dispatcher = in testAdSelection_withBiddingAndScoringLogic_happyPath() local
81 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testAdSelection_withBiddingAndScoringLogic_happyPath()
91 assertThat(dispatcher.getCalledPaths()) in testAdSelection_withBiddingAndScoringLogic_happyPath()
92 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testAdSelection_withBiddingAndScoringLogic_happyPath()
117 ScenarioDispatcher dispatcher = in testAdSelection_withBiddingLogicV3_happyPath() local
122 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testAdSelection_withBiddingLogicV3_happyPath()
135 assertThat(dispatcher.getCalledPaths()) in testAdSelection_withBiddingLogicV3_happyPath()
136 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testAdSelection_withBiddingLogicV3_happyPath()
145 ScenarioDispatcher dispatcher = in testAdSelection_withAdCostInUrl_happyPath() local
150 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testAdSelection_withAdCostInUrl_happyPath()
[all …]
DAdSelectionMediationTest.java52 ScenarioDispatcher dispatcher = in testSelectAds_withAdSelectionFromOutcomes_happyPath() local
59 URL baseAddress = dispatcher.getBaseAddressWithPrefix(); in testSelectAds_withAdSelectionFromOutcomes_happyPath()
73 assertThat(dispatcher.getCalledPaths()) in testSelectAds_withAdSelectionFromOutcomes_happyPath()
74 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testSelectAds_withAdSelectionFromOutcomes_happyPath()
83 ScenarioDispatcher dispatcher = in testSelectAds_withImpressionReporting_eventsAreReceived() local
87 AdSelectionConfig config = makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testSelectAds_withImpressionReporting_eventsAreReceived()
94 makeAdSelectionFromOutcomesConfig(dispatcher.getBaseAddressWithPrefix()) in testSelectAds_withImpressionReporting_eventsAreReceived()
103 assertThat(dispatcher.getCalledPaths()) in testSelectAds_withImpressionReporting_eventsAreReceived()
104 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testSelectAds_withImpressionReporting_eventsAreReceived()
125 ScenarioDispatcher dispatcher = in testAdSelectionFromOutcome_buyerMustEnrolledToParticipate() local
[all …]
DCustomAudienceShellCommandsScenarioTest.java62 ScenarioDispatcher dispatcher = in testRun_refreshCustomAudiences_verifyCustomAudienceChanged() local
68 AdTechIdentifier.fromString(dispatcher.getBaseAddressWithPrefix().getHost()); in testRun_refreshCustomAudiences_verifyCustomAudienceChanged()
69 String baseAddressWithPrefix = dispatcher.getBaseAddressWithPrefix().toString(); in testRun_refreshCustomAudiences_verifyCustomAudienceChanged()
104 assertThat(dispatcher.getCalledPaths()) in testRun_refreshCustomAudiences_verifyCustomAudienceChanged()
105 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testRun_refreshCustomAudiences_verifyCustomAudienceChanged()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/service/
DUseCaseModule.kt93 @IoDispatcher dispatcher: CoroutineDispatcher, in providesLoadRecentAccessUseCase()
96 return LoadRecentAccessUseCase(manager, dispatcher, timeSource) in providesLoadRecentAccessUseCase()
106 @IoDispatcher dispatcher: CoroutineDispatcher in providesLoadHealthPermissionAppsUseCase()
114 dispatcher) in providesLoadHealthPermissionAppsUseCase()
119 @IoDispatcher dispatcher: CoroutineDispatcher, in providesLoadDataEntriesUseCase()
122 return LoadDataEntriesUseCase(dispatcher, loadEntriesHelper) in providesLoadDataEntriesUseCase()
130 @IoDispatcher dispatcher: CoroutineDispatcher in providesExerciseRoutePermissionUseCase()
136 dispatcher) in providesExerciseRoutePermissionUseCase()
141 @IoDispatcher dispatcher: CoroutineDispatcher, in providesLoadDataAggregationsUseCase()
158 dispatcher) in providesLoadDataAggregationsUseCase()
[all …]
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/rootcts/
DCustomAudienceBackgroundFetchTest.java57 ScenarioDispatcher dispatcher = in testAdSelection_withInvalidFields_backgroundJobUpdatesSuccessfully() local
62 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testAdSelection_withInvalidFields_backgroundJobUpdatesSuccessfully()
74 assertThat(dispatcher.getCalledPaths()) in testAdSelection_withInvalidFields_backgroundJobUpdatesSuccessfully()
75 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testAdSelection_withInvalidFields_backgroundJobUpdatesSuccessfully()
84 ScenarioDispatcher dispatcher = in testAdSelection_withInvalidAds_backgroundJobUpdateFails() local
89 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testAdSelection_withInvalidAds_backgroundJobUpdateFails()
101 assertThat(dispatcher.getCalledPaths()) in testAdSelection_withInvalidAds_backgroundJobUpdateFails()
102 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testAdSelection_withInvalidAds_backgroundJobUpdateFails()
112 ScenarioDispatcher dispatcher = in testAdSelection_withHighLatencyBackend_backgroundJobFails() local
117 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testAdSelection_withHighLatencyBackend_backgroundJobFails()
[all …]
DFledgeMaintenanceJobTest.java54 ScenarioDispatcher dispatcher = in testAdSelection_afterExpirationWindow_adSelectionDataCleared() local
59 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testAdSelection_afterExpirationWindow_adSelectionDataCleared()
75 assertThat(dispatcher.getCalledPaths()) in testAdSelection_afterExpirationWindow_adSelectionDataCleared()
76 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testAdSelection_afterExpirationWindow_adSelectionDataCleared()
77 assertThat(dispatcher.getCalledPaths()) in testAdSelection_afterExpirationWindow_adSelectionDataCleared()
78 .containsNoneIn(dispatcher.getVerifyNotCalledPaths()); in testAdSelection_afterExpirationWindow_adSelectionDataCleared()
88 ScenarioDispatcher dispatcher = in testAdSelection_afterExpirationWindow_adInteractionsIsCleared() local
93 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testAdSelection_afterExpirationWindow_adInteractionsIsCleared()
110 assertThat(dispatcher.getCalledPaths()) in testAdSelection_afterExpirationWindow_adInteractionsIsCleared()
111 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testAdSelection_afterExpirationWindow_adInteractionsIsCleared()
[all …]
DScheduleCustomAudienceUpdateTest.java125 ScenarioDispatcher dispatcher = in testScheduleCustomAudienceUpdate_DownloadedCaWinsAdSelection_success() local
130 makeAdSelectionConfig(dispatcher.getBaseAddressWithPrefix()); in testScheduleCustomAudienceUpdate_DownloadedCaWinsAdSelection_success()
137 dispatcher.getBaseAddressWithPrefix().toString() in testScheduleCustomAudienceUpdate_DownloadedCaWinsAdSelection_success()
167 assertThat(dispatcher.getCalledPaths()) in testScheduleCustomAudienceUpdate_DownloadedCaWinsAdSelection_success()
168 .containsAtLeastElementsIn(dispatcher.getVerifyCalledPaths()); in testScheduleCustomAudienceUpdate_DownloadedCaWinsAdSelection_success()
176 ScenarioDispatcher dispatcher = in testScheduleCustomAudienceUpdate_Disabled_failure() local
180 Uri updateUri = Uri.parse(dispatcher.getBaseAddressWithPrefix() + Scenarios.UPDATE_CA_PATH); in testScheduleCustomAudienceUpdate_Disabled_failure()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/inject/
DActivityModule.kt87 @Background dispatcher: CoroutineDispatcher, in provideBackgroundScope()
94 backgroundScope = CoroutineScope(SupervisorJob() + dispatcher) in provideBackgroundScope()
108 @Background dispatcher: CoroutineDispatcher, in provideConfigurationManager()
122 /* dispatcher= */ dispatcher, in provideConfigurationManager()
139 @Background dispatcher: CoroutineDispatcher, in provideDataService()
154 dispatcher, in provideDataService()
213 @Main dispatcher: CoroutineDispatcher, in provideMainScope()
221 mainScope = CoroutineScope(SupervisorJob() + dispatcher) in provideMainScope()
288 @Background dispatcher: CoroutineDispatcher, in provideUserMonitor()
299 UserMonitor(context, configurationManager.configuration, scope, dispatcher, handle) in provideUserMonitor()
DEmbeddedServiceModule.kt127 @Background dispatcher: CoroutineDispatcher, in <lambda>()
134 backgroundScope = CoroutineScope(SupervisorJob() + dispatcher) in <lambda>()
154 @Background dispatcher: CoroutineDispatcher, in <lambda>()
168 /* dispatcher= */ dispatcher, in <lambda>()
182 @Background dispatcher: CoroutineDispatcher, in <lambda>()
198 dispatcher, in <lambda>()
254 @Main dispatcher: CoroutineDispatcher, in <lambda>()
262 mainScope = CoroutineScope(SupervisorJob() + dispatcher) in <lambda>()
331 @Background dispatcher: CoroutineDispatcher, in <lambda>()
342 UserMonitor(context, configurationManager.configuration, scope, dispatcher, handle) in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DImagePreviewImageLoaderTest.kt71 private val dispatcher = UnconfinedTestDispatcher(scheduler) constant
72 private val scope = TestScope(dispatcher)
75 dispatcher,
114 val dispatcher = StandardTestDispatcher(scheduler) in invoke_overlappedRequests_Deduplicate() constant
117 dispatcher, in invoke_overlappedRequests_Deduplicate()
171 val dispatcher = StandardTestDispatcher(scheduler) in invoke_imageLoaderScopeClosedMidflight_throwsCancellationException() constant
172 val imageLoaderScope = CoroutineScope(coroutineContext + dispatcher) in invoke_imageLoaderScopeClosedMidflight_throwsCancellationException()
191 val dispatcher = StandardTestDispatcher(scheduler) in invoke_multipleCallsWithDifferentCacheInstructions_cachingPrevails() constant
192 val imageLoaderScope = CoroutineScope(coroutineContext + dispatcher) in invoke_multipleCallsWithDifferentCacheInstructions_cachingPrevails()
240 CoroutineScope(coroutineContext + dispatcher), in invoke_semaphoreGuardsContentResolverCalls()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/util/
DTestKosmos.kt28 dispatcher: TestDispatcher = StandardTestDispatcher(), in runTest()
32 backgroundDispatcher = dispatcher in runTest()
33 kotlinx.coroutines.test.runTest(dispatcher) { KosmosTestScope(kosmos, this).block() } in runTest()
37 dispatcher: TestDispatcher = StandardTestDispatcher(), in runKosmosTest()
40 Kosmos().runTest(dispatcher, block) in runKosmosTest()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/
DMockWebServerRule.java121 Dispatcher dispatcher = in startMockWebServer() local
128 return startMockWebServer(dispatcher); in startMockWebServer()
137 public MockWebServer startMockWebServer(Dispatcher dispatcher) throws Exception { in startMockWebServer() argument
142 mMockWebServer.setDispatcher(dispatcher); in startMockWebServer()
165 ScenarioDispatcher dispatcher = in startMockWebServer() local
173 mMockWebServer.setDispatcher(dispatcher); in startMockWebServer()
174 return dispatcher; in startMockWebServer()
185 public MockWebServer startCreatedMockWebServer(Dispatcher dispatcher) throws Exception { in startCreatedMockWebServer() argument
190 mMockWebServer.setDispatcher(dispatcher); in startCreatedMockWebServer()
/packages/modules/Bluetooth/system/gd/rust/topshim/macros/src/
Dlib.rs12 dispatcher: Type, field
21 let dispatcher: Type = input.parse()?; in parse() localVariable
68 Ok(CbVariant { dispatcher, fn_pair: (name, rpath), arg_pairs, stmts }) in parse()
97 let dispatcher = parsed_cptr.dispatcher; in cb_variant() localVariable
125 let dispatcher_str = quote!(#dispatcher).to_string(); in cb_variant()
133 .get::<#dispatcher>() in cb_variant()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/data/
DDataServiceImpl.kt74 private val dispatcher: CoroutineDispatcher, in <lambda>() constant in com.android.photopicker.data.DataServiceImpl
173 scope.launch(dispatcher) { in <lambda>()
200 scope.launch(dispatcher) { in <lambda>()
210 scope.launch(dispatcher) { in <lambda>()
244 scope.launch(dispatcher) { in <lambda>()
260 scope.launch(dispatcher) { in <lambda>()
280 scope.launch(dispatcher) { in <lambda>()
397 dispatcher, in <lambda>()
423 dispatcher, in <lambda>()
451 dispatcher, in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/shortcuts/
DShortcutLoaderTest.kt81 private val dispatcher = UnconfinedTestDispatcher(scheduler) constant
82 private val scope = TestScope(dispatcher)
103 dispatcher, in test_loadShortcutsWithAppPredictor_resultIntegrity()
172 dispatcher, in test_loadShortcutsWithShortcutManager_resultIntegrity()
225 dispatcher, in test_appPredictorReturnsEmptyList_fallbackToShortcutManager()
286 dispatcher, in test_appPredictor_requestPredictionUpdateFailure_fallbackToShortcutManager()
329 dispatcher, in test_ShortcutLoader_shortcutsRequestedIndependentlyFromAppTargets()
359 dispatcher, in test_ShortcutLoader_noResultsWithoutAppTargets()
387 dispatcher, in test_OnScopeCancellation_unsubscribeFromAppPredictor()
410 dispatcher, in test_nullIntentFilterNoAppAppPredictorResults_returnEmptyResult()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/user/data/repository/v31/
DUserRepository.kt64 private val dispatcher: CoroutineDispatcher = Dispatchers.Default, constant
69 withContext(dispatcher) { userManager.userProfiles.map { it.identifier } } in getUserProfilesIncludingCurrentUser()
73 withContext(dispatcher) { in shouldShowInQuietMode()
79 withContext(dispatcher) { userManager.isQuietModeEnabled(UserHandle.of(userId)) } in isQuietModeEnabled()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/configuration/
DConfigurationManagerTest.kt62 dispatcher = StandardTestDispatcher(this.testScheduler), in testEmitsConfiguration()
88 dispatcher = StandardTestDispatcher(this.testScheduler), in testConfigurationEmitsFlagChanges()
132 dispatcher = StandardTestDispatcher(this.testScheduler), in testConfigurationChangesAreBatched()
192 dispatcher = StandardTestDispatcher(this.testScheduler), in testSetIntentUpdatesConfiguration()
229 dispatcher = StandardTestDispatcher(this.testScheduler), in testSetIntentSetsSelectionLimit()
268 dispatcher = StandardTestDispatcher(this.testScheduler), in testSetIntentSetsSelectionLimitThrowsOnIllegalConfiguration()
312 dispatcher = StandardTestDispatcher(this.testScheduler), in testSetIntentSetsSelectionLimitThrowsOnIllegalRange()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/widget/
DBatchPreviewLoaderTest.kt48 private val dispatcher = UnconfinedTestDispatcher() in <lambda>() constant in com.android.intentresolver.widget.BatchPreviewLoaderTest
49 private val testScope = CoroutineScope(dispatcher) in <lambda>()
55 Dispatchers.setMain(dispatcher) in <lambda>()
79 dispatcher.scheduler.advanceUntilIdle() in <lambda>()
102 dispatcher.scheduler.advanceUntilIdle() in <lambda>()
127 dispatcher.scheduler.advanceUntilIdle() in <lambda>()
156 dispatcher.scheduler.advanceUntilIdle() in <lambda>()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/utils/
DMockWebServerRule.java116 Dispatcher dispatcher = in startMockWebServer() local
123 return startMockWebServer(dispatcher); in startMockWebServer()
126 public MockWebServer startMockWebServer(Dispatcher dispatcher) throws Exception { in startMockWebServer() argument
135 mMockWebServer.setDispatcher(dispatcher); in startMockWebServer()
153 public MockWebServer startCreatedMockWebServer(Dispatcher dispatcher) throws Exception { in startCreatedMockWebServer() argument
158 mMockWebServer.setDispatcher(dispatcher); in startCreatedMockWebServer()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/allapps/
DTaskbarAllAppsSlideInView.java199 OnBackInvokedDispatcher dispatcher = findOnBackInvokedDispatcher(); in onAttachedToWindow() local
200 if (dispatcher != null) { in onAttachedToWindow()
201 dispatcher.registerOnBackInvokedCallback( in onAttachedToWindow()
214 OnBackInvokedDispatcher dispatcher = findOnBackInvokedDispatcher(); in onDetachedFromWindow() local
215 if (dispatcher != null) { in onDetachedFromWindow()
216 dispatcher.unregisterOnBackInvokedCallback(this); in onDetachedFromWindow()
/packages/apps/AvatarPicker/src/main/java/com/android/avatarpicker/domain/
DGroupedSelectableItemsUseCaseImpl.kt31 private val dispatcher: CoroutineDispatcher = Dispatchers.Default in <lambda>() constant in com.android.avatarpicker.domain.GroupedSelectableItemsUseCaseImpl
33 override suspend operator fun invoke(): List<List<SelectableType>> = withContext(dispatcher) { in <lambda>()
50 override suspend fun description() = withContext(dispatcher) { null } in <lambda>()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/
DDataServiceImplTest.kt114 dispatcher = StandardTestDispatcher(this.testScheduler), in <lambda>()
143 dispatcher = StandardTestDispatcher(this.testScheduler), in <lambda>()
172 dispatcher = StandardTestDispatcher(this.testScheduler), in <lambda>()
222 dispatcher = StandardTestDispatcher(this.testScheduler), in <lambda>()
266 dispatcher = StandardTestDispatcher(this.testScheduler), in <lambda>()
341 dispatcher = StandardTestDispatcher(this.testScheduler), in <lambda>()
442 dispatcher = StandardTestDispatcher(this.testScheduler), in <lambda>()
494 dispatcher = StandardTestDispatcher(this.testScheduler), in <lambda>()
547 dispatcher = StandardTestDispatcher(this.testScheduler), in testAlbumMediaPagingSourceCacheUpdates()
617 dispatcher = StandardTestDispatcher(this.testScheduler), in <lambda>()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/
DPreviewViewModel.kt40 @Background private val dispatcher: CoroutineDispatcher = Dispatchers.IO, constant in com.android.intentresolver.contentpreview.PreviewViewModel
49 viewModelScope + dispatcher, in <lambda>()
59 viewModelScope + dispatcher, in <lambda>()

12345