Searched refs:enforcedAdmin (Results 1 – 5 of 5) sorted by relevance
99 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfRestrictionEnforced_deviceOwner() local102 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() local120 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() local131 assertThat(enforcedAdmin).isEqualTo(null); in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile()[all …]
202 EnforcedAdmin enforcedAdmin = null; in findEnforcedAdmin() local205 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() local400 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() local459 if (enforcedAdmin == null) { in checkIfPasswordQualityIsSet()[all …]
122 EnforcedAdmin enforcedAdmin = new EnforcedAdmin(); in createDefaultEnforcedAdminWithRestriction() local123 enforcedAdmin.enforcedRestriction = enforcedRestriction; in createDefaultEnforcedAdminWithRestriction()124 return enforcedAdmin; in createDefaultEnforcedAdminWithRestriction()
106 mContext, tag.enforcedAdmin); in onClick()
704 record.enforcedAdmin = admin; in checkIfAddUserDisallowedByAdminOnly()707 record.enforcedAdmin = null; in checkIfAddUserDisallowedByAdminOnly()724 public EnforcedAdmin enforcedAdmin; field in UserSwitcherController.UserRecord769 sb.append(" enforcedAdmin=").append(enforcedAdmin); in toString()