Home
last modified time | relevance | path

Searched refs:mUserCaps (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DAddUserWhenLockedPreferenceController.java28 private final UserCapabilities mUserCaps; field in AddUserWhenLockedPreferenceController
32 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()
DUserSettings.java159 private UserCapabilities mUserCaps; field in UserSettings
256 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 …]
DMultiUserFooterPreferenceController.java32 final UserCapabilities mUserCaps; field in MultiUserFooterPreferenceController
38 mUserCaps = UserCapabilities.create(context); in MultiUserFooterPreferenceController()
49 return (mUserCaps.mEnabled && !mUserCaps.mUserSwitcherEnabled) in getAvailabilityStatus()
56 mUserCaps.updateAddUserCapabilities(mContext); in updateState()
/packages/apps/Settings/src/com/android/settings/users/
DAddUserWhenLockedPreferenceController.java28 private final UserCapabilities mUserCaps; field in AddUserWhenLockedPreferenceController
32 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()
DUserSettings.java159 private UserCapabilities mUserCaps; field in UserSettings
256 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 …]
DMultiUserFooterPreferenceController.java32 final UserCapabilities mUserCaps; field in MultiUserFooterPreferenceController
38 mUserCaps = UserCapabilities.create(context); in MultiUserFooterPreferenceController()
49 return (mUserCaps.mEnabled && !mUserCaps.mUserSwitcherEnabled) in getAvailabilityStatus()
56 mUserCaps.updateAddUserCapabilities(mContext); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DMultiUserFooterPreferenceControllerTest.java48 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()