/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 104 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 …]
|
D | RestrictedPreferenceHelperTest.java | 146 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/ |
D | ActionDisabledLearnMoreButtonLauncher.java | 53 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()
|
D | SupervisedDeviceActionDisabledByAdminController.java | 64 @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()
|
D | BiometricActionDisabledByAdminController.java | 58 @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()
|
D | ActionDisabledByAdminController.java | 65 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/data/repository/ |
D | BrightnessPolicyRepositoryImplTest.kt | 93 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/ |
D | RestrictedLockUtilsInternal.java | 188 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/ |
D | UserRecord.kt | 49 @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/ |
D | RestrictedMode.kt | 43 private val enforcedAdmin: RestrictedLockUtils.EnforcedAdmin, constant in com.android.settingslib.spaprivileged.model.enterprise.BlockedByAdminImpl 61 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(context, enforcedAdmin) in sendShowAdminSupportDetailsIntent()
|
D | RestrictionsProvider.kt | 87 ?.let { return BlockedByAdminImpl(context = context, enforcedAdmin = it) } in restrictedModeState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/domain/interactor/ |
D | BrightnessPolicyEnforcementInteractorTest.kt | 91 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/ |
D | BiometricActionDisabledByAdminControllerTest.java | 70 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/ |
D | RestrictedLockUtils.java | 155 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/ |
D | BrightnessController.java | 376 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/ |
D | BrightnessSliderControllerTest.kt | 59 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/ |
D | LegacyUserDataHelper.kt | 79 enforcedAdmin = in createRecord()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | UserDetailView.java | 189 userRecord.enforcedAdmin); in onClick()
|