/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerDAO.kt | 94 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 …]
|
D | StopwatchDAO.kt | 67 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/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/ |
D | Settings.java | 85 SharedPreferences.Editor editor = sharedPref.edit(); in hasErrDataBudget() local 86 editor.putLong(KEY_FAILURE_DATA_WINDOW_START_TIME, curTime.toEpochMilli()); in hasErrDataBudget() 87 editor.putInt(KEY_FAILURE_BYTES, 0); in hasErrDataBudget() 88 editor.apply(); in hasErrDataBudget() 118 SharedPreferences.Editor editor = sharedPref.edit(); in consumeErrDataBudget() local 126 editor.putInt(KEY_FAILURE_BYTES, budgetUsed); in consumeErrDataBudget() 127 editor.apply(); in consumeErrDataBudget() 141 SharedPreferences.Editor editor = sharedPref.edit(); in generateAndSetId() local 142 editor.putInt(KEY_ID, rand.nextInt(ID_UPPER_BOUND)); in generateAndSetId() 143 editor.apply(); in generateAndSetId() [all …]
|
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/components/ |
D | PersonalStorage.java | 58 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/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/services/Telephony/testapps/GbaTestApp/src/com/android/phone/testapps/gbatestapp/ |
D | Settings.java | 138 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/ |
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/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 168 final SharedPreferences.Editor editor = prefs.edit(); in initEffectsPreferences() local 188 editor.putBoolean(Key.global_enabled.toString(), isGlobalEnabled); in initEffectsPreferences() 198 editor.putBoolean(Key.virt_enabled.toString(), isVIEnabled); in initEffectsPreferences() 199 editor.putInt(Key.virt_strength.toString(), vIStrength); in initEffectsPreferences() 206 editor.putBoolean(Key.virt_strength_supported.toString(), in initEffectsPreferences() 222 editor.putBoolean(Key.bb_enabled.toString(), isBBEnabled); in initEffectsPreferences() 223 editor.putInt(Key.bb_strength.toString(), bBStrength); in initEffectsPreferences() 287 editor.putInt(Key.eq_level_range.toString() + 0, mEQBandLevelRange[0]); in initEffectsPreferences() 288 editor.putInt(Key.eq_level_range.toString() + 1, mEQBandLevelRange[1]); in initEffectsPreferences() 289 editor.putInt(Key.eq_num_bands.toString(), mEQNumBands); in initEffectsPreferences() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | KindSectionView.java | 17 package com.android.contacts.editor; 90 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument 91 editor.clearAllFields(); in onDeleteRequested() 106 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument 107 editor.clearAllFields(); in onDeleteRequested() 128 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument 130 editor.deleteEditor(); in onDeleteRequested() 137 editor.clearAllFields(); in onDeleteRequested() 139 editor.deleteEditor(); in onDeleteRequested() 152 public void onDeleteRequested(Editor editor) { in onDeleteRequested() argument [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/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/ |
D | SetupParameters.java | 144 SharedPreferences.Editor editor = sharedPreferences.edit(); in populatePreferencesLocked() local 145 editor.putString(KEY_KIOSK_PACKAGE, bundle.getString(EXTRA_KIOSK_PACKAGE)); in populatePreferencesLocked() 146 editor.putBoolean(KEY_KIOSK_DISABLE_OUTGOING_CALLS, in populatePreferencesLocked() 148 editor.putBoolean(KEY_KIOSK_ENABLE_NOTIFICATIONS_IN_LOCK_TASK_MODE, in populatePreferencesLocked() 150 editor.putStringSet(KEY_KIOSK_ALLOWLIST, in populatePreferencesLocked() 152 editor.putInt(KEY_PROVISIONING_TYPE, bundle.getInt(EXTRA_PROVISIONING_TYPE)); in populatePreferencesLocked() 153 editor.putBoolean(KEY_MANDATORY_PROVISION, bundle.getBoolean(EXTRA_MANDATORY_PROVISION)); in populatePreferencesLocked() 154 editor.putBoolean(KEY_ALLOW_DEBUGGING, bundle.getBoolean(EXTRA_ALLOW_DEBUGGING)); in populatePreferencesLocked() 155 editor.putString(KEY_KIOSK_APP_PROVIDER_NAME, in populatePreferencesLocked() 157 editor.putBoolean(KEY_DISALLOW_INSTALLING_FROM_UNKNOWN_SOURCES, in populatePreferencesLocked() [all …]
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/logging/ |
D | JobServiceLoggerTest.java | 135 SharedPreferences.Editor editor = sharedPreferences.edit(); in testPersistJobExecutionData_openEndedLastExecution() local 136 editor.putLong(keyJobStartTime, previousJobStartTime); in testPersistJobExecutionData_openEndedLastExecution() 137 editor.putLong(keyJobStopTime, previousJobStopTime); in testPersistJobExecutionData_openEndedLastExecution() 138 editor.putLong(keyExecutionPeriod, previousExecutionPeriod); in testPersistJobExecutionData_openEndedLastExecution() 139 editor.commit(); in testPersistJobExecutionData_openEndedLastExecution() 181 SharedPreferences.Editor editor = sharedPreferences.edit(); in testPersistJobExecutionData_closeEndedLastExecution() local 182 editor.putLong(keyJobStartTime, previousJobStartTime); in testPersistJobExecutionData_closeEndedLastExecution() 183 editor.putLong(keyJobStopTime, previousJobStopTime); in testPersistJobExecutionData_closeEndedLastExecution() 184 editor.putLong(keyExecutionPeriod, previousExecutionPeriod); in testPersistJobExecutionData_closeEndedLastExecution() 185 editor.commit(); in testPersistJobExecutionData_closeEndedLastExecution() [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/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/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/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/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/Gallery2/src/com/android/gallery3d/filtershow/ |
D | EditorPlaceHolder.java | 58 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/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/ |
D | SharedPreferencesSyncManagerUnitTest.java | 202 final SharedPreferences.Editor editor = pref.edit(); in test_bulkSync_supportsAllTypesOfValues() local 203 editor.putString("string", "value"); in test_bulkSync_supportsAllTypesOfValues() 204 editor.putBoolean("boolean", true); in test_bulkSync_supportsAllTypesOfValues() 205 editor.putFloat("float", 1.2f); in test_bulkSync_supportsAllTypesOfValues() 206 editor.putInt("int", 1); in test_bulkSync_supportsAllTypesOfValues() 207 editor.putLong("long", 1L); in test_bulkSync_supportsAllTypesOfValues() 208 editor.putStringSet("set", Set.of("value")); in test_bulkSync_supportsAllTypesOfValues() 209 editor.commit(); in test_bulkSync_supportsAllTypesOfValues() 268 final SharedPreferences.Editor editor = pref.edit(); in test_updateListener_supportsAllTypesOfValues() local 269 editor.putString("string", "value"); in test_updateListener_supportsAllTypesOfValues() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/extdata/ |
D | AdServicesExtDataStorageServiceDebugProxy.java | 90 SharedPreferences.Editor editor = mSharedPreferences.edit(); in setAdServicesExtData() local 93 case FIELD_IS_NOTIFICATION_DISPLAYED -> editor.putInt( in setAdServicesExtData() 96 case FIELD_IS_MEASUREMENT_CONSENTED -> editor.putInt( in setAdServicesExtData() 98 case FIELD_IS_U18_ACCOUNT -> editor.putInt( in setAdServicesExtData() 100 case FIELD_IS_ADULT_ACCOUNT -> editor.putInt( in setAdServicesExtData() 102 case FIELD_MANUAL_INTERACTION_WITH_CONSENT_STATUS -> editor.putInt( in setAdServicesExtData() 105 case FIELD_MEASUREMENT_ROLLBACK_APEX_VERSION -> editor.putLong( in setAdServicesExtData() 111 editor.apply(); in setAdServicesExtData()
|
/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/apps/Settings/src/com/android/settings/localepicker/ |
D | LocaleNotificationDataManager.java | 69 SharedPreferences.Editor editor = getSharedPreferences(mContext).edit(); in putNotificationInfo() local 70 editor.putString(locale, json); in putNotificationInfo() 71 editor.apply(); in putNotificationInfo() 80 SharedPreferences.Editor editor = getSharedPreferences(mContext).edit(); in removeNotificationInfo() local 81 editor.remove(locale); in removeNotificationInfo() 82 editor.apply(); in removeNotificationInfo()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothPreferences.java | 153 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker() local 154 editor.putString(KEY_LAST_SELECTED_DEVICE, in persistSelectedDeviceInPicker() 156 editor.putLong(KEY_LAST_SELECTED_DEVICE_TIME, in persistSelectedDeviceInPicker() 158 editor.apply(); in persistSelectedDeviceInPicker() 162 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp() local 163 editor.putLong(KEY_DISCOVERABLE_END_TIMESTAMP, endTimestamp); in persistDiscoverableEndTimestamp() 164 editor.apply(); in persistDiscoverableEndTimestamp()
|
/packages/modules/ExtServices/java/src/android/ext/services/common/ |
D | AdServicesAppsearchDeleteJob.java | 103 SharedPreferences.Editor editor = sharedPref.edit(); in onStartJob() local 125 editor.putLong(SHARED_PREFS_KEY_JOB_RUN_COUNT, jobRunCount); in onStartJob() 134 editor.putLong(SHARED_PREFS_KEY_OTA_DATE, currentTime); in onStartJob() 137 editor.putBoolean(SHARED_PREFS_KEY_APPSEARCH_DATA_FOUND, foundData); in onStartJob() 147 deleteAppsearchData(params, editor, sharedPref, in onStartJob() 159 editor.putLong(SHARED_PREFS_KEY_ADSERVICES_ENABLED_DATE, 0L); in onStartJob() 165 editor.putLong(SHARED_PREFS_KEY_ADSERVICES_ENABLED_DATE, currentTime); in onStartJob() 172 deleteAppsearchData(params, editor, sharedPref, in onStartJob() 184 if (!editor.commit()) { in onStartJob() 190 private void deleteAppsearchData(JobParameters params, SharedPreferences.Editor editor, in deleteAppsearchData() argument [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastReceiverMetrics.java | 342 SharedPreferences.Editor editor = sp.edit(); in updateSharedPreferences() local 343 editor.putBoolean(ALERT_IN_CALL, mAlertDuringCall); in updateSharedPreferences() 344 editor.putString(OVERRIDE_DND, getStringFromChannelSet(mDnDChannelSet)); in updateSharedPreferences() 345 editor.putBoolean(ROAMING_SUPPORT, mRoamingSupport); in updateSharedPreferences() 346 editor.putBoolean(STORE_SMS, mStoreSms); in updateSharedPreferences() 347 editor.putBoolean(TEST_MODE, mTestMode); in updateSharedPreferences() 348 editor.putBoolean(TTS_MODE, mEnableAlertSpeech); in updateSharedPreferences() 349 editor.putBoolean(TEST_MODE_ON_USER_BUILD, mTestModeOnUserBuild); in updateSharedPreferences() 350 editor.apply(); in updateSharedPreferences() 516 SharedPreferences.Editor editor = sp.edit(); in onConfigUpdated() local [all …]
|