Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java104 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfRestrictionEnforced_deviceOwner() local
107 assertThat(enforcedAdmin).isNotNull(); in checkIfRestrictionEnforced_deviceOwner()
108 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_deviceOwner()
109 assertThat(enforcedAdmin.component).isEqualTo(mAdmin1); in checkIfRestrictionEnforced_deviceOwner()
128 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfRestrictionEnforced_profileOwner() local
131 assertThat(enforcedAdmin).isNotNull(); in checkIfRestrictionEnforced_profileOwner()
132 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_profileOwner()
133 assertThat(enforcedAdmin.component).isEqualTo(mAdmin1); in checkIfRestrictionEnforced_profileOwner()
139 final EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile() local
142 assertThat(enforcedAdmin).isEqualTo(null); in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile()
[all …]
DRestrictedPreferenceHelperTest.java146 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in setDisabledByAdmin_disablePreference_receivedEnforcedAdminIsNotAReference() local
151 mHelper.setDisabledByAdmin(enforcedAdmin); in setDisabledByAdmin_disablePreference_receivedEnforcedAdminIsNotAReference()
155 enforcedAdmin.enforcedRestriction = null; in setDisabledByAdmin_disablePreference_receivedEnforcedAdminIsNotAReference()
/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()
DSupervisedDeviceActionDisabledByAdminController.java64 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
65 if (enforcedAdmin.component == null in getPositiveButtonListener()
66 || TextUtils.isEmpty(enforcedAdmin.component.getPackageName())) { in getPositiveButtonListener()
76 .setPackage(enforcedAdmin.component.getPackageName()); in getPositiveButtonListener()
DBiometricActionDisabledByAdminController.java58 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
60 Log.d(TAG, "Positive button clicked, component: " + enforcedAdmin.component); in getPositiveButtonListener()
68 .setPackage(enforcedAdmin.component.getPackageName()); in getPositiveButtonListener()
DActionDisabledByAdminController.java65 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/data/repository/
DBrightnessPolicyRepositoryImplTest.kt93 val enforcedAdmin: EnforcedAdmin = in restrictDefaultUser() constant
103 .thenReturn(enforcedAdmin) in restrictDefaultUser()
107 assertThat(restrictions).isEqualTo(PolicyRestriction.Restricted(enforcedAdmin)) in restrictDefaultUser()
119 val enforcedAdmin: EnforcedAdmin = in restrictMainUser() constant
129 .thenReturn(enforcedAdmin) in restrictMainUser()
137 assertThat(restrictions).isEqualTo(PolicyRestriction.Restricted(enforcedAdmin)) in restrictMainUser()
165 val enforcedAdmin: EnforcedAdmin = in bothRestrictions_returnsSetEnforcedAdminFromCheck() constant
175 .thenReturn(enforcedAdmin) in bothRestrictions_returnsSetEnforcedAdminFromCheck()
188 assertThat(restrictions).isEqualTo(PolicyRestriction.Restricted(enforcedAdmin)) in bothRestrictions_returnsSetEnforcedAdminFromCheck()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java188 final EnforcedAdmin enforcedAdmin = EnforcedAdmin in checkIfRestrictionEnforced() local
190 enforcedAdmin.user = userHandle; in checkIfRestrictionEnforced()
194 + "(" + enforcedAdmin + ")"); in checkIfRestrictionEnforced()
196 return enforcedAdmin; in checkIfRestrictionEnforced()
284 EnforcedAdmin enforcedAdmin = null; in findEnforcedAdmin() local
287 if (enforcedAdmin == null) { in findEnforcedAdmin()
288 enforcedAdmin = new EnforcedAdmin(admin, user); in findEnforcedAdmin()
294 return enforcedAdmin; in findEnforcedAdmin()
522 final EnforcedAdmin enforcedAdmin = getProfileOrDeviceOwner(context, in checkIfMeteredDataUsageUserControlDisabled() local
524 if (enforcedAdmin == null) { in checkIfMeteredDataUsageUserControlDisabled()
[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/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/enterprise/
DRestrictedMode.kt43 private val enforcedAdmin: RestrictedLockUtils.EnforcedAdmin, constant in com.android.settingslib.spaprivileged.model.enterprise.BlockedByAdminImpl
61 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(context, enforcedAdmin) in sendShowAdminSupportDetailsIntent()
DRestrictionsProvider.kt87 ?.let { return BlockedByAdminImpl(context = context, enforcedAdmin = it) } in restrictedModeState()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/domain/interactor/
DBrightnessPolicyEnforcementInteractorTest.kt91 val enforcedAdmin = in startRestrictionDialog() constant
101 PolicyRestriction.Restricted(enforcedAdmin) in startRestrictionDialog()
113 RestrictedLockUtils.getShowAdminSupportDetailsIntent(enforcedAdmin) in startRestrictionDialog()
/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/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java155 final EnforcedAdmin enforcedAdmin = new EnforcedAdmin(); in createDefaultEnforcedAdminWithRestriction() local
156 enforcedAdmin.enforcedRestriction = enforcedRestriction; in createDefaultEnforcedAdminWithRestriction()
157 return enforcedAdmin; in createDefaultEnforcedAdminWithRestriction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessController.java376 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in checkRestrictionAndSetEnabled()
380 if (Flags.enforceBrightnessBaseUserRestriction() && enforcedAdmin == null in checkRestrictionAndSetEnabled()
384 enforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in checkRestrictionAndSetEnabled()
386 mControl.setEnforcedAdmin(enforcedAdmin); in checkRestrictionAndSetEnabled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/
DBrightnessSliderControllerTest.kt59 private lateinit var enforcedAdmin: RestrictedLockUtils.EnforcedAdmin variable in com.android.systemui.settings.brightness.BrightnessSliderControllerTest
126 mController.setEnforcedAdmin(enforcedAdmin) in testEnforceAdminRelayed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/data/
DLegacyUserDataHelper.kt79 enforcedAdmin = in createRecord()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailView.java189 userRecord.enforcedAdmin); in onClick()