Lines Matching refs:res
24 import android.content.res.Resources;
57 public static void populateBooleanEntry(Resources res, RestrictionEntry entry) { in populateBooleanEntry() argument
59 entry.setTitle(res.getString(R.string.boolean_entry_title)); in populateBooleanEntry()
63 public static void populateChoiceEntry(Resources res, RestrictionEntry reSingleChoice) { in populateChoiceEntry() argument
64 String[] choiceEntries = res.getStringArray(R.array.choice_entry_entries); in populateChoiceEntry()
65 String[] choiceValues = res.getStringArray(R.array.choice_entry_values); in populateChoiceEntry()
69 reSingleChoice.setTitle(res.getString(R.string.choice_entry_title)); in populateChoiceEntry()
76 public static void populateMultiEntry(Resources res, RestrictionEntry reMultiSelect) { in populateMultiEntry() argument
77 String[] multiEntries = res.getStringArray(R.array.multi_entry_entries); in populateMultiEntry()
78 String[] multiValues = res.getStringArray(R.array.multi_entry_values); in populateMultiEntry()
82 reMultiSelect.setTitle(res.getString(R.string.multi_entry_title)); in populateMultiEntry()
92 Resources res = context.getResources(); in initRestrictions() local
95 populateBooleanEntry(res, reBoolean); in initRestrictions()
99 populateChoiceEntry(res, reSingleChoice); in initRestrictions()
103 populateMultiEntry(res, reMultiSelect); in initRestrictions()