Lines Matching refs:RestrictionEntry
23 import android.content.RestrictionEntry;
57 public static void populateBooleanEntry(Resources res, RestrictionEntry entry) {
58 entry.setType(RestrictionEntry.TYPE_BOOLEAN);
63 public static void populateChoiceEntry(Resources res, RestrictionEntry reSingleChoice) {
72 reSingleChoice.setType(RestrictionEntry.TYPE_CHOICE);
76 public static void populateMultiEntry(Resources res, RestrictionEntry reMultiSelect) {
85 reMultiSelect.setType(RestrictionEntry.TYPE_MULTI_SELECT);
90 private ArrayList<RestrictionEntry> initRestrictions(Context context) {
91 ArrayList<RestrictionEntry> newRestrictions = new ArrayList<RestrictionEntry>();
94 RestrictionEntry reBoolean = new RestrictionEntry(KEY_BOOLEAN, false);
98 RestrictionEntry reSingleChoice = new RestrictionEntry(KEY_CHOICE, (String) null);
102 RestrictionEntry reMultiSelect = new RestrictionEntry(KEY_MULTI_SELECT, (String[]) null);
114 ArrayList<RestrictionEntry> newEntries = initRestrictions(context);
128 for (RestrictionEntry entry : newEntries) {