/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | ActionDisabledByAdminDialogFragment.java | 131 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/ |
D | ActionDisabledByAdminDialogHelper.java | 90 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 …]
|
D | ActionDisabledByAdminDialog.java | 37 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in onCreate() local 41 mDialogHelper.prepareDialogBuilder(restriction, enforcedAdmin) in onCreate()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | ActionDisabledByAdminDialogHelper.java | 72 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 …]
|
D | ActionDisabledByAdminDialog.java | 39 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in onCreate() local 43 AlertDialog dialog = mDialogHelper.prepareDialogBuilder(restriction, enforcedAdmin) in onCreate()
|
/packages/apps/Settings/src/com/android/settings/biometrics/ |
D | BiometricNavigationUtils.java | 87 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/ |
D | RestrictedLockUtilsInternal.java | 190 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 …]
|
D | RestrictedLockUtils.java | 123 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/ |
D | ActionDisabledLearnMoreButtonLauncher.java | 53 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()
|
D | BiometricActionDisabledByAdminController.java | 64 @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()
|
D | ActionDisabledByAdminController.java | 65 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | AddWifiNetworkPreferenceTest.java | 56 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/ |
D | BiometricNavigationUtilsTest.java | 183 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/ |
D | RestrictedListPreference.java | 240 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/ |
D | ShadowRestrictedLockUtilsInternal.java | 40 public static void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in setEnforcedAdmin() argument 41 sEnforcedAdmin = enforcedAdmin; in setEnforcedAdmin()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | AdaptiveSleepPreferenceController.java | 88 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/ |
D | TetherSettings.java | 467 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/ |
D | LocationSwitchBarController.java | 80 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = RestrictedLockUtils.EnforcedAdmin in onLocationModeChanged() local 82 mSwitchBar.setDisabledByAdmin(enforcedAdmin); in onLocationModeChanged()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceStatusPreferenceController.java | 105 void updateStateInternal(@Nullable RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in updateStateInternal() argument 107 mPreference.setDisabledByAdmin(enforcedAdmin); in updateStateInternal()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintStatusPreferenceController.java | 115 void updateStateInternal(@Nullable RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in updateStateInternal() argument 117 mPreference.setDisabledByAdmin(enforcedAdmin); in updateStateInternal()
|
/packages/apps/Settings/src/com/android/settings/biometrics/combination/ |
D | CombinedBiometricStatusPreferenceController.java | 116 void updateStateInternal(@Nullable RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in updateStateInternal() argument 118 mPreference.setDisabledByAdmin(enforcedAdmin); in updateStateInternal()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | ContactSearchPreferenceController.java | 65 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in updateState() local 68 pref.setDisabledByAdmin(enforcedAdmin); in updateState()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | PrivateDnsModeDialogPreference.java | 223 EnforcedAdmin enforcedAdmin = getEnforcedAdmin(); in performClick() local 225 if (enforcedAdmin == null) { in performClick() 230 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getContext(), enforcedAdmin); in performClick() local
|
D | PrivateDnsPreferenceController.java | 150 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced( in isManagedByAdmin() local 152 return enforcedAdmin != null; in isManagedByAdmin()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 490 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()
|