Home | History | Annotate | Download | only in users

Lines Matching refs:restrictions

179         private ArrayList<RestrictionEntry> restrictions;
212 void setRestrictions(ArrayList<RestrictionEntry> restrictions) {
213 this.restrictions = restrictions;
229 if (restrictions == null) return null;
230 for (RestrictionEntry entry : restrictions) {
239 return restrictions;
359 Log.e(TAG, "Cannot apply application restrictions on a regular user!");
619 // If the app is required and has no restrictions, skip showing it
713 && pref.restrictions == null) {
714 // The restrictions have not been initialized, get and save them
732 ArrayList<RestrictionEntry> restrictions = appPref.getRestrictions();
733 if (restrictions != null) {
734 for (RestrictionEntry entry : restrictions) {
760 RestrictionUtils.setRestrictions(getActivity(), restrictions, mUser);
763 RestrictionUtils.restrictionsToBundle(restrictions),
784 // Settings, fake it by using user restrictions
785 ArrayList<RestrictionEntry> restrictions = RestrictionUtils.getRestrictions(
787 onRestrictionsReceived(preference, packageName, restrictions);
824 final ArrayList<RestrictionEntry> restrictions = results.getParcelableArrayList(
827 if (restrictions != null && restrictionsIntent == null) {
828 onRestrictionsReceived(preference, packageName, restrictions);
830 RestrictionUtils.restrictionsToBundle(restrictions), mUser);
833 if (restrictions != null) {
835 RestrictionUtils.restrictionsToBundle(restrictions));
853 preference.setRestrictions(restrictions);
859 ArrayList<RestrictionEntry> restrictions) {
860 // Non-custom-activity case - expand the restrictions in-place
863 for (RestrictionEntry entry : restrictions) {
905 // Store the restrictions key string as a key for the preference
914 preference.setRestrictions(restrictions);
915 if (count == 1 // No visible restrictions
918 // Special case of required app with no visible restrictions. Remove it