Home
last modified time | relevance | path

Searched refs:edit (Results 1 – 25 of 386) sorted by relevance

12345678910>>...16

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.java78 mSharedPrefs.edit().putString(key, resName).apply(); in persistResIdByName()
92 mSharedPrefs.edit().putInt( in setWallpaperPresentationMode()
107 SharedPreferences.Editor editor = mSharedPrefs.edit(); in setHomeWallpaperAttributions()
128 mSharedPrefs.edit().putString( in setHomeWallpaperActionUrl()
163 mSharedPrefs.edit().putString( in setHomeWallpaperBaseImageUrl()
175 mSharedPrefs.edit().putString( in setHomeWallpaperCollectionId()
188 mSharedPrefs.edit().putString( in setHomeWallpaperBackingFileName()
199 mSharedPrefs.edit().putLong( in setHomeWallpaperHashCode()
209 mSharedPrefs.edit() in clearHomeWallpaperMetadata()
232 mSharedPrefs.edit().putString( in setHomeWallpaperPackageName()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DSharedPreferenceUtil.java70 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/
DTvSettings.java82 .edit() in setMultiAudioId()
94 .edit() in setMultiAudioLanguage()
106 .edit() in setMultiAudioChannelCount()
116 .edit() in setDvrPlaybackTrackSettings()
121 .edit() in setDvrPlaybackTrackSettings()
130 .edit() in setDvrPlaybackTrackSettings()
135 .edit() in setDvrPlaybackTrackSettings()
176 .edit() in addContentRatingSystem()
186 .edit() in removeContentRatingSystem()
221 .edit() in setContentRatingLevel()
[all …]
DSetupUtils.java204 .edit() in markAsKnownInput()
243 .edit() in markAllInputsRecognized()
318 mSharedPreferences.edit().putBoolean(PREF_KEY_IS_FIRST_TUNE, false).apply(); in onTuned()
356 .edit() in onInputListUpdated()
376 .edit() in onSetupDone()
383 mSharedPreferences.edit().putStringSet(PREF_KEY_KNOWN_INPUTS, mKnownInputs).apply(); in onSetupDone()
387 mSharedPreferences.edit().putStringSet(PREF_KEY_SET_UP_INPUTS, mSetUpInputs).apply(); in onSetupDone()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/prefs/
DPrefsBackupHelperTest.java67 mDefaultPrefs.edit().clear().commit(); in clearSharedPrefs()
68 mBackupPrefs.edit().clear().commit(); in clearSharedPrefs()
73 mDefaultPrefs.edit().putInt(LOCAL_PREFERENCE_1, 1).commit(); in testPrepareBackupFile_BackupLocalPreferences()
82 mDefaultPrefs.edit().putBoolean(SCOPED_PREFERENCE, true).commit(); in testPrepareBackupFile_BackupScopedPreferences()
91 mDefaultPrefs.edit().putBoolean(NON_BACKUP_PREFERENCE, true).commit(); in testPrepareBackupFile_BackupNotInterestedPreferences()
101 mDefaultPrefs.edit().putString(LOCAL_PREFERENCE_1, "String is not accepted").commit(); in testPrepareBackupFile_BackupUnexpectedType()
115 mBackupPrefs.edit().putInt(LOCAL_PREFERENCE_1, 1).commit(); in testRestorePreferences_RestoreLocalPreferences()
124 mBackupPrefs.edit().putBoolean(SCOPED_PREFERENCE, true).commit(); in testRestorePreferences_RestoreScopedPreferences()
143 SharedPreferences.Editor editor = mDefaultPrefs.edit(); in testEndToEnd()
190 Editor editor = mDefaultPrefs.edit().clear(); in testPreferenceTypesSupport()
/packages/apps/Email/provider_src/com/android/email/
DPreferences.java117 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/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothRenameDialogFragmentTest.java59 EditText editText = mDialog.findViewById(android.R.id.edit); in initialTextIsCurrentDeviceName()
79 EditText editText = mDialog.findViewById(android.R.id.edit); in userInput_positiveButtonEnabled()
87 EditText editText = mDialog.findViewById(android.R.id.edit); in userInput_emptyName_positiveButtonDisabled()
95 EditText editText = mDialog.findViewById(android.R.id.edit); in nameUpdatedByCode_positiveButtonDisabled()
105 EditText editText = mDialog.findViewById(android.R.id.edit); in editorDoneAction_dismissesDialog()
114 EditText editText = mDialog.findViewById(android.R.id.edit); in editorDoneAction_setsDeviceName()
126 EditText editText = mDialog.findViewById(android.R.id.edit); in editorDoneAction_emptyName_doesNotSetDeviceName()
138 EditText editText = mDialog.findViewById(android.R.id.edit); in positiveButtonClicked_setsDeviceName()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/edit/
DEditInfoActivityTest.java16 package com.android.emergency.edit;
66 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in setUp()
71 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in tearDown()
103 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences()
105 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences()
107 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences()
109 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences()
111 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences()
113 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( in testClearAllPreferences()
119 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, contactUri.toString()) in testClearAllPreferences()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchSettingsImpl.java99 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/
DSettings.java267 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()
DAdvancedSettingsFragment.java137 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()
DDebugSettingsFragment.java173 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/
DSettingsDAO.java82 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/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapUtils.java166 Editor edit = pref.edit(); in savePbapParams() local
167 edit.putLong("primary", sPrimaryVersionCounter); in savePbapParams()
168 edit.putLong("secondary", sSecondaryVersionCounter); in savePbapParams()
169 edit.putLong("dbIdentifier", dbIdentifier); in savePbapParams()
170 edit.putLong("totalContacts", sTotalContacts); in savePbapParams()
171 edit.putLong("lastUpdatedTimestamp", sContactsLastUpdated); in savePbapParams()
172 edit.putLong("totalFields", sTotalFields); in savePbapParams()
173 edit.putLong("totalSvcFields", sTotalSvcFields); in savePbapParams()
174 edit.apply(); in savePbapParams()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/
DViewInfoActivityTest.java38 import com.android.emergency.edit.EditInfoActivity;
82 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in tearDown()
103 .edit().putString(PreferenceKeys.KEY_NAME, name).commit(); in testNameSet()
125 .edit().putString(PreferenceKeys.KEY_ALLERGIES, allergies).commit(); in testMedicalInfoSet()
147 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, emergencyContact).commit(); in testEmergencyContactsSet()
172 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, emergencyContact).commit(); in testMedicalInfoAndEmergencyContactsSet()
175 .edit().putString(PreferenceKeys.KEY_ALLERGIES, allergies).commit(); in testMedicalInfoAndEmergencyContactsSet()
/packages/apps/Dialer/java/com/android/dialer/calldetails/
DCallDetailsFooterViewHolder.java40 private final View edit; field in CallDetailsFooterViewHolder
54 edit = view.findViewById(R.id.call_detail_action_edit_before_call); in CallDetailsFooterViewHolder()
58 edit.setOnClickListener(this); in CallDetailsFooterViewHolder()
67 edit.setVisibility(View.GONE); in setPhoneNumber()
81 } else if (view == edit) { in onClick()
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java85 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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java134 Editor editor = sp.edit(); in adjustReminderInterval()
158 sp.edit().putBoolean(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, in initializeSharedPreference()
212 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory()
218 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory()
224 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory()
229 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory()
/packages/services/Telecomm/src/com/android/server/telecom/
DQuickResponseUtils.java109 final SharedPreferences.Editor editor = prefs.edit(); in maybeMigrateLegacyQuickResponses()
135 prefs.edit().remove(QuickResponseUtils.KEY_CANNED_RESPONSE_PREF_1).apply(); in maybeResetQuickResponses()
143 prefs.edit().remove(QuickResponseUtils.KEY_CANNED_RESPONSE_PREF_2).apply(); in maybeResetQuickResponses()
151 prefs.edit().remove(QuickResponseUtils.KEY_CANNED_RESPONSE_PREF_3).apply(); in maybeResetQuickResponses()
159 prefs.edit().remove(QuickResponseUtils.KEY_CANNED_RESPONSE_PREF_4).apply(); in maybeResetQuickResponses()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DValidatedEditTextPreferenceTest.java66 when(mView.findViewById(android.R.id.edit)).thenReturn(null); in bindDialogView_nullEditText_shouldNotCrash()
76 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_emptyEditText_shouldNotSetSelection()
89 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_nonemptyEditText_shouldSetSelection()
100 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_hasValidator_shouldBindToEditText()
111 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_isPassword_shouldSetInputType()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java42 import com.android.emergency.edit.EditInfoActivity;
43 import com.android.emergency.edit.EditInfoFragment;
75 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in setUp()
81 .edit().putString(PreferenceKeys.KEY_EMERGENCY_CONTACTS, contactUri.toString()) in setUp()
93 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); in tearDown()
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCall.java112 .edit() in promptUserToSendMessage()
151 .edit() in promptUserToViewSentMessage()
159 .edit() in onDisconnectPressed()
167 .edit() in onCallDisconnected()
177 .edit() in onMessageSent()
202 .edit() in clear()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DEditTextPreferenceDialogFragmentTest.java78 android.R.id.edit); in dialogPopulatedWithPreferenceText()
96 android.R.id.edit); in editTextHasFocus()
106 EditText editTextView = dialog.findViewById(android.R.id.edit); in onDialogClosed_positiveResult_updatesPreference()
118 EditText editTextView = dialog.findViewById(android.R.id.edit); in onDialogClosed_negativeResult_doesNothing()
143 EditText editTextView = dialog.findViewById(android.R.id.edit); in instanceStateRetained()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java289 .edit().clear().commit(); in isCachedHtmlFileOutdated_packageNotInSharedPrefs_returnTrue()
300 .edit(); in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue()
318 .edit().clear().commit(); in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
321 .edit(); in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
340 .edit().clear().commit(); in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
343 .edit(); in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
365 .edit().clear().commit(); in isCachedHtmlFileOutdated_notOutdated_returnFalse()
368 .edit(); in isCachedHtmlFileOutdated_notOutdated_returnFalse()
/packages/apps/TV/tuner/src/com/android/tv/tuner/prefs/
DTunerPreferences.java54 .edit() in setChannelDataVersion()
68 .edit() in setScannedChannelCount()
82 .edit() in setScanDone()
96 .edit() in setTrickplayExpiredMs()

12345678910>>...16