Searched refs:mUserCapabilities (Results 1 – 3 of 3) sorted by relevance
122 private UserCapabilities mUserCapabilities; field in UserSettingsTest129 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 …]
110 private UserCapabilities mUserCapabilities; field in UserDetailsSettingsTest123 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()
44 private final UserCapabilities mUserCapabilities; field in MultiUserSwitchBarController53 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()