Home
last modified time | relevance | path

Searched refs:editor (Results 1 – 25 of 172) 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 …]
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()
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DSettingsManager.java59 SharedPreferences.Editor editor = sharedPref.edit(); in generateAndSetId() local
60 editor.putInt(KEY_ID, rand.nextInt(ID_UPPER_BOUND)); in generateAndSetId()
61 editor.apply(); in generateAndSetId()
89 SharedPreferences.Editor editor = sharedPref.edit(); in setDeviceConfig() local
93 editor.putInt(KEY_EXTRA_KEYS, extraKeys); in setDeviceConfig()
98 editor.putLong(KEY_EXPIRING_BY, expiringBy.toMillis()); in setDeviceConfig()
102 editor.putString(KEY_URL, url); in setDeviceConfig()
106 editor.apply(); in setDeviceConfig()
149 SharedPreferences.Editor editor = sharedPref.edit(); in incrementFailureCounter() local
151 editor.putInt(KEY_FAILURE_COUNTER, ++failures); in incrementFailureCounter()
[all …]
/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/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/components/
DPersonalStorage.java58 SharedPreferences.Editor editor = mSharedPrefs.edit(); in store() local
61 editor.putStringSet( in store()
66 editor.apply(); in store()
70 SharedPreferences.Editor editor = mSharedPrefs.edit(); in storeWifi() local
72 editor.putStringSet(KEY_OEM_PAID_WIFI_SSIDS, paidSsids); in storeWifi()
74 editor.remove(KEY_OEM_PAID_WIFI_SSIDS); in storeWifi()
77 editor.putStringSet(KEY_OEM_PRIVATE_WIFI_SSIDS, privateSsids); in storeWifi()
79 editor.remove(KEY_OEM_PRIVATE_WIFI_SSIDS); in storeWifi()
81 editor.apply(); in storeWifi()
142 SharedPreferences.Editor editor = mSharedPrefs.edit(); in saveReapplyPansOnBootCompleteState() local
[all …]
/packages/services/Telephony/testapps/GbaTestApp/src/com/android/phone/testapps/gbatestapp/
DSettings.java138 SharedPreferences.Editor editor = sharedPref.edit(); in updateCarrierConfig() local
139 editor.putString(KEY_SERVICE_PACKAGE, packageName); in updateCarrierConfig()
140 editor.putInt(KEY_RELEASE_TIME, releaseTime); in updateCarrierConfig()
141 editor.commit(); in updateCarrierConfig()
191 SharedPreferences.Editor editor = sharedPref.edit(); in updateServiceConfig() local
192 editor.putBoolean(KEY_AUTH_RESULT, success); in updateServiceConfig()
193 editor.putInt(KEY_FAIL_REASON, reason); in updateServiceConfig()
194 editor.putString(KEY_GBA_KEY, key); in updateServiceConfig()
195 editor.putString(KEY_B_TID, btId); in updateServiceConfig()
196 editor.commit(); in updateServiceConfig()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/prefs/
DPrefsBackupHelperTest.java124 SharedPreferences.Editor editor = mDefaultPrefs.edit(); in testEndToEnd() local
127 editor.putInt(LOCAL_PREFERENCE_1, 1); in testEndToEnd()
128 editor.putInt(LOCAL_PREFERENCE_2, 2); in testEndToEnd()
129 editor.putBoolean(NON_BACKUP_PREFERENCE, true); in testEndToEnd()
130 editor.commit(); in testEndToEnd()
138 editor.clear().commit(); in testEndToEnd()
169 Editor editor = mDefaultPrefs.edit().clear(); in testPreferenceTypesSupport() local
171 mPrefsBackupHelper.setPreference(editor, entry); in testPreferenceTypesSupport()
172 editor.apply(); in testPreferenceTypesSupport()
175 mPrefsBackupHelper.setPreference(editor, entry); in testPreferenceTypesSupport()
[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/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/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.java80 SharedPreferences.Editor editor = mNoBackupPrefs.edit(); in upgradePrefs() local
83 editor.putString(NoBackupKeys.KEY_HOME_WALLPAPER_BASE_IMAGE_URL, in upgradePrefs()
87 editor.putInt(NoBackupKeys.KEY_HOME_WALLPAPER_MANAGER_ID, in upgradePrefs()
91 editor.putString(NoBackupKeys.KEY_HOME_WALLPAPER_REMOTE_ID, in upgradePrefs()
96 editor.putString(NoBackupKeys.KEY_HOME_WALLPAPER_BACKING_FILE, in upgradePrefs()
100 editor.putInt(NoBackupKeys.KEY_LOCK_WALLPAPER_MANAGER_ID, in upgradePrefs()
105 editor.putString(NoBackupKeys.KEY_LOCK_WALLPAPER_BACKING_FILE, in upgradePrefs()
109 editor.putString(NoBackupKeys.KEY_DAILY_ROTATION_TIMESTAMPS, in upgradePrefs()
114 editor.putLong(NoBackupKeys.KEY_DAILY_WALLPAPER_ENABLED_TIMESTAMP, in upgradePrefs()
118 editor.putLong(NoBackupKeys.KEY_LAST_DAILY_LOG_TIMESTAMP, in upgradePrefs()
[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.java47 Editor editor = prefs.edit(); in getBackupPreferences() local
48 editor.clear(); in getBackupPreferences()
50 copyMatchingPreferences(mDefaultPreferences, editor); in getBackupPreferences()
51 editor.apply(); in getBackupPreferences()
58 Editor editor = mDefaultPreferences.edit(); in putBackupPreferences() local
60 copyMatchingPreferences(prefs, editor); in putBackupPreferences()
61 editor.apply(); in putBackupPreferences()
/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/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/modules/Virtualization/authfs/src/
Dfusefs.rs68 RemoteVerifiedNewFile { editor: VerifiedFileEditor<RemoteFileEditor> },
216 FileConfig::RemoteVerifiedNewFile { editor } => { in lookup()
217 create_stat(inode, editor.size(), FileMode::ReadWrite)? in lookup()
243 FileConfig::RemoteVerifiedNewFile { editor } => { in getattr()
244 create_stat(inode, editor.size(), FileMode::ReadWrite)? in getattr()
300 FileConfig::RemoteVerifiedNewFile { editor } => { in read()
303 read_chunks(w, editor, editor.size(), offset, size) in read()
321 FileConfig::RemoteVerifiedNewFile { editor } => { in write()
324 editor.write_at(&buf, offset) in write()
339 FileConfig::RemoteVerifiedNewFile { editor } => { in setattr()
[all …]
/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/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/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/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.java263 SharedPreferences.Editor editor = sp.edit(); in incrementNotificationShownCount() local
265 editor.putInt(NotificationController.NOTIFICATION_SHOWN_COUNT, shownCount); in incrementNotificationShownCount()
266 editor.apply(); in incrementNotificationShownCount()
272 SharedPreferences.Editor editor = sp.edit(); in incrementNotificationDismissedCount() local
274 editor.putInt(NOTIFICATION_DISMISS_COUNT, dismissCount); in incrementNotificationDismissedCount()
275 editor.apply(); in incrementNotificationDismissedCount()
281 SharedPreferences.Editor editor = sp.edit(); in delayNextNotification() local
282 editor.putLong(NOTIFICATION_NEXT_SHOW_TIME, in delayNextNotification()
284 editor.apply(); in delayNextNotification()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java294 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue() local
297 editor.clear().commit(); in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue()
298 editor.putLong(PACKAGE_NAME, 900L).commit(); in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue()
315 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue() local
318 editor.clear().commit(); in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
319 editor.putLong(PACKAGE_NAME, 1000L).commit(); in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
337 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue() local
340 editor.clear().commit(); in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
341 editor.putLong(PACKAGE_NAME, 1000L).commit(); in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
362 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_notOutdated_returnFalse() local
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothUtils.java166 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() local
167 editor.putString(KEY_LAST_SELECTED_DEVICE, deviceAddress); in persistSelectedDeviceInPicker()
168 editor.putLong(KEY_LAST_SELECTED_DEVICE_TIME, System.currentTimeMillis()); in persistSelectedDeviceInPicker()
169 editor.apply(); in persistSelectedDeviceInPicker()
173 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp() local
174 editor.putLong(KEY_DISCOVERABLE_END_TIMESTAMP, endTimestamp); in persistDiscoverableEndTimestamp()
175 editor.apply(); in persistDiscoverableEndTimestamp()

1234567