/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SharedPreferenceUtil.java | 70 getSharedPreferences(context).edit() in setHamburgerPromoDisplayedBefore() 82 getSharedPreferences(context).edit() in setHamburgerMenuClickedBefore() 94 getSharedPreferences(context).edit() in setHamburgerPromoTriggerActionHappenedBefore() 132 getSharedPreferences(context).edit() in resetNumOfDismissesForAutoSyncOff() 140 getSharedPreferences(context).edit() in incNumOfDismissesForAutoSyncOff() 156 getSharedPreferences(context).edit() in resetNumOfDismissesForAccountSyncOff() 164 getSharedPreferences(context).edit() in incNumOfDismissesForAccountSyncOff() 187 getSharedPreferences(context).edit() in persistSimStates() 227 getSharedPreferences(context).edit() in addRestoredDevice() 235 getSharedPreferences(context).edit() in addDismissedDevice() [all …]
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvSettings.java | 77 PreferenceManager.getDefaultSharedPreferences(context).edit().putString( in setMultiAudioId() 87 PreferenceManager.getDefaultSharedPreferences(context).edit().putString( in setMultiAudioLanguage() 97 PreferenceManager.getDefaultSharedPreferences(context).edit().putInt( in setMultiAudioChannelCount() 105 PreferenceManager.getDefaultSharedPreferences(context).edit() in setDvrPlaybackTrackSettings() 108 PreferenceManager.getDefaultSharedPreferences(context).edit() in setDvrPlaybackTrackSettings() 115 PreferenceManager.getDefaultSharedPreferences(context).edit() in setDvrPlaybackTrackSettings() 118 PreferenceManager.getDefaultSharedPreferences(context).edit() in setDvrPlaybackTrackSettings() 156 PreferenceManager.getDefaultSharedPreferences(context).edit() in addContentRatingSystem() 164 PreferenceManager.getDefaultSharedPreferences(context).edit() in removeContentRatingSystem() 196 PreferenceManager.getDefaultSharedPreferences(context).edit().putInt( in setContentRatingLevel() [all …]
|
D | SetupUtils.java | 212 mSharedPreferences.edit().putStringSet(PREF_KEY_KNOWN_INPUTS, mKnownInputs) in markAsKnownInput() 254 mSharedPreferences.edit().putStringSet(PREF_KEY_RECOGNIZED_INPUTS, mRecognizedInputs) in markAllInputsRecognized() 325 mSharedPreferences.edit().putBoolean(PREF_KEY_IS_FIRST_TUNE, false).apply(); in onTuned() 361 mSharedPreferences.edit().putStringSet(PREF_KEY_SET_UP_INPUTS, mSetUpInputs) in onInputListUpdated() 378 mSharedPreferences.edit().putStringSet(PREF_KEY_RECOGNIZED_INPUTS, mRecognizedInputs) in onSetupDone() 384 mSharedPreferences.edit().putStringSet(PREF_KEY_KNOWN_INPUTS, mKnownInputs).apply(); in onSetupDone() 388 mSharedPreferences.edit().putStringSet(PREF_KEY_SET_UP_INPUTS, mSetUpInputs).apply(); in onSetupDone()
|
/packages/apps/Email/provider_src/com/android/email/ |
D | Preferences.java | 117 getPreferences(context).mSharedPreferences.edit().remove(ACCOUNT_UUIDS).apply(); in clearLegacyBackupPreference() 121 mSharedPreferences.edit().putBoolean(ENABLE_DEBUG_LOGGING, value).apply(); in setEnableDebugLogging() 129 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_LOGGING, value).apply(); in setEnableExchangeLogging() 137 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_FILE_LOGGING, value).apply(); in setEnableExchangeFileLogging() 145 mSharedPreferences.edit().putBoolean(ENABLE_STRICT_MODE, value).apply(); in setEnableStrictMode() 161 mSharedPreferences.edit().putString(DEVICE_UID, result).apply(); in getDeviceUID() 171 mSharedPreferences.edit().putInt(ONE_TIME_INITIALIZATION_PROGRESS, progress).apply(); in setOneTimeInitializationProgress() 264 .edit() in setLastUsedAccountId() 270 mSharedPreferences.edit().clear().apply(); in clear()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/edit/ |
D | EditInfoActivityTest.java | 16 package com.android.emergency.edit; 68 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in setUp() 73 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in tearDown() 104 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences() 106 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences() 108 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences() 110 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences() 112 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences() 114 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences() 116 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/prefs/ |
D | PrefsBackupHelperTest.java | 62 mDefaultPrefs.edit().putInt(LOCAL_PREFERENCE_1, 1).commit(); in testPrepareBackupFile_BackupLocalPreferences() 71 mDefaultPrefs.edit().putBoolean(SCOPED_PREFERENCE, true).commit(); in testPrepareBackupFile_BackupScopedPreferences() 80 mDefaultPrefs.edit().putBoolean(NON_BACKUP_PREFERENCE, true).commit(); in testPrepareBackupFile_BackupNotInterestedPreferences() 90 mDefaultPrefs.edit().putString(LOCAL_PREFERENCE_1, "String is not accepted").commit(); in testPrepareBackupFile_BackupUnexpectedType() 104 mBackupPrefs.edit().putInt(LOCAL_PREFERENCE_1, 1).commit(); in testRestorePreferences_RestoreLocalPreferences() 113 mBackupPrefs.edit().putBoolean(SCOPED_PREFERENCE, true).commit(); in testRestorePreferences_RestoreScopedPreferences() 132 SharedPreferences.Editor editor = mDefaultPrefs.edit(); in testEndToEnd() 179 Editor editor = mDefaultPrefs.edit().clear(); in testPreferenceTypesSupport()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SearchSettingsImpl.java | 99 SharedPreferencesCompat.apply(getSearchPreferences().edit().putBoolean(name, value)); in storeBoolean() 103 SharedPreferencesCompat.apply(getSearchPreferences().edit().putInt(name, value)); in storeInt() 107 SharedPreferencesCompat.apply(getSearchPreferences().edit().putLong(name, value)); in storeLong() 111 SharedPreferencesCompat.apply(getSearchPreferences().edit().putString(name, value)); in storeString() 115 SharedPreferencesCompat.apply(getSearchPreferences().edit().remove(name)); in removePref() 157 SharedPreferencesCompat.apply(prefs.edit() in haveVoiceSearchHintsExpired() 206 Editor sharedPrefEditor = getSearchPreferences().edit(); in setSearchBaseDomain()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 267 final SharedPreferences.Editor editor = prefs.edit(); in readShowsLanguageSwitchKey() 284 prefs.edit().putString(PREF_CUSTOM_INPUT_STYLES, prefSubtypes).apply(); in writePrefAdditionalSubtypes() 383 mPrefs.edit().remove(PREF_LAST_USED_PERSONALIZATION_TOKEN).apply(); in writeLastUsedPersonalizationToken() 386 mPrefs.edit().putString(PREF_LAST_USED_PERSONALIZATION_TOKEN, tokenStr).apply(); in writeLastUsedPersonalizationToken() 396 mPrefs.edit().putLong(PREF_LAST_PERSONALIZATION_DICT_WIPED_TIME, timestamp).apply(); in writeLastPersonalizationDictWipedTime() 404 mPrefs.edit().putStringSet(PREF_CORPUS_HANDLES_FOR_PERSONALIZATION, corpusHandles).apply(); in writeCorpusHandlesForPersonalization() 413 prefs.edit().putString(PREF_EMOJI_RECENT_KEYS, str).apply(); in writeEmojiRecentKeys() 423 prefs.edit().putInt(key, categoryPageId).apply(); in writeLastTypedEmojiCategoryPageId() 434 prefs.edit().putInt(PREF_LAST_SHOWN_EMOJI_CATEGORY_ID, categoryId).apply(); in writeLastShownEmojiCategoryId() 446 SharedPreferences.Editor editor = prefs.edit(); in upgradeAutocorrectionSettings()
|
D | AdvancedSettingsFragment.java | 137 prefs.edit().putInt(key, value).apply(); in setupKeypressVibrationDurationSettings() 142 prefs.edit().remove(key).apply(); in setupKeypressVibrationDurationSettings() 192 prefs.edit().putFloat(key, getValueFromPercentage(value)).apply(); in setupKeypressSoundVolumeSettings() 197 prefs.edit().remove(key).apply(); in setupKeypressSoundVolumeSettings() 237 prefs.edit().putInt(key, value).apply(); in setupKeyLongpressTimeoutSettings() 242 prefs.edit().remove(key).apply(); in setupKeyLongpressTimeoutSettings()
|
D | DebugSettingsFragment.java | 173 prefs.edit().putFloat(key, getValueFromPercentage(value)).apply(); in setupKeyPreviewAnimationScale() 178 prefs.edit().remove(key).apply(); in setupKeyPreviewAnimationScale() 215 prefs.edit().putInt(key, value).apply(); in setupKeyPreviewAnimationDuration() 220 prefs.edit().remove(key).apply(); in setupKeyPreviewAnimationDuration() 261 prefs.edit().putFloat(key, getValueFromPercentage(value)).apply(); in setupKeyboardHeight() 266 prefs.edit().remove(key).apply(); in setupKeyboardHeight()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | SettingsDAO.java | 82 prefs.edit().putInt(KEY_ALARM_GLOBAL_ID, globalId).apply(); in updateGlobalIntentId() 100 prefs.edit().putInt(KEY_SORT_PREFERENCE, newSort.ordinal()).apply(); in toggleCitySort() 126 prefs.edit().putString(SettingsActivity.KEY_HOME_TZ, timeZoneId).apply(); in getHomeTimeZone() 152 prefs.edit().putBoolean(SettingsActivity.KEY_CLOCK_DISPLAY_SECONDS, displaySeconds).apply(); in setDisplayClockSeconds() 201 prefs.edit().putBoolean(SettingsActivity.KEY_TIMER_VIBRATE, enabled).apply(); in setTimerVibrate() 208 prefs.edit().putString(SettingsActivity.KEY_TIMER_RINGTONE, uri.toString()).apply(); in setTimerRingtoneUri() 224 prefs.edit().putString(KEY_DEFAULT_ALARM_RINGTONE_URI, uri.toString()).apply(); in setDefaultAlarmRingtoneUri() 274 prefs.edit().putBoolean(KEY_RESTORE_BACKUP_FINISHED, true).apply(); in setRestoreBackupFinished() 276 prefs.edit().remove(KEY_RESTORE_BACKUP_FINISHED).apply(); in setRestoreBackupFinished()
|
/packages/apps/TV/src/com/android/tv/tuner/ |
D | TunerPreferences.java | 177 getSharedPreferences(context).edit() in setChannelDataVersion() 197 getSharedPreferences(context).edit() in setScannedChannelCount() 216 getSharedPreferences(context).edit() in setLastPostalCode() 235 getSharedPreferences(context).edit() in setScanDone() 255 getSharedPreferences(context).edit() in setShouldShowSetupActivity() 275 getSharedPreferences(context).edit() in setTrickplayExpiredMs() 298 getSharedPreferences(context).edit() in setTrickplaySetting() 318 getSharedPreferences(context).edit() in setStoreTsStream()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/ |
D | ViewInfoActivityTest.java | 37 import com.android.emergency.edit.EditInfoActivity; 81 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in tearDown() 102 .edit().putString(PreferenceKeys.KEY_NAME, name).commit(); in testNameSet() 124 .edit().putString(PreferenceKeys.KEY_ALLERGIES, allergies).commit(); in testMedicalInfoSet() 146 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, emergencyContact).commit(); in testEmergencyContactsSet() 171 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, emergencyContact).commit(); in testMedicalInfoAndEmergencyContactsSet() 174 .edit().putString(PreferenceKeys.KEY_ALLERGIES, allergies).commit(); in testMedicalInfoAndEmergencyContactsSet()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapUtils.java | 257 Editor edit = pref.edit(); in savePbapParams() local 258 edit.putLong("primary", primaryCounter); in savePbapParams() 259 edit.putLong("secondary", secondaryCounter); in savePbapParams() 260 edit.putLong("dbIdentifier", dbIdentifier); in savePbapParams() 261 edit.putLong("totalContacts", totalContacts); in savePbapParams() 262 edit.putLong("lastUpdatedTimestamp", lastUpdatedTimestamp); in savePbapParams() 263 edit.putLong("totalFields", totalFields); in savePbapParams() 264 edit.putLong("totalSvcFields", totalSvcFields); in savePbapParams() 265 edit.apply(); in savePbapParams()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/ |
D | SharedPreferenceLoggerTest.java | 80 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putInt_shouldNotLogInitialPut() 96 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putBoolean_shouldNotLogInitialPut() 114 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_shouldNotLogInitialPut() 128 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_biggerThanIntMax_shouldLogIntMax() 141 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_smallerThanIntMin_shouldLogIntMin() 154 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putFloat_shouldNotLogInitialPut()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | ValidatedEditTextPreferenceTest.java | 63 when(mView.findViewById(android.R.id.edit)).thenReturn(null); in bindDialogView_nullEditText_shouldNotCrash() 73 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_emptyEditText_shouldNotSetSelection() 86 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_nonemptyEditText_shouldSetSelection() 97 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_hasValidator_shouldBindToEditText() 108 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_isPassword_shouldSetInputType()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | BuglePrefsImpl.java | 85 final SharedPreferences.Editor editor = prefs.edit(); in putInt() 95 final SharedPreferences.Editor editor = prefs.edit(); in putLong() 105 final SharedPreferences.Editor editor = prefs.edit(); in putBoolean() 115 final SharedPreferences.Editor editor = prefs.edit(); in putString() 131 final SharedPreferences.Editor editor = prefs.edit(); in remove()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/ |
D | EmergencyContactsPreferenceTest.java | 40 import com.android.emergency.edit.EditInfoActivity; 41 import com.android.emergency.edit.EditInfoFragment; 73 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in setUp() 79 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, contactUri.toString()) in setUp() 91 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in tearDown()
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | AppUpgrader.java | 111 defaultPreferences.edit().remove(OLD_KEY_UPGRADE_VERSION).apply(); in getLastVersion() 361 newPrefs.edit().remove(key).apply(); in copyPreferences() 364 newPrefs.edit().putString(key, boolValue).apply(); in copyPreferences() 367 newPrefs.edit().putString(key, intValue).apply(); in copyPreferences() 375 newPrefs.edit().putString(key, intValue).apply(); in copyPreferences() 381 newPrefs.edit().putString(key, (String) value).apply(); in copyPreferences() 385 newPrefs.edit().remove(key).apply(); in copyPreferences()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastReceiver.java | 133 Editor editor = sp.edit(); in adjustReminderInterval() 186 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory() 192 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory() 198 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory() 203 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | CachedStorageValuesHelperTest.java | 79 .edit() in getCachedPrivateStorageInfo_cachedValuesAreLoaded() 107 .edit() in getCachedAppsStorageResult_cachedValuesAreLoaded() 146 .edit() in getCachedPrivateStorageInfo_nullIfDataIsStale() 172 .edit() in getCachedAppsStorageResult_nullIfDataIsStale() 199 .edit() in getCachedPrivateStorageInfo_nullIfWrongUser() 225 .edit() in getCachedAppsStorageResult_nullIfWrongUser()
|
/packages/apps/Dialer/java/com/android/dialer/postcall/ |
D | PostCall.java | 106 .edit() in promptUserToSendMessage() 144 .edit() in promptUserToViewSentMessage() 151 .edit() in onCallDisconnected() 160 .edit() in onMessageSent() 183 .edit() in clear()
|
/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
D | CallDetailsFooterViewHolder.java | 40 private final View edit; field in CallDetailsFooterViewHolder 50 edit = view.findViewById(R.id.call_detail_action_edit_before_call); in CallDetailsFooterViewHolder() 54 edit.setOnClickListener(this); in CallDetailsFooterViewHolder() 75 } else if (view == edit) { in onClick()
|
/packages/apps/Contacts/src/com/android/contacts/preference/ |
D | ContactsPreferences.java | 136 final Editor editor = mPreferences.edit(); in setSortOrder() 166 final Editor editor = mPreferences.edit(); in setDisplayOrder() 187 final Editor editor = mPreferences.edit(); in setPhoneticNameDisplayPreference() 228 mPreferences.edit().remove(mDefaultAccountKey).commit(); in clearDefaultAccount() 237 mPreferences.edit().putString(mDefaultAccountKey, accountWithDataSet.stringify()).commit(); in setDefaultAccount()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
D | VvmAccountManager.java | 67 statusMessage.putStatus(preferences.edit()).apply(); in addAccount() 83 .edit() in removeAccount() 146 .edit() in migrateActivationState() 157 .edit() in setAccountActivated()
|