Home
last modified time | relevance | path

Searched refs:Editor (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/base/core/java/android/content/
DSharedPreferences.java80 public interface Editor { interface
93 Editor putString(String key, @Nullable String value); in putString()
106 Editor putStringSet(String key, @Nullable Set<String> values); in putStringSet()
118 Editor putInt(String key, int value); in putInt()
130 Editor putLong(String key, long value); in putLong()
142 Editor putFloat(String key, float value); in putFloat()
154 Editor putBoolean(String key, boolean value); in putBoolean()
170 Editor remove(String key); in remove()
184 Editor clear(); in clear()
368 Editor edit(); in edit()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeSharedPreferences.java29 private Editor mEditor;
72 public Editor edit() { in edit()
76 mEditor = new Editor() { in edit()
78 public Editor putString(String key, String value) { in edit()
83 public Editor putStringSet(String key, Set<String> values) { in edit()
88 public Editor putInt(String key, int value) { in edit()
93 public Editor putLong(String key, long value) { in edit()
98 public Editor putFloat(String key, float value) { in edit()
103 public Editor putBoolean(String key, boolean value) { in edit()
108 public Editor remove(String key) { in edit()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/
DFakeSharedPreferences.kt67 override fun edit(): SharedPreferences.Editor { in <lambda>()
68 return Editor() in <lambda>()
83 private inner class Editor : SharedPreferences.Editor { in <lambda>() class in com.android.systemui.util.FakeSharedPreferences
89 override fun putString(key: String, value: String?): SharedPreferences.Editor { in <lambda>()
101 ): SharedPreferences.Editor { in <lambda>()
110 override fun putInt(key: String, value: Int): SharedPreferences.Editor { in <lambda>()
115 override fun putLong(key: String, value: Long): SharedPreferences.Editor { in <lambda>()
120 override fun putFloat(key: String, value: Float): SharedPreferences.Editor { in <lambda>()
125 override fun putBoolean(key: String, value: Boolean): SharedPreferences.Editor { in <lambda>()
130 override fun remove(key: String): SharedPreferences.Editor { in <lambda>()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DSharedPreferencesLogger.java91 public Editor edit() { in edit()
205 public class EditorLogger implements Editor {
207 public Editor putString(String key, @Nullable String value) { in putString()
213 public Editor putStringSet(String key, @Nullable Set<String> values) { in putStringSet()
219 public Editor putInt(String key, int value) { in putInt()
225 public Editor putLong(String key, long value) { in putLong()
231 public Editor putFloat(String key, float value) { in putFloat()
237 public Editor putBoolean(String key, boolean value) { in putBoolean()
243 public Editor remove(String key) { in remove()
248 public Editor clear() { in clear()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DFakeSharedPreferencesTest.kt100 SharedPreferences.Editor::putString, in <lambda>()
106 SharedPreferences.Editor::putStringSet, in <lambda>()
109 Data("keyInt", 10, SharedPreferences.Editor::putInt, { getInt(it, 0) }), in <lambda>()
110 Data("keyLong", 11L, SharedPreferences.Editor::putLong, { getLong(it, 0L) }), in <lambda>()
114 SharedPreferences.Editor::putFloat, in <lambda>()
120 SharedPreferences.Editor::putBoolean, in <lambda>()
248 private val setter: SharedPreferences.Editor.(String, T) -> SharedPreferences.Editor, in <lambda>()
251 fun set(editor: SharedPreferences.Editor): SharedPreferences.Editor { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleBackupHelper.java134 SharedPreferences.Editor backupEditor = backupSp.edit(); in performBackup()
167 SharedPreferences.Editor editor = sp.edit(); in restoreEntity()
170 SharedPreferences.Editor followUpEditor = followUp.edit(); in restoreEntity()
195 public void backupKey(Map.Entry<String, ?> entry, SharedPreferences.Editor backupEditor, in backupKey()
225 boolean restoreKey(Map.Entry<String, ?> entry, SharedPreferences.Editor editor, in restoreKey()
226 SharedPreferences.Editor followUpEditor, SharedPreferences backupSp) { in restoreKey()
251 private void backupWidgetIdKey(String key, String uriString, SharedPreferences.Editor editor, in backupWidgetIdKey()
269 private void restoreWidgetIdKey(String key, String uriString, SharedPreferences.Editor editor, in restoreWidgetIdKey()
286 SharedPreferences.Editor editor, List<String> existingWidgets) { in backupPeopleTileKey()
316 Set<String> widgetIds, SharedPreferences.Editor editor, in restorePeopleTileKeyAndCorrespondingWidgetFile()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DVoicemailNotificationSettingsUtil.java49 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled()
70 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri()
110 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded()
123 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded()
149 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailRingtoneSettingsIfNeeded()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
DSharedPreferenceLoggerTest.java59 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putInt_shouldNotLogInitialPut()
77 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putBoolean_shouldNotLogInitialPut()
99 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_shouldNotLogInitialPut()
115 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_biggerThanIntMax_shouldLogIntMax()
129 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_smallerThanIntMin_shouldLogIntMin()
142 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putFloat_shouldNotLogInitialPut()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DDragHandleUtils.java30 import android.widget.Editor;
46 onView(isAssignableFrom(Editor.SelectionHandleView.class)) in assertNoSelectionHandles()
59 isAssignableFrom(Editor.HandleView.class))) in onHandleView()
DTextViewActions.java25 import android.widget.Editor;
26 import android.widget.Editor.HandleView;
222 Editor.HandleView.class)); in longPressAndDragHandle()
262 Editor.HandleView.class)); in doubleTapAndDragHandle()
437 Editor.HandleView.class)); in dragHandle()
/frameworks/ex/common/java/com/android/common/
DSharedPreferencesCompat.java32 Class cls = SharedPreferences.Editor.class;
39 public static void apply(SharedPreferences.Editor editor) { in apply()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java359 public Editor edit() { in edit()
405 public final class EditorImpl implements Editor {
415 public Editor putString(String key, @Nullable String value) { in putString()
422 public Editor putStringSet(String key, @Nullable Set<String> values) { in putStringSet()
430 public Editor putInt(String key, int value) { in putInt()
437 public Editor putLong(String key, long value) { in putLong()
444 public Editor putFloat(String key, float value) { in putFloat()
451 public Editor putBoolean(String key, boolean value) { in putBoolean()
459 public Editor remove(String key) { in remove()
467 public Editor clear() { in clear()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DSharedPreferencesHelper.java32 SharedPreferences.Editor editor = sp.edit(); in clear()
45 SharedPreferences.Editor editor = sp.edit(); in setPeopleTileKey()
DPeopleBackupFollowUpJob.java111 SharedPreferences.Editor editor = sp.edit(); in onStartJob()
114 SharedPreferences.Editor followUpEditor = followUp.edit(); in onStartJob()
141 SharedPreferences.Editor followUpEditor) { in processFollowUpFile()
187 SharedPreferences.Editor followUpEditor, SharedPreferences sp) { in cancelJobAndClearRemainingWidgets()
DPeopleSpaceUtils.java113 SharedPreferences.Editor editor = sp.edit(); in setSharedPreferencesStorageForTile()
132 SharedPreferences.Editor editor = sp.edit(); in removeSharedPreferencesStorageForTile()
141 SharedPreferences.Editor widgetEditor = widgetSp.edit(); in removeSharedPreferencesStorageForTile()
148 private static void addAppWidgetIdForKey(SharedPreferences sp, SharedPreferences.Editor editor, in addAppWidgetIdForKey()
157 SharedPreferences.Editor editor, in removeAppWidgetIdForKey()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DApprovedPrintServices.java103 SharedPreferences.Editor editor = mPreferences.edit(); in addApprovedService()
153 SharedPreferences.Editor editor = mPreferences.edit(); in pruneApprovedServices()
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java50 import android.widget.Editor.SelectionModifierCursorController;
76 private final Editor mEditor;
89 SelectionActionModeHelper(@NonNull Editor editor) { in SelectionActionModeHelper()
277 startActionMode(Editor.TextActionMode.TEXT_LINK, result); in startLinkActionMode()
281 startActionMode(Editor.TextActionMode.SELECTION, result); in startSelectionActionMode()
285 @Editor.TextActionMode int actionMode, @Nullable SelectionResult result) { in startActionMode()
295 } else if (result != null && actionMode == Editor.TextActionMode.TEXT_LINK) { in startActionMode()
308 case Editor.TextActionMode.SELECTION: in startActionMode()
311 case Editor.TextActionMode.TEXT_LINK: in startActionMode()
635 public boolean resetSelection(int textIndex, Editor editor) { in resetSelection()
DOWNERS11 per-file TextView*, EditText.java, Editor.java = siyamed@google.com, nona@google.com, clarabayarri@…
/frameworks/base/core/java/android/preference/
DPreference.java1256 public SharedPreferences.Editor getEditor() { in getEditor()
1618 private void tryCommit(SharedPreferences.Editor editor) { in tryCommit()
1655 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistString()
1708 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistStringSet()
1761 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistInt()
1815 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistFloat()
1869 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistLong()
1923 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistBoolean()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DCryptoSettings.java23 import android.content.SharedPreferences.Editor;
216 Editor sharedPrefsEditor = mSharedPreferences.edit(); in clearAllSettingsForBackup()
/frameworks/base/packages/WAPPushManager/
Dproguard.flags6 -keep class android.content.SharedPreferences$Editor {
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorCursorDragTest.java206 Editor editor = tv.getEditorForTesting(); in testCursorDrag_diagonal_thresholdConfig()
292 Editor editor = tv.getEditorForTesting(); in testEditor_onTouchEvent_quickTapAfterDrag()
347 Editor editor = tv.getEditorForTesting(); in testEditor_onTouchEvent_mouseDrag()
376 Editor editor = tv.getEditorForTesting(); in testEditor_onTouchEvent_cursorDrag()
411 Editor editor = tv.getEditorForTesting(); in testEditor_onTouchEvent_selectionDrag()
451 Editor editor = tv.getEditorForTesting(); in testCursorDrag_nonSelectableTextView()
537 Editor editor = tv.getEditorForTesting(); in testLineChangeSlop()
565 Editor editor = tv.getEditorForTesting(); in testCursorDrag_multiTouch()
608 Editor editor = tv.getEditorForTesting(); in testCursorDrag_snapDistance()
785 Editor editor = tv.getEditorForTesting(); in simulateDrag()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DConnectionRecordManager.java74 final SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in setConnectionRecord()
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DTestAppWidgetConfigure.java46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupPreferences.java35 private final SharedPreferences.Editor mEditor;

123