Home
last modified time | relevance | path

Searched refs:editor (Results 1 – 25 of 165) sorted by relevance

1234567

/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java280 SharedPreferences.Editor editor = prefs.edit(); in saveNotification() local
282 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, clockTime); in saveNotification()
283 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in saveNotification()
284 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true); in saveNotification()
286 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, clockTime); in saveNotification()
287 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, -1); in saveNotification()
288 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, false); in saveNotification()
290 editor.putBoolean(Stopwatches.PREF_UPDATE_CIRCLE, false); in saveNotification()
291 editor.apply(); in saveNotification()
319 SharedPreferences.Editor editor = prefs.edit(); in clearSavedNotification() local
[all …]
DStopwatchFragment.java742 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local
743 editor.putLong (Stopwatches.PREF_START_TIME, mStartTime); in writeToSharedPref()
744 editor.putLong (Stopwatches.PREF_ACCUM_TIME, mAccumulatedTime); in writeToSharedPref()
745 editor.putInt (Stopwatches.PREF_STATE, mState); in writeToSharedPref()
749 editor.putInt (Stopwatches.PREF_LAP_NUM, laps.length); in writeToSharedPref()
752 editor.putLong (key, laps[i]); in writeToSharedPref()
757 editor.putLong(Stopwatches.NOTIF_CLOCK_BASE, mStartTime-mAccumulatedTime); in writeToSharedPref()
758 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in writeToSharedPref()
759 editor.putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true); in writeToSharedPref()
761 editor.putLong(Stopwatches.NOTIF_CLOCK_ELAPSED, mAccumulatedTime); in writeToSharedPref()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java17 package com.android.contacts.editor;
48 import com.android.contacts.editor.Editor.EditorListener;
183 BaseRawContactEditorView editor = (BaseRawContactEditorView) mContent.getChildAt(i); in setGroupMetaData() local
184 editor.setGroupMetaData(mGroupMetaData); in setGroupMetaData()
222 final BaseRawContactEditorView editor; in bindEditors() local
224 editor = (BaseRawContactEditorView) inflater.inflate( in bindEditors()
227 editor = (RawContactEditorView) inflater.inflate(R.layout.raw_contact_editor_view, in bindEditors()
230 editor.setListener(this); in bindEditors()
234 addAccountSwitcher(mState.get(0), editor); in bindEditors()
237 editor.setEnabled(isEnabled()); in bindEditors()
[all …]
DKindSectionView.java17 package com.android.contacts.editor;
47 import com.android.contacts.editor.Editor.EditorListener;
64 public void onDeleteRequested(Editor editor); in onDeleteRequested() argument
127 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument
131 editor.clearAllFields(); in onDeleteRequested()
136 editor.markDeleted(); in onDeleteRequested()
137 mListener.onDeleteRequested(editor); in onDeleteRequested()
139 editor.deleteEditor(); in onDeleteRequested()
258 Editor editor = (Editor) view; in createEditorView() local
259 editor.setDeletable(true); in createEditorView()
[all …]
DContactEditorUtils.java17 package com.android.contacts.editor;
119 final SharedPreferences.Editor editor = mPrefs.edit() in saveDefaultAndAllAccounts() local
127 editor.putString(KEY_KNOWN_ACCOUNTS, ""); in saveDefaultAndAllAccounts()
128 editor.putString(KEY_DEFAULT_ACCOUNT, ""); in saveDefaultAndAllAccounts()
130 editor.putString(KEY_KNOWN_ACCOUNTS, in saveDefaultAndAllAccounts()
132 editor.putString(KEY_DEFAULT_ACCOUNT, defaultAccount.stringify()); in saveDefaultAndAllAccounts()
134 editor.apply(); in saveDefaultAndAllAccounts()
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java161 final SharedPreferences.Editor editor = prefs.edit(); in initEffectsPreferences() local
169 editor.putBoolean(Key.global_enabled.toString(), isGlobalEnabled); in initEffectsPreferences()
179 editor.putBoolean(Key.virt_enabled.toString(), isVIEnabled); in initEffectsPreferences()
180 editor.putInt(Key.virt_strength.toString(), vIStrength); in initEffectsPreferences()
187 editor.putBoolean(Key.virt_strength_supported.toString(), in initEffectsPreferences()
203 editor.putBoolean(Key.bb_enabled.toString(), isBBEnabled); in initEffectsPreferences()
204 editor.putInt(Key.bb_strength.toString(), bBStrength); in initEffectsPreferences()
268 editor.putInt(Key.eq_level_range.toString() + 0, mEQBandLevelRange[0]); in initEffectsPreferences()
269 editor.putInt(Key.eq_level_range.toString() + 1, mEQBandLevelRange[1]); in initEffectsPreferences()
270 editor.putInt(Key.eq_num_bands.toString(), mEQNumBands); in initEffectsPreferences()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DCircleTimerView.java225 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() local
226 editor.putBoolean (key + PREF_CTV_PAUSED, mPaused); in writeToSharedPref()
227 editor.putLong (key + PREF_CTV_INTERVAL, mIntervalTime); in writeToSharedPref()
228 editor.putLong (key + PREF_CTV_INTERVAL_START, mIntervalStartTime); in writeToSharedPref()
229 editor.putLong (key + PREF_CTV_CURRENT_INTERVAL, mCurrentIntervalTime); in writeToSharedPref()
230 editor.putLong (key + PREF_CTV_ACCUM_TIME, mAccumulatedTime); in writeToSharedPref()
231 editor.putLong (key + PREF_CTV_MARKER_TIME, mMarkerTime); in writeToSharedPref()
232 editor.putBoolean (key + PREF_CTV_TIMER_MODE, mTimerMode); in writeToSharedPref()
233 editor.apply(); in writeToSharedPref()
248 SharedPreferences.Editor editor = prefs.edit(); in clearSharedPref() local
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraSettings.java105 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize() local
107 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize()
108 editor.apply(); in initialCameraPictureSize()
296 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences()
300 editor.remove("pref_video_quality_key"); in upgradeLocalPreferences()
302 editor.putInt(KEY_LOCAL_VERSION, CURRENT_LOCAL_VERSION); in upgradeLocalPreferences()
303 editor.apply(); in upgradeLocalPreferences()
315 SharedPreferences.Editor editor = pref.edit(); in upgradeGlobalPreferences()
331 editor.putString(KEY_JPEG_QUALITY, quality); in upgradeGlobalPreferences()
335 editor.putString(KEY_RECORD_LOCATION, in upgradeGlobalPreferences()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DVisualVoicemailSettingsUtil.java62 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailEnabled() local
63 editor.putBoolean( in setVisualVoicemailEnabled()
65 editor.putBoolean( in setVisualVoicemailEnabled()
68 editor.commit(); in setVisualVoicemailEnabled()
105 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailCredentialsFromStatusMessage() local
107 editor.putString( in setVisualVoicemailCredentialsFromStatusMessage()
110 editor.putString( in setVisualVoicemailCredentialsFromStatusMessage()
113 editor.putString( in setVisualVoicemailCredentialsFromStatusMessage()
116 editor.putString( in setVisualVoicemailCredentialsFromStatusMessage()
119 editor.commit(); in setVisualVoicemailCredentialsFromStatusMessage()
[all …]
DVoicemailNotificationSettingsUtil.java50 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled() local
51 editor.putBoolean(getVoicemailVibrationSharedPrefsKey(phone), isEnabled); in setVibrationEnabled()
52 editor.commit(); in setVibrationEnabled()
65 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri() local
66 editor.putString(getVoicemailRingtoneSharedPrefsKey(phone), ringtoneUriStr); in setRingtoneUri()
67 editor.commit(); in setRingtoneUri()
99 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded() local
100 editor.putBoolean(key, voicemailVibrate) in migrateVoicemailVibrationSettingsIfNeeded()
112 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded() local
113 editor.putBoolean(key, voicemailVibrate) in migrateVoicemailVibrationSettingsIfNeeded()
[all …]
DVoicemailProviderSettingsUtil.java104 SharedPreferences.Editor editor = prefs.edit(); in save() local
105 editor.putString(key + VM_NUMBER_TAG, newSettings.getVoicemailNumber()); in save()
110 editor.putInt(fwdKey + FWD_SETTINGS_LENGTH_TAG, s.length); in save()
114 editor.putInt(settingKey + FWD_SETTING_STATUS, fi.status); in save()
115 editor.putInt(settingKey + FWD_SETTING_REASON, fi.reason); in save()
116 editor.putString(settingKey + FWD_SETTING_NUMBER, fi.number); in save()
117 editor.putInt(settingKey + FWD_SETTING_TIME, fi.timeSeconds); in save()
120 editor.putInt(fwdKey + FWD_SETTINGS_LENGTH_TAG, 0); in save()
123 editor.apply(); in save()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java136 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() local
137 editor.putString(KEY_LAST_SELECTED_DEVICE, in persistSelectedDeviceInPicker()
139 editor.putLong(KEY_LAST_SELECTED_DEVICE_TIME, in persistSelectedDeviceInPicker()
141 editor.apply(); in persistSelectedDeviceInPicker()
145 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp() local
146 editor.putLong(KEY_DISCOVERABLE_END_TIMESTAMP, endTimestamp); in persistDiscoverableEndTimestamp()
147 editor.apply(); in persistDiscoverableEndTimestamp()
155 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoveringTimestamp()
156 editor.putLong( in persistDiscoveringTimestamp()
159 editor.apply(); in persistDiscoveringTimestamp()
[all …]
/packages/apps/Camera/src/com/android/camera/
DCameraSettings.java115 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize() local
117 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize()
118 editor.apply(); in initialCameraPictureSize()
351 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences()
355 editor.remove("pref_video_quality_key"); in upgradeLocalPreferences()
357 editor.putInt(KEY_LOCAL_VERSION, CURRENT_LOCAL_VERSION); in upgradeLocalPreferences()
358 editor.apply(); in upgradeLocalPreferences()
375 SharedPreferences.Editor editor = pref.edit(); in upgradeOldVersion()
391 editor.putString(KEY_JPEG_QUALITY, quality); in upgradeOldVersion()
395 editor.putString(KEY_RECORD_LOCATION, in upgradeOldVersion()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java85 final SharedPreferences.Editor editor = prefs.edit(); in putInt() local
86 editor.putInt(key, value); in putInt()
87 editor.apply(); in putInt()
95 final SharedPreferences.Editor editor = prefs.edit(); in putLong() local
96 editor.putLong(key, value); in putLong()
97 editor.apply(); in putLong()
105 final SharedPreferences.Editor editor = prefs.edit(); in putBoolean() local
106 editor.putBoolean(key, value); in putBoolean()
107 editor.apply(); in putBoolean()
115 final SharedPreferences.Editor editor = prefs.edit(); in putString() local
[all …]
/packages/apps/FMRadio/src/com/android/fmradio/
DFmUtils.java227 SharedPreferences.Editor editor = prefs.edit(); in setLastSearchedLocation() local
230 editor.putString(FM_LOCATION_LATITUDE, strLatitude); in setLastSearchedLocation()
231 editor.putString(FM_LOCATION_LONGITUDE, strLongitude); in setLastSearchedLocation()
232 editor.commit(); in setLastSearchedLocation()
250 SharedPreferences.Editor editor = prefs.edit(); in setIsFirstTimePlayFm() local
251 editor.putBoolean(FM_IS_FIRST_TIME_PLAY, false); in setIsFirstTimePlayFm()
252 editor.commit(); in setIsFirstTimePlayFm()
262 SharedPreferences.Editor editor = prefs.edit(); in isFirstEnterStationList() local
263 editor.putBoolean(FM_IS_FIRST_ENTER_STATION_LIST, false); in isFirstEnterStationList()
264 editor.commit(); in isFirstEnterStationList()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DIntentStore.java108 SharedPreferences.Editor editor = mPrefs.edit(); in save() local
110 editor.clear(); in save()
112 editor.putString(key, data.getString(key)); in save()
115 editor.putLong(key, data.getLong(key)); in save()
118 editor.putInt(key, data.getInt(key)); in save()
121 editor.putBoolean(key, data.getBoolean(key)); in save()
127 editor.putString(key, accountString); in save()
136 editor.putString(key, bundleString); in save()
142 editor.putString(key, cn.flattenToString()); in save()
145 editor.putBoolean(IS_SET, true); in save()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppManager.java221 SharedPreferences.Editor editor = mContext.getSharedPreferences(OPP_PREFERENCE_FILE, 0) in storeApplicationData() local
223 editor.putBoolean(SENDING_FLAG, mSendingFlag); in storeApplicationData()
224 editor.putBoolean(MULTIPLE_FLAG, mMultipleFlag); in storeApplicationData()
226 editor.putString(MIME_TYPE_MULTIPLE, mMimeTypeOfSendingFiles); in storeApplicationData()
234 editor.putString(FILE_URIS, strUris); in storeApplicationData()
236 editor.remove(MIME_TYPE); in storeApplicationData()
237 editor.remove(FILE_URI); in storeApplicationData()
239 editor.putString(MIME_TYPE, mMimeTypeOfSendingFile); in storeApplicationData()
240 editor.putString(FILE_URI, mUriOfSendingFile); in storeApplicationData()
242 editor.remove(MIME_TYPE_MULTIPLE); in storeApplicationData()
[all …]
/packages/apps/Camera2/src/com/android/camera/settings/
DCameraPictureSizesCacher.java51 SharedPreferences.Editor editor = defaultPrefs.edit(); in updateSizesForCamera() local
52 editor.putString(key_build, Build.DISPLAY); in updateSizesForCamera()
53 editor.putString(key_sizes, Size.listToString(sizes)); in updateSizesForCamera()
54 editor.apply(); in updateSizesForCamera()
91 SharedPreferences.Editor editor = defaultPrefs.edit(); in getSizesForCamera() local
92 editor.putString(key_build, Build.DISPLAY); in getSizesForCamera()
93 editor.putString(key_sizes, Size.listToString(sizes)); in getSizesForCamera()
94 editor.apply(); in getSizesForCamera()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DEditorPlaceHolder.java42 Editor editor = mEditors.get(type); in showEditor() local
43 if (editor == null) { in showEditor()
47 editor.createEditor(mActivity, mContainer); in showEditor()
48 editor.getImageShow().attach(); in showEditor()
51 View eview = editor.getTopLevelView(); in showEditor()
60 editor.setVisibility(View.VISIBLE); in showEditor()
61 return editor; in showEditor()
/packages/apps/Email/provider_src/com/android/email/provider/
DWidgetProvider.java50 final SharedPreferences.Editor editor = prefs.edit(); in onDeleted() local
53 editor.remove(LEGACY_ACCOUNT_ID_PREFIX + widgetId); in onDeleted()
54 editor.remove(LEGACY_MAILBOX_ID_PREFIX + widgetId); in onDeleted()
56 editor.apply(); in onDeleted()
90 final SharedPreferences.Editor editor = prefs.edit(); in migrateLegacyWidgetInformation() local
116 editor.remove(LEGACY_ACCOUNT_ID_PREFIX + widgetId); in migrateLegacyWidgetInformation()
117 editor.remove(LEGACY_MAILBOX_ID_PREFIX + widgetId); in migrateLegacyWidgetInformation()
119 editor.apply(); in migrateLegacyWidgetInformation()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DCommonPreferences.java30 final SharedPreferences.Editor editor = pref.edit(); in enable() local
31 editor.putBoolean(id, true); in enable()
32 editor.apply(); in enable()
36 final SharedPreferences.Editor editor = pref.edit(); in disable() local
37 editor.putBoolean(id, false); in disable()
38 editor.apply(); in disable()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java267 final SharedPreferences.Editor editor = prefs.edit(); in readShowsLanguageSwitchKey() local
268 editor.remove(PREF_SUPPRESS_LANGUAGE_SWITCH_KEY); in readShowsLanguageSwitchKey()
269 editor.putBoolean(PREF_SHOW_LANGUAGE_SWITCH_KEY, !suppressLanguageSwitchKey); in readShowsLanguageSwitchKey()
270 editor.apply(); in readShowsLanguageSwitchKey()
446 SharedPreferences.Editor editor = prefs.edit(); in upgradeAutocorrectionSettings() local
447 editor.remove(PREF_AUTO_CORRECTION_THRESHOLD_OBSOLETE); in upgradeAutocorrectionSettings()
451 editor.putBoolean(PREF_AUTO_CORRECTION, false); in upgradeAutocorrectionSettings()
453 editor.putBoolean(PREF_AUTO_CORRECTION, true); in upgradeAutocorrectionSettings()
455 editor.commit(); in upgradeAutocorrectionSettings()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMailAppProvider.java332 final SharedPreferences.Editor editor = getPreferences().edit(); in setLastViewedAccount() local
333 editor.putString(LAST_VIEWED_ACCOUNT_KEY, accountUriStr); in setLastViewedAccount()
334 editor.apply(); in setLastViewedAccount()
350 final SharedPreferences.Editor editor = getPreferences().edit(); in setLastSentFromAccount() local
351 editor.putString(LAST_SENT_FROM_ACCOUNT_KEY, accountUriStr); in setLastSentFromAccount()
352 editor.apply(); in setLastSentFromAccount()
412 final SharedPreferences.Editor editor = getPreferences().edit(); in cacheAccountList() local
413 editor.putString(ACCOUNT_LIST_KEY, arr.toString()); in cacheAccountList()
414 editor.apply(); in cacheAccountList()
/packages/apps/Launcher2/src/com/android/launcher2/
DInstallShortcutReceiver.java69 SharedPreferences.Editor editor, String key, String value) { in addToStringSet() argument
77 editor.putStringSet(key, strings); in addToStringSet()
101 SharedPreferences.Editor editor = sharedPrefs.edit(); in addToInstallQueue() local
102 addToStringSet(sharedPrefs, editor, APPS_PENDING_INSTALL, json.toString()); in addToInstallQueue()
103 editor.commit(); in addToInstallQueue()
304 SharedPreferences.Editor editor = sharedPrefs.edit(); in installShortcut() local
307 editor, NEW_APPS_LIST_KEY, intent.toUri(0)); in installShortcut()
309 editor.putInt(NEW_APPS_PAGE_KEY, screen); in installShortcut()
310 editor.commit(); in installShortcut()
/packages/services/Telecomm/src/com/android/server/telecom/
DQuickResponseUtils.java108 final SharedPreferences.Editor editor = prefs.edit(); in maybeMigrateLegacyQuickResponses() local
109 editor.putString(KEY_CANNED_RESPONSE_PREF_1, cannedResponse1); in maybeMigrateLegacyQuickResponses()
110 editor.putString(KEY_CANNED_RESPONSE_PREF_2, cannedResponse2); in maybeMigrateLegacyQuickResponses()
111 editor.putString(KEY_CANNED_RESPONSE_PREF_3, cannedResponse3); in maybeMigrateLegacyQuickResponses()
112 editor.putString(KEY_CANNED_RESPONSE_PREF_4, cannedResponse4); in maybeMigrateLegacyQuickResponses()
113 editor.commit(); in maybeMigrateLegacyQuickResponses()

1234567