Lines Matching refs:Preference
38 import android.preference.CheckBoxPreference;
39 import android.preference.ListPreference;
40 import android.preference.Preference;
41 import android.preference.PreferenceCategory;
42 import android.preference.PreferenceScreen;
56 implements Preference.OnPreferenceChangeListener, InputManager.InputDeviceListener,
79 private Preference mLanguagePref;
141 // Build IME preference category.
168 // Build hard keyboard and game controller preference categories.
194 private void updateUserDictionaryPreference(Preference userDictionaryPreference) {
199 // not present or disabled. In this case we need to remove the preference.
317 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
322 if (preference instanceof PreferenceScreen) {
323 if (preference.getFragment() != null) {
325 } else if (KEY_CURRENT_INPUT_METHOD.equals(preference.getKey())) {
330 } else if (preference instanceof CheckBoxPreference) {
331 final CheckBoxPreference chkPref = (CheckBoxPreference) preference;
347 return super.onPreferenceTreeClick(preferenceScreen, preference);
381 public boolean onPreferenceChange(Preference preference, Object value) {
383 if (preference == mShowInputMethodSelectorPref) {
393 for (Preference pref : mInputMethodPreferenceList) {
404 final Preference curPref = getPreferenceScreen().findPreference(KEY_CURRENT_INPUT_METHOD);
463 pref.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
465 public boolean onPreferenceClick(Preference preference) {
477 final Preference pref = mHardKeyboardCategory.getPreference(i);
486 final Preference pref = mHardKeyboardPreferenceList.get(i);