Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java91 EnforcedAdmin enforcedAdmin = RestrictedLockUtils.checkIfRestrictionEnforced(mContext, in checkIfRestrictionEnforced_deviceOwner() local
94 assertThat(enforcedAdmin).isNotNull(); in checkIfRestrictionEnforced_deviceOwner()
95 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_deviceOwner()
96 assertThat(enforcedAdmin.component).isEqualTo(mAdmin1); in checkIfRestrictionEnforced_deviceOwner()
109 EnforcedAdmin enforcedAdmin = RestrictedLockUtils.checkIfRestrictionEnforced(mContext, in checkIfRestrictionEnforced_profileOwner() local
112 assertThat(enforcedAdmin).isNotNull(); in checkIfRestrictionEnforced_profileOwner()
113 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_profileOwner()
114 assertThat(enforcedAdmin.component).isEqualTo(mAdmin1); in checkIfRestrictionEnforced_profileOwner()
120 final EnforcedAdmin enforcedAdmin = RestrictedLockUtils.checkIfAccountManagementDisabled( in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile() local
123 assertThat(enforcedAdmin).isEqualTo(null); in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtils.java181 EnforcedAdmin enforcedAdmin = null; in findEnforcedAdmin() local
184 if (enforcedAdmin == null) { in findEnforcedAdmin()
185 enforcedAdmin = new EnforcedAdmin(admin, userId); in findEnforcedAdmin()
191 return enforcedAdmin; in findEnforcedAdmin()
375 final EnforcedAdmin enforcedAdmin = getProfileOrDeviceOwner(context, userId); in checkIfMeteredDataRestricted() local
376 if (enforcedAdmin == null) { in checkIfMeteredDataRestricted()
382 return dpm.isMeteredDataDisabledPackageForUser(enforcedAdmin.component, packageName, userId) in checkIfMeteredDataRestricted()
383 ? enforcedAdmin : null; in checkIfMeteredDataRestricted()
431 EnforcedAdmin enforcedAdmin = null; in checkIfPasswordQualityIsSet() local
434 if (enforcedAdmin == null) { in checkIfPasswordQualityIsSet()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailView.java103 mContext, tag.enforcedAdmin); in onClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java697 record.enforcedAdmin = admin; in checkIfAddUserDisallowedByAdminOnly()
700 record.enforcedAdmin = null; in checkIfAddUserDisallowedByAdminOnly()
717 public EnforcedAdmin enforcedAdmin; field in UserSwitcherController.UserRecord
762 sb.append(" enforcedAdmin=").append(enforcedAdmin); in toString()