Searched refs:canAddMoreUsers (Results 1 – 9 of 9) sorted by relevance
160 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()
98 if (!mUserManager.canAddMoreUsers() in handlePreferenceClicked()
199 } else if (!getUserManager(mContext).canAddMoreUsers()) { in runClickableWhileDisabled()
417 if (!mUserManager.canAddMoreUsers()) { in handleAddProfileClicked()
334 .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()
86 protected static boolean canAddMoreUsers() { in canAddMoreUsers() method in ShadowUserManager
1454 && 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) {
345 if (!mUserManager.canAddMoreUsers()) { in handleAddUserClicked()
249 if (!mUserManager.canAddMoreUsers()) { in createAddProfileRow()