Lines Matching refs:lp
26 ListPreference lp = new ListPreference(getContext());
27 lp.setEntries(entries);
28 lp.setEntryValues(entryValues);
30 lp.setValue(entryValues[1]);
31 assertTrue(lp.getSummary() == null);
33 lp.setSummary("%1$s");
34 assertEquals(entries[1], lp.getSummary());
36 lp.setValue(entryValues[2]);
37 assertEquals(entries[2], lp.getSummary());
39 lp.setSummary(null);
40 assertTrue(lp.getSummary() == null);
42 lp.setSummary("The color is %1$s");
43 assertEquals("The color is " + entries[2], lp.getSummary());