Home
last modified time | relevance | path

Searched refs:Settings (Results 1 – 25 of 540) sorted by relevance

12345678910>>...22

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DCaptionCustomFragment.java21 import android.provider.Settings;
199 final String typeface = Settings.Secure.getString(getContext().getContentResolver(), in getCaptionsFontFamily()
200 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE); in getCaptionsFontFamily()
206 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily()
207 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, null); in setCaptionsFontFamily()
209 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily()
210 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, fontFamily); in setCaptionsFontFamily()
215 return Integer.toHexString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsTextColor()
216 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, 0) & 0x00ffffff); in getCaptionsTextColor()
221 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextColor()
[all …]
DDevelopmentFragment.java48 import android.provider.Settings;
269 || Settings.Global.getInt(mContentResolver, in onCreatePreferences()
270 Settings.Global.DEVICE_PROVISIONED, 0) == 0) { in onCreatePreferences()
501 mLastEnabledState = Settings.Global.getInt(mContentResolver, in onResume()
502 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0) != 0; in onResume()
511 Settings.Global.putInt(mContentResolver, in onResume()
512 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in onResume()
559 updateSwitchPreference(mEnableAdb, Settings.Global.getInt(cr, in updateAllOptions()
560 Settings.Global.ADB_ENABLED, 0) != 0); in updateAllOptions()
566 updateSwitchPreference(mKeepScreenOn, Settings.Global.getInt(cr, in updateAllOptions()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettingsValues.java134 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); in SettingsValues()
135 mVibrateOn = Settings.readVibrationEnabled(prefs, res); in SettingsValues()
136 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); in SettingsValues()
137 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); in SettingsValues()
143 mIncludesOtherImesInLanguageSwitchList = Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS in SettingsValues()
144 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) in SettingsValues()
146 mShowsLanguageSwitchKey = Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS in SettingsValues()
147 ? Settings.readShowsLanguageSwitchKey(prefs) : true /* forcibly */; in SettingsValues()
148 mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true); in SettingsValues()
149 mUsePersonalizedDicts = prefs.getBoolean(Settings.PREF_KEY_USE_PERSONALIZED_DICTS, true); in SettingsValues()
[all …]
DAdvancedSettingsFragment.java59 if (!Settings.isInternal(prefs)) { in onCreate()
60 removePreference(Settings.SCREEN_DEBUG); in onCreate()
64 removePreference(Settings.PREF_VIBRATION_DURATION_SETTINGS); in onCreate()
68 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { in onCreate()
69 removePreference(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onCreate()
73 (ListPreference) findPreference(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onCreate()
88 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onCreate()
101 updateListPreferenceSummaryToCurrentValue(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onResume()
107 if (key.equals(Settings.PREF_POPUP_ON)) { in onSharedPreferenceChanged()
108 setPreferenceEnabled(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY, in onSharedPreferenceChanged()
[all …]
DPreferencesSettingsFragment.java62 removePreference(Settings.PREF_VOICE_INPUT_KEY); in onCreate()
65 removePreference(Settings.PREF_VIBRATE_ON); in onCreate()
67 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { in onCreate()
68 removePreference(Settings.PREF_POPUP_ON); in onCreate()
77 final Preference voiceInputKeyOption = findPreference(Settings.PREF_VOICE_INPUT_KEY); in onResume()
89 if (key.equals(Settings.PREF_POPUP_ON)) { in onSharedPreferenceChanged()
90 setPreferenceEnabled(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY, in onSharedPreferenceChanged()
91 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onSharedPreferenceChanged()
99 setPreferenceEnabled(Settings.PREF_VIBRATION_DURATION_SETTINGS, in refreshEnablingsOfKeypressSoundAndVibrationSettings()
100 Settings.readVibrationEnabled(prefs, res)); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java39 import android.provider.Settings;
519 private int mCurrentLocationMode = Settings.Secure.LOCATION_MODE_OFF;
528 case Settings.Secure.LOCATION_MODE_HIGH_ACCURACY: in getButtonImageId()
529 case Settings.Secure.LOCATION_MODE_SENSORS_ONLY: in getButtonImageId()
542 mCurrentLocationMode = Settings.Secure.getInt(resolver, in getActualState()
543 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); in getActualState()
544 return (mCurrentLocationMode == Settings.Secure.LOCATION_MODE_OFF) in getActualState()
564 int currentMode = Settings.Secure.getInt(resolver, in requestStateChange()
565 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); in requestStateChange()
566 int mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; in requestStateChange()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilitySettings.java32 import android.provider.Settings;
270 Settings.Secure.putInt(getContentResolver(), in handleLongPressTimeoutPreferenceChange()
271 Settings.Secure.LONG_PRESS_TIMEOUT, Integer.parseInt(stringValue)); in handleLongPressTimeoutPreferenceChange()
277 Settings.Secure.putInt(getContentResolver(), in handleToggleInversionPreferenceChange()
278 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, (checked ? 1 : 0)); in handleToggleInversionPreferenceChange()
303 Settings.Secure.putInt(getContentResolver(), in handleToggleTextContrastPreferenceClick()
304 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, in handleToggleTextContrastPreferenceClick()
309 Settings.Secure.putInt(getContentResolver(), in handleTogglePowerButtonEndsCallPreferenceClick()
310 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, in handleTogglePowerButtonEndsCallPreferenceClick()
312 ? Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP in handleTogglePowerButtonEndsCallPreferenceClick()
[all …]
DMagnificationPreferenceFragment.java25 import android.provider.Settings;
84 updateFeatureSummary(Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, in onResume()
86 updateFeatureSummary(Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, in onResume()
116 final boolean enabled = Settings.Secure.getInt(getContentResolver(), prefKey, 0) == 1; in updateFeatureSummary()
120 if (Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED.equals(prefKey)) { in updateFeatureSummary()
122 } else if (Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED.equals( in updateFeatureSummary()
138 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED); in handleMagnificationNavbarPreferenceScreenClick()
145 Settings.Secure.getInt(getContentResolver(), in handleMagnificationNavbarPreferenceScreenClick()
146 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, 0) in handleMagnificationNavbarPreferenceScreenClick()
153 if (!Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED.equals(key)) { in getConfigurationWarningStringForSecureSettingsKey()
[all …]
DCaptionPropertiesFragment.java25 import android.provider.Settings;
241 Settings.Secure.putInt(getActivity().getContentResolver(), in onInstallSwitchBarToggleSwitch()
242 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, checked ? 1 : 0); in onInstallSwitchBarToggleSwitch()
430 Settings.Secure.putInt( in onValueChanged()
431 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, merged); in onValueChanged()
434 Settings.Secure.putInt( in onValueChanged()
435 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, merged); in onValueChanged()
438 Settings.Secure.putInt( in onValueChanged()
439 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, merged); in onValueChanged()
441 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, value); in onValueChanged()
[all …]
/packages/apps/Settings/src/com/android/settings/core/gateway/
DSettingsGateway.java33 import com.android.settings.Settings;
252 Settings.NetworkDashboardActivity.class.getName(),
253 Settings.ConnectedDeviceDashboardActivity.class.getName(),
254 Settings.AppAndNotificationDashboardActivity.class.getName(),
255 Settings.DisplaySettingsActivity.class.getName(),
256 Settings.SoundSettingsActivity.class.getName(),
257 Settings.StorageDashboardActivity.class.getName(),
258 Settings.PowerUsageSummaryActivity.class.getName(),
259 Settings.UserAndAccountDashboardActivity.class.getName(),
260 Settings.SecuritySettingsActivity.class.getName(),
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DDevelopmentSettings.java60 import android.provider.Settings;
761 updateSwitchPreference(mEnableAdb, Settings.Global.getInt(cr, in updateAllOptions()
762 Settings.Global.ADB_ENABLED, 0) != 0); in updateAllOptions()
770 updateSwitchPreference(mKeepScreenOn, Settings.Global.getInt(cr, in updateAllOptions()
771 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 0) != 0); in updateAllOptions()
774 updateSwitchPreference(mDebugViewAttributes, Settings.Global.getInt(cr, in updateAllOptions()
775 Settings.Global.DEBUG_VIEW_ATTRIBUTES, 0) != 0); in updateAllOptions()
776 updateSwitchPreference(mForceAllowOnExternal, Settings.Global.getInt(cr, in updateAllOptions()
777 Settings.Global.FORCE_ALLOW_ON_EXTERNAL, 0) != 0); in updateAllOptions()
943 mDebugApp = Settings.Global.getString( in updateDebuggerOptions()
[all …]
/packages/apps/Settings/src/com/android/settings/
DApplicationSettings.java21 import android.provider.Settings;
69 boolean userSetInstLocation = (Settings.Global.getInt(getContentResolver(), in onCreate()
70 Settings.Global.SET_INSTALL_LOCATION, 0) != 0); in onCreate()
87 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation()
88 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_DEVICE); in handleUpdateAppInstallLocation()
90 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation()
91 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_SDCARD); in handleUpdateAppInstallLocation()
93 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation()
94 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO); in handleUpdateAppInstallLocation()
97 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/assist/
DDefaultAssistPicker.java24 import android.provider.Settings;
168 Settings.Secure.putString(getContext().getContentResolver(), in setAssistNone()
169 Settings.Secure.ASSISTANT, ""); in setAssistNone()
170 Settings.Secure.putString(getContext().getContentResolver(), in setAssistNone()
171 Settings.Secure.VOICE_INTERACTION_SERVICE, ""); in setAssistNone()
172 Settings.Secure.putString(getContext().getContentResolver(), in setAssistNone()
173 Settings.Secure.VOICE_RECOGNITION_SERVICE, getDefaultRecognizer()); in setAssistNone()
184 Settings.Secure.putString(getContext().getContentResolver(), in setAssistService()
185 Settings.Secure.ASSISTANT, serviceComponentName); in setAssistService()
186 Settings.Secure.putString(getContext().getContentResolver(), in setAssistService()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/sound/
DSoundFragment.java23 import android.provider.Settings;
84 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_AUTO); in onPreferenceChange()
87 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_ALWAYS); in onPreferenceChange()
90 setSurroundPassthroughSetting(Settings.Global.ENCODED_SURROUND_OUTPUT_NEVER); in onPreferenceChange()
105 return Settings.System.getInt(contentResolver, Settings.System.SOUND_EFFECTS_ENABLED, 1) in getSoundEffectsEnabled()
115 Settings.System.putInt(getActivity().getContentResolver(), in setSoundEffectsEnabled()
116 Settings.System.SOUND_EFFECTS_ENABLED, enabled ? 1 : 0); in setSoundEffectsEnabled()
120 Settings.Global.putInt(getContext().getContentResolver(), in setSurroundPassthroughSetting()
121 Settings.Global.ENCODED_SURROUND_OUTPUT, newVal); in setSurroundPassthroughSetting()
125 final int value = Settings.Global.getInt(getContext().getContentResolver(), in getSurroundPassthroughSetting()
[all …]
/packages/apps/SpareParts/src/com/android/spare_parts/
DSpareParts.java37 import android.provider.Settings;
38 import android.provider.Settings.SettingNotFoundException;
128 mCompatibilityMode.setChecked(Settings.Global.getInt(getContentResolver(), in onCreate()
129 Settings.Global.COMPATIBILITY_MODE, 1) != 0); in onCreate()
145 mFancyImeAnimationsPref.setChecked(Settings.Global.getInt( in updateToggles()
147 Settings.Global.FANCY_IME_ANIMATIONS, 0) != 0); in updateToggles()
148 mHapticFeedbackPref.setChecked(Settings.System.getInt( in updateToggles()
150 Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) != 0); in updateToggles()
170 Settings.Global.putInt(getContentResolver(), in onPreferenceTreeClick()
171 Settings.Global.COMPATIBILITY_MODE, in onPreferenceTreeClick()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiWakeupPreferenceControllerTest.java19 import static android.provider.Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED;
20 import static android.provider.Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE;
21 import static android.provider.Settings.Global.WIFI_WAKEUP_AVAILABLE;
22 import static android.provider.Settings.Global.WIFI_WAKEUP_ENABLED;
28 import android.provider.Settings;
61 Settings.System.putInt(mContext.getContentResolver(), WIFI_SCAN_ALWAYS_AVAILABLE, 1); in setUp()
73 Settings.System.putInt(mContext.getContentResolver(), WIFI_WAKEUP_AVAILABLE, 0); in testIsAvailable_returnsFalseWhenSettingIsNotAvailable()
79 Settings.System.putInt(mContext.getContentResolver(), WIFI_WAKEUP_AVAILABLE, 1); in testIsAvailable_returnsTrueWhenSettingIsAvailable()
105 assertThat(Settings.Global.getInt(mContext.getContentResolver(), WIFI_WAKEUP_ENABLED, 0)) in handlePreferenceTreeClick_matchingKeyAndType_shouldUpdateSetting()
112 Settings.System.putInt(mContext.getContentResolver(), NETWORK_RECOMMENDATIONS_ENABLED, 1); in updateState_preferenceSetCheckedAndSetEnabledWhenSettingsAreEnabled()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionFragment.java21 import android.provider.Settings;
193 return Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsEnabled()
194 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 0) != 0; in getCaptionsEnabled()
198 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsEnabled()
199 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, enabled ? 1 : 0); in setCaptionsEnabled()
203 return Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsStyle()
204 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, 0); in getCaptionsStyle()
208 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsStyle()
209 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, style); in setCaptionsStyle()
215 final String captionLocale = Settings.Secure.getString(getContext().getContentResolver(), in getCaptionsLocale()
[all …]
DLocationFragment.java27 import android.provider.Settings;
180 int mode = Settings.Secure.LOCATION_MODE_OFF; in onPreferenceChange()
182 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; in onPreferenceChange()
184 mode = Settings.Secure.LOCATION_MODE_OFF; in onPreferenceChange()
196 int currentMode = Settings.Secure.getInt(getActivity().getContentResolver(), in writeLocationMode()
197 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); in writeLocationMode()
202 Settings.Secure.putInt(getActivity().getContentResolver(), in writeLocationMode()
203 Settings.Secure.LOCATION_MODE, mode); in writeLocationMode()
210 final int mode = Settings.Secure.getInt(getActivity().getContentResolver(), in refreshLocationMode()
211 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); in refreshLocationMode()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/settings/
DSoundSettingsFragment.java31 import android.provider.Settings;
114 Settings.System.getInt( in onCreate()
116 Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, in onCreate()
128 if (!Settings.System.canWrite(getContext())) { in onResume()
151 if (!Settings.System.canWrite(getContext())) { in onPreferenceChange()
162 Settings.System.putInt( in onPreferenceChange()
164 Settings.System.VIBRATE_WHEN_RINGING, in onPreferenceChange()
168 Settings.System.putInt( in onPreferenceChange()
169 getActivity().getContentResolver(), Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, index); in onPreferenceChange()
177 if (!Settings.System.canWrite(getContext())) { in onPreferenceTreeClick()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSettingsEnablerTest.java21 import android.provider.Settings;
57 Settings.Global.putInt(mContext.getContentResolver(), in onResume_shouldReadStateFromSettingProvider()
58 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in onResume_shouldReadStateFromSettingProvider()
64 Settings.Global.putInt(mContext.getContentResolver(), in onResume_shouldReadStateFromSettingProvider()
65 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in onResume_shouldReadStateFromSettingProvider()
74 Settings.Global.putInt(mContext.getContentResolver(), in disable_shouldChangeSettingProviderValue()
75 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in disable_shouldChangeSettingProviderValue()
80 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in disable_shouldChangeSettingProviderValue()
81 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1)).isEqualTo(0); in disable_shouldChangeSettingProviderValue()
86 Settings.Global.putInt(mContext.getContentResolver(), in enable_shouldChangeSettingProviderValue()
[all …]
/packages/services/Telephony/src/com/android/phone/
DCdmaSystemSelectListPreference.java26 import android.provider.Settings;
27 import android.provider.Settings.Secure;
71 Settings.Global.getInt(mPhone.getContext().getContentResolver(), in onDialogClosed()
72 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); in onDialogClosed()
84 Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onDialogClosed()
85 Settings.Global.CDMA_ROAMING_MODE, in onDialogClosed()
120 int settingsRoamingMode = Settings.Global.getInt( in handleQueryCdmaRoamingPreference()
122 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); in handleQueryCdmaRoamingPreference()
130 Settings.Global.putInt( in handleQueryCdmaRoamingPreference()
132 Settings.Global.CDMA_ROAMING_MODE, in handleQueryCdmaRoamingPreference()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiWakeupPreferenceController.java24 import android.provider.Settings;
75 return Settings.Global.getInt(mContext.getContentResolver(), in isAvailable()
76 Settings.Global.WIFI_WAKEUP_AVAILABLE, defaultValue) == 1; in isAvailable()
87 Settings.Global.putInt(mContext.getContentResolver(), in handlePreferenceTreeClick()
88 Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceTreeClick()
105 enableWifiWakeup.setChecked(Settings.Global.getInt(mContext.getContentResolver(), in updateState()
106 Settings.Global.WIFI_WAKEUP_ENABLED, 0) == 1); in updateState()
108 boolean wifiScanningEnabled = Settings.Global.getInt(mContext.getContentResolver(), in updateState()
109 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0) == 1; in updateState()
110 boolean networkRecommendationsEnabled = Settings.Global.getInt( in updateState()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DCustomContactListFilterActivity.java43 import android.provider.ContactsContract.Settings;
249 final Uri.Builder settingsUri = Settings.CONTENT_URI.buildUpon()
250 .appendQueryParameter(Settings.ACCOUNT_NAME, accountName)
251 .appendQueryParameter(Settings.ACCOUNT_TYPE, accountType);
253 settingsUri.appendQueryParameter(Settings.DATA_SET, dataSet);
256 Settings.SHOULD_SYNC, Settings.UNGROUPED_VISIBLE
261 values.put(Settings.ACCOUNT_NAME, accountName);
262 values.put(Settings.ACCOUNT_TYPE, accountType);
263 values.put(Settings.DATA_SET, dataSet);
267 values.put(Settings.SHOULD_SYNC, cursor.getInt(0));
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DLockScreenNotificationPreferenceController.java26 import android.provider.Settings;
227 Settings.Secure.putIntForUser(mContext.getContentResolver(), in onPreferenceChange()
228 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, in onPreferenceChange()
230 Settings.Secure.putIntForUser(mContext.getContentResolver(), in onPreferenceChange()
231 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, in onPreferenceChange()
243 Settings.Secure.putInt(mContext.getContentResolver(), in onPreferenceChange()
244 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, show ? 1 : 0); in onPreferenceChange()
245 Settings.Secure.putInt(mContext.getContentResolver(), in onPreferenceChange()
246 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, enabled ? 1 : 0); in onPreferenceChange()
313 return Settings.Secure.getIntForUser(mContext.getContentResolver(), in getLockscreenNotificationsEnabled()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DSettings.java46 public class Settings implements Parcelable { class
49 static final Settings EMPTY_SETTINGS = new Settings();
117 private static final Settings sDefault = EMPTY_SETTINGS;
119 private Settings() { in Settings() method in Settings
143 public Settings(Parcel inParcel) { in Settings() method in Settings
167 public Settings(Cursor cursor) { in Settings() method in Settings
203 private Settings(JSONObject json) { in Settings() method in Settings
327 public static Settings newInstance(JSONObject json) { in newInstance()
331 return new Settings(json); in newInstance()
371 public static Uri getDefaultInboxUri(Settings settings) { in getDefaultInboxUri()
[all …]

12345678910>>...22