Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryListPreferenceController.java193 final Preference newPref = new Preference(mScreen.getContext()); in createUserDictionaryPreference() local
196 newPref.setTitle(Locale.getDefault().getDisplayName()); in createUserDictionaryPreference()
197 newPref.setKey(Locale.getDefault().toString()); in createUserDictionaryPreference()
200 newPref.setTitle(mContext.getString(R.string.user_dict_settings_all_languages)); in createUserDictionaryPreference()
201 newPref.setKey(KEY_ALL_LANGUAGE); in createUserDictionaryPreference()
202 newPref.setOrder(0); in createUserDictionaryPreference()
204 newPref.setTitle(Utils.createLocaleFromString(locale).getDisplayName()); in createUserDictionaryPreference()
205 newPref.setKey(locale); in createUserDictionaryPreference()
208 newPref.getExtras().putString(KEY_LOCALE, locale); in createUserDictionaryPreference()
210 newPref.setIntent(intent); in createUserDictionaryPreference()
[all …]
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSliceFragment.java368 for (Preference newPref : newPrefs) { in updatePreferenceScreen()
369 if (newPref.getKey() != null && newPref.getKey().equals(oldPref.getKey())) { in updatePreferenceScreen()
384 Preference newPref = newPrefs.get(i); in updatePreferenceScreen() local
388 if (newPref.getKey() != null) { in updatePreferenceScreen()
391 if (oldPref.getKey() != null && oldPref.getKey().equals(newPref.getKey())) { in updatePreferenceScreen()
392 oldPref.setIcon(newPref.getIcon()); in updatePreferenceScreen()
393 oldPref.setTitle(newPref.getTitle()); in updatePreferenceScreen()
394 oldPref.setSummary(newPref.getSummary()); in updatePreferenceScreen()
395 oldPref.setEnabled(newPref.isEnabled()); in updatePreferenceScreen()
396 oldPref.setSelectable(newPref.isSelectable()); in updatePreferenceScreen()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryList.java140 final Preference newPref = new Preference(getActivity()); in createUserDictionaryPreference() local
143 newPref.setTitle(Locale.getDefault().getDisplayName()); in createUserDictionaryPreference()
146 newPref.setTitle(getString(R.string.user_dict_settings_all_languages)); in createUserDictionaryPreference()
148 newPref.setTitle( in createUserDictionaryPreference()
152 newPref.getExtras().putString("locale", localeString); in createUserDictionaryPreference()
154 newPref.setIntent(intent); in createUserDictionaryPreference()
155 newPref.setFragment(UserDictionarySettings.class.getName()); in createUserDictionaryPreference()
156 return newPref; in createUserDictionaryPreference()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/autofill/
DAutofillPickerFragment.java144 final RadioPreference newPref = (RadioPreference) preference; in onPreferenceTreeClick() local
145 final String newKey = newPref.getKey(); in onPreferenceTreeClick()
154 R.string.autofill_confirmation_message, newPref.getTitle())); in onPreferenceTreeClick()
165 newPref.setChecked(true); in onPreferenceTreeClick()
166 newPref.clearOtherRadioPreferences(getPreferenceScreen()); in onPreferenceTreeClick()
/packages/modules/Connectivity/tests/common/java/android/net/
DOemNetworkPreferencesTest.java109 final int newPref = OemNetworkPreferences.OEM_NETWORK_PREFERENCE_OEM_PAID; in testAddNetworkPreferenceOverwritesPriorPreference() local
117 mBuilder.addNetworkPreference(TEST_PACKAGE, newPref); in testAddNetworkPreferenceOverwritesPriorPreference()
121 assertEquals(networkPreferences.get(TEST_PACKAGE).intValue(), newPref); in testAddNetworkPreferenceOverwritesPriorPreference() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAllAppsFragment.java264 final Preference newPref = bindPreference(recycle, entry); in updateAppListInternal() local
265 group.addPreference(newPref); in updateAppListInternal()