Home | History | Annotate | Download | only in phone

Lines Matching refs:Settings

54 import android.provider.Settings;
55 import android.provider.Settings.SettingNotFoundException;
81 * Top level "Call settings" UI; see res/xml/call_feature_setting.xml
83 * This preference screen is the root of the "Call settings" hierarchy
84 * available from the Phone app; the settings here let you control various
85 * features related to phone calls (including voicemail settings, SIP
86 * settings, the "Respond via SMS" feature, and others.) It's used only
93 * For the "Mobile network settings" screen under the main Settings app,
107 * Intent action to bring up Voicemail Provider settings.
135 // Suffix appended to provider key for storing forwarding settings
137 // Suffix appended to forward settings key for storing length of settings array
139 // Suffix appended to forward settings key for storing an individual setting
292 * Forwarding settings we are going to save.
303 * Constructs settings object, setting all conditional forwarding to the specified number
378 * Results of reading forwarding settings
411 * Flag indicating that we are invoking settings for the voicemail provider programmatically
441 * Data about discovered voice mail settings providers.
454 // New call forwarding settings and vm number we will be setting
456 // query the existing forwarding settings.
469 * We have to pull current settings from the network for all kinds of
471 * so use this bit to keep track of whether we're reading settings for the
486 Settings.System.putInt(getContentResolver(), Settings.System.DTMF_TONE_WHEN_DIALING,
493 android.provider.Settings.Global.putInt(mPhone.getContext().getContentResolver(),
494 android.provider.Settings.Global.CALL_AUTO_RETRY,
499 // Update HAC value in Settings database
500 Settings.System.putInt(mPhone.getContext().getContentResolver(),
501 Settings.System.HEARING_AID, hac);
507 if (DBG) log("onPreferenceTreeClick: Voicemail Settings Preference is clicked.");
551 Settings.System.putInt(mPhone.getContext().getContentResolver(),
552 Settings.System.VIBRATE_WHEN_RINGING, doVibrate ? 1 : 0);
555 Settings.System.putInt(mPhone.getContext().getContentResolver(),
556 Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index);
697 // Only revert the settings for which the update
896 + " settings");
898 // No fwd settings on CDMA
917 if (DBG) log("Reading current forwarding settings");
1053 // Called after we are done saving the previous forwarding settings if
1127 "Check if we need to try rollback for some settings.");
1286 * Called when Voicemail Provider or its forwarding settings failed. Rolls back partly made
1287 * changes to those settings and show "failure" dialog.
1305 * Called when Voicemail Provider and its forwarding settings were successfully finished.
1444 // We failed to get current forwarding settings and the user
1452 // We failed to get current forwarding settings but the user
1453 // wishes to continue changing settings to the new vm provider
1463 // with settings UI. If we were called to explicitly configure voice mail then
1464 // we finish the settings activity here to come back to whatever the user was doing.
1550 mPlayDtmfTone.setChecked(Settings.System.getInt(contentResolver,
1551 Settings.System.DTMF_TONE_WHEN_DIALING, 1) != 0);
1666 * Updates ringtone name. This is a method copied from com.android.settings.SoundSettings
1668 * @see com.android.settings.SoundSettings
1675 // For ringtones, we can just lookup the system default because changing the settings
1676 // in Call Settings changes the system default.
1687 if (uriString.equals(Settings.System.DEFAULT_NOTIFICATION_URI.toString())) {
1725 // Add Internet call settings.
1778 int dtmf = Settings.System.getInt(getContentResolver(),
1779 Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, Constants.DTMF_TONE_TYPE_NORMAL);
1784 int autoretry = Settings.Global.getInt(getContentResolver(),
1785 Settings.Global.CALL_AUTO_RETRY, 0);
1790 int hac = Settings.System.getInt(getContentResolver(), Settings.System.HEARING_AID, 0);
1795 int settingsTtyMode = Settings.Secure.getInt(getContentResolver(),
1796 Settings.Secure.PREFERRED_TTY_MODE,
1812 // Migrate settings from BUTTON_VOICEMAIL_NOTIFICATION_VIBRATE_WHEN_KEY to
1842 return Settings.System.getInt(context.getContentResolver(),
1843 Settings.System.VIBRATE_WHEN_RINGING, 0) != 0;
1854 return Settings.System.getInt(getContentResolver(),
1855 Settings.System.AIRPLANE_MODE_ON, 0) != 0;
1861 int settingsTtyMode = android.provider.Settings.Secure.getInt(
1863 android.provider.Settings.Secure.PREFERRED_TTY_MODE, preferredTtyMode);
1873 android.provider.Settings.Secure.putInt(getContentResolver(),
1874 android.provider.Settings.Secure.PREFERRED_TTY_MODE, buttonTtyMode);
1916 * Updates the look of the VM preference widgets based on current VM provider settings.
2059 // Go through settings until we find our setting
2072 * Saves new VM provider settings associating them with the currently selected
2073 * provider if settings are different than the ones already stored for this
2090 if (DBG) log("Saving settings for " + key + ": " + newSettings.toString());
2112 * Returns settings previously stored for the currently selected
2114 * If the user switches to a voice mail provider and we have settings
2123 Log.w(LOG_TAG, "VoiceMailProvider settings for the key \"" + key + "\""
2150 VoiceMailProviderSettings settings = new VoiceMailProviderSettings(vmNumberSetting, cfi);
2151 if (DBG) log("Loaded settings for " + key + ": " + settings.toString());
2152 return settings;
2156 * Deletes settings for the specified provider.
2159 if (DBG) log("Deleting settings for" + key);
2185 * Finish current Activity and go up to the top level Settings ({@link CallFeaturesSetting}).
2186 * This is useful for implementing "HomeAsUp" capability for second-level Settings.