Searched refs:mDisallowSwitchUser (Results 1 – 7 of 7) sorted by relevance
43 boolean mDisallowSwitchUser; field in UserCapabilities101 mDisallowSwitchUser = userManager.hasUserRestriction(UserManager.DISALLOW_USER_SWITCH); in updateAddUserCapabilities()132 ", mDisallowSwitchUser=" + mDisallowSwitchUser + in toString()
56 if (mUserCapabilities.mDisallowSwitchUser) { in MultiUserSwitchBarController()
1224 isCurrentUserAdmin() || (canSwitchUserNow() && !mUserCaps.mDisallowSwitchUser);1260 pref.setEnabled(!mUserCaps.mDisallowSwitchUser && canSwitchUserNow());1396 isCurrentUserAdmin() || (canSwitchUserNow() && !mUserCaps.mDisallowSwitchUser);1420 if (mUserCaps.mDisallowSwitchUser) {
357 if (mUserCaps.mDisallowSwitchUser) {
69 assertThat(userCapabilities.mDisallowSwitchUser).isTrue(); in disallowUserSwitch_restrictionIsSet_true()80 assertThat(userCapabilities.mDisallowSwitchUser).isFalse(); in disallowUserSwitch_restrictionIsNotSet_false()
455 mUserCapabilities.mDisallowSwitchUser = true; in initialize_switchUserDisallowed_shouldSetAdminDisabledOnSwitchPreference()470 mUserCapabilities.mDisallowSwitchUser = false; in initialize_switchUserAllowed_shouldSetSwitchPreferenceEnabled()
615 mUserCapabilities.mDisallowSwitchUser = false; in updateUserList_uninitializedRestrictedUser_shouldAddUserPreference()640 mUserCapabilities.mDisallowSwitchUser = false; in updateUserList_uninitializedUserAndCanNotSwitchUser_shouldDisablePref()