Home
last modified time | relevance | path

Searched refs:enforcedAdmin (Results 1 – 17 of 17) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/
DActionDisabledByAdminDialogHelper.java80 EnforcedAdmin enforcedAdmin) { in prepareDialogBuilder() argument
81 mEnforcedAdmin = enforcedAdmin; in prepareDialogBuilder()
191 final EnforcedAdmin enforcedAdmin) { in setAdminSupportDetails() argument
192 if (enforcedAdmin == null || enforcedAdmin.component == null) { in setAdminSupportDetails()
199 enforcedAdmin.component) || !RestrictedLockUtils.isCurrentUserOrProfile( in setAdminSupportDetails()
200 activity, getEnforcementAdminUserId(enforcedAdmin))) { in setAdminSupportDetails()
201 enforcedAdmin.component = null; in setAdminSupportDetails()
203 if (enforcedAdmin.user == null) { in setAdminSupportDetails()
204 enforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in setAdminSupportDetails()
208 supportMessage = dpm.getShortSupportMessageForUser(enforcedAdmin.component, in setAdminSupportDetails()
[all …]
DActionDisabledByAdminDialog.java37 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in onCreate() local
41 mDialogHelper.prepareDialogBuilder(restriction, enforcedAdmin) in onCreate()
/packages/apps/Settings/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelper.java80 EnforcedAdmin enforcedAdmin) { in prepareDialogBuilder() argument
81 mEnforcedAdmin = enforcedAdmin; in prepareDialogBuilder()
191 final EnforcedAdmin enforcedAdmin) { in setAdminSupportDetails() argument
192 if (enforcedAdmin == null || enforcedAdmin.component == null) { in setAdminSupportDetails()
199 enforcedAdmin.component) || !RestrictedLockUtils.isCurrentUserOrProfile( in setAdminSupportDetails()
200 activity, getEnforcementAdminUserId(enforcedAdmin))) { in setAdminSupportDetails()
201 enforcedAdmin.component = null; in setAdminSupportDetails()
203 if (enforcedAdmin.user == null) { in setAdminSupportDetails()
204 enforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in setAdminSupportDetails()
208 supportMessage = dpm.getShortSupportMessageForUser(enforcedAdmin.component, in setAdminSupportDetails()
[all …]
DActionDisabledByAdminDialog.java37 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in onCreate() local
41 mDialogHelper.prepareDialogBuilder(restriction, enforcedAdmin) in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRestrictedListPreference.java249 item.enforcedAdmin); in getOnItemClickListener()
289 public final EnforcedAdmin enforcedAdmin;
292 EnforcedAdmin enforcedAdmin) {
295 this.enforcedAdmin = enforcedAdmin;
/packages/apps/Settings/src/com/android/settings/
DRestrictedListPreference.java249 item.enforcedAdmin); in getOnItemClickListener()
289 public final EnforcedAdmin enforcedAdmin;
292 EnforcedAdmin enforcedAdmin) {
295 this.enforcedAdmin = enforcedAdmin;
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowRestrictedLockUtilsInternal.java40 public static void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in setEnforcedAdmin() argument
41 sEnforcedAdmin = enforcedAdmin; in setEnforcedAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DContactSearchPreferenceController.java55 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in updateState() local
58 pref.setDisabledByAdmin(enforcedAdmin); in updateState()
/packages/apps/Settings/src/com/android/settings/accounts/
DContactSearchPreferenceController.java55 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in updateState() local
58 pref.setDisabledByAdmin(enforcedAdmin); in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DPrivateDnsModeDialogPreference.java239 EnforcedAdmin enforcedAdmin = getEnforcedAdmin(); in performClick() local
241 if (enforcedAdmin == null) { in performClick()
246 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getContext(), enforcedAdmin); in performClick() local
DPrivateDnsPreferenceController.java150 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced( in isManagedByAdmin() local
152 return enforcedAdmin != null; in isManagedByAdmin()
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java235 EnforcedAdmin enforcedAdmin = getEnforcedAdmin(); in performClick() local
237 if (enforcedAdmin == null) { in performClick()
242 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getContext(), enforcedAdmin); in performClick() local
DPrivateDnsPreferenceController.java146 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced( in isManagedByAdmin() local
148 return enforcedAdmin != null; in isManagedByAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java418 EnforcedAdmin enforcedAdmin = getAdminEnforcingCantRemoveProfile(); in showPolicyTransparencyDialogIfRequired() local
419 if (enforcedAdmin != null) { in showPolicyTransparencyDialogIfRequired()
422 enforcedAdmin); in showPolicyTransparencyDialogIfRequired()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java467 EnforcedAdmin enforcedAdmin = getAdminEnforcingCantRemoveProfile(); in showPolicyTransparencyDialogIfRequired() local
468 if (enforcedAdmin != null) { in showPolicyTransparencyDialogIfRequired()
471 enforcedAdmin); in showPolicyTransparencyDialogIfRequired()
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockGeneric.java632 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal.checkIfPasswordQualityIsSet( in disableUnusablePreferencesImpl() local
648 } else if (disabledByAdmin && enforcedAdmin != null) { in disableUnusablePreferencesImpl()
649 ((RestrictedPreference) pref).setDisabledByAdmin(enforcedAdmin); in disableUnusablePreferencesImpl()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DChooseLockGeneric.java621 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal.checkIfPasswordQualityIsSet( in disableUnusablePreferencesImpl() local
637 } else if (disabledByAdmin && enforcedAdmin != null) { in disableUnusablePreferencesImpl()
638 ((RestrictedPreference) pref).setDisabledByAdmin(enforcedAdmin); in disableUnusablePreferencesImpl()