/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultWallpaperPreferences.java | 80 SharedPreferences.Editor editor = mNoBackupPrefs.edit(); in upgradePrefs() 178 mSharedPrefs.edit().putString(key, resName).apply(); in persistResIdByName() 192 mSharedPrefs.edit().putInt( in setWallpaperPresentationMode() 207 SharedPreferences.Editor editor = mSharedPrefs.edit(); in setHomeWallpaperAttributions() 231 mSharedPrefs.edit().putString( in setHomeWallpaperActionUrl() 267 mNoBackupPrefs.edit().putString( in setHomeWallpaperBaseImageUrl() 281 mSharedPrefs.edit().putString( in setHomeWallpaperCollectionId() 294 mNoBackupPrefs.edit().putString( in setHomeWallpaperBackingFileName() 305 mSharedPrefs.edit().putLong( in setHomeWallpaperHashCode() 315 mSharedPrefs.edit() in clearHomeWallpaperMetadata() [all …]
|
/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/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | ManagedProvisioningSharedPreferences.java | 74 mSharedPreferences.edit().putLong(KEY_PROVISIONING_ID, provisioningId).commit(); in incrementAndGetProvisioningId() 83 mSharedPreferences.edit() in writeProvisioningStartedTimestamp() 99 mSharedPreferences.edit() in writeNavigationBarColor() 115 mSharedPreferences.edit() in writeNavigationBarDividerColor() 131 mSharedPreferences.edit() in writeTextPrimaryColor() 147 mSharedPreferences.edit() in writeTextSecondaryColor() 163 mSharedPreferences.edit() in writeBackgroundColor() 179 mSharedPreferences.edit() in writeAccentColor() 195 mSharedPreferences.edit() in writeNotificationBackgroundColor()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvSettings.java | 82 .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 …]
|
D | SetupUtils.java | 204 .edit() in markAsKnownInput() 243 .edit() in markAllInputsRecognized() 317 mSharedPreferences.edit().putBoolean(PREF_KEY_IS_FIRST_TUNE, false).apply(); in onTuned() 355 .edit() in onInputListUpdated() 375 .edit() in onSetupDone() 382 mSharedPreferences.edit().putStringSet(PREF_KEY_KNOWN_INPUTS, mKnownInputs).apply(); in onSetupDone() 386 mSharedPreferences.edit().putStringSet(PREF_KEY_SET_UP_INPUTS, mSetUpInputs).apply(); in onSetupDone()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/prefs/ |
D | PrefsBackupHelperTest.java | 66 mDefaultPrefs.edit().clear().commit(); in clearSharedPrefs() 67 mBackupPrefs.edit().clear().commit(); in clearSharedPrefs() 72 mDefaultPrefs.edit().putInt(LOCAL_PREFERENCE_1, 1).commit(); in testPrepareBackupFile_BackupLocalPreferences() 81 mDefaultPrefs.edit().putBoolean(NON_BACKUP_PREFERENCE, true).commit(); in testPrepareBackupFile_BackupNotInterestedPreferences() 91 mDefaultPrefs.edit().putString(LOCAL_PREFERENCE_1, "String is not accepted").commit(); in testPrepareBackupFile_BackupUnexpectedType() 105 mBackupPrefs.edit().putInt(LOCAL_PREFERENCE_1, 1).commit(); in testRestorePreferences_RestoreLocalPreferences() 124 SharedPreferences.Editor editor = mDefaultPrefs.edit(); in testEndToEnd() 169 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/apps/EmergencyInfo/tests/unit/src/com/android/emergency/edit/ |
D | EditInfoActivityTest.java | 16 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/DeskClock/src/com/android/deskclock/data/ |
D | SettingsDAO.kt | 71 prefs.edit().putInt(KEY_ALARM_GLOBAL_ID, globalId).apply() in updateGlobalIntentId() 89 prefs.edit().putInt(KEY_SORT_PREFERENCE, newSort.ordinal).apply() in toggleCitySort() 115 prefs.edit().putString(SettingsActivity.KEY_HOME_TZ, timeZoneId).apply() in getHomeTimeZone() 141 prefs.edit().putBoolean(SettingsActivity.KEY_CLOCK_DISPLAY_SECONDS, displaySeconds).apply() in setDisplayClockSeconds() 190 prefs.edit().putBoolean(SettingsActivity.KEY_TIMER_VIBRATE, enabled).apply() in setTimerVibrate() 197 prefs.edit().putString(SettingsActivity.KEY_TIMER_RINGTONE, uri.toString()).apply() in setTimerRingtoneUri() 217 prefs.edit().putString(KEY_DEFAULT_ALARM_RINGTONE_URI, uri.toString()).apply() in setDefaultAlarmRingtoneUri() 265 prefs.edit().putBoolean(KEY_RESTORE_BACKUP_FINISHED, true).apply() in setRestoreBackupFinished() 267 prefs.edit().remove(KEY_RESTORE_BACKUP_FINISHED).apply() in setRestoreBackupFinished()
|
/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/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | WifiTetherPasswordPreferenceControllerTest.java | 77 sp.edit().remove(WifiTetherPasswordPreferenceController.KEY_SAVED_PASSWORD).commit(); in tearDown() 174 sp.edit().putInt(WifiTetherSecurityPreferenceController.KEY_SECURITY_TYPE, in onSecurityChangedToNone_visibilityIsFalse() 193 sp.edit().putInt(WifiTetherSecurityPreferenceController.KEY_SECURITY_TYPE, in onSecurityChangedToWPA2PSK_visibilityIsTrue() 213 sp.edit().putInt(WifiTetherSecurityPreferenceController.KEY_SECURITY_TYPE, in onSecurityChangedToNone_updatesSecurityTypeToNone() 234 sp.edit().putString(WifiTetherPasswordPreferenceController.KEY_SAVED_PASSWORD, newPassword) in onSecurityChangedToWPA2PSK_updatesSecurityTypeToWPA2PSK() 237 sp.edit().putInt(WifiTetherSecurityPreferenceController.KEY_SECURITY_TYPE, in onSecurityChangedToWPA2PSK_updatesSecurityTypeToWPA2PSK() 252 sp.edit().putString(WifiTetherPasswordPreferenceController.KEY_SAVED_PASSWORD, in onPreferenceSwitchFromNoneToWPA2PSK_retrievesSavedPassword() 260 sp.edit().putInt(WifiTetherSecurityPreferenceController.KEY_SECURITY_TYPE, in onPreferenceSwitchFromNoneToWPA2PSK_retrievesSavedPassword()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastReceiver.java | 278 getDefaultSharedPreferences().edit().putInt(CARRIER_ID_FOR_DEFAULT_SUB_PREF, carrierId) in saveCarrierIdForDefaultSub() 290 sp.edit().putBoolean(TESTING_MODE, on).commit(); in setTestingMode() 309 sp.edit().putInt(SERVICE_STATE, ss).commit(); in setServiceState() 335 Editor editor = sp.edit(); in adjustReminderInterval() 381 sp.edit().putBoolean(CellBroadcastSettings.KEY_OVERRIDE_DND_SETTINGS_CHANGED, in initializeSharedPreference() 391 sp.edit().putBoolean(CellBroadcastSettings.KEY_ENABLE_ALERTS_MASTER_TOGGLE, in initializeSharedPreference() 431 .getDefaultSharedPreferences(mContext).edit(); in migrateSharedPreferenceFromLegacy() 514 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory() 520 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory() 526 sharedPrefs.edit().putBoolean( in tryCdmaSetCategory() [all …]
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/ |
D | ViewInfoActivityTest.java | 38 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/ |
D | CallDetailsFooterViewHolder.java | 40 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/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapUtils.java | 166 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/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/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | ToggleAutoclickCustomSeekbarControllerTest.java | 109 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in displayPreference_initSeekBar() 124 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in displayPreference_initDelayLabel() 135 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in onSharedPreferenceChanged_delayMode_updateCustomDelayValue() 153 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in onSeekBarProgressChanged_updateCustomDelayValue() 173 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in onShorterClicked_updateCustomDelayValue() 191 mSharedPreferences.edit().putInt(KEY_CUSTOM_DELAY_VALUE, 700).apply(); in onLongerClicked_updateCustomDelayValue()
|
/packages/services/Telecomm/testapps/callaudiotest/src/com/android/server/telecom/callaudiotest/ |
D | CallAudioTestActivity.java | 49 SharedPreferences.Editor edit = prefs.edit(); in onCreate() 50 edit.putBoolean(AUTO_ANSWER_ENABLED, isChecked); in onCreate() 51 edit.apply(); in onCreate()
|
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/ |
D | SettingsManager.java | 59 SharedPreferences.Editor editor = sharedPref.edit(); in generateAndSetId() 89 SharedPreferences.Editor editor = sharedPref.edit(); in setDeviceConfig() 149 SharedPreferences.Editor editor = sharedPref.edit(); in incrementFailureCounter() 172 SharedPreferences.Editor editor = sharedPref.edit(); in clearFailureCounter() 184 SharedPreferences.Editor editor = sharedPref.edit(); in clearPreferences()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | QuickResponseUtils.java | 109 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/ |
D | ValidatedEditTextPreferenceTest.java | 66 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/ |
D | EmergencyContactsPreferenceTest.java | 42 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/TV/tuner/src/com/android/tv/tuner/prefs/ |
D | TunerPreferences.java | 54 .edit() in setChannelDataVersion() 68 .edit() in setScannedChannelCount() 82 .edit() in setScanDone() 96 .edit() in setTrickplayExpiredMs()
|