Searched refs:mUserCaps (Results 1 – 7 of 7) sorted by relevance
28 private final UserCapabilities mUserCaps; field in AddUserWhenLockedPreferenceController32 mUserCaps = UserCapabilities.create(context); in AddUserWhenLockedPreferenceController()38 mUserCaps.updateAddUserCapabilities(mContext); in updateState()45 mUserCaps.disallowAddUser() ? mUserCaps.getEnforcedAdmin() : null); in updateState()46 restrictedSwitchPreference.setVisible(mUserCaps.mUserSwitcherEnabled); in updateState()52 if (!mUserCaps.isAdmin()) { in getAvailabilityStatus()54 } else if (mUserCaps.disallowAddUser() || mUserCaps.disallowAddUserSetByAdmin()) { in getAvailabilityStatus()57 return mUserCaps.mUserSwitcherEnabled ? AVAILABLE : CONDITIONALLY_UNAVAILABLE; in getAvailabilityStatus()
159 private UserCapabilities mUserCaps; field in UserSettings256 mUserCaps = UserCapabilities.create(activity); in onCreate()258 if (!mUserCaps.mEnabled) { in onCreate()270 if (mUserCaps.mIsAdmin) { in onCreate()287 if (!mUserCaps.mEnabled) { in onResume()310 if (mUserCaps == null || !mUserCaps.mEnabled) { in onDestroy()335 if (!mUserCaps.mIsAdmin && canSwitchUsers) { in onCreateOptionsMenu()367 mUserCaps.updateAddUserCapabilities(getActivity()); in updateUI()376 if (mUserCaps.mIsGuest) { in loadProfile()495 if (info.isRestricted() && mUserCaps.mIsAdmin) { in onManageUserClicked()[all …]
32 final UserCapabilities mUserCaps; field in MultiUserFooterPreferenceController38 mUserCaps = UserCapabilities.create(context); in MultiUserFooterPreferenceController()49 return (mUserCaps.mEnabled && !mUserCaps.mUserSwitcherEnabled) in getAvailabilityStatus()56 mUserCaps.updateAddUserCapabilities(mContext); in updateState()
159 private UserCapabilities mUserCaps; field in UserSettings256 mUserCaps = UserCapabilities.create(activity); in onCreate()258 if (!mUserCaps.mEnabled) { in onCreate()270 if (mUserCaps.mIsAdmin) { in onCreate()274 if (!mUserCaps.mCanAddRestrictedProfile) { in onCreate()291 if (!mUserCaps.mEnabled) { in onResume()314 if (mUserCaps == null || !mUserCaps.mEnabled) { in onDestroy()339 if (!mUserCaps.mIsAdmin && canSwitchUsers) { in onCreateOptionsMenu()371 mUserCaps.updateAddUserCapabilities(getActivity()); in updateUI()380 if (mUserCaps.mIsGuest) { in loadProfile()[all …]
48 mController.mUserCaps.mEnabled = true; in getAvailabilityStatus_multiUserOff_shouldReturnEnabled()49 mController.mUserCaps.mUserSwitcherEnabled = false; in getAvailabilityStatus_multiUserOff_shouldReturnEnabled()56 mController.mUserCaps.mEnabled = true; in getAvailabilityStatus_multiUserOn_shouldReturnDisabled()57 mController.mUserCaps.mUserSwitcherEnabled = true; in getAvailabilityStatus_multiUserOn_shouldReturnDisabled()