/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerDAO.java | 106 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 …]
|
D | StopwatchDAO.java | 78 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()
|
D | CustomRingtoneDAO.java | 75 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/ |
D | ControlPanelEffect.java | 161 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/ |
D | BuglePrefsImpl.java | 85 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/ |
D | DefaultWallpaperPreferences.java | 75 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/ |
D | CameraSettings.java | 105 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/ |
D | KindSectionView.java | 17 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/ |
D | PrefsBackupHelperTest.java | 124 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/Dialer/java/com/android/dialer/common/ |
D | PerAccountSharedPreferences.java | 54 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/ |
D | VoicemailProviderSettingsUtil.java | 104 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/ |
D | CameraPictureSizesCacher.java | 51 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/ |
D | PrefsBackupHelper.java | 47 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/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | EditorPlaceHolder.java | 42 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/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | CommonPreferences.java | 30 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/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppManager.java | 234 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/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | StorageManagerUpsellDialog.java | 94 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | LocalBluetoothPreferences.java | 134 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/ |
D | LocalBluetoothPreferences.java | 134 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/ |
D | ContactsPreferences.java | 136 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/ |
D | NotificationController.java | 263 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/robotests/src/com/android/settings/deviceinfo/legal/ |
D | ModuleLicenseProviderTest.java | 298 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue() local 301 editor.clear().commit(); in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue() 302 editor.putLong(PACKAGE_NAME, 900L).commit(); in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue() 319 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue() local 322 editor.clear().commit(); in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue() 323 editor.putLong(PACKAGE_NAME, 1000L).commit(); in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue() 341 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue() local 344 editor.clear().commit(); in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue() 345 editor.putLong(PACKAGE_NAME, 1000L).commit(); in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue() 366 SharedPreferences.Editor editor = context.getSharedPreferences( in isCachedHtmlFileOutdated_notOutdated_returnFalse() local [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothUtils.java | 166 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()
|
/packages/apps/Car/Radio/src/com/android/car/radio/storage/ |
D | RadioStorage.java | 157 SharedPreferences.Editor editor = mPrefs.edit(); in setRecentlySelected() local 165 editor.putString(prefName, selUriStr); in setRecentlySelected() 170 editor.putInt(PREF_KEY_RECENT_TYPE, ptid); in setRecentlySelected() 174 if (hasChanges) editor.apply(); in setRecentlySelected() 201 SharedPreferences.Editor editor = mPrefs.edit(); in setSkipMode() local 205 editor.putInt(PREF_KEY_SKIP_MODE, value); in setSkipMode() 206 editor.apply(); in setSkipMode()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | QuickResponseUtils.java | 109 final SharedPreferences.Editor editor = prefs.edit(); in maybeMigrateLegacyQuickResponses() local 110 editor.putString(KEY_CANNED_RESPONSE_PREF_1, cannedResponse1); in maybeMigrateLegacyQuickResponses() 111 editor.putString(KEY_CANNED_RESPONSE_PREF_2, cannedResponse2); in maybeMigrateLegacyQuickResponses() 112 editor.putString(KEY_CANNED_RESPONSE_PREF_3, cannedResponse3); in maybeMigrateLegacyQuickResponses() 113 editor.putString(KEY_CANNED_RESPONSE_PREF_4, cannedResponse4); in maybeMigrateLegacyQuickResponses() 114 editor.commit(); in maybeMigrateLegacyQuickResponses()
|