Home | History | Annotate | Download | only in pm

Lines Matching refs:restrictionKey

1171     public boolean hasUserRestriction(String restrictionKey, int userId) {
1172 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) {
1176 return restrictions != null && restrictions.getBoolean(restrictionKey);
1184 * @param restrictionKey the string key representing the restriction
1193 public int getUserRestrictionSource(String restrictionKey, int userId) {
1198 if (!hasUserRestriction(restrictionKey, userId)) {
1202 if (hasBaseUserRestriction(restrictionKey, userId)) {
1209 && localRestrictions.getBoolean(restrictionKey)) {
1219 && mDevicePolicyGlobalUserRestrictions.getBoolean(restrictionKey)) {
1237 public boolean hasBaseUserRestriction(String restrictionKey, int userId) {
1239 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) {
1244 return (bundle != null && bundle.getBoolean(restrictionKey, false));