/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 99 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/ |
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 | BiometricActionDisabledByAdminController.java | 57 @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()
|
D | ActionDisabledByAdminController.java | 65 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtilsInternal.java | 111 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/ |
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/RestrictedLockUtils/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 137 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/ |
D | BiometricActionDisabledByAdminControllerTest.java | 70 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/ |
D | BrightnessSliderControllerTest.kt | 53 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/ |
D | LegacyUserDataHelper.kt | 78 enforcedAdmin = in createRecord()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | UserDetailView.java | 189 mContext, userRecord.enforcedAdmin); in onClick()
|