Home | History | Annotate | Download | only in users

Lines Matching defs:restrictions

159         private ArrayList<RestrictionEntry> restrictions;
191 void setRestrictions(ArrayList<RestrictionEntry> restrictions) {
192 this.restrictions = restrictions;
204 if (restrictions == null) return null;
205 for (RestrictionEntry entry : restrictions) {
214 return restrictions;
365 Log.e(TAG, "Cannot apply application restrictions on another user!");
700 // If the app is required and has no restrictions, skip showing it
704 // Only do this for restricted profiles, not single-user restrictions
788 && pref.restrictions == null) {
789 // The restrictions have not been initialized, get and save them
811 ArrayList<RestrictionEntry> restrictions = appPref.getRestrictions();
812 if (restrictions != null) {
813 for (RestrictionEntry entry : restrictions) {
837 RestrictionUtils.setRestrictions(getActivity(), restrictions, mUser);
840 RestrictionUtils.restrictionsToBundle(restrictions),
865 // Settings, fake it by using user restrictions
866 ArrayList<RestrictionEntry> restrictions = RestrictionUtils.getRestrictions(
868 onRestrictionsReceived(preference, packageName, restrictions);
878 * Send a broadcast to the app to query its restrictions
879 * @param packageName package name of the app with restrictions
915 final ArrayList<RestrictionEntry> restrictions = results.getParcelableArrayList(
918 if (restrictions != null && restrictionsIntent == null) {
919 onRestrictionsReceived(preference, packageName, restrictions);
922 RestrictionUtils.restrictionsToBundle(restrictions), mUser);
925 preference.setRestrictions(restrictions);
937 ArrayList<RestrictionEntry> restrictions) {
938 // Remove any earlier restrictions
940 // Non-custom-activity case - expand the restrictions in-place
943 for (RestrictionEntry entry : restrictions) {
985 // Store the restrictions key string as a key for the preference
994 preference.setRestrictions(restrictions);
995 if (count == 1 // No visible restrictions
998 // Special case of required app with no visible restrictions. Remove it