/packages/apps/Settings/src/com/android/settings/ |
D | DevelopmentSettings.java | 56 import android.provider.Settings; 457 mLastEnabledState = Settings.Global.getInt(cr, in onResume() 458 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0) != 0; in onResume() 467 Settings.Global.putInt(getActivity().getContentResolver(), in onResume() 468 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in onResume() 496 updateSwitchPreference(mEnableAdb, Settings.Global.getInt(cr, in updateAllOptions() 497 Settings.Global.ADB_ENABLED, 0) != 0); in updateAllOptions() 503 updateSwitchPreference(mBugreportInPower, Settings.Secure.getInt(cr, in updateAllOptions() 504 Settings.Secure.BUGREPORT_IN_POWER_MENU, 0) != 0); in updateAllOptions() 505 updateSwitchPreference(mKeepScreenOn, Settings.Global.getInt(cr, in updateAllOptions() [all …]
|
D | ApplicationSettings.java | 26 import android.provider.Settings; 63 boolean userSetInstLocation = (Settings.Global.getInt(getContentResolver(), in onCreate() 64 Settings.Global.SET_INSTALL_LOCATION, 0) != 0); in onCreate() 81 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation() 82 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_DEVICE); in handleUpdateAppInstallLocation() 84 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation() 85 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_SDCARD); in handleUpdateAppInstallLocation() 87 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation() 88 Settings.Global.DEFAULT_INSTALL_LOCATION, APP_INSTALL_AUTO); in handleUpdateAppInstallLocation() 91 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation() [all …]
|
D | SecuritySettings.java | 41 import android.provider.Settings; 42 import android.provider.Settings.SettingNotFoundException; 61 import static android.provider.Settings.System.SCREEN_OFF_TIMEOUT; 307 if (Settings.System.getInt(getContentResolver(), in createPreferenceHierarchy() 308 Settings.System.LOCK_TO_APP_ENABLED, 0) != 0) { in createPreferenceHierarchy() 435 return Settings.Global.getInt(getContentResolver(), in isNonMarketAppsAllowed() 436 Settings.Global.INSTALL_NON_MARKET_APPS, 0) > 0; in isNonMarketAppsAllowed() 445 Settings.Global.putInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, in setNonMarketAppsAllowed() 481 long currentTimeout = Settings.Secure.getLong(getContentResolver(), in setupLockAfterPreference() 482 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT, 5000); in setupLockAfterPreference() [all …]
|
D | DisplaySettings.java | 25 import static android.provider.Settings.Secure.DOZE_ENABLED; 26 import static android.provider.Settings.Secure.WAKE_GESTURE_ENABLED; 27 import static android.provider.Settings.System.SCREEN_BRIGHTNESS_MODE; 28 import static android.provider.Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC; 29 import static android.provider.Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL; 30 import static android.provider.Settings.System.SCREEN_OFF_TIMEOUT; 52 import android.provider.Settings; 102 final long currentTimeout = Settings.System.getLong(resolver, SCREEN_OFF_TIMEOUT, in onCreate() 317 int brightnessMode = Settings.System.getInt(getContentResolver(), 324 int value = Settings.Secure.getInt(getContentResolver(), WAKE_GESTURE_ENABLED, 0); [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SettingsValues.java | 129 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); in SettingsValues() 130 mVibrateOn = Settings.readVibrationEnabled(prefs, res); in SettingsValues() 131 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); in SettingsValues() 132 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); in SettingsValues() 139 Settings.PREF_AUTO_CORRECTION_THRESHOLD, in SettingsValues() 141 mIncludesOtherImesInLanguageSwitchList = Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS in SettingsValues() 142 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) in SettingsValues() 144 mShowsLanguageSwitchKey = Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS in SettingsValues() 145 ? Settings.readShowsLanguageSwitchKey(prefs) : true /* forcibly */; in SettingsValues() 146 mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true); in SettingsValues() [all …]
|
D | AdvancedSettingsFragment.java | 60 if (!Settings.isInternal(prefs)) { in onCreate() 61 removePreference(Settings.SCREEN_DEBUG); in onCreate() 65 removePreference(Settings.PREF_VIBRATION_DURATION_SETTINGS); in onCreate() 69 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { in onCreate() 70 removePreference(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onCreate() 74 (ListPreference) findPreference(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onCreate() 89 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onCreate() 93 removePreference(Settings.PREF_SHOW_SETUP_WIZARD_ICON); in onCreate() 98 findPreference(Settings.PREF_ENABLE_METRICS_LOGGING); in onCreate() 107 removePreference(Settings.PREF_ENABLE_METRICS_LOGGING); in onCreate() [all …]
|
D | PreferencesSettingsFragment.java | 57 removePreference(Settings.PREF_VOICE_INPUT_KEY); in onCreate() 60 removePreference(Settings.PREF_VIBRATE_ON); in onCreate() 62 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { in onCreate() 63 removePreference(Settings.PREF_POPUP_ON); in onCreate() 72 final Preference voiceInputKeyOption = findPreference(Settings.PREF_VOICE_INPUT_KEY); in onResume() 85 if (key.equals(Settings.PREF_POPUP_ON)) { in onSharedPreferenceChanged() 86 setPreferenceEnabled(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY, in onSharedPreferenceChanged() 87 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onSharedPreferenceChanged() 95 setPreferenceEnabled(Settings.PREF_VIBRATION_DURATION_SETTINGS, in refreshEnablingsOfKeypressSoundAndVibrationSettings() 96 Settings.readVibrationEnabled(prefs, res)); in refreshEnablingsOfKeypressSoundAndVibrationSettings() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | SettingsAppWidgetProvider.java | 39 import android.provider.Settings; 512 private int mCurrentLocationMode = Settings.Secure.LOCATION_MODE_OFF; 521 case Settings.Secure.LOCATION_MODE_HIGH_ACCURACY: in getButtonImageId() 522 case Settings.Secure.LOCATION_MODE_SENSORS_ONLY: in getButtonImageId() 535 mCurrentLocationMode = Settings.Secure.getInt(resolver, in getActualState() 536 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); in getActualState() 537 return (mCurrentLocationMode == Settings.Secure.LOCATION_MODE_OFF) in getActualState() 557 int currentMode = Settings.Secure.getInt(resolver, in requestStateChange() 558 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); in requestStateChange() 559 int mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; in requestStateChange() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilitySettings.java | 39 import android.provider.Settings; 250 Settings.Secure.putInt(getContentResolver(), in handleLongPressTimeoutPreferenceChange() 251 Settings.Secure.LONG_PRESS_TIMEOUT, Integer.parseInt(stringValue)); in handleLongPressTimeoutPreferenceChange() 257 Settings.Secure.putInt(getContentResolver(), in handleToggleInversionPreferenceChange() 258 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, (checked ? 1 : 0)); in handleToggleInversionPreferenceChange() 298 Settings.Secure.putInt(getContentResolver(), in handleToggleTextContrastPreferenceClick() 299 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, in handleToggleTextContrastPreferenceClick() 304 Settings.Secure.putInt(getContentResolver(), in handleTogglePowerButtonEndsCallPreferenceClick() 305 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, in handleTogglePowerButtonEndsCallPreferenceClick() 307 ? Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP in handleTogglePowerButtonEndsCallPreferenceClick() [all …]
|
D | CaptionPropertiesFragment.java | 29 import android.provider.Settings; 234 Settings.Secure.putInt(getActivity().getContentResolver(), in onInstallSwitchBarToggleSwitch() 235 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, checked ? 1 : 0); in onInstallSwitchBarToggleSwitch() 394 Settings.Secure.putInt( in onValueChanged() 395 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, merged); in onValueChanged() 398 Settings.Secure.putInt( in onValueChanged() 399 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, merged); in onValueChanged() 402 Settings.Secure.putInt( in onValueChanged() 403 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, merged); in onValueChanged() 405 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, value); in onValueChanged() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | DeveloperOptionsActivity.java | 48 import android.provider.Settings; 111 mHelper.getGlobalIntSetting(Settings.Global.STAY_ON_WHILE_PLUGGED_IN))); in refreshActionList() 122 Settings.Secure.BLUETOOTH_HCI_LOG)))); in refreshActionList() 128 mResources, mHelper.getGlobalIntSetting(Settings.Global.ADB_ENABLED))); in refreshActionList() 131 mHelper.getSecureStatusIntSetting(Settings.Secure.ALLOW_MOCK_LOCATION))); in refreshActionList() 136 mHelper.getGlobalIntSetting(Settings.Global.WAIT_FOR_DEBUGGER))); in refreshActionList() 140 Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB))); in refreshActionList() 147 mResources, mHelper.getSystemIntSetting(Settings.System.SHOW_TOUCHES))); in refreshActionList() 149 mResources, mHelper.getSystemIntSetting(Settings.System.POINTER_LOCATION))); in refreshActionList() 254 mResources, mHelper.getGlobalIntSetting(Settings.Global.SHOW_PROCESSES))); in refreshActionList() [all …]
|
D | CaptionSetupActivity.java | 31 import android.provider.Settings; 601 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, in setEnabled() 610 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, s); in setStyle() 623 Settings.Secure.putFloat(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, in setTextSize() 631 Settings.Secure.putString(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE, language); in setLanguage() 638 Settings.Secure.putString(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, in setFontFamily() 657 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, in updateCaptioningTextColor() 684 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, in updateCaptioningWindowColor() 692 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, in setEdgeType() 700 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, in setEdgeColor() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationSettings.java | 48 import android.provider.Settings; 352 return Settings.System.putInt(getContentResolver(), in initVibrateWhenRinging() 353 Settings.System.VIBRATE_WHEN_RINGING, in initVibrateWhenRinging() 361 mVibrateWhenRinging.setChecked(Settings.System.getInt(getContentResolver(), in updateVibrateWhenRinging() 362 Settings.System.VIBRATE_WHEN_RINGING, 0) != 0); in updateVibrateWhenRinging() 382 return Settings.System.putInt(getContentResolver(), in initPulse() 383 Settings.System.NOTIFICATION_LIGHT_PULSE, in initPulse() 395 mNotificationPulse.setChecked(Settings.System.getInt(getContentResolver(), in updatePulse() 396 Settings.System.NOTIFICATION_LIGHT_PULSE) == 1); in updatePulse() 397 } catch (Settings.SettingNotFoundException snfe) { in updatePulse() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | CustomContactListFilterActivity.java | 41 import android.provider.ContactsContract.Settings; 257 final Uri.Builder settingsUri = Settings.CONTENT_URI.buildUpon() in fromSettings() 258 .appendQueryParameter(Settings.ACCOUNT_NAME, accountName) in fromSettings() 259 .appendQueryParameter(Settings.ACCOUNT_TYPE, accountType); in fromSettings() 261 settingsUri.appendQueryParameter(Settings.DATA_SET, dataSet); in fromSettings() 264 Settings.SHOULD_SYNC, Settings.UNGROUPED_VISIBLE in fromSettings() 269 values.put(Settings.ACCOUNT_NAME, accountName); in fromSettings() 270 values.put(Settings.ACCOUNT_TYPE, accountType); in fromSettings() 271 values.put(Settings.DATA_SET, dataSet); in fromSettings() 275 values.put(Settings.SHOULD_SYNC, cursor.getInt(0)); in fromSettings() [all …]
|
/packages/apps/SpareParts/src/com/android/spare_parts/ |
D | SpareParts.java | 37 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/src/com/android/settings/inputmethod/ |
D | InputMethodAndSubtypeUtil.java | 24 import android.provider.Settings; 25 import android.provider.Settings.SettingNotFoundException; 86 return Settings.Secure.getInt(resolver, in getInputMethodSubtypeSelected() 87 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE); in getInputMethodSubtypeSelected() 98 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); in putSelectedInputMethodSubtype() 104 final String enabledInputMethodsStr = Settings.Secure.getString( in getEnabledInputMethodsAndSubtypeList() 105 resolver, Settings.Secure.ENABLED_INPUT_METHODS); in getEnabledInputMethodsAndSubtypeList() 142 Settings.Secure.putString(resolver, in enableInputMethodSubtypesOf() 143 Settings.Secure.ENABLED_INPUT_METHODS, enabledImesAndSubtypesString); in enableInputMethodSubtypesOf() 148 String disabledIMEsStr = Settings.Secure.getString( in getDisabledSystemIMEs() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | MobileNetworkSettings.java | 218 int settingsNetworkMode = android.provider.Settings.Global.getInt(mPhone.getContext(). in onPreferenceTreeClick() 220 android.provider.Settings.Global.PREFERRED_NETWORK_MODE + phoneSubId, in onPreferenceTreeClick() 225 String tmpl = android.provider.Settings.Global.getString(getContentResolver(), in onPreferenceTreeClick() 226 android.provider.Settings.Global.SETUP_PREPAID_DATA_SERVICE_URL); in onPreferenceTreeClick() 243 int settingsNetworkMode = android.provider.Settings.Global.getInt(mPhone.getContext(). in onPreferenceTreeClick() 245 android.provider.Settings.Global.PREFERRED_NETWORK_MODE + phoneSubId, in onPreferenceTreeClick() 539 int settingsNetworkMode = android.provider.Settings.Global.getInt( in updateBody() 541 android.provider.Settings.Global.PREFERRED_NETWORK_MODE + phoneSubId, in updateBody() 545 int shouldHideCarrierSettings = android.provider.Settings.Global.getInt( in updateBody() 547 android.provider.Settings.Global.HIDE_CARRIER_NETWORK_SETTINGS, 0); in updateBody() [all …]
|
D | CdmaSystemSelectListPreference.java | 26 import android.provider.Settings; 27 import android.provider.Settings.Secure; 72 Settings.Global.getInt(mPhone.getContext().getContentResolver(), in onDialogClosed() 73 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); in onDialogClosed() 85 Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onDialogClosed() 86 Settings.Global.CDMA_ROAMING_MODE, in onDialogClosed() 121 int settingsRoamingMode = Settings.Global.getInt( in handleQueryCdmaRoamingPreference() 123 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); in handleQueryCdmaRoamingPreference() 131 Settings.Global.putInt( in handleQueryCdmaRoamingPreference() 133 Settings.Global.CDMA_ROAMING_MODE, in handleQueryCdmaRoamingPreference() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Settings.java | 46 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 …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | SettingsHelper.java | 29 import android.provider.Settings; 30 import android.provider.Settings.SettingNotFoundException; 57 return getStatusStringFromInt(Settings.Secure.getInt(mContentResolver, setting)); in getSecureStatusIntSetting() 70 Settings.Secure.getInt(mContentResolver, setting, Integer.parseInt(def))); in getSecureIntSetting() 78 return Settings.Secure.getInt(mContentResolver, setting) == 1; in getSecureIntValueSettingToBoolean() 86 Settings.Secure.putInt(mContentResolver, setting, settingValue); in setSecureIntSetting() 91 Settings.Secure.putInt(mContentResolver, setting, settingValue); in setSecureIntValueSetting() 99 return getStatusStringFromInt(Settings.System.getInt(mContentResolver, setting)); in getSystemIntSetting() 109 return Settings.System.getInt(mContentResolver, setting) == 1; in getSystemIntSettingToBoolean() 117 Settings.System.putInt(mContentResolver, setting, settingValue); in setSystemIntSetting() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | GroupsTest.java | 32 import android.provider.ContactsContract.Settings; 316 values.put(Settings.ACCOUNT_NAME, sTestAccount.name); in testUngroupedVisible() 317 values.put(Settings.ACCOUNT_TYPE, sTestAccount.type); in testUngroupedVisible() 318 values.put(Settings.UNGROUPED_VISIBLE, 0); in testUngroupedVisible() 319 mResolver.insert(Settings.CONTENT_URI, values); in testUngroupedVisible() 324 values.put(Settings.UNGROUPED_VISIBLE, 1); in testUngroupedVisible() 325 mResolver.update(Settings.CONTENT_URI, values, Settings.ACCOUNT_NAME + "=? AND " in testUngroupedVisible() 326 + Settings.ACCOUNT_TYPE + "=?", new String[] { in testUngroupedVisible() 372 values.put(Settings.ACCOUNT_NAME, sTestAccount.name); in testMultipleSourcesVisible() 373 values.put(Settings.ACCOUNT_TYPE, sTestAccount.type); in testMultipleSourcesVisible() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | LegacyApiSupport.java | 50 import android.provider.ContactsContract.Settings; 771 android.provider.Contacts.Settings._ID + " INTEGER PRIMARY KEY," + in createSettingsTable() 772 android.provider.Contacts.Settings._SYNC_ACCOUNT + " TEXT," + in createSettingsTable() 773 android.provider.Contacts.Settings._SYNC_ACCOUNT_TYPE + " TEXT," + in createSettingsTable() 774 android.provider.Contacts.Settings.KEY + " STRING NOT NULL," + in createSettingsTable() 775 android.provider.Contacts.Settings.VALUE + " STRING " + in createSettingsTable() 1253 String accountName = values.getAsString(android.provider.Contacts.Settings._SYNC_ACCOUNT); in updateSettings() 1255 values.getAsString(android.provider.Contacts.Settings._SYNC_ACCOUNT_TYPE); in updateSettings() 1256 String key = values.getAsString(android.provider.Contacts.Settings.KEY); in updateSettings() 1261 if (key.equals(android.provider.Contacts.Settings.SYNC_EVERYTHING)) { in updateSettings() [all …]
|
/packages/apps/Settings/src/com/android/settings/wfd/ |
D | WifiDisplaySettings.java | 48 import android.provider.Settings; 157 getContentResolver().registerContentObserver(Settings.Global.getUriFor( in onStart() 158 Settings.Global.WIFI_DISPLAY_ON), false, mSettingsObserver); in onStart() 159 getContentResolver().registerContentObserver(Settings.Global.getUriFor( in onStart() 160 Settings.Global.WIFI_DISPLAY_CERTIFICATION_ON), false, mSettingsObserver); in onStart() 161 getContentResolver().registerContentObserver(Settings.Global.getUriFor( in onStart() 162 Settings.Global.WIFI_DISPLAY_WPS_CONFIG), false, mSettingsObserver); in onStart() 203 Settings.Global.putInt(getContentResolver(), in onOptionsItemSelected() 204 Settings.Global.WIFI_DISPLAY_ON, mWifiDisplayOnSetting ? 1 : 0); in onOptionsItemSelected() 231 mWifiDisplayOnSetting = Settings.Global.getInt(getContentResolver(), in update() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputLogicTests.java | 23 import com.android.inputmethod.latin.settings.Settings; 183 setBooleanPreference(Settings.PREF_KEY_USE_DOUBLE_SPACE_PERIOD, true, true); in testDoubleSpace() 245 setBooleanPreference(Settings.PREF_SHOW_SUGGESTIONS, true, true); in testDoubleSpacePeriod() 246 setStringPreference(Settings.PREF_AUTO_CORRECTION_THRESHOLD, "1", "1"); in testDoubleSpacePeriod() 247 setBooleanPreference(Settings.PREF_KEY_USE_DOUBLE_SPACE_PERIOD, true, true); in testDoubleSpacePeriod() 250 testDoubleSpacePeriodWithSettings(true, Settings.PREF_SHOW_SUGGESTIONS, false); in testDoubleSpacePeriod() 252 testDoubleSpacePeriodWithSettings(true, Settings.PREF_SHOW_SUGGESTIONS, true); in testDoubleSpacePeriod() 255 testDoubleSpacePeriodWithSettings(false, Settings.PREF_KEY_USE_DOUBLE_SPACE_PERIOD, false); in testDoubleSpacePeriod() 258 testDoubleSpacePeriodWithSettings(true, Settings.PREF_AUTO_CORRECTION_THRESHOLD, "0"); in testDoubleSpacePeriod() 260 testDoubleSpacePeriodWithSettings(true, Settings.PREF_AUTO_CORRECTION_THRESHOLD, "1"); in testDoubleSpacePeriod() [all …]
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipSharedPreferences.java | 23 import android.provider.Settings; 24 import android.provider.Settings.SettingNotFoundException; 73 Settings.System.putString(mContext.getContentResolver(), in setSipCallOption() 74 Settings.System.SIP_CALL_OPTIONS, option); in setSipCallOption() 84 String option = Settings.System.getString(mContext.getContentResolver(), in getSipCallOption() 85 Settings.System.SIP_CALL_OPTIONS); in getSipCallOption() 91 Settings.System.putInt(mContext.getContentResolver(), in setReceivingCallsEnabled() 92 Settings.System.SIP_RECEIVE_CALLS, (enabled ? 1 : 0)); in setReceivingCallsEnabled() 97 return (Settings.System.getInt(mContext.getContentResolver(), in isReceivingCallsEnabled() 98 Settings.System.SIP_RECEIVE_CALLS) != 0); in isReceivingCallsEnabled()
|