Searched refs:listPreference (Results 1 – 3 of 3) sorted by relevance
17 private ListPreference listPreference; field in ShadowListPreferenceTest21 listPreference = new ListPreference(buildActivity(Activity.class).create().get()); in setUp()28 assertThat(listPreference.getEntries()).isNull(); in shouldHaveEntries()29 listPreference.setEntries(entries); in shouldHaveEntries()30 assertThat(listPreference.getEntries()).isSameInstanceAs(entries); in shouldHaveEntries()35 assertThat(listPreference.getEntries()).isNull(); in shouldSetEntriesByResourceId()36 listPreference.setEntries(R.array.greetings); in shouldSetEntriesByResourceId()37 assertThat(listPreference.getEntries()).isNotNull(); in shouldSetEntriesByResourceId()44 assertThat(listPreference.getEntryValues()).isNull(); in shouldHaveEntryValues()45 listPreference.setEntryValues(entryValues); in shouldHaveEntryValues()[all …]
172 ListPreference listPreference = new ListPreference(installedPkgsCat.getContext()); in createInstalledAppsListPreference() local173 initEmptyListPreference(listPreference); in createInstalledAppsListPreference()174 installedPkgsCat.addPreference(listPreference); in createInstalledAppsListPreference()180 ListPreference listPreference = new ListPreference(installedPkgsCat.getContext()); in createInstalledAppsListPreference() local181 initListPreference(packageInfo, listPreference); in createInstalledAppsListPreference()182 installedPkgsCat.addPreference(listPreference); in createInstalledAppsListPreference()243 private void initEmptyListPreference(ListPreference listPreference) in initEmptyListPreference() argument246 listPreference.setTitle(noAppsInstalledTitle); in initEmptyListPreference()249 listPreference.setSummary(noAppsInstalledSummary); in initEmptyListPreference()251 listPreference.setSelectable(false); in initEmptyListPreference()[all …]