/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/ |
D | ActionDisabledByAdminDialogHelper.java | 58 @VisibleForTesting EnforcedAdmin mEnforcedAdmin; field in ActionDisabledByAdminDialogHelper 76 return getEnforcementAdminUserId(mEnforcedAdmin); in getEnforcementAdminUserId() 81 mEnforcedAdmin = enforcedAdmin; in prepareDialogBuilder() 86 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in prepareDialogBuilder() 99 if (um.isSameProfileGroup(getEnforcementAdminUserId(mEnforcedAdmin), um.getUserHandle())) { in maybeSetLearnMoreButton() 101 showAdminPolicies(mEnforcedAdmin, mActivity); in maybeSetLearnMoreButton() 108 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog() 111 mEnforcedAdmin = admin; in updateDialog() 113 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in updateDialog()
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | ActionDisabledByAdminDialogHelper.java | 58 @VisibleForTesting EnforcedAdmin mEnforcedAdmin; field in ActionDisabledByAdminDialogHelper 76 return getEnforcementAdminUserId(mEnforcedAdmin); in getEnforcementAdminUserId() 81 mEnforcedAdmin = enforcedAdmin; in prepareDialogBuilder() 86 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in prepareDialogBuilder() 99 if (um.isSameProfileGroup(getEnforcementAdminUserId(mEnforcedAdmin), um.getUserHandle())) { in maybeSetLearnMoreButton() 101 showAdminPolicies(mEnforcedAdmin, mActivity); in maybeSetLearnMoreButton() 108 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog() 111 mEnforcedAdmin = admin; in updateDialog() 113 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in updateDialog()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserCapabilities.java | 41 RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in UserCapabilities 71 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(context, in updateAddUserCapabilities() 75 mDisallowAddUserSetByAdmin = mEnforcedAdmin != null && !hasBaseUserRestriction; in updateAddUserCapabilities() 76 mDisallowAddUser = (mEnforcedAdmin != null || hasBaseUserRestriction); in updateAddUserCapabilities() 105 return mEnforcedAdmin; in getEnforcedAdmin() 119 ", mEnforcedAdmin=" + mEnforcedAdmin + in toString()
|
D | UserSettings.java | 909 pref.setDisabledByAdmin(mUserCaps.mEnforcedAdmin); in updateUserList() 990 mUserCaps.mDisallowAddUser ? mUserCaps.mEnforcedAdmin : null); in updateAddUser()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/ |
D | UserCapabilities.java | 41 RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in UserCapabilities 71 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(context, in updateAddUserCapabilities() 75 mDisallowAddUserSetByAdmin = mEnforcedAdmin != null && !hasBaseUserRestriction; in updateAddUserCapabilities() 76 mDisallowAddUser = (mEnforcedAdmin != null || hasBaseUserRestriction); in updateAddUserCapabilities() 105 return mEnforcedAdmin; in getEnforcedAdmin() 119 ", mEnforcedAdmin=" + mEnforcedAdmin + in toString()
|
D | UserSettings.java | 905 pref.setDisabledByAdmin(mUserCaps.mEnforcedAdmin); in updateUserList() 986 mUserCaps.mDisallowAddUser ? mUserCaps.mEnforcedAdmin : null); in updateAddUser()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/ |
D | RestrictedDashboardFragment.java | 74 private EnforcedAdmin mEnforcedAdmin; field in RestrictedDashboardFragment 216 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(getActivity(), in getRestrictionEnforcedAdmin() 218 if (mEnforcedAdmin != null && mEnforcedAdmin.user == null) { in getRestrictionEnforcedAdmin() 219 mEnforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in getRestrictionEnforcedAdmin() 221 return mEnforcedAdmin; in getRestrictionEnforcedAdmin()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RestrictedSettingsFragment.java | 74 private EnforcedAdmin mEnforcedAdmin; field in RestrictedSettingsFragment 222 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(getActivity(), in getRestrictionEnforcedAdmin() 224 if (mEnforcedAdmin != null && mEnforcedAdmin.user == null) { in getRestrictionEnforcedAdmin() 225 mEnforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in getRestrictionEnforcedAdmin() 227 return mEnforcedAdmin; in getRestrictionEnforcedAdmin()
|
D | RestrictedCheckBox.java | 36 private EnforcedAdmin mEnforcedAdmin; field in RestrictedCheckBox 50 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in performClick() 58 mEnforcedAdmin = admin; in setDisabledByAdmin()
|
D | RestrictedRadioButton.java | 33 private EnforcedAdmin mEnforcedAdmin; field in RestrictedRadioButton 56 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in performClick() 64 mEnforcedAdmin = admin; in setDisabledByAdmin()
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | RestrictedDashboardFragment.java | 74 private EnforcedAdmin mEnforcedAdmin; field in RestrictedDashboardFragment 216 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(getActivity(), in getRestrictionEnforcedAdmin() 218 if (mEnforcedAdmin != null && mEnforcedAdmin.user == null) { in getRestrictionEnforcedAdmin() 219 mEnforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in getRestrictionEnforcedAdmin() 221 return mEnforcedAdmin; in getRestrictionEnforcedAdmin()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | RestrictedSettingsFragment.java | 74 private EnforcedAdmin mEnforcedAdmin; field in RestrictedSettingsFragment 222 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(getActivity(), in getRestrictionEnforcedAdmin() 224 if (mEnforcedAdmin != null && mEnforcedAdmin.user == null) { in getRestrictionEnforcedAdmin() 225 mEnforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in getRestrictionEnforcedAdmin() 227 return mEnforcedAdmin; in getRestrictionEnforcedAdmin()
|
D | RestrictedCheckBox.java | 36 private EnforcedAdmin mEnforcedAdmin; field in RestrictedCheckBox 50 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in performClick() 58 mEnforcedAdmin = admin; in setDisabledByAdmin()
|
D | RestrictedRadioButton.java | 33 private EnforcedAdmin mEnforcedAdmin; field in RestrictedRadioButton 56 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in performClick() 64 mEnforcedAdmin = admin; in setDisabledByAdmin()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | TimeoutListPreferenceTest.java | 46 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in TimeoutListPreferenceTest 61 ReflectionHelpers.setField(mPreference, "mAdmin", mEnforcedAdmin); in setUp() 67 mPreference.removeUnusableTimeouts(480000L, mEnforcedAdmin); // max allowed is 8 minutes in removeUnusableTimeouts_selectedValueRemoved_shouldSetValueToLargestAllowedValue()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | AppStorageSettingsDetailsFragmentTest.java | 88 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in AppStorageSettingsDetailsFragmentTest 154 ShadowRestrictedLockUtilsInternal.setEnforcedAdmin(mEnforcedAdmin); in handleClearCacheClick_disallowedBySystem_shouldNotDeleteApplicationCache() 176 ShadowRestrictedLockUtilsInternal.setEnforcedAdmin(mEnforcedAdmin); in handleClearCacheClick_allowedBySystem_shouldNotDeleteApplicationCache() 199 ShadowRestrictedLockUtilsInternal.setEnforcedAdmin(mEnforcedAdmin); in handleClearDataClick_disallowedBySystem_shouldNotShowDialogToClear() 217 ShadowRestrictedLockUtilsInternal.setEnforcedAdmin(mEnforcedAdmin); in handleClearDataClick_allowedBySystem_shouldShowDialogToClear()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | SwitchBar.java | 91 private EnforcedAdmin mEnforcedAdmin = null; field in SwitchBar 159 mEnforcedAdmin); in SwitchBar() 244 mEnforcedAdmin = admin; in setDisabledByAdmin()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | SwitchBar.java | 93 private EnforcedAdmin mEnforcedAdmin = null; field in SwitchBar 155 mEnforcedAdmin); in SwitchBar() 234 mEnforcedAdmin = admin; in setDisabledByAdmin()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | ActionDisabledByAdminDialogHelperTest.java | 197 mHelper.mEnforcedAdmin = new EnforcedAdmin(component, UserHandle.of(123)); in testMaybeSetLearnMoreButton()
|