Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/profileselector/
DProfileSelector.kt49 import com.android.photopicker.core.user.UserProfile
63 var disabledDialogProfile: UserProfile? by remember { mutableStateOf(null) } in ProfileSelector()
182 internal fun getLabelForProfile(profile: UserProfile): String { in getLabelForProfile()
184 UserProfile.ProfileType.PRIMARY -> in getLabelForProfile()
186 UserProfile.ProfileType.MANAGED -> in getLabelForProfile()
188 UserProfile.ProfileType.UNKNOWN -> in getLabelForProfile()
200 internal fun getIconForProfile(profile: UserProfile): ImageVector { in getIconForProfile()
202 UserProfile.ProfileType.PRIMARY -> Icons.Filled.AccountCircle in getIconForProfile()
203 UserProfile.ProfileType.MANAGED -> Icons.Filled.Work in getIconForProfile()
204 UserProfile.ProfileType.UNKNOWN -> Icons.Filled.Person in getIconForProfile()
DProfileUnavailableDialog.kt41 import com.android.photopicker.core.user.UserProfile
42 import com.android.photopicker.core.user.UserProfile.DisabledReason
43 import com.android.photopicker.core.user.UserProfile.DisabledReason.CROSS_PROFILE_NOT_ALLOWED
44 import com.android.photopicker.core.user.UserProfile.DisabledReason.QUIET_MODE
63 profile: UserProfile, in ProfileUnavailableDialog()
DProfileSelectorViewModel.kt27 import com.android.photopicker.core.user.UserProfile
64 val allProfiles: StateFlow<List<UserProfile>> =
74 val selectedProfile: StateFlow<UserProfile> =
90 fun requestSwitchUser(context: Context, requested: UserProfile) { in requestSwitchUser()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/user/
DUserMonitor.kt189 requested: UserProfile, in <lambda>()
194 val profile: UserProfile? = in <lambda>()
237 val newProfilesList: List<UserProfile> = in <lambda>()
365 private fun getUserProfileFromHandle(handle: UserHandle, context: Context): UserProfile { in <lambda>()
396 return UserProfile( in <lambda>()
403 isParentProfile -> UserProfile.ProfileType.PRIMARY in <lambda>()
404 isManaged -> UserProfile.ProfileType.MANAGED in <lambda>()
405 else -> UserProfile.ProfileType.UNKNOWN in <lambda>()
415 if (isQuietModeEnabled) add(UserProfile.DisabledReason.QUIET_MODE) in <lambda>()
417 add(UserProfile.DisabledReason.CROSS_PROFILE_NOT_ALLOWED) in <lambda>()
DUserStatus.kt30 val activeUserProfile: UserProfile,
31 val allProfiles: List<UserProfile>,
DUserProfile.kt30 data class UserProfile( dataClass
40 if (other !is UserProfile) return false in equals()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/user/
DUserMonitorTest.kt73 UserProfile( in <lambda>()
75 profileType = UserProfile.ProfileType.PRIMARY, in <lambda>()
82 UserProfile( in <lambda>()
84 profileType = UserProfile.ProfileType.MANAGED, in <lambda>()
502 disabledReasons = setOf(UserProfile.DisabledReason.QUIET_MODE) in <lambda>()
589 UserProfile(identifier = USER_ID_MANAGED), in <lambda>()
619 UserProfile( in <lambda>()
621 profileType = UserProfile.ProfileType.PRIMARY, in <lambda>()
625 UserProfile( in <lambda>()
627 profileType = UserProfile.ProfileType.PRIMARY, in <lambda>()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/profileselector/
DProfileSelectorViewModelTest.kt37 import com.android.photopicker.core.user.UserProfile
191 .isEqualTo(listOf(UserProfile.ProfileType.PRIMARY, UserProfile.ProfileType.MANAGED)) in testExposesUserProfileFlowsForUi()
195 .isEqualTo(UserProfile.ProfileType.PRIMARY) in testExposesUserProfileFlowsForUi()
237 it.profileType == UserProfile.ProfileType.MANAGED in testProfileSwitchClearsSelection()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/
DDataServiceImplTest.kt29 import com.android.photopicker.core.user.UserProfile
68 private val userProfilePrimary: UserProfile =
69 UserProfile(identifier = 0, profileType = UserProfile.ProfileType.PRIMARY)
70 private val userProfileManaged: UserProfile =
71 UserProfile(identifier = 10, profileType = UserProfile.ProfileType.MANAGED)