Home
last modified time | relevance | path

Searched refs:enforcedAdmin (Results 1 – 5 of 5) 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/
DRestrictedLockUtilsInternal.java202 EnforcedAdmin enforcedAdmin = null; in findEnforcedAdmin() local
205 if (enforcedAdmin == null) { in findEnforcedAdmin()
206 enforcedAdmin = new EnforcedAdmin(admin, user); in findEnforcedAdmin()
212 return enforcedAdmin; in findEnforcedAdmin()
398 final EnforcedAdmin enforcedAdmin = getProfileOrDeviceOwner(context, in checkIfMeteredDataRestricted() local
400 if (enforcedAdmin == null) { in checkIfMeteredDataRestricted()
406 return dpm.isMeteredDataDisabledPackageForUser(enforcedAdmin.component, packageName, userId) in checkIfMeteredDataRestricted()
407 ? enforcedAdmin : null; in checkIfMeteredDataRestricted()
455 EnforcedAdmin enforcedAdmin = null; in checkIfPasswordQualityIsSet() local
459 if (enforcedAdmin == null) { in checkIfPasswordQualityIsSet()
[all …]
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java122 EnforcedAdmin enforcedAdmin = new EnforcedAdmin(); in createDefaultEnforcedAdminWithRestriction() local
123 enforcedAdmin.enforcedRestriction = enforcedRestriction; in createDefaultEnforcedAdminWithRestriction()
124 return enforcedAdmin; in createDefaultEnforcedAdminWithRestriction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailView.java106 mContext, tag.enforcedAdmin); in onClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java704 record.enforcedAdmin = admin; in checkIfAddUserDisallowedByAdminOnly()
707 record.enforcedAdmin = null; in checkIfAddUserDisallowedByAdminOnly()
724 public EnforcedAdmin enforcedAdmin; field in UserSwitcherController.UserRecord
769 sb.append(" enforcedAdmin=").append(enforcedAdmin); in toString()