/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/ui/ |
D | LegacyUserUiHelper.kt | 39 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/ |
D | BaseUserSwitcherAdapterTest.kt | 62 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 …]
|
D | KeyguardUserSwitcherAdapterTest.kt | 186 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/ |
D | LegacyUserDataHelper.kt | 48 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/ |
D | UserCreatingDialog.java | 37 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/ |
D | UserRecord.kt | 31 @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/ |
D | UserSwitcherInteractorTest.kt | 249 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 …]
|
D | GuestUserInteractorTest.kt | 155 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/ |
D | UserSwitcherInteractor.kt | 200 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 …]
|
D | GuestUserInteractor.kt | 138 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/ |
D | UserSwitcherViewModel.kt | 138 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/ |
D | UserRepositoryImplTest.kt | 163 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/ |
D | MultiUserActionsEventHelper.kt | 25 if (userInfo.isGuest) return MultiUserActionsEvent.SWITCH_TO_GUEST_FROM_USER_SWITCHER in userSwitchMetric()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/shared/model/ |
D | UserModel.kt | 36 val isGuest: Boolean, constant in com.android.systemui.user.shared.model.UserModel
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserInfoControllerImpl.java | 137 final boolean isGuest = userInfo.isGuest(); in queryForUserInformation() 164 isGuest? UserHandle.USER_NULL : userId, in queryForUserInformation()
|
D | BaseUserSwitcherAdapter.kt | 110 item.isGuest, in getIconDrawable()
|
D | KeyguardUserSwitcherController.java | 524 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/ |
D | UserSwitcherRepository.kt | 127 combine(currentUserName, currentUserInfo) { name, (icon, isGuest) -> in enabled() method 128 UserSwitcherStatusModel.Enabled(name, icon, isGuest) in enabled()
|
D | UserRepository.kt | 217 if (!it.userInfo.isGuest) { in refreshUsers() 238 .sortedBy { it.isGuest } in refreshUsers()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/model/ |
D | ShowDialogRequestModel.kt | 37 val isGuest: Boolean, constant in com.android.systemui.user.domain.model.ShowDialogRequestModel.ShowUserCreationDialog
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | UserInfoTest.java | 41 assertThat(ui.isGuest()).isEqualTo(true); in testSimple()
|
/frameworks/base/core/java/android/content/pm/ |
D | UserInfo.java | 375 public boolean isGuest() { in isGuest() method in UserInfo 486 if (isProfile() || isGuest() || isRestricted()) { in canHaveProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | GuestSessionNotification.java | 62 if (!userInfo.isGuest()) { in createPersistentNotification()
|
D | GuestResumeSessionReceiver.java | 73 if (!currentUser.isGuest()) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/dialog/ |
D | UserSwitcherDialogCoordinator.kt | 96 request.isGuest, in <lambda>()
|