Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DAddProfilePreferenceControllerTest.java160 when(mUserManager.canAddMoreUsers()).thenReturn(true); in onCreate_userRestrictedByDpmFromAddingNewProfileAndNotInDemo_availableForViewing()
172 when(mUserManager.canAddMoreUsers()).thenReturn(true); in onCreate_addingNewProfileAndNotInDemo_availableForViewing_zoneWrite()
186 when(mUserManager.canAddMoreUsers()).thenReturn(true); in onCreate_addingNewProfileAndNotInDemo_availableForViewing_zoneRead()
200 when(mUserManager.canAddMoreUsers()).thenReturn(true); in onCreate_addingNewProfileAndNotInDemo_availableForViewing_zoneHidden()
272 when(mUserManager.canAddMoreUsers()).thenReturn(false); in testCallOnClick_profileLimitReached_showErrorDialog()
285 when(mUserManager.canAddMoreUsers()).thenReturn(true); in disabledClick_restrictedByDpm_dialog()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DAddProfilePreferenceController.java98 if (!mUserManager.canAddMoreUsers() in handlePreferenceClicked()
DAddProfileHandler.java199 } else if (!getUserManager(mContext).canAddMoreUsers()) { in runClickableWhileDisabled()
DProfileGridRecyclerView.java417 if (!mUserManager.canAddMoreUsers()) { in handleAddProfileClicked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java334 .when(mUserManager).canAddMoreUsers(eq(UserManager.USER_TYPE_FULL_SECONDARY)); in updateUserList_canAddUserAndSwitchUser_shouldShowAddUser()
351 .when(mUserManager).canAddMoreUsers(eq(UserManager.USER_TYPE_FULL_GUEST)); in updateUserList_canAddGuestAndSwitchUser_shouldShowAddGuest()
364 doReturn(true).when(mUserManager).canAddMoreUsers(anyString()); in updateUserList_cannotSwitchUser_shouldDisableAddUser()
380 doReturn(false).when(mUserManager).canAddMoreUsers(anyString()); in updateUserList_canNotAddMoreUsers_shouldDisableAddUserWithSummary()
398 .when(mUserManager).canAddMoreUsers(eq(UserManager.USER_TYPE_FULL_GUEST)); in updateUserList_cannotSwitchUser_shouldDisableAddGuest()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowUserManager.java86 protected static boolean canAddMoreUsers() { in canAddMoreUsers() method in ShadowUserManager
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java1454 && mUserManager.canAddMoreUsers(UserManager.USER_TYPE_FULL_GUEST)
1502 final boolean canAddMoreUsers =
1503 mUserManager.canAddMoreUsers(UserManager.USER_TYPE_FULL_SECONDARY)
1505 && mUserManager.canAddMoreUsers(UserManager.USER_TYPE_FULL_RESTRICTED));
1506 addUser.setEnabled(canAddMoreUsers && !mAddingUser && canSwitchUserNow());
1508 if (!canAddMoreUsers) {
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserGridRecyclerView.java345 if (!mUserManager.canAddMoreUsers()) { in handleAddUserClicked()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DProfileSwitcher.java249 if (!mUserManager.canAddMoreUsers()) { in createAddProfileRow()