Searched refs:newPref (Results 1 – 6 of 6) sorted by relevance
193 final Preference newPref = new Preference(mScreen.getContext()); in createUserDictionaryPreference() local196 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 …]
368 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() local388 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 …]
140 final Preference newPref = new Preference(getActivity()); in createUserDictionaryPreference() local143 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()
144 final RadioPreference newPref = (RadioPreference) preference; in onPreferenceTreeClick() local145 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()
109 final int newPref = OemNetworkPreferences.OEM_NETWORK_PREFERENCE_OEM_PAID; in testAddNetworkPreferenceOverwritesPriorPreference() local117 mBuilder.addNetworkPreference(TEST_PACKAGE, newPref); in testAddNetworkPreferenceOverwritesPriorPreference()121 assertEquals(networkPreferences.get(TEST_PACKAGE).intValue(), newPref); in testAddNetworkPreferenceOverwritesPriorPreference() local
264 final Preference newPref = bindPreference(recycle, entry); in updateAppListInternal() local265 group.addPreference(newPref); in updateAppListInternal()