Home
last modified time | relevance | path

Searched refs:mEnforcedAdmin (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Settings/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelper.java58 @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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/
DActionDisabledByAdminDialogHelper.java58 @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/
DUserCapabilities.java41 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()
DUserSettings.java909 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/
DUserCapabilities.java41 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()
DUserSettings.java905 pref.setDisabledByAdmin(mUserCaps.mEnforcedAdmin); in updateUserList()
986 mUserCaps.mDisallowAddUser ? mUserCaps.mEnforcedAdmin : null); in updateAddUser()
/packages/apps/Settings/src/com/android/settings/dashboard/
DRestrictedDashboardFragment.java74 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/dashboard/
DRestrictedDashboardFragment.java74 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/
DRestrictedSettingsFragment.java74 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()
DRestrictedCheckBox.java36 private EnforcedAdmin mEnforcedAdmin; field in RestrictedCheckBox
50 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in performClick()
58 mEnforcedAdmin = admin; in setDisabledByAdmin()
DRestrictedRadioButton.java33 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/
DRestrictedSettingsFragment.java74 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()
DRestrictedCheckBox.java36 private EnforcedAdmin mEnforcedAdmin; field in RestrictedCheckBox
50 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in performClick()
58 mEnforcedAdmin = admin; in setDisabledByAdmin()
DRestrictedRadioButton.java33 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/
DTimeoutListPreferenceTest.java46 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/
DAppStorageSettingsDetailsFragmentTest.java88 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in AppStorageSettingsDetailsFragmentTest
160 ShadowRestrictedLockUtilsInternal.setEnforcedAdmin(mEnforcedAdmin); in handleClearCacheClick_disallowedBySystem_shouldNotDeleteApplicationCache()
182 ShadowRestrictedLockUtilsInternal.setEnforcedAdmin(mEnforcedAdmin); in handleClearCacheClick_allowedBySystem_shouldNotDeleteApplicationCache()
205 ShadowRestrictedLockUtilsInternal.setEnforcedAdmin(mEnforcedAdmin); in handleClearDataClick_disallowedBySystem_shouldNotShowDialogToClear()
225 ShadowRestrictedLockUtilsInternal.setEnforcedAdmin(mEnforcedAdmin); in handleClearDataClick_allowedBySystem_shouldShowDialogToClear()
/packages/services/Telephony/src/com/android/phone/
DRestrictedPreference.java41 private EnforcedAdmin mEnforcedAdmin; field in RestrictedPreference
67 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in performClick()
117 mEnforcedAdmin = admin; in setDisabledByAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSwitchBar.java93 private EnforcedAdmin mEnforcedAdmin = null; field in SwitchBar
155 mEnforcedAdmin); in SwitchBar()
234 mEnforcedAdmin = admin; in setDisabledByAdmin()
/packages/apps/Settings/src/com/android/settings/widget/
DSwitchBar.java91 private EnforcedAdmin mEnforcedAdmin = null; field in SwitchBar
159 mEnforcedAdmin); in SwitchBar()
244 mEnforcedAdmin = admin; in setDisabledByAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java197 mHelper.mEnforcedAdmin = new EnforcedAdmin(component, UserHandle.of(123)); in testMaybeSetLearnMoreButton()