Home
last modified time | relevance | path

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

1234567

/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerDAO.kt94 val editor: SharedPreferences.Editor = prefs.edit() in addTimer() constant
98 editor.putInt(NEXT_TIMER_ID, id + 1) in addTimer()
103 editor.putStringSet(TIMER_IDS, timerIds) in addTimer()
106 editor.putInt(STATE + id, timer.state.value) in addTimer()
107 editor.putLong(LENGTH + id, timer.length) in addTimer()
108 editor.putLong(TOTAL_LENGTH + id, timer.totalLength) in addTimer()
109 editor.putLong(LAST_START_TIME + id, timer.lastStartTime) in addTimer()
110 editor.putLong(LAST_WALL_CLOCK_TIME + id, timer.lastWallClockTime) in addTimer()
111 editor.putLong(REMAINING_TIME + id, timer.remainingTime) in addTimer()
112 editor.putString(LABEL + id, timer.label) in addTimer()
[all …]
DTimerDAO.java106 final SharedPreferences.Editor editor = prefs.edit(); in addTimer() local
110 editor.putInt(NEXT_TIMER_ID, id + 1); in addTimer()
115 editor.putStringSet(TIMER_IDS, timerIds); in addTimer()
118 editor.putInt(STATE + id, timer.getState().getValue()); in addTimer()
119 editor.putLong(LENGTH + id, timer.getLength()); in addTimer()
120 editor.putLong(TOTAL_LENGTH + id, timer.getTotalLength()); in addTimer()
121 editor.putLong(LAST_START_TIME + id, timer.getLastStartTime()); in addTimer()
122 editor.putLong(LAST_WALL_CLOCK_TIME + id, timer.getLastWallClockTime()); in addTimer()
123 editor.putLong(REMAINING_TIME + id, timer.getRemainingTime()); in addTimer()
124 editor.putString(LABEL + id, timer.getLabel()); in addTimer()
[all …]
DStopwatchDAO.kt67 val editor: SharedPreferences.Editor = prefs.edit() in setStopwatch() constant
70 editor.remove(STATE) in setStopwatch()
75 editor.putInt(STATE, stopwatch.state.ordinal) in setStopwatch()
81 editor.apply() in setStopwatch()
131 val editor: SharedPreferences.Editor = prefs.edit() in clearLaps() constant
135 editor.remove(LAP_ACCUMULATED_TIME + lapNumber) in clearLaps()
137 editor.remove(LAP_COUNT) in clearLaps()
139 editor.apply() in clearLaps()
DStopwatchDAO.java78 final SharedPreferences.Editor editor = prefs.edit(); in setStopwatch() local
81 editor.remove(STATE) in setStopwatch()
86 editor.putInt(STATE, stopwatch.getState().ordinal()) in setStopwatch()
92 editor.apply(); in setStopwatch()
142 final SharedPreferences.Editor editor = prefs.edit(); in clearLaps() local
146 editor.remove(LAP_ACCUMULATED_TIME + lapNumber); in clearLaps()
148 editor.remove(LAP_COUNT); in clearLaps()
150 editor.apply(); in clearLaps()
DCustomRingtoneDAO.java75 final SharedPreferences.Editor editor = prefs.edit(); in removeCustomRingtone() local
76 editor.remove(RINGTONE_URI + id); in removeCustomRingtone()
77 editor.remove(RINGTONE_TITLE + id); in removeCustomRingtone()
79 editor.remove(RINGTONE_IDS); in removeCustomRingtone()
80 editor.remove(NEXT_RINGTONE_ID); in removeCustomRingtone()
82 editor.putStringSet(RINGTONE_IDS, ids); in removeCustomRingtone()
84 editor.apply(); in removeCustomRingtone()
/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/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/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.java75 SharedPreferences.Editor editor = mNoBackupPrefs.edit(); in upgradePrefs() local
78 editor.putString(NoBackupKeys.KEY_HOME_WALLPAPER_BASE_IMAGE_URL, in upgradePrefs()
82 editor.putInt(NoBackupKeys.KEY_HOME_WALLPAPER_MANAGER_ID, in upgradePrefs()
86 editor.putString(NoBackupKeys.KEY_HOME_WALLPAPER_REMOTE_ID, in upgradePrefs()
91 editor.putString(NoBackupKeys.KEY_HOME_WALLPAPER_BACKING_FILE, in upgradePrefs()
95 editor.putInt(NoBackupKeys.KEY_LOCK_WALLPAPER_MANAGER_ID, in upgradePrefs()
100 editor.putString(NoBackupKeys.KEY_LOCK_WALLPAPER_BACKING_FILE, in upgradePrefs()
104 editor.putString(NoBackupKeys.KEY_DAILY_ROTATION_TIMESTAMPS, in upgradePrefs()
109 editor.putLong(NoBackupKeys.KEY_DAILY_WALLPAPER_ENABLED_TIMESTAMP, in upgradePrefs()
113 editor.putLong(NoBackupKeys.KEY_LAST_DAILY_LOG_TIMESTAMP, in upgradePrefs()
[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/apps/Contacts/src/com/android/contacts/editor/
DKindSectionView.java17 package com.android.contacts.editor;
83 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument
84 editor.clearAllFields(); in onDeleteRequested()
99 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument
100 editor.clearAllFields(); in onDeleteRequested()
121 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument
125 editor.clearAllFields(); in onDeleteRequested()
127 editor.deleteEditor(); in onDeleteRequested()
140 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument
141 if (editor instanceof EventFieldEditorView){ in onDeleteRequested()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/prefs/
DPrefsBackupHelperTest.java143 SharedPreferences.Editor editor = mDefaultPrefs.edit(); in testEndToEnd() local
146 editor.putInt(LOCAL_PREFERENCE_1, 1); in testEndToEnd()
147 editor.putInt(LOCAL_PREFERENCE_2, 2); in testEndToEnd()
148 editor.putBoolean(SCOPED_PREFERENCE, true); in testEndToEnd()
149 editor.putBoolean(NON_BACKUP_PREFERENCE, true); in testEndToEnd()
150 editor.commit(); in testEndToEnd()
158 editor.clear().commit(); in testEndToEnd()
190 Editor editor = mDefaultPrefs.edit().clear(); in testPreferenceTypesSupport() local
192 mPrefsBackupHelper.setPreference(editor, entry); in testPreferenceTypesSupport()
193 editor.apply(); in testPreferenceTypesSupport()
[all …]
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
DLensPickerUtils.java66 SharedPreferences.Editor editor = sharedPrefs.edit(); in launch() local
67 editor.putString(LensPickerUtils.getFacetKey(facetId), packageName); in launch()
70 editor.putString(LAST_LAUNCHED_FACET_ID, facetId); in launch()
71 editor.putString(LAST_LAUNCHED_PACKAGE_NAME, packageName); in launch()
74 editor.putString(LAST_LAUNCHED_INTENT_KEY, uriString); in launch()
76 editor.commit(); in launch()
86 SharedPreferences.Editor editor = sharedPrefs.edit(); in saveLastLaunchedAppInfo() local
89 editor.putString(LAST_LAUNCHED_FACET_ID, facetId); in saveLastLaunchedAppInfo()
90 editor.putString(LAST_LAUNCHED_PACKAGE_NAME, packageName); in saveLastLaunchedAppInfo()
93 editor.putString(LAST_LAUNCHED_INTENT_KEY, uriString); in saveLastLaunchedAppInfo()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/
DPerAccountSharedPreferences.java54 private final SharedPreferences.Editor editor; field in PerAccountSharedPreferences.Editor
57 editor = preferences.edit(); in Editor()
61 editor.apply(); in apply()
65 editor.putBoolean(getKey(key), value); in putBoolean()
70 editor.putFloat(getKey(key), value); in putFloat()
75 editor.putInt(getKey(key), value); in putInt()
80 editor.putLong(getKey(key), value); in putLong()
85 editor.putString(getKey(key), value); in putString()
90 editor.putStringSet(getKey(key), value); in putStringSet()
/packages/services/Telephony/src/com/android/phone/settings/
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/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/DocumentsUI/src/com/android/documentsui/prefs/
DPrefsBackupHelper.java46 Editor editor = prefs.edit(); in getBackupPreferences() local
47 editor.clear(); in getBackupPreferences()
49 copyMatchingPreferences(mDefaultPreferences, editor); in getBackupPreferences()
50 editor.apply(); in getBackupPreferences()
57 Editor editor = mDefaultPreferences.edit(); in putBackupPreferences() local
59 copyMatchingPreferences(prefs, editor); in putBackupPreferences()
60 editor.apply(); in putBackupPreferences()
DScopedAccessLocalPreferences.java40 Editor editor = null; in clearScopedAccessPreferences() local
43 if (editor == null) { in clearScopedAccessPreferences()
44 editor = prefs.edit(); in clearScopedAccessPreferences()
46 editor.remove(key); in clearScopedAccessPreferences()
49 if (editor != null) { in clearScopedAccessPreferences()
50 editor.apply(); in clearScopedAccessPreferences()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppManager.java234 SharedPreferences.Editor editor = in storeApplicationData() local
236 editor.putBoolean(SENDING_FLAG, mSendingFlag); in storeApplicationData()
237 editor.putBoolean(MULTIPLE_FLAG, mMultipleFlag); in storeApplicationData()
239 editor.putString(MIME_TYPE_MULTIPLE, mMimeTypeOfSendingFiles); in storeApplicationData()
247 editor.putString(FILE_URIS, strUris); in storeApplicationData()
249 editor.remove(MIME_TYPE); in storeApplicationData()
250 editor.remove(FILE_URI); in storeApplicationData()
252 editor.putString(MIME_TYPE, mMimeTypeOfSendingFile); in storeApplicationData()
253 editor.putString(FILE_URI, mUriOfSendingFile); in storeApplicationData()
255 editor.remove(MIME_TYPE_MULTIPLE); in storeApplicationData()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DEditorPlaceHolder.java58 Editor editor = mEditors.get(type); in showEditor() local
59 if (editor == null) { in showEditor()
63 editor.createEditor(mActivity, mContainer); in showEditor()
64 editor.getImageShow().attach(); in showEditor()
67 View eview = editor.getTopLevelView(); in showEditor()
76 editor.setVisibility(View.VISIBLE); in showEditor()
77 return editor; in showEditor()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DStorageManagerUpsellDialog.java94 SharedPreferences.Editor editor = sp.edit(); in onClick() local
95 editor.putInt(NO_THANKS_COUNT, noThanksCount); in onClick()
98 editor.putLong(NEXT_SHOW_TIME, nextShowTime); in onClick()
99 editor.apply(); in onClick()
109 SharedPreferences.Editor editor = sp.edit(); in onCancel() local
110 editor.putInt(DISMISSED_COUNT, dismissCount); in onCancel()
111 editor.putLong(NEXT_SHOW_TIME, getCurrentTime() + getDismissDelay(dismissCount)); in onCancel()
112 editor.apply(); in onCancel()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DLocalBluetoothPreferences.java134 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() local
135 editor.putString(KEY_LAST_SELECTED_DEVICE, in persistSelectedDeviceInPicker()
137 editor.putLong(KEY_LAST_SELECTED_DEVICE_TIME, in persistSelectedDeviceInPicker()
139 editor.apply(); in persistSelectedDeviceInPicker()
143 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp() local
144 editor.putLong(KEY_DISCOVERABLE_END_TIMESTAMP, endTimestamp); in persistDiscoverableEndTimestamp()
145 editor.apply(); in persistDiscoverableEndTimestamp()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java134 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() local
135 editor.putString(KEY_LAST_SELECTED_DEVICE, in persistSelectedDeviceInPicker()
137 editor.putLong(KEY_LAST_SELECTED_DEVICE_TIME, in persistSelectedDeviceInPicker()
139 editor.apply(); in persistSelectedDeviceInPicker()
143 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp() local
144 editor.putLong(KEY_DISCOVERABLE_END_TIMESTAMP, endTimestamp); in persistDiscoverableEndTimestamp()
145 editor.apply(); in persistDiscoverableEndTimestamp()
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java136 final Editor editor = mPreferences.edit(); in setSortOrder() local
137 editor.putInt(SORT_ORDER_KEY, sortOrder); in setSortOrder()
138 editor.commit(); in setSortOrder()
166 final Editor editor = mPreferences.edit(); in setDisplayOrder() local
167 editor.putInt(DISPLAY_ORDER_KEY, displayOrder); in setDisplayOrder()
168 editor.commit(); in setDisplayOrder()
187 final Editor editor = mPreferences.edit(); in setPhoneticNameDisplayPreference() local
188 editor.putInt(PHONETIC_NAME_DISPLAY_KEY, phoneticNameDisplayPreference); in setPhoneticNameDisplayPreference()
189 editor.commit(); in setPhoneticNameDisplayPreference()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DNotificationController.java257 SharedPreferences.Editor editor = sp.edit(); in incrementNotificationShownCount() local
259 editor.putInt(NotificationController.NOTIFICATION_SHOWN_COUNT, shownCount); in incrementNotificationShownCount()
260 editor.apply(); in incrementNotificationShownCount()
266 SharedPreferences.Editor editor = sp.edit(); in incrementNotificationDismissedCount() local
268 editor.putInt(NOTIFICATION_DISMISS_COUNT, dismissCount); in incrementNotificationDismissedCount()
269 editor.apply(); in incrementNotificationDismissedCount()
275 SharedPreferences.Editor editor = sp.edit(); in delayNextNotification() local
276 editor.putLong(NOTIFICATION_NEXT_SHOW_TIME, in delayNextNotification()
278 editor.apply(); in delayNextNotification()

1234567