Searched refs:mUserCapabilities (Results 1 – 3 of 3) sorted by relevance
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 } else if (mUserCapabilities.mDisallowAddUser) { in MultiUserSwitchBarController()66 mSwitchBar.setEnabled(mUserCapabilities.mIsMain); in MultiUserSwitchBarController()
143 private UserCapabilities mUserCapabilities; field in UserSettingsTest150 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 …]
120 private UserCapabilities mUserCapabilities; field in UserDetailsSettingsTest133 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()