Lines Matching defs:restrictionKey
1192 public boolean hasUserRestriction(String restrictionKey, int userId) {
1193 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) {
1197 return restrictions != null && restrictions.getBoolean(restrictionKey);
1205 * @param restrictionKey the string key representing the restriction
1214 public int getUserRestrictionSource(String restrictionKey, int userId) {
1219 if (!hasUserRestriction(restrictionKey, userId)) {
1223 if (hasBaseUserRestriction(restrictionKey, userId)) {
1230 && localRestrictions.getBoolean(restrictionKey)) {
1240 && mDevicePolicyGlobalUserRestrictions.getBoolean(restrictionKey)) {
1258 public boolean hasBaseUserRestriction(String restrictionKey, int userId) {
1260 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) {
1265 return (bundle != null && bundle.getBoolean(restrictionKey, false));