Searched refs:enforcedAdmin (Results 1 – 4 of 4) sorted by relevance
91 EnforcedAdmin enforcedAdmin = RestrictedLockUtils.checkIfRestrictionEnforced(mContext, in checkIfRestrictionEnforced_deviceOwner() local94 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() local112 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() local123 assertThat(enforcedAdmin).isEqualTo(null); in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile()[all …]
181 EnforcedAdmin enforcedAdmin = null; in findEnforcedAdmin() local184 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() local376 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() local434 if (enforcedAdmin == null) { in checkIfPasswordQualityIsSet()[all …]
103 mContext, tag.enforcedAdmin); in onClick()
697 record.enforcedAdmin = admin; in checkIfAddUserDisallowedByAdminOnly()700 record.enforcedAdmin = null; in checkIfAddUserDisallowedByAdminOnly()717 public EnforcedAdmin enforcedAdmin; field in UserSwitcherController.UserRecord762 sb.append(" enforcedAdmin=").append(enforcedAdmin); in toString()