Lines Matching full:preference
36 import android.preference.CheckBoxPreference;
37 import android.preference.ListPreference;
38 import android.preference.Preference;
39 import android.preference.PreferenceActivity;
40 import android.preference.PreferenceScreen;
65 Preference.OnPreferenceChangeListener,
116 // String keys for preference lookup
390 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
391 if (preference == mSubMenuVoicemailSettings) {
393 } else if (preference == mButtonDTMF) {
395 } else if (preference == mButtonTTY) {
397 } else if (preference == mButtonAutoRetry) {
402 } else if (preference == mButtonHAC) {
411 } else if (preference == mVoicemailSettings && preference.getIntent() != null) {
412 if (DBG) log("Invoking cfg intent " + preference.getIntent().getPackage());
413 this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID);
420 * Implemented to support onPreferenceChangeListener to look for preference
423 * @param preference is the preference to be changed
427 public boolean onPreferenceChange(Preference preference, Object objValue) {
428 if (preference == mButtonDTMF) {
432 } else if (preference == mButtonTTY) {
433 handleTTYChange(preference, objValue);
434 } else if (preference == mVoicemailProviders) {
468 // always let the preference setting proceed.
472 // Preference click listener invoked on OnDialogClosed for EditPhoneNumberPreference.
473 public void onDialogClosed(EditPhoneNumberPreference preference, int buttonClicked) {
474 if (DBG) log("onPreferenceClick: request preference click on dialog close: " +
479 if (preference instanceof EditPhoneNumberPreference) {
480 EditPhoneNumberPreference epn = preference;
493 public String onGetDefaultNumber(EditPhoneNumberPreference preference) {
494 if (preference == mSubMenuVoicemailSettings) {
519 // this is an intent requested from the preference framework.
1237 // while those that are mapped to BUTTON_NEUTRAL only move the preference focus.
1372 Preference options = prefSet.findPreference(BUTTON_CDMA_OPTIONS);
1381 Preference fdnButton = prefSet.findPreference(BUTTON_FDN_KEY);
1447 private void handleTTYChange(Preference preference, Object objValue) {
1497 * Updates the look of the VM preference widgets based on current VM provider settings.
1506 persisted value for the list preference mVoicemailProviders.
1526 * the preference list objects with their names.
1587 // the list preference
1615 * Simulates user clicking on a passed preference.
1616 * Usually needed when the preference is a dialog preference and we want to invoke
1617 * a dialog for this preference programmatically.
1618 * TODO(iliat): figure out if there is a cleaner way to cause preference dlg to come up
1620 private void simulatePreferenceClick(Preference preference) {
1625 if (adapter.getItem(idx) == preference) {