Home | History | Annotate | Download | only in phone

Lines Matching refs: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;
80 * This preference screen is the root of the "Call settings" hierarchy
97 Preference.OnPreferenceChangeListener,
157 // String keys for preference lookup
162 // New preference key for voicemail notification vibration
165 // Old preference key for voicemail notification vibration. Used for migration to the new
166 // preference key only.
265 private Preference mRingtonePreference;
277 private Preference mVoicemailNotificationRingtone;
481 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
482 if (preference == mSubMenuVoicemailSettings) {
484 } else if (preference == mPlayDtmfTone) {
487 } else if (preference == mDialpadAutocomplete) {
490 } else if (preference == mButtonDTMF) {
492 } else if (preference == mButtonTTY) {
494 } else if (preference == mButtonAutoRetry) {
499 } else if (preference == mButtonHAC) {
508 } else if (preference == mVoicemailSettings) {
509 if (DBG) log("onPreferenceTreeClick: Voicemail Settings Preference is clicked.");
510 if (preference.getIntent() != null) {
513 + preference.getIntent().getPackage());
517 this.startActivityForResult(preference.getIntent(), VOICEMAIL_PROVIDER_CFG_ID);
530 // This should let the preference use default behavior in the xml.
538 * Implemented to support onPreferenceChangeListener to look for preference
541 * @param preference is the preference to be changed
546 public boolean onPreferenceChange(Preference preference, Object objValue) {
548 log("onPreferenceChange(). preferenece: \"" + preference + "\""
551 if (preference == mVibrateWhenRinging) {
555 } else if (preference == mButtonDTMF) {
559 } else if (preference == mButtonTTY) {
560 handleTTYChange(preference, objValue);
561 } else if (preference == mVoicemailProviders) {
594 } else if (preference == mButtonSipCallOptions) {
597 // always let the preference setting proceed.
602 public void onDialogClosed(EditPhoneNumberPreference preference, int buttonClicked) {
603 if (DBG) log("onPreferenceClick: request preference click on dialog close: " +
609 if (preference == mSubMenuVoicemailSettings) {
620 public String onGetDefaultNumber(EditPhoneNumberPreference preference) {
621 if (preference == mSubMenuVoicemailSettings) {
646 // this is an intent requested from the preference framework.
1429 // while those that are mapped to BUTTON_NEUTRAL only move the preference focus.
1593 Preference options = prefSet.findPreference(BUTTON_CDMA_OPTIONS);
1602 Preference fdnButton = prefSet.findPreference(BUTTON_FDN_KEY);
1669 private void updateRingtoneName(int type, Preference preference, int msg) {
1670 if (preference == null) return;
1681 String uriString = prefs.getString(preference.getKey(), null);
1739 // on Wi-Fi only; also make the other options preference invisible.
1762 Preference sipSettings = findPreference(SIP_SETTINGS_CATEGORY_KEY);
1766 Preference pref = screen.getPreference(i);
1846 * Lookups ringtone name asynchronously and updates the relevant Preference.
1857 private void handleTTYChange(Preference preference, Object objValue) {
1915 * Updates the look of the VM preference widgets based on current VM provider settings.
1924 persisted value for the list preference mVoicemailProviders.
1953 * the preference list objects with their names.
2017 // the list preference
2043 // Finally update the preference texts.
2052 * Simulates user clicking on a passed preference.
2053 * Usually needed when the preference is a dialog preference and we want to invoke
2054 * a dialog for this preference programmatically.
2055 * TODO(iliat): figure out if there is a cleaner way to cause preference dlg to come up
2057 private void simulatePreferenceClick(Preference preference) {
2062 if (adapter.getItem(idx) == preference) {