Home
last modified time | relevance | path

Searched refs:coroutineScope (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppSettingsPreference.kt49 val coroutineScope = rememberCoroutineScope() in AppSettingsPreference() constant
50 val presenter = remember(app) { AppSettingsPresenter(context, app, coroutineScope) } in AppSettingsPreference()
62 private val coroutineScope: CoroutineScope, constant in com.android.settings.spa.app.appinfo.AppSettingsPresenter
68 }.shareIn(coroutineScope + Dispatchers.IO, SharingStarted.WhileSubscribed(), 1) in <lambda>()
73 coroutineScope.launch { in startActivity()
DAppAllServicesPreference.kt52 val coroutineScope = rememberCoroutineScope() in <lambda>() constant
53 val presenter = remember { AppAllServicesPresenter(context, app, coroutineScope) } in <lambda>()
69 private val coroutineScope: CoroutineScope, constant in com.android.settings.spa.app.appinfo.AppAllServicesPresenter
79 }.shareIn(coroutineScope + Dispatchers.IO, SharingStarted.WhileSubscribed(), 1) in <lambda>()
104 coroutineScope.launch { in startActivity()
DPackageInfoPresenter.kt64 private val coroutineScope: CoroutineScope, in <lambda>() constant in com.android.settings.spa.app.appinfo.PackageInfoPresenter
99 .stateIn(coroutineScope + Dispatchers.Default, SharingStarted.Eagerly, null) in <lambda>()
122 coroutineScope.launch(Dispatchers.IO) { in <lambda>()
132 coroutineScope.launch(Dispatchers.IO) { in <lambda>()
148 coroutineScope.launch(Dispatchers.IO) { in <lambda>()
156 coroutineScope.launch(Dispatchers.Default) { in <lambda>()
DAppInstallerInfoPreference.kt51 val coroutineScope = rememberCoroutineScope() in <lambda>() constant
52 val presenter = remember { AppInstallerInfoPresenter(context, app, coroutineScope) } in <lambda>()
71 private val coroutineScope: CoroutineScope, constant in com.android.settings.spa.app.appinfo.AppInstallerInfoPresenter
130 coroutineScope.launch { in startActivity()
140 shareIn(coroutineScope, SharingStarted.WhileSubscribed(), 1)
DAppDataUsagePreference.kt61 val coroutineScope = rememberCoroutineScope() constant
63 AppDataUsagePresenter(context, app, coroutineScope, networkTemplates, repositoryFactory) in <lambda>()
85 coroutineScope: CoroutineScope,
104 }.shareIn(coroutineScope, SharingStarted.WhileSubscribed(), 1) in isEnabled()
DAppRestoreButton.kt55 private lateinit var coroutineScope: CoroutineScope in <lambda>() variable
77 coroutineScope = rememberCoroutineScope() in <lambda>()
118 updateButtonTextJob = coroutineScope.launch { in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/viewmodel/
DWallpaperQuickSwitchViewModel.kt40 private val coroutineScope: CoroutineScope, in <lambda>() constant in com.android.wallpaper.picker.customization.ui.viewmodel.WallpaperQuickSwitchViewModel
48 scope = coroutineScope, in <lambda>()
56 scope = coroutineScope, in <lambda>()
141 coroutineScope.launch { in <lambda>()
159 scope = coroutineScope, in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/rotaryinput/
DRotary.kt360 coroutineScope: CoroutineScope, in handleScrollEvent()
729 coroutineScope: CoroutineScope, in handleScrollEvent()
758 scrollJob = coroutineScope.async { scrollBehavior.handleEvent(rotaryScrollDistance) } in handleScrollEvent()
763 coroutineScope.async { in handleScrollEvent()
810 coroutineScope: CoroutineScope, in handleScrollEvent()
831 scrollJob = coroutineScope.async { scrollBehavior.handleEvent(rotaryScrollDistance) } in handleScrollEvent()
834 coroutineScope.async { in handleScrollEvent()
889 coroutineScope: CoroutineScope, in handleScrollEvent()
957 coroutineScope.async { in handleScrollEvent()
972 coroutineScope.async { in handleScrollEvent()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DBluetoothWiFiResetPreferenceController.kt57 val coroutineScope = rememberCoroutineScope() in getAvailabilityStatus() constant
61 ) { reset(coroutineScope) }, in getAvailabilityStatus()
80 private fun reset(coroutineScope: CoroutineScope) { in reset()
86 coroutineScope.launch { in reset()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimEidPreferenceController.kt53 private var coroutineScope: CoroutineScope? = null variable
76 coroutineScope = viewLifecycleOwner.lifecycleScope in onViewCreated()
77 coroutineScope?.launch { in onViewCreated()
139 coroutineScope?.launch { updateDialog() } in handlePreferenceTreeClick()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/util/
DParallelIteration.kt21 import kotlinx.coroutines.coroutineScope in <lambda>()
42 coroutineScope { in mapParallel()
63 coroutineScope { in mapParallelIndexed()
DCancellationSignalUtils.kt22 import kotlinx.coroutines.coroutineScope
30 coroutineScope { in withCancellationSignal()
DFlow.kt22 import kotlinx.coroutines.coroutineScope
56 coroutineScope { in <lambda>()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/interactor/
DFetchPreviewsInteractor.kt31 import kotlinx.coroutines.coroutineScope in <lambda>()
45 suspend fun activate() = coroutineScope { in <lambda>()
57 cursorInteractor.launch(cursor.await() ?: return@coroutineScope, initialPreviewMap) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/viewmodel/v31/
DPermissionUsageViewModel.kt63 private val coroutineScope = scope ?: viewModelScope in <lambda>() constant
76 coroutineScope, in <lambda>()
83 permissionUsagesUiStateFlow.asLiveData(context = coroutineScope.coroutineContext) in <lambda>()
148 return runBlocking(coroutineScope.coroutineContext + Dispatchers.Default) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/
DAccessibilitySourceService.kt716 val coroutineScope = CoroutineScope(Dispatchers.Default + SupervisorJob()) in onReceive() constant
717 coroutineScope.launch(Dispatchers.Default) { in onReceive()
733 val coroutineScope = CoroutineScope(Dispatchers.Default + SupervisorJob()) in onReceive() constant
734 coroutineScope.launch(Dispatchers.Default) { in onReceive()
760 val coroutineScope = CoroutineScope(Dispatchers.Default + SupervisorJob()) in onReceive() constant
761 coroutineScope.launch(Dispatchers.Default) { in onReceive()
816 val coroutineScope = CoroutineScope(Dispatchers.Default + SupervisorJob()) in onReceive() constant
817 coroutineScope.launch(Dispatchers.Default) { in onReceive()
906 val coroutineScope = CoroutineScope(Dispatchers.Default + SupervisorJob()) in onStartJob() constant
908 coroutineScope.launch(Dispatchers.Default) { in onStartJob()
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkEidPreferenceController.kt62 private var coroutineScope: CoroutineScope? = null in <lambda>() variable
97 coroutineScope = viewLifecycleOwner.lifecycleScope in <lambda>()
107 coroutineScope?.launch { in <lambda>()
136 coroutineScope?.launch { updateDialog() } in <lambda>()
DTelephonyStatusControlSession.kt20 import androidx.lifecycle.coroutineScope
43 job = lifecycle.coroutineScope.launch(Dispatchers.Default) { in <lambda>()
DNrAdvancedCallingPreferenceController.kt63 val coroutineScope = rememberCoroutineScope() in <lambda>() constant
70 coroutineScope.launch { in <lambda>()
DMobileNetworkSwitchController.kt60 val coroutineScope = rememberCoroutineScope() in <lambda>() constant
66 coroutineScope.launch { in <lambda>()
/packages/apps/Settings/src/com/android/settings/spa/network/
DNetworkCellularGroupProvider.kt221 val coroutineScope = rememberCoroutineScope() in MobileDataSectionImpl() constant
226 coroutineScope.launch { in MobileDataSectionImpl()
257 coroutineScope: CoroutineScope = rememberCoroutineScope(), in PrimarySimImpl()
261 coroutineScope.launch { in PrimarySimImpl()
267 coroutineScope.launch { in <lambda>()
272 coroutineScope.launch { in <lambda>()
DMobileDataSwitchingPreference.kt36 val coroutineScope = rememberCoroutineScope() in <lambda>() constant
43 coroutineScope.launch(Dispatchers.Default) { in <lambda>()
DAutomaticDataSwitchingPreference.kt38 val coroutineScope = rememberCoroutineScope() in <lambda>() constant
46 coroutineScope.launch(Dispatchers.Default) { in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DImagePreviewImageLoaderTest.kt40 import kotlinx.coroutines.coroutineScope
122 coroutineScope { in invoke_overlappedRequests_Deduplicate()
180 coroutineScope { in invoke_imageLoaderScopeClosedMidflight_throwsCancellationException()
200 coroutineScope { in invoke_multipleCallsWithDifferentCacheInstructions_cachingPrevails()
325 coroutineScope { in invoke_multipleSimultaneousCalls_limitOnNumberOfSimultaneousOutgoingCallsIsRespected()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/shortcuts/
DScopedAppTargetListCallback.kt23 import androidx.lifecycle.coroutineScope
43 ) : this((context as? LifecycleOwner)?.lifecycle?.coroutineScope, callback)

12