Lines Matching defs:preference

26 import android.preference.ListPreference;
27 import android.preference.Preference;
28 import android.preference.Preference.OnPreferenceClickListener;
29 import android.preference.PreferenceFragment;
30 import android.preference.PreferenceGroup;
31 import android.preference.PreferenceScreen;
64 * Used to denote a subsection of the preference tree to display in the
66 * preference section will be treated as the root for display. This is used
67 * to enable activity transitions between preference sections, and allows
173 // Allow the Helper to edit the full preference hierarchy, not the
197 public void fill(List<Size> sizes, ListPreference preference) {
198 setEntriesForSelection(sizes, preference);
223 public boolean onPreferenceClick(Preference preference) {
245 * desired preference key (delivered via an extra in the creation
319 * tries to delete the preference. Traversal stops once the preference
322 private boolean recursiveDelete(PreferenceGroup group, Preference preference) {
324 Log.d(TAG, "attempting to delete from null preference group");
327 if (preference == null) {
328 Log.d(TAG, "attempting to delete null preference");
331 if (group.removePreference(preference)) {
339 if (recursiveDelete((PreferenceGroup) pref, preference)) {
360 * Set the entries for the given preference. The given preference needs
363 private void setEntries(Preference preference) {
364 if (!(preference instanceof ListPreference)) {
368 ListPreference listPreference = (ListPreference) preference;
381 * Set the summary for the given preference. The given preference needs
384 private void setSummary(Preference preference) {
385 if (!(preference instanceof ListPreference)) {
389 ListPreference listPreference = (ListPreference) preference;
406 * Sets the entries for the given list preference.
410 * @param preference The preference to set the entries for.
413 ListPreference preference) {
425 preference.setEntries(entries);
426 preference.setEntryValues(entryValues);
430 * Sets the entries for the given list preference.
434 * @param preference The preference to set the entries for.
437 ListPreference preference) {
452 preference.setEntries(entries.toArray(new String[0]));
456 * Sets the summary for the given list preference.
459 * @param preference The preference for which to set the summary.
462 ListPreference preference) {
463 String setting = preference.getValue();
471 preference.setSummary(getSizeSummaryString(settingSize));
475 * Sets the summary for the given list preference.
478 * @param preference The preference for which to set the summary.
481 ListPreference preference) {
486 int selectedQuality = selectedQualities.getFromSetting(preference.getValue());
487 preference.setSummary(mCamcorderProfileNames[selectedQuality]);