Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/settings/
DCameraSettingsActivity.java368 ListPreference listPreference = (ListPreference) preference; in setEntries() local
369 if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_BACK)) { in setEntries()
370 setEntriesForSelection(mPictureSizes.backCameraSizes, listPreference); in setEntries()
371 } else if (listPreference.getKey().equals(Keys.KEY_PICTURE_SIZE_FRONT)) { in setEntries()
372 setEntriesForSelection(mPictureSizes.frontCameraSizes, listPreference); in setEntries()
373 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_BACK)) { in setEntries()
374 setEntriesForSelection(mPictureSizes.videoQualitiesBack.orNull(), listPreference); in setEntries() local
375 } else if (listPreference.getKey().equals(Keys.KEY_VIDEO_QUALITY_FRONT)) { in setEntries()
376 setEntriesForSelection(mPictureSizes.videoQualitiesFront.orNull(), listPreference); in setEntries() local
389 ListPreference listPreference = (ListPreference) preference; in setSummary() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSubScreenFragment.java58 final ListPreference listPreference = (ListPreference)screen.findPreference(prefKey); in updateListPreferenceSummaryToCurrentValue() local
59 if (listPreference == null) { in updateListPreferenceSummaryToCurrentValue()
62 final CharSequence entries[] = listPreference.getEntries(); in updateListPreferenceSummaryToCurrentValue()
63 final int entryIndex = listPreference.findIndexOfValue(listPreference.getValue()); in updateListPreferenceSummaryToCurrentValue()
64 listPreference.setSummary(entryIndex < 0 ? null : entries[entryIndex]); in updateListPreferenceSummaryToCurrentValue()