Home
last modified time | relevance | path

Searched refs:mDisallowSwitchUser (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/users/
DUserCapabilities.java43 boolean mDisallowSwitchUser; field in UserCapabilities
101 mDisallowSwitchUser = userManager.hasUserRestriction(UserManager.DISALLOW_USER_SWITCH); in updateAddUserCapabilities()
132 ", mDisallowSwitchUser=" + mDisallowSwitchUser + in toString()
DMultiUserSwitchBarController.java56 if (mUserCapabilities.mDisallowSwitchUser) { in MultiUserSwitchBarController()
DUserSettings.java1224 isCurrentUserAdmin() || (canSwitchUserNow() && !mUserCaps.mDisallowSwitchUser);
1260 pref.setEnabled(!mUserCaps.mDisallowSwitchUser && canSwitchUserNow());
1396 isCurrentUserAdmin() || (canSwitchUserNow() && !mUserCaps.mDisallowSwitchUser);
1420 if (mUserCaps.mDisallowSwitchUser) {
DUserDetailsSettings.java357 if (mUserCaps.mDisallowSwitchUser) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserCapabilitiesTest.java69 assertThat(userCapabilities.mDisallowSwitchUser).isTrue(); in disallowUserSwitch_restrictionIsSet_true()
80 assertThat(userCapabilities.mDisallowSwitchUser).isFalse(); in disallowUserSwitch_restrictionIsNotSet_false()
DUserDetailsSettingsTest.java455 mUserCapabilities.mDisallowSwitchUser = true; in initialize_switchUserDisallowed_shouldSetAdminDisabledOnSwitchPreference()
470 mUserCapabilities.mDisallowSwitchUser = false; in initialize_switchUserAllowed_shouldSetSwitchPreferenceEnabled()
DUserSettingsTest.java615 mUserCapabilities.mDisallowSwitchUser = false; in updateUserList_uninitializedRestrictedUser_shouldAddUserPreference()
640 mUserCapabilities.mDisallowSwitchUser = false; in updateUserList_uninitializedUserAndCanNotSwitchUser_shouldDisablePref()