Home
last modified time | relevance | path

Searched refs:userMonitor (Results 1 – 9 of 9) sorted by relevance

/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/user/
DUserMonitorTest.kt91 private lateinit var userMonitor: UserMonitor in <lambda>() variable in com.android.photopicker.core.user.UserMonitorTest
170 userMonitor = in <lambda>()
183 val reportedStatus = userMonitor.userStatus.first() in <lambda>()
208 userMonitor = in <lambda>()
221 val reportedStatus = userMonitor.userStatus.first() in <lambda>()
251 userMonitor = in <lambda>()
264 val reportedStatus = userMonitor.userStatus.first() in <lambda>()
276 userMonitor = in <lambda>()
289 val reportedStatus = userMonitor.userStatus.first() in <lambda>()
305 userMonitor = in <lambda>()
[all …]
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/profileselector/
DProfileSelectorViewModel.kt48 private val userMonitor: UserMonitor, constant in com.android.photopicker.features.profileselector.ProfileSelectorViewModel
65 userMonitor.userStatus
70 initialValue = userMonitor.userStatus.value.allProfiles
75 userMonitor.userStatus
80 initialValue = userMonitor.userStatus.value.activeUserProfile
92 val result = userMonitor.requestSwitchActiveUserProfile(requested, context) in requestSwitchUser()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/inject/
DEmbeddedServiceModule.kt82 private lateinit var userMonitor: UserMonitor in <lambda>() variable in com.android.photopicker.core.EmbeddedServiceModule
101 userMonitor: Lazy<UserMonitor>, in <lambda>()
117 userMonitor, in <lambda>()
183 userMonitor: UserMonitor, in <lambda>()
196 userMonitor.userStatus, in <lambda>()
334 if (::userMonitor.isInitialized) { in <lambda>()
335 return userMonitor in <lambda>()
341 userMonitor = in <lambda>()
343 return userMonitor in <lambda>()
DActivityModule.kt80 private lateinit var userMonitor: UserMonitor variable in com.android.photopicker.core.ActivityModule
140 @ActivityRetainedScoped userMonitor: UserMonitor, in provideDataService()
152 userMonitor.userStatus, in provideDataService()
291 if (::userMonitor.isInitialized) { in provideUserMonitor()
292 return userMonitor in provideUserMonitor()
298 userMonitor = in provideUserMonitor()
300 return userMonitor in provideUserMonitor()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/embedded/
DEmbeddedViewModelFactory.kt70 val userMonitor: Lazy<UserMonitor>, constant in com.android.photopicker.core.embedded.EmbeddedViewModelFactory
84 userMonitor.get() in create()
92 PreviewViewModel(null, selection.get(), userMonitor.get()) as T in create()
95 ProfileSelectorViewModel(null, selection.get(), userMonitor.get()) as T in create()
DSession.kt71 fun userMonitor(): Lazy<UserMonitor> in lifecycle() method
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/cloudmedia/
DMediaPreloaderViewModel.kt98 private val userMonitor: UserMonitor, constant in com.android.photopicker.features.cloudmedia.MediaPreloaderViewModel
139 userMonitor.userStatus.map { it.activeContentResolver }.distinctUntilChanged() in <lambda>()
272 userMonitor.userStatus.value.activeContentResolver in preloadMediaItem()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/preview/
DPreviewViewModel.kt67 private val userMonitor: UserMonitor, constant in com.android.photopicker.features.preview.PreviewViewModel
148 return userMonitor.userStatus.value.activeContentResolver in getContentResolverForCurrentUser()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/inject/
DPhotopickerTestModule.kt90 userMonitor: Lazy<UserMonitor>, in provideViewModelFactory()
102 userMonitor, in provideViewModelFactory()