Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java122 private UserCapabilities mUserCapabilities; field in UserSettingsTest
129 mUserCapabilities = UserCapabilities.create(mContext); in setUp()
130 mUserCapabilities.mUserSwitcherEnabled = true; in setUp()
138 ReflectionHelpers.setField(mFragment, "mUserCaps", mUserCapabilities); in setUp()
181 mUserCapabilities.mIsGuest = true; in testExitGuest_ShouldLogAction()
189 mUserCapabilities.mIsGuest = false; in testExitGuestWhenNotGuest_ShouldNotLogAction()
213 mUserCapabilities.mIsAdmin = false; in withDisallowRemoveUser_ShouldDisableRemoveUser()
238 mUserCapabilities.mIsAdmin = false; in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser()
260 mUserCapabilities.mCanAddUser = true; in updateUserList_canAddUserAndSwitchUser_shouldShowAddUser()
276 mUserCapabilities.mCanAddGuest = true; in updateUserList_canAddGuestAndSwitchUser_shouldShowAddGuest()
[all …]
DUserDetailsSettingsTest.java110 private UserCapabilities mUserCapabilities; field in UserDetailsSettingsTest
123 mUserCapabilities = UserCapabilities.create(mContext); in setUp()
124 mUserCapabilities.mUserSwitcherEnabled = true; in setUp()
135 ReflectionHelpers.setField(mFragment, "mUserCaps", mUserCapabilities); in setUp()
445 mUserCapabilities.mDisallowSwitchUser = true; in initialize_switchUserDisallowed_shouldSetAdminDisabledOnSwitchPreference()
460 mUserCapabilities.mDisallowSwitchUser = false; in initialize_switchUserAllowed_shouldSetSwitchPreferenceEnabled()
/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 mSwitchBar.setEnabled(!mUserCapabilities.mDisallowSwitchUser in MultiUserSwitchBarController()
62 && !mUserCapabilities.mIsGuest && mUserCapabilities.isAdmin()); in MultiUserSwitchBarController()