Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java99 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfRestrictionEnforced_deviceOwner() local
102 assertThat(enforcedAdmin).isNotNull(); in checkIfRestrictionEnforced_deviceOwner()
103 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_deviceOwner()
104 assertThat(enforcedAdmin.component).isEqualTo(mAdmin1); in checkIfRestrictionEnforced_deviceOwner()
117 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfRestrictionEnforced_profileOwner() local
120 assertThat(enforcedAdmin).isNotNull(); in checkIfRestrictionEnforced_profileOwner()
121 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_profileOwner()
122 assertThat(enforcedAdmin.component).isEqualTo(mAdmin1); in checkIfRestrictionEnforced_profileOwner()
128 final EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile() local
131 assertThat(enforcedAdmin).isEqualTo(null); in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
DActionDisabledLearnMoreButtonLauncher.java53 int enforcementAdminUserId, EnforcedAdmin enforcedAdmin) { in setupLearnMoreButtonToShowAdminPolicies() argument
61 setLearnMoreButton(() -> showAdminPolicies(context, enforcedAdmin)); in setupLearnMoreButtonToShowAdminPolicies()
133 private void showAdminPolicies(Context context, EnforcedAdmin enforcedAdmin) { in showAdminPolicies() argument
134 if (enforcedAdmin != null && enforcedAdmin.component != null) { in showAdminPolicies()
135 launchShowAdminPolicies(context, enforcedAdmin.user, enforcedAdmin.component); in showAdminPolicies()
DBiometricActionDisabledByAdminController.java57 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
59 Log.d(TAG, "Positive button clicked, component: " + enforcedAdmin.component); in getPositiveButtonListener()
63 .setPackage(enforcedAdmin.component.getPackageName()); in getPositiveButtonListener()
DActionDisabledByAdminController.java65 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java111 final EnforcedAdmin enforcedAdmin = EnforcedAdmin in checkIfRestrictionEnforced() local
113 enforcedAdmin.user = userHandle; in checkIfRestrictionEnforced()
117 + "(" + enforcedAdmin + ")"); in checkIfRestrictionEnforced()
119 return enforcedAdmin; in checkIfRestrictionEnforced()
219 EnforcedAdmin enforcedAdmin = null; in findEnforcedAdmin() local
222 if (enforcedAdmin == null) { in findEnforcedAdmin()
223 enforcedAdmin = new EnforcedAdmin(admin, user); in findEnforcedAdmin()
229 return enforcedAdmin; in findEnforcedAdmin()
446 final EnforcedAdmin enforcedAdmin = getProfileOrDeviceOwner(context, in checkIfMeteredDataRestricted() local
448 if (enforcedAdmin == null) { in checkIfMeteredDataRestricted()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/source/
DUserRecord.kt49 @JvmField val enforcedAdmin: RestrictedLockUtils.EnforcedAdmin? = null, constant in com.android.systemui.user.data.source.UserRecord
76 return enforcedAdmin != null in isDisabledByAdmin()
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java137 EnforcedAdmin enforcedAdmin = new EnforcedAdmin(); in createDefaultEnforcedAdminWithRestriction() local
138 enforcedAdmin.enforcedRestriction = enforcedRestriction; in createDefaultEnforcedAdminWithRestriction()
139 return enforcedAdmin; in createDefaultEnforcedAdminWithRestriction()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/
DBiometricActionDisabledByAdminControllerTest.java70 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = new RestrictedLockUtils.EnforcedAdmin( in buttonClicked() local
74 mController.getPositiveButtonListener(mContext, enforcedAdmin); in buttonClicked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/
DBrightnessSliderControllerTest.kt53 private lateinit var enforcedAdmin: RestrictedLockUtils.EnforcedAdmin variable in com.android.systemui.settings.brightness.BrightnessSliderControllerTest
106 mController.setEnforcedAdmin(enforcedAdmin) in testEnforceAdminRelayed()
107 verify(brightnessSliderView).setEnforcedAdmin(enforcedAdmin) in testEnforceAdminRelayed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/data/
DLegacyUserDataHelper.kt78 enforcedAdmin = in createRecord()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailView.java189 mContext, userRecord.enforcedAdmin); in onClick()