Home
last modified time | relevance | path

Searched refs:edit (Results 1 – 25 of 192) sorted by relevance

12345678

/packages/apps/Email/provider_src/com/android/email/
DPreferences.java117 getPreferences(context).mSharedPreferences.edit().remove(ACCOUNT_UUIDS).apply(); in clearLegacyBackupPreference()
121 mSharedPreferences.edit().putBoolean(ENABLE_DEBUG_LOGGING, value).apply(); in setEnableDebugLogging()
129 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_LOGGING, value).apply(); in setEnableExchangeLogging()
137 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_FILE_LOGGING, value).apply(); in setEnableExchangeFileLogging()
145 mSharedPreferences.edit().putBoolean(ENABLE_STRICT_MODE, value).apply(); in setEnableStrictMode()
161 mSharedPreferences.edit().putString(DEVICE_UID, result).apply(); in getDeviceUID()
171 mSharedPreferences.edit().putInt(ONE_TIME_INITIALIZATION_PROGRESS, progress).apply(); in setOneTimeInitializationProgress()
264 .edit() in setLastUsedAccountId()
270 mSharedPreferences.edit().clear().apply(); in clear()
/packages/apps/Browser/src/com/android/browser/
DBrowserSettings.java220 mPrefs.edit().remove(PREF_TEXT_SIZE).apply();
417 Editor edit = mPrefs.edit(); in setDebugEnabled() local
418 edit.putBoolean(PREF_DEBUG_MENU, value); in setDebugEnabled()
421 edit.putBoolean(PREF_ENABLE_HARDWARE_ACCEL_SKIA, false); in setDebugEnabled()
423 edit.apply(); in setDebugEnabled()
473 mPrefs.edit() in resetDefaultPreferences()
594 mPrefs.edit().putInt(PREF_TEXT_ZOOM, getRawTextZoom(percent)).apply(); in setTextZoom()
604 mPrefs.edit().putInt(PREF_DOUBLE_TAP_ZOOM, getRawDoubleTapZoom(percent)).apply(); in setDoubleTapZoom()
668 mPrefs.edit().putString(PREF_HOMEPAGE, value).apply(); in setHomePage()
676 mPrefs.edit().putBoolean(PREF_AUTOFILL_ENABLED, value).apply(); in setAutofillEnabled()
[all …]
/packages/apps/Camera/src/com/android/camera/
DComboPreferences.java82 mPrefGlobal.edit().putString(key, (String) v).apply(); in movePrefFrom()
84 mPrefGlobal.edit().putInt(key, (Integer) v).apply(); in movePrefFrom()
86 mPrefGlobal.edit().putLong(key, (Long) v).apply(); in movePrefFrom()
88 mPrefGlobal.edit().putFloat(key, (Float) v).apply(); in movePrefFrom()
90 mPrefGlobal.edit().putBoolean(key, (Boolean) v).apply(); in movePrefFrom()
92 src.edit().remove(key).apply(); in movePrefFrom()
216 mEditorGlobal = mPrefGlobal.edit(); in MyEditor()
217 mEditorLocal = mPrefLocal.edit(); in MyEditor()
308 public Editor edit() { in edit() method in ComboPreferences
DCameraSettings.java116 .get(context).edit(); in initialCameraPictureSize()
351 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences()
375 SharedPreferences.Editor editor = pref.edit(); in upgradeOldVersion()
432 Editor editor = pref.edit(); in writePreferredCameraId()
502 Editor editor = preferences.edit(); in restorePreferences()
509 Editor editor = preferences.edit(); in restorePreferences()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java267 final SharedPreferences.Editor editor = prefs.edit(); in readShowsLanguageSwitchKey()
284 prefs.edit().putString(PREF_CUSTOM_INPUT_STYLES, prefSubtypes).apply(); in writePrefAdditionalSubtypes()
383 mPrefs.edit().remove(PREF_LAST_USED_PERSONALIZATION_TOKEN).apply(); in writeLastUsedPersonalizationToken()
386 mPrefs.edit().putString(PREF_LAST_USED_PERSONALIZATION_TOKEN, tokenStr).apply(); in writeLastUsedPersonalizationToken()
396 mPrefs.edit().putLong(PREF_LAST_PERSONALIZATION_DICT_WIPED_TIME, timestamp).apply(); in writeLastPersonalizationDictWipedTime()
404 mPrefs.edit().putStringSet(PREF_CORPUS_HANDLES_FOR_PERSONALIZATION, corpusHandles).apply(); in writeCorpusHandlesForPersonalization()
413 prefs.edit().putString(PREF_EMOJI_RECENT_KEYS, str).apply(); in writeEmojiRecentKeys()
423 prefs.edit().putInt(key, categoryPageId).apply(); in writeLastTypedEmojiCategoryPageId()
434 prefs.edit().putInt(PREF_LAST_SHOWN_EMOJI_CATEGORY_ID, categoryId).apply(); in writeLastShownEmojiCategoryId()
446 SharedPreferences.Editor editor = prefs.edit(); in upgradeAutocorrectionSettings()
DAdvancedSettingsFragment.java137 prefs.edit().putInt(key, value).apply(); in setupKeypressVibrationDurationSettings()
142 prefs.edit().remove(key).apply(); in setupKeypressVibrationDurationSettings()
192 prefs.edit().putFloat(key, getValueFromPercentage(value)).apply(); in setupKeypressSoundVolumeSettings()
197 prefs.edit().remove(key).apply(); in setupKeypressSoundVolumeSettings()
237 prefs.edit().putInt(key, value).apply(); in setupKeyLongpressTimeoutSettings()
242 prefs.edit().remove(key).apply(); in setupKeyLongpressTimeoutSettings()
DDebugSettingsFragment.java173 prefs.edit().putFloat(key, getValueFromPercentage(value)).apply(); in setupKeyPreviewAnimationScale()
178 prefs.edit().remove(key).apply(); in setupKeyPreviewAnimationScale()
215 prefs.edit().putInt(key, value).apply(); in setupKeyPreviewAnimationDuration()
220 prefs.edit().remove(key).apply(); in setupKeyPreviewAnimationDuration()
261 prefs.edit().putFloat(key, getValueFromPercentage(value)).apply(); in setupKeyboardHeight()
266 prefs.edit().remove(key).apply(); in setupKeyboardHeight()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchSettingsImpl.java99 SharedPreferencesCompat.apply(getSearchPreferences().edit().putBoolean(name, value)); in storeBoolean()
103 SharedPreferencesCompat.apply(getSearchPreferences().edit().putInt(name, value)); in storeInt()
107 SharedPreferencesCompat.apply(getSearchPreferences().edit().putLong(name, value)); in storeLong()
111 SharedPreferencesCompat.apply(getSearchPreferences().edit().putString(name, value)); in storeString()
115 SharedPreferencesCompat.apply(getSearchPreferences().edit().remove(name)); in removePref()
157 SharedPreferencesCompat.apply(prefs.edit() in haveVoiceSearchHintsExpired()
206 Editor sharedPrefEditor = getSearchPreferences().edit(); in setSearchBaseDomain()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDockService.java219 prefs.edit().putInt(KEY_CONNECT_RETRY_COUNT, retryCount + 1).apply(); in onStartCommand()
229 prefs.edit().putInt(KEY_CONNECT_RETRY_COUNT, retryCount + 1).apply(); in onStartCommand()
244 prefs.edit().remove(KEY_CONNECT_RETRY_COUNT).apply(); in onStartCommand()
317 prefs.edit().remove(KEY_DISABLE_BT_WHEN_UNDOCKED).apply(); in msgTypeDisableBluetooth()
321 prefs.edit().putBoolean(KEY_DISABLE_BT, true).apply(); in msgTypeDisableBluetooth()
352 prefs.edit().remove(KEY_DISABLE_BT_WHEN_UNDOCKED).apply(); in msgTypeUndockedPermanent()
383 getPrefs().edit().remove(KEY_DISABLE_BT).apply(); in msgTypeDocked()
704 getPrefs().edit().remove(KEY_DISABLE_BT_WHEN_UNDOCKED).apply(); in handleBtStateChange()
713 getPrefs().edit().remove(KEY_DISABLE_BT).apply(); in handleBtStateChange()
761 prefs.edit().remove(KEY_DISABLE_BT).apply(); in handleBluetoothStateOn()
[all …]
DLocalBluetoothPreferences.java136 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker()
145 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
155 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoveringTimestamp()
174 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in saveDockAutoConnectSetting()
180 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in removeDockAutoConnectSetting()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java72 prefs.edit().putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true).apply(); in onStartCommand()
94 prefs.edit().putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, false).apply(); in onStartCommand()
280 SharedPreferences.Editor editor = prefs.edit(); in saveNotification()
319 SharedPreferences.Editor editor = prefs.edit(); in clearSavedNotification()
362 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPrefs()
405 SharedPreferences.Editor editor = prefs.edit(); in writeSharedPrefsStarted()
420 SharedPreferences.Editor editor = prefs.edit(); in writeSharedPrefsLap()
451 SharedPreferences.Editor editor = prefs.edit(); in writeSharedPrefsStopped()
/packages/apps/Camera2/src/com/android/camera/settings/
DAppUpgrader.java111 defaultPreferences.edit().remove(OLD_KEY_UPGRADE_VERSION).apply(); in getLastVersion()
361 newPrefs.edit().remove(key).apply(); in copyPreferences()
364 newPrefs.edit().putString(key, boolValue).apply(); in copyPreferences()
367 newPrefs.edit().putString(key, intValue).apply(); in copyPreferences()
375 newPrefs.edit().putString(key, intValue).apply(); in copyPreferences()
381 newPrefs.edit().putString(key, (String) value).apply(); in copyPreferences()
385 newPrefs.edit().remove(key).apply(); in copyPreferences()
DSettingsUpgrader.java97 oldPreferencesLocation.edit().remove(key).apply(); in removeBoolean()
116 oldPreferencesLocation.edit().remove(key).apply(); in removeInteger()
135 oldPreferencesLocation.edit().remove(key).apply(); in removeString()
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java85 final SharedPreferences.Editor editor = prefs.edit(); in putInt()
95 final SharedPreferences.Editor editor = prefs.edit(); in putLong()
105 final SharedPreferences.Editor editor = prefs.edit(); in putBoolean()
115 final SharedPreferences.Editor editor = prefs.edit(); in putString()
131 final SharedPreferences.Editor editor = prefs.edit(); in remove()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailNotificationSettingsUtil.java50 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled()
65 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri()
99 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded()
112 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded()
138 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailRingtoneSettingsIfNeeded()
DVisualVoicemailSettingsUtil.java62 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailEnabled()
105 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailCredentialsFromStatusMessage()
143 PreferenceManager.getDefaultSharedPreferences(context).edit(); in setVisualVoicemailRetryInterval()
152 PreferenceManager.getDefaultSharedPreferences(context).edit(); in setVisualVoicemailLastFullSyncTime()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DManagedProfileHeuristic.java133 mPrefs.edit().putStringSet(mPackageSetKey, packageSet).apply(); in processUserApps()
202 mPrefs.edit().putLong(USER_FOLDER_ID_PREFIX + mUserSerial, workFolder.id).apply(); in finalizeWorkFolder()
257 mPrefs.edit().putStringSet(mPackageSetKey, packageSet).apply(); in processPackageAdd()
277 mPrefs.edit().putStringSet(mPackageSetKey, packageSet).apply(); in processPackageRemoved()
311 SharedPreferences.Editor editor = prefs.edit(); in processAllUsers()
346 prefs.edit().putLong(folderIdKey, ItemInfo.NO_ID).apply(); in markExistingUsersForNoFolderCreation()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraSettings.java106 .get(context).edit(); in initialCameraPictureSize()
296 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences()
315 SharedPreferences.Editor editor = pref.edit(); in upgradeGlobalPreferences()
358 Editor editor = pref.edit(); in writePreferredCameraId()
429 Editor editor = preferences.edit(); in restorePreferences()
436 Editor editor = preferences.edit(); in restorePreferences()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialog.java44 AccessPoint accessPoint, boolean edit, boolean modify, in WifiDialog() argument
46 this(context, listener, accessPoint, edit, modify); in WifiDialog()
52 AccessPoint accessPoint, boolean edit, boolean modify) { in WifiDialog() argument
54 mEdit = edit; in WifiDialog()
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
DMagicSmokeSelector.java138 Editor edit = mSharedPref.edit(); in updatePrefs() local
139 edit.putInt("preset", mCurrentPreset); in updatePrefs()
140 edit.apply(); in updatePrefs()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorUtils.java80 mPrefs.edit().remove(KEY_DEFAULT_ACCOUNT).remove(KEY_KNOWN_ACCOUNTS) in cleanupForTest()
86 mPrefs.edit().remove(KEY_DEFAULT_ACCOUNT).apply(); in removeDefaultAccountForTest()
94 mPrefs.edit().putString(KEY_KNOWN_ACCOUNTS, "").putString(KEY_DEFAULT_ACCOUNT, "").apply(); in resetPreferenceValues()
119 final SharedPreferences.Editor editor = mPrefs.edit() in saveDefaultAndAllAccounts()
/packages/apps/FMRadio/src/com/android/fmradio/
DFmUtils.java227 SharedPreferences.Editor editor = prefs.edit(); in setLastSearchedLocation()
250 SharedPreferences.Editor editor = prefs.edit(); in setIsFirstTimePlayFm()
262 SharedPreferences.Editor editor = prefs.edit(); in isFirstEnterStationList()
321 SharedPreferences.Editor editor = prefs.edit(); in setIsSpeakerModeOnFocusLost()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnEN.java493 EditorInfo edit = getCurrentInputEditorInfo(); in onEvent() local
494 if( edit.inputType == EditorInfo.TYPE_CLASS_PHONE){ in onEvent()
597 EditorInfo edit = getCurrentInputEditorInfo(); in processKeyEvent() local
632 int shift = (mAutoCaps) ? getShiftKeyState(edit) : 0; in processKeyEvent()
664 if (edit.inputType == EditorInfo.TYPE_CLASS_PHONE) { in processKeyEvent()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DImportantNoticeUtilsTests.java70 mPref.edit().putInt(key, value).apply(); in putInt()
78 mPref.edit().putLong(key, value).apply(); in putLong()
83 mPref.edit().remove(key).apply(); in removePreference()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppPreference.java130 Editor ed = mNamePreference.edit(); in setName()
142 Editor ed = mChannelPreference.edit(); in setChannel()
151 Editor ed = mChannelPreference.edit(); in removeChannel()

12345678