Home
last modified time | relevance | path

Searched refs:reSingleChoice (Results 1 – 1 of 1) sorted by relevance

/development/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/
DGetRestrictionsReceiver.java63 public static void populateChoiceEntry(Resources res, RestrictionEntry reSingleChoice) { in populateChoiceEntry() argument
66 if (reSingleChoice.getSelectedString() == null) { in populateChoiceEntry()
67 reSingleChoice.setSelectedString(choiceValues[0]); in populateChoiceEntry()
69 reSingleChoice.setTitle(res.getString(R.string.choice_entry_title)); in populateChoiceEntry()
70 reSingleChoice.setChoiceEntries(choiceEntries); in populateChoiceEntry()
71 reSingleChoice.setChoiceValues(choiceValues); in populateChoiceEntry()
72 reSingleChoice.setType(RestrictionEntry.TYPE_CHOICE); in populateChoiceEntry()
98 RestrictionEntry reSingleChoice = new RestrictionEntry(KEY_CHOICE, (String) null); in initRestrictions() local
99 populateChoiceEntry(res, reSingleChoice); in initRestrictions()
100 newRestrictions.add(reSingleChoice); in initRestrictions()