Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DActionDisabledByAdminDialogFragment.java131 EnforcedAdmin enforcedAdmin = hasValidIntent in initialize() local
135 LOG.i("hasValidIntent: " + hasValidIntent + " enforcedAdmin: " + enforcedAdmin in initialize()
147 if (enforcedAdmin != null) { in initialize()
148 mActionDisabledByAdminController.updateEnforcedAdmin(enforcedAdmin, mAdminUserId); in initialize()
151 initializeDialogViews(context, builder, enforcedAdmin, in initialize()
152 getEnforcementAdminUserId(enforcedAdmin)); in initialize()
165 @Nullable EnforcedAdmin enforcedAdmin, @UserIdInt int userId) { in initializeDialogViews() argument
168 if (enforcedAdmin != null) { in initializeDialogViews()
169 admin = enforcedAdmin.component; in initializeDialogViews()
174 mActionDisabledByAdminController.updateEnforcedAdmin(enforcedAdmin, userId); in initializeDialogViews()
[all …]
/packages/apps/Settings/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelper.java90 EnforcedAdmin enforcedAdmin) { in prepareDialogBuilder() argument
94 .getPositiveButtonListener(mActivity, enforcedAdmin)) in prepareDialogBuilder()
96 prepareDialogBuilder(builder, restriction, enforcedAdmin); in prepareDialogBuilder()
102 EnforcedAdmin enforcedAdmin) { in prepareDialogBuilder() argument
106 mEnforcedAdmin = enforcedAdmin; in prepareDialogBuilder()
123 private void initializeDialogViews(View root, EnforcedAdmin enforcedAdmin, int userId, in initializeDialogViews() argument
125 ComponentName admin = enforcedAdmin.component; in initializeDialogViews()
130 mActionDisabledByAdminController.updateEnforcedAdmin(enforcedAdmin, userId); in initializeDialogViews()
174 final EnforcedAdmin enforcedAdmin) { in setAdminSupportDetails() argument
175 if (enforcedAdmin == null || enforcedAdmin.component == null) { in setAdminSupportDetails()
[all …]
DActionDisabledByAdminDialog.java37 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in onCreate() local
41 mDialogHelper.prepareDialogBuilder(restriction, enforcedAdmin) in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DActionDisabledByAdminDialogHelper.java72 EnforcedAdmin enforcedAdmin) { in prepareDialogBuilder() argument
73 mEnforcedAdmin = enforcedAdmin; in prepareDialogBuilder()
165 final EnforcedAdmin enforcedAdmin) { in setAdminSupportDetails() argument
166 if (enforcedAdmin == null || enforcedAdmin.component == null) { in setAdminSupportDetails()
173 enforcedAdmin.component) || !RestrictedLockUtils.isCurrentUserOrProfile( in setAdminSupportDetails()
174 activity, getEnforcementAdminUserId(enforcedAdmin))) { in setAdminSupportDetails()
175 enforcedAdmin.component = null; in setAdminSupportDetails()
177 if (enforcedAdmin.user == null) { in setAdminSupportDetails()
178 enforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in setAdminSupportDetails()
182 supportMessage = dpm.getShortSupportMessageForUser(enforcedAdmin.component, in setAdminSupportDetails()
[all …]
DActionDisabledByAdminDialog.java39 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in onCreate() local
43 AlertDialog dialog = mDialogHelper.prepareDialogBuilder(restriction, enforcedAdmin) in onCreate()
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricNavigationUtils.java87 EnforcedAdmin enforcedAdmin, Bundle extras) { in getBiometricSettingsIntent() argument
88 if (enforcedAdmin != null) { in getBiometricSettingsIntent()
89 return getRestrictedDialogIntent(context, enforcedAdmin); in getBiometricSettingsIntent()
104 private Intent getRestrictedDialogIntent(Context context, EnforcedAdmin enforcedAdmin) { in getRestrictedDialogIntent() argument
106 .getShowAdminSupportDetailsIntent(context, enforcedAdmin); in getRestrictedDialogIntent()
108 if (enforcedAdmin.user != null && RestrictedLockUtils in getRestrictedDialogIntent()
109 .isCurrentUserOrProfile(context, enforcedAdmin.user.getIdentifier())) { in getRestrictedDialogIntent()
110 targetUserId = enforcedAdmin.user.getIdentifier(); in getRestrictedDialogIntent()
112 intent.putExtra(DevicePolicyManager.EXTRA_RESTRICTION, enforcedAdmin.enforcedRestriction); in getRestrictedDialogIntent()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRestrictedLockUtilsInternal.java190 EnforcedAdmin enforcedAdmin = null; in findEnforcedAdmin() local
193 if (enforcedAdmin == null) { in findEnforcedAdmin()
194 enforcedAdmin = new EnforcedAdmin(admin, user); in findEnforcedAdmin()
200 return enforcedAdmin; in findEnforcedAdmin()
412 final EnforcedAdmin enforcedAdmin = getProfileOrDeviceOwner(context, in checkIfMeteredDataRestricted() local
414 if (enforcedAdmin == null) { in checkIfMeteredDataRestricted()
419 return dpm.isMeteredDataDisabledPackageForUser(enforcedAdmin.component, packageName, userId) in checkIfMeteredDataRestricted()
420 ? enforcedAdmin : null; in checkIfMeteredDataRestricted()
475 EnforcedAdmin enforcedAdmin = null; in checkIfPasswordQualityIsSet() local
479 if (enforcedAdmin == null) { in checkIfPasswordQualityIsSet()
[all …]
DRestrictedLockUtils.java123 EnforcedAdmin enforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in createDefaultEnforcedAdminWithRestriction() local
124 enforcedAdmin.enforcedRestriction = enforcedRestriction; in createDefaultEnforcedAdminWithRestriction()
125 return enforcedAdmin; in createDefaultEnforcedAdminWithRestriction()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/enterprise/
DActionDisabledLearnMoreButtonLauncher.java53 int enforcementAdminUserId, EnforcedAdmin enforcedAdmin) { in setupLearnMoreButtonToShowAdminPolicies() argument
55 requireNonNull(enforcedAdmin, "enforcedAdmin cannot be null"); in setupLearnMoreButtonToShowAdminPolicies()
62 setLearnMoreButton(() -> showAdminPolicies(context, enforcedAdmin)); in setupLearnMoreButtonToShowAdminPolicies()
134 private void showAdminPolicies(Context context, EnforcedAdmin enforcedAdmin) { in showAdminPolicies() argument
135 if (enforcedAdmin.component != null) { in showAdminPolicies()
136 launchShowAdminPolicies(context, enforcedAdmin.user, enforcedAdmin.component); in showAdminPolicies()
DBiometricActionDisabledByAdminController.java64 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
66 Log.d(TAG, "Positive button clicked, component: " + enforcedAdmin.component); in getPositiveButtonListener()
68 .setComponent(enforcedAdmin.component) in getPositiveButtonListener()
DActionDisabledByAdminController.java65 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DAddWifiNetworkPreferenceTest.java56 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = null; in updatePreferenceForRestriction_isAddWifiConfigAllowed_prefIsEnabled() local
58 mPreference.setDisabledByAdmin(enforcedAdmin); in updatePreferenceForRestriction_isAddWifiConfigAllowed_prefIsEnabled()
65 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = new RestrictedLockUtils.EnforcedAdmin( in updatePreferenceForRestriction_isAddWifiConfigNotAllowed_prefIsDisabled() local
68 mPreference.setDisabledByAdmin(enforcedAdmin); in updatePreferenceForRestriction_isAddWifiConfigNotAllowed_prefIsDisabled()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/
DBiometricNavigationUtilsTest.java183 final EnforcedAdmin enforcedAdmin = new EnforcedAdmin( in getBiometricSettingsIntent_whenDisabledByAdmin_quietMode_returnsBlockedIntent() local
187 mContext, SETTINGS_CLASS_NAME, enforcedAdmin, Bundle.EMPTY); in getBiometricSettingsIntent_whenDisabledByAdmin_quietMode_returnsBlockedIntent()
195 final EnforcedAdmin enforcedAdmin = new EnforcedAdmin( in getBiometricSettingsIntent_whenDisabledByAdmin_emptyExtras_returnsBlockedIntent() local
199 mContext, SETTINGS_CLASS_NAME, enforcedAdmin, Bundle.EMPTY); in getBiometricSettingsIntent_whenDisabledByAdmin_emptyExtras_returnsBlockedIntent()
207 final EnforcedAdmin enforcedAdmin = new EnforcedAdmin( in getBiometricSettingsIntent_whenDisabledByAdmin_withExtras_returnsBlockedIntent() local
211 mContext, SETTINGS_CLASS_NAME, enforcedAdmin, Bundle.EMPTY); in getBiometricSettingsIntent_whenDisabledByAdmin_withExtras_returnsBlockedIntent()
/packages/apps/Settings/src/com/android/settings/
DRestrictedListPreference.java240 item.enforcedAdmin); in getOnItemClickListener()
280 public final EnforcedAdmin enforcedAdmin;
283 EnforcedAdmin enforcedAdmin) {
286 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/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepPreferenceController.java88 final EnforcedAdmin enforcedAdmin = mRestrictionUtils.checkIfRestrictionEnforced(mContext, in updatePreference() local
90 if (enforcedAdmin != null) { in updatePreference()
91 mPreference.setDisabledByAdmin(enforcedAdmin); in updatePreference()
/packages/apps/Settings/src/com/android/settings/network/tether/
DTetherSettings.java467 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in updateUsbState() local
469 if (enforcedAdmin != null) { in updateUsbState()
470 mUsbTether.setDisabledByAdmin(enforcedAdmin); in updateUsbState()
480 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in updateUsbPreference() local
483 if (enforcedAdmin != null) { in updateUsbPreference()
484 mUsbTether.setDisabledByAdmin(enforcedAdmin); in updateUsbPreference()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSwitchBarController.java80 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = RestrictedLockUtils.EnforcedAdmin in onLocationModeChanged() local
82 mSwitchBar.setDisabledByAdmin(enforcedAdmin); in onLocationModeChanged()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceStatusPreferenceController.java105 void updateStateInternal(@Nullable RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in updateStateInternal() argument
107 mPreference.setDisabledByAdmin(enforcedAdmin); in updateStateInternal()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintStatusPreferenceController.java115 void updateStateInternal(@Nullable RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in updateStateInternal() argument
117 mPreference.setDisabledByAdmin(enforcedAdmin); in updateStateInternal()
/packages/apps/Settings/src/com/android/settings/biometrics/combination/
DCombinedBiometricStatusPreferenceController.java116 void updateStateInternal(@Nullable RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in updateStateInternal() argument
118 mPreference.setDisabledByAdmin(enforcedAdmin); in updateStateInternal()
/packages/apps/Settings/src/com/android/settings/accounts/
DContactSearchPreferenceController.java65 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in updateState() local
68 pref.setDisabledByAdmin(enforcedAdmin); in updateState()
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java223 EnforcedAdmin enforcedAdmin = getEnforcedAdmin(); in performClick() local
225 if (enforcedAdmin == null) { in performClick()
230 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/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java490 EnforcedAdmin enforcedAdmin; in showPolicyTransparencyDialogIfRequired() local
493 enforcedAdmin = new EnforcedAdmin(adminComponent, in showPolicyTransparencyDialogIfRequired()
502 enforcedAdmin = getAdminEnforcingCantRemoveProfile(); in showPolicyTransparencyDialogIfRequired()
504 if (enforcedAdmin != null) { in showPolicyTransparencyDialogIfRequired()
507 enforcedAdmin); in showPolicyTransparencyDialogIfRequired()

12