Home
last modified time | relevance | path

Searched refs:mUserCapabilities (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/src/com/android/settings/users/
DMultiUserSwitchBarController.java44 private final UserCapabilities mUserCapabilities; field in MultiUserSwitchBarController
53 mUserCapabilities = UserCapabilities.create(context); in MultiUserSwitchBarController()
54 mSwitchBar.setChecked(mUserCapabilities.mUserSwitcherEnabled); in MultiUserSwitchBarController()
56 if (mUserCapabilities.mDisallowSwitchUser) { in MultiUserSwitchBarController()
61 } else if (mUserCapabilities.mDisallowAddUser) { in MultiUserSwitchBarController()
66 mSwitchBar.setEnabled(mUserCapabilities.mIsMain); in MultiUserSwitchBarController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java143 private UserCapabilities mUserCapabilities; field in UserSettingsTest
150 mUserCapabilities = UserCapabilities.create(mContext); in setUp()
151 mUserCapabilities.mUserSwitcherEnabled = true; in setUp()
161 ReflectionHelpers.setField(mFragment, "mUserCaps", mUserCapabilities); in setUp()
253 mUserCapabilities.mIsGuest = true; in testExitGuest_ShouldLogAction()
261 mUserCapabilities.mIsGuest = false; in testExitGuestWhenNotGuest_ShouldNotLogAction()
285 mUserCapabilities.mIsAdmin = false; in withDisallowRemoveUser_ShouldDisableRemoveUser()
310 mUserCapabilities.mIsAdmin = false; in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser()
332 mUserCapabilities.mCanAddUser = true; in updateUserList_canAddUserAndSwitchUser_shouldShowAddUser()
349 mUserCapabilities.mCanAddGuest = true; in updateUserList_canAddGuestAndSwitchUser_shouldShowAddGuest()
[all …]
DUserDetailsSettingsTest.java120 private UserCapabilities mUserCapabilities; field in UserDetailsSettingsTest
133 mUserCapabilities = UserCapabilities.create(mContext); in setUp()
134 mUserCapabilities.mUserSwitcherEnabled = true; in setUp()
145 ReflectionHelpers.setField(mFragment, "mUserCaps", mUserCapabilities); in setUp()
455 mUserCapabilities.mDisallowSwitchUser = true; in initialize_switchUserDisallowed_shouldSetAdminDisabledOnSwitchPreference()
470 mUserCapabilities.mDisallowSwitchUser = false; in initialize_switchUserAllowed_shouldSetSwitchPreferenceEnabled()