Lines Matching full:preference
45 import android.preference.CheckBoxPreference;
46 import android.preference.ListPreference;
47 import android.preference.Preference;
48 import android.preference.PreferenceActivity;
49 import android.preference.PreferenceGroup;
50 import android.preference.PreferenceManager;
51 import android.preference.PreferenceScreen;
83 * This preference screen is the root of the "Call settings" hierarchy
100 Preference.OnPreferenceChangeListener,
160 // String keys for preference lookup
165 // New preference key for voicemail notification vibration
168 // Old preference key for voicemail notification vibration. Used for migration to the new
169 // preference key only.
267 private Preference mRingtonePreference;
278 private Preference mVoicemailNotificationRingtone;
482 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
483 if (preference == mSubMenuVoicemailSettings) {
485 } else if (preference == mPlayDtmfTone) {
488 } else if (preference == mButtonDTMF) {
490 } else if (preference == mButtonTTY) {
492 } else if (preference == mButtonAutoRetry) {
497 } else if (preference == mButtonHAC) {
506 } else if (preference == mVoicemailSettings) {
507 if (DBG) log("onPreferenceTreeClick: Voicemail Settings Preference is clicked.");
508 if (preference.getIntent() != null) {
511 + preference.getIntent().getPackage());
515 this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID);
528 // This should let the preference use default behavior in the xml.
536 * Implemented to support onPreferenceChangeListener to look for preference
539 * @param preference is the preference to be changed
544 public boolean onPreferenceChange(Preference preference, Object objValue) {
546 log("onPreferenceChange(). preferenece: \"" + preference + "\""
549 if (preference == mVibrateWhenRinging) {
553 } else if (preference == mButtonDTMF) {
557 } else if (preference == mButtonTTY) {
558 handleTTYChange(preference, objValue);
559 } else if (preference == mVoicemailProviders) {
592 } else if (preference == mButtonSipCallOptions) {
595 // always let the preference setting proceed.
600 public void onDialogClosed(EditPhoneNumberPreference preference, int buttonClicked) {
601 if (DBG) log("onPreferenceClick: request preference click on dialog close: " +
607 if (preference == mSubMenuVoicemailSettings) {
618 public String onGetDefaultNumber(EditPhoneNumberPreference preference) {
619 if (preference == mSubMenuVoicemailSettings) {
644 // this is an intent requested from the preference framework.
1434 // while those that are mapped to BUTTON_NEUTRAL only move the preference focus.
1592 Preference options = prefSet.findPreference(BUTTON_CDMA_OPTIONS);
1601 Preference fdnButton = prefSet.findPreference(BUTTON_FDN_KEY);
1670 private void updateRingtoneName(int type, Preference preference, int msg) {
1671 if (preference == null) return;
1682 String uriString = prefs.getString(preference.getKey(), null);
1740 // on Wi-Fi only; also make the other options preference invisible.
1763 Preference sipSettings = findPreference(SIP_SETTINGS_CATEGORY_KEY);
1767 Preference pref = screen.getPreference(i);
1847 * Lookups ringtone name asynchronously and updates the relevant Preference.
1858 private void handleTTYChange(Preference preference, Object objValue) {
1916 * Updates the look of the VM preference widgets based on current VM provider settings.
1925 persisted value for the list preference mVoicemailProviders.
1954 * the preference list objects with their names.
2018 // the list preference
2044 // Finally update the preference texts.
2053 * Simulates user clicking on a passed preference.
2054 * Usually needed when the preference is a dialog preference and we want to invoke
2055 * a dialog for this preference programmatically.
2056 * TODO(iliat): figure out if there is a cleaner way to cause preference dlg to come up
2058 private void simulatePreferenceClick(Preference preference) {
2063 if (adapter.getItem(idx) == preference) {