Home
last modified time | relevance | path

Searched refs:mIsAdmin (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/users/
DUserCapabilities.java34 boolean mIsAdmin; field in UserCapabilities
57 caps.mIsAdmin = myUserInfo.isAdmin(); in create()
79 if (!mIsAdmin || UserManager.getMaxSupportedUsers() < 2 in updateAddUserCapabilities()
85 final boolean canAddUsersWhenLocked = mIsAdmin || Settings.Global.getInt( in updateAddUserCapabilities()
93 return mIsAdmin; in isAdmin()
115 ", mIsAdmin=" + mIsAdmin + in toString()
DUserSettings.java270 if (mUserCaps.mIsAdmin) { in onCreate()
339 if (!mUserCaps.mIsAdmin && canSwitchUsers) { in onCreateOptionsMenu()
499 if (info.isRestricted() && mUserCaps.mIsAdmin) { in onManageUserClicked()
512 } else if (mUserCaps.mIsAdmin) { in onManageUserClicked()
839 final boolean showSettings = mUserCaps.mIsAdmin in updateUserList()
841 final boolean showDelete = mUserCaps.mIsAdmin in updateUserList()
902 mUserCaps.mIsAdmin && voiceCapable ? this : null /* settings icon handler */, in updateUserList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserCapabilities.java34 boolean mIsAdmin; field in UserCapabilities
57 caps.mIsAdmin = myUserInfo.isAdmin(); in create()
79 if (!mIsAdmin || UserManager.getMaxSupportedUsers() < 2 in updateAddUserCapabilities()
85 final boolean canAddUsersWhenLocked = mIsAdmin || Settings.Global.getInt( in updateAddUserCapabilities()
93 return mIsAdmin; in isAdmin()
115 ", mIsAdmin=" + mIsAdmin + in toString()
DUserSettings.java270 if (mUserCaps.mIsAdmin) { in onCreate()
335 if (!mUserCaps.mIsAdmin && canSwitchUsers) { in onCreateOptionsMenu()
495 if (info.isRestricted() && mUserCaps.mIsAdmin) { in onManageUserClicked()
508 } else if (mUserCaps.mIsAdmin) { in onManageUserClicked()
835 final boolean showSettings = mUserCaps.mIsAdmin in updateUserList()
837 final boolean showDelete = mUserCaps.mIsAdmin in updateUserList()
898 mUserCaps.mIsAdmin && voiceCapable ? this : null /* settings icon handler */, in updateUserList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java244 mUserCapabilities.mIsAdmin = false; in withDisallowRemoveUser_ShouldDisableRemoveUser()
269 mUserCapabilities.mIsAdmin = false; in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser()