Home
last modified time | relevance | path

Searched refs:isGuest (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/ui/
DLegacyUserUiHelper.kt39 isGuest: Boolean, in getUserSwitcherActionIconResourceId()
48 } else if (isGuest) { in getUserSwitcherActionIconResourceId()
74 isGuest = record.isGuest, in getUserRecordName()
94 record.isGuest && record.isCurrent -> in getGuestUserRecordNameResourceId()
96 record.isGuest && record.info != null -> com.android.internal.R.string.guest_name in getGuestUserRecordNameResourceId()
104 isGuest: Boolean, in getUserSwitcherActionTextResourceId()
112 check(isGuest || isAddUser || isAddSupervisedUser || isManageUsers) in getUserSwitcherActionTextResourceId()
115 isGuest && isGuestUserAutoCreated && isGuestUserResetting -> in getUserSwitcherActionTextResourceId()
117 isGuest && isTablet -> com.android.settingslib.R.string.guest_new_guest in getUserSwitcherActionTextResourceId()
118 isGuest && isGuestUserAutoCreated -> com.android.internal.R.string.guest_name in getUserSwitcherActionTextResourceId()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBaseUserSwitcherAdapterTest.kt62 isGuest = false, in <lambda>()
68 isGuest = false, in <lambda>()
74 isGuest = true, in <lambda>()
113 isGuest = false, in <lambda>()
120 isGuest = false, in <lambda>()
127 isGuest = true, in <lambda>()
144 isGuest = false, in <lambda>()
151 isGuest = false, in <lambda>()
158 isGuest = true, in <lambda>()
224 isGuest = true, in <lambda>()
[all …]
DKeyguardUserSwitcherAdapterTest.kt186 assertTrue("Expected guest user to remain in position 2", adapter.getItem(2).isGuest) in testCurrentUserIsAlwaysFirst()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/data/
DLegacyUserDataHelper.kt48 val isGuest = userInfo.isGuest in createRecord() constant
58 isGuest = isGuest, in createRecord()
60 isSwitchToEnabled = canSwitchUsers || (isCurrent && !isGuest), in createRecord()
74 isGuest = actionType == UserActionModel.ENTER_GUEST_MODE, in createRecord()
95 record.isGuest -> UserActionModel.ENTER_GUEST_MODE in toUserActionModel()
137 if (userInfo.isGuest) { in getPicture()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DUserCreatingDialog.java37 public UserCreatingDialog(Context context, boolean isGuest) { in UserCreatingDialog() argument
42 inflateContent(isGuest); in UserCreatingDialog()
51 private void inflateContent(boolean isGuest) { in inflateContent() argument
56 String message = getContext().getString(isGuest in inflateContent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/source/
DUserRecord.kt31 @JvmField val isGuest: Boolean = false, constant in com.android.systemui.user.data.source.UserRecord
64 return if (isGuest || info == null) { in resolveId()
82 return UserRecord(isGuest = true) in createForGuest()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DUserSwitcherInteractorTest.kt249 val guestUserInfo = createUserInfo(id = 1337, name = "guest", isGuest = true) in <lambda>()
252 underTest.onRecordSelected(UserRecord(isGuest = true), dialogShower) in <lambda>()
414 assertThat(userInfos[1].isGuest).isTrue() in <lambda>()
549 val guestUserInfo = createUserInfo(id = 1337, name = "guest", isGuest = true) in <lambda>()
575 ShowDialogRequestModel.ShowUserCreationDialog(isGuest = true), in <lambda>()
587 assertThat(guestUserInfo.isGuest).isTrue() in <lambda>()
610 assertThat(guestUserInfo.isGuest).isTrue() in <lambda>()
858 assertThat(res()?.find { it.isGuest }).isNotNull() in <lambda>()
885 assertThat(underTest.userRecords.value.find { it.isGuest }).isNull() in <lambda>()
925 .isEqualTo(ShowDialogRequestModel.ShowUserCreationDialog(isGuest = true)) in <lambda>()
[all …]
DGuestUserInteractorTest.kt155 verify(showDialog).invoke(ShowDialogRequestModel.ShowUserCreationDialog(isGuest = true)) in createAndSwitchTo()
172 verify(showDialog).invoke(ShowDialogRequestModel.ShowUserCreationDialog(isGuest = true)) in createAndSwitchTo_failsToCreate_doesNotSwitchTo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DUserSwitcherInteractor.kt200 val hasGuestUser = userInfos.any { it.isGuest } in <lambda>()
425 newlySelectedUserId == currentlySelectedUserInfo.id && currentlySelectedUserInfo.isGuest in <lambda>()
442 if (currentlySelectedUserInfo.isGuest) { in <lambda>()
698 .sortedBy { it.isGuest } in <lambda>()
725 userInfo.isGuest || userInfo.supportsSwitchToByUser() -> in <lambda>()
739 return if (userInfo.isGuest) { in <lambda>()
745 isGuest = true, in <lambda>()
750 isGuest = true, in <lambda>()
758 isGuest = false, in <lambda>()
763 isGuest = false, in <lambda>()
[all …]
DGuestUserInteractor.kt138 if (!currentUserInfo.isGuest) { in <lambda>()
204 if (!currentUser.isGuest) { in <lambda>()
275 showDialog(ShowDialogRequestModel.ShowUserCreationDialog(isGuest = true)) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/viewmodel/
DUserSwitcherViewModel.kt138 if (model.isGuest && model.isSelected) { in <lambda>()
164 isGuest = model == UserActionModel.ENTER_GUEST_MODE, in <lambda>()
170 isGuest = model == UserActionModel.ENTER_GUEST_MODE, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/data/repository/
DUserRepositoryImplTest.kt163 assertThat(selectedUserInfo?.isGuest).isTrue() in <lambda>()
202 isGuest = isLastGuestUser && index == count - 1, in <lambda>()
264 isGuest: Boolean, in <lambda>()
272 if (isGuest) UserManager.USER_TYPE_FULL_GUEST else UserInfo.getDefaultUserType(flags), in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/utils/
DMultiUserActionsEventHelper.kt25 if (userInfo.isGuest) return MultiUserActionsEvent.SWITCH_TO_GUEST_FROM_USER_SWITCHER in userSwitchMetric()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/shared/model/
DUserModel.kt36 val isGuest: Boolean, constant in com.android.systemui.user.shared.model.UserModel
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserInfoControllerImpl.java137 final boolean isGuest = userInfo.isGuest(); in queryForUserInformation()
164 isGuest? UserHandle.USER_NULL : userId, in queryForUserInformation()
DBaseUserSwitcherAdapter.kt110 item.isGuest, in getIconDrawable()
DKeyguardUserSwitcherController.java524 if (item.isCurrent && item.isGuest) { in getDrawable()
552 if (!user.isCurrent || user.isGuest) { in onClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/repository/
DUserSwitcherRepository.kt127 combine(currentUserName, currentUserInfo) { name, (icon, isGuest) -> in enabled() method
128 UserSwitcherStatusModel.Enabled(name, icon, isGuest) in enabled()
DUserRepository.kt217 if (!it.userInfo.isGuest) { in refreshUsers()
238 .sortedBy { it.isGuest } in refreshUsers()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/model/
DShowDialogRequestModel.kt37 val isGuest: Boolean, constant in com.android.systemui.user.domain.model.ShowDialogRequestModel.ShowUserCreationDialog
/frameworks/base/core/tests/coretests/src/android/content/pm/
DUserInfoTest.java41 assertThat(ui.isGuest()).isEqualTo(true); in testSimple()
/frameworks/base/core/java/android/content/pm/
DUserInfo.java375 public boolean isGuest() { in isGuest() method in UserInfo
486 if (isProfile() || isGuest() || isRestricted()) { in canHaveProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestSessionNotification.java62 if (!userInfo.isGuest()) { in createPersistentNotification()
DGuestResumeSessionReceiver.java73 if (!currentUser.isGuest()) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/dialog/
DUserSwitcherDialogCoordinator.kt96 request.isGuest, in <lambda>()

12