/frameworks/base/core/java/android/content/ |
SharedPreferences.java | 28 * Modifications to the preferences must go through an {@link Editor} object 65 * object. All changes you make in an editor are batched, and not copied 69 public interface Editor { 71 * Set a String value in the preferences editor, to be written back once 79 * @return Returns a reference to the same Editor object, so you can 82 Editor putString(String key, @Nullable String value); 85 * Set a set of String values in the preferences editor, to be written 92 * @return Returns a reference to the same Editor object, so you can 95 Editor putStringSet(String key, @Nullable Set<String> values); 98 * Set an int value in the preferences editor, to be written back onc [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgeSharedPreferences.java | 29 private Editor mEditor; 72 public Editor edit() { 76 mEditor = new Editor() { 78 public Editor putString(String key, String value) { 83 public Editor putStringSet(String key, Set<String> values) { 88 public Editor putInt(String key, int value) { 93 public Editor putLong(String key, long value) { 98 public Editor putFloat(String key, float value) { 103 public Editor putBoolean(String key, boolean value) { 108 public Editor remove(String key) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/ |
Control.java | 22 import com.android.gallery3d.filtershow.editors.Editor; 25 public void setUp(ViewGroup container, Parameter parameter, Editor editor);
|
Parameter.java | 19 import com.android.gallery3d.filtershow.editors.Editor; 30 public void setFilterView(FilterView editor);
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
VisualVoicemailPreferences.java | 46 public class Editor { 48 private final SharedPreferences.Editor mEditor; 50 private Editor() { 58 public Editor putBoolean(String key, boolean value) { 64 public Editor putFloat(String key, float value) { 69 public Editor putInt(String key, int value) { 75 public Editor putLong(String key, long value) { 80 public Editor putString(String key, String value) { 86 public Editor putStringSet(String key, Set<String> value) { 92 public Editor edit() [all...] |
VisualVoicemailSmsFilterConfig.java | 50 new Editor(context, callingPackage, subId) 60 new Editor(context, callingPackage, subId) 111 private static class Editor { 113 private final SharedPreferences.Editor mPrefsEditor; 116 public Editor(Context context, String packageName, int subId) { 121 private Editor setInt(String key, int value) { 126 private Editor setString(String key, String value) { 131 private Editor setBoolean(String key, boolean value) { 136 private Editor setStringList(String key, List<String> value) {
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
MockSharedPreferences.java | 31 public class MockSharedPreferences implements SharedPreferences, SharedPreferences.Editor { 36 public Editor edit() { 100 public Editor putBoolean(String key, boolean value) { 105 public Editor putFloat(String key, float value) { 110 public Editor putInt(String key, int value) { 115 public Editor putLong(String key, long value) { 120 public Editor putString(String key, String value) { 125 public Editor putStringSet(String key, Set<String> values) { 130 public Editor remove(String key) { 135 public Editor clear() [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
VoicemailStatus.java | 32 public static class Editor { 39 private Editor(Context context, PhoneAccountHandle phoneAccountHandle) { 45 "VoicemailStatus.Editor created with null phone account, status will" 55 public Editor setType(String type) { 60 public Editor setConfigurationState(int configurationState) { 65 public Editor setDataChannelState(int dataChannelState) { 70 public Editor setNotificationChannelState(int notificationChannelState) { 75 public Editor setQuota(int occupied, int total) { 87 * Apply the changes to the {@link VoicemailStatus} {@link #Editor}. 118 * A voicemail status editor that the decision of whether to actually write to the database can b [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
MockSharedPreferences.java | 31 public class MockSharedPreferences implements SharedPreferences, SharedPreferences.Editor { 36 public Editor edit() { 100 public Editor putBoolean(String key, boolean value) { 105 public Editor putFloat(String key, float value) { 110 public Editor putInt(String key, int value) { 115 public Editor putLong(String key, long value) { 120 public Editor putString(String key, String value) { 125 public Editor putStringSet(String key, Set<String> values) { 130 public Editor remove(String key) { 135 public Editor clear() [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
EditorPlaceHolder.java | 8 import com.android.gallery3d.filtershow.editors.Editor; 19 private HashMap<Integer, Editor> mEditors = new HashMap<Integer, Editor>(); 30 public void addEditor(Editor c) { 41 public Editor showEditor(int type) { 42 Editor editor = mEditors.get(type); local 43 if (editor == null) { 47 editor.createEditor(mActivity, mContainer); 48 editor.getImageShow().attach() [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/ |
PrefsBackupHelper.java | 20 import android.content.SharedPreferences.Editor; 46 Editor editor = prefs.edit(); local 47 editor.clear(); 49 copyMatchingPreferences(mDefaultPreferences, editor); 50 editor.apply(); 57 Editor editor = mDefaultPreferences.edit(); local 59 copyMatchingPreferences(prefs, editor); 60 editor.apply() [all...] |
/cts/tests/sample/src/android/sample/ |
SampleDeviceActivity.java | 22 import android.content.SharedPreferences.Editor; 48 // Get an editor to modify the preferences. 49 Editor editor = mPreferences.edit(); local 51 editor.putString(key, value); 53 editor.commit(); 70 // Get an editor to modify the preferences. 71 Editor editor = mPreferences.edit(); local 73 editor.clear() [all...] |
/frameworks/ex/common/java/com/android/common/ |
SharedPreferencesCompat.java | 25 * Reflection utils to call SharedPreferences$Editor.apply when possible, 32 Class cls = SharedPreferences.Editor.class; 39 public static void apply(SharedPreferences.Editor editor) { 42 sApplyMethod.invoke(editor); 50 editor.commit();
|
/frameworks/support/compat/java/android/support/v4/content/ |
SharedPreferencesCompat.java | 32 public void apply(@NonNull SharedPreferences.Editor editor) { 34 editor.apply(); 37 // SharedPreferences.Editor implementation without 39 editor.commit(); 57 public void apply(@NonNull SharedPreferences.Editor editor) { 61 mHelper.apply(editor);
|
/packages/apps/Music/src/com/android/music/ |
SharedPreferencesCompat.java | 25 * Reflection utils to call SharedPreferences$Editor.apply when possible, 33 Class cls = SharedPreferences.Editor.class; 41 public static void apply(SharedPreferences.Editor editor) { 44 sApplyMethod.invoke(editor); 52 editor.commit();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
CommonPreferences.java | 30 final SharedPreferences.Editor editor = pref.edit(); local 31 editor.putBoolean(id, true); 32 editor.apply(); 36 final SharedPreferences.Editor editor = pref.edit(); local 37 editor.putBoolean(id, false); 38 editor.apply();
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
FakeSharedPreferences.java | 20 import android.content.SharedPreferences.Editor; 27 class FakeSharedPreferences implements SharedPreferences, SharedPreferences.Editor { 33 public Editor edit() { 108 public Editor putBoolean(String key, boolean value) { 114 public Editor putFloat(String key, float value) { 120 public Editor putInt(String key, int value) { 126 public Editor putLong(String key, long value) { 132 public Editor putString(String key, String value) { 138 public Editor putStringSet(String key, Set<String> values) { 144 public Editor remove(String key) [all...] |
/packages/apps/Dialer/java/com/android/dialer/common/ |
PerAccountSharedPreferences.java | 52 public class Editor { 54 private final SharedPreferences.Editor editor; field in class:PerAccountSharedPreferences.Editor 56 private Editor() { 57 editor = preferences.edit(); 61 editor.apply(); 64 public Editor putBoolean(String key, boolean value) { 65 editor.putBoolean(getKey(key), value); 69 public Editor putFloat(String key, float value) { 70 editor.putFloat(getKey(key), value) [all...] |
/external/v8/src/compiler/ |
checkpoint-elimination.h | 20 explicit CheckpointElimination(Editor* editor);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/content/ |
TestSharedPreferences.java | 74 public Editor edit() { 96 private class TestSharedPreferencesEditor implements Editor { 103 public Editor putString(String key, String value) { 110 public Editor putInt(String key, int value) { 117 public Editor putLong(String key, long value) { 124 public Editor putFloat(String key, float value) { 131 public Editor putBoolean(String key, boolean value) { 138 public Editor remove(String key) { 144 public Editor clear() { 176 public Editor putStringSet(String key, Set<String> values) [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
MockSharedPreferences.java | 31 public class MockSharedPreferences implements SharedPreferences, SharedPreferences.Editor { 37 public Editor edit() { 102 public Editor putBoolean(String key, boolean value) { 107 public Editor putFloat(String key, float value) { 112 public Editor putInt(String key, int value) { 117 public Editor putLong(String key, long value) { 122 public Editor putString(String key, String value) { 127 public Editor putStringSet(String key, Set<String> values) { 132 public Editor remove(String key) { 137 public Editor clear() [all...] |
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
PresencePreferences.java | 33 import android.content.SharedPreferences.Editor; 74 Editor editor = mCommonPref.edit(); local 76 editor.putLong(CAPABILITY_DISCOVERY_TIME, time); 77 editor.commit(); 94 Editor editor = mCommonPref.edit(); local 95 editor.putString(PHONE_SUBSCRIBER_ID, id); 96 editor.commit(); 113 Editor editor = mCommonPref.edit() local 132 Editor editor = mCommonPref.edit(); local [all...] |
SharedPrefUtil.java | 48 SharedPreferences.Editor eabPref = context.getSharedPreferences( 62 SharedPreferences.Editor eabPref = context.getSharedPreferences( 76 SharedPreferences.Editor eabPref = context.getSharedPreferences( 90 SharedPreferences.Editor eabPref = context.getSharedPreferences( 98 SharedPreferences.Editor eabPref = context.getSharedPreferences( 110 SharedPreferences.Editor eabPref = context.getSharedPreferences(
|
/cts/tests/tests/content/src/android/content/cts/ |
SharedPreferencesTest.java | 98 SharedPreferences.Editor editor = prefs.edit().putString("test-key", null); local 100 editor.commit(); 107 // Do some initial operation on editor. No commit needed. 108 public abstract void setUp(SharedPreferences.Editor editor); 110 // Do some later operation on editor (e.g. a redundant edit). 112 public abstract void subsequentEdit(SharedPreferences.Editor editor); 122 SharedPreferences.Editor editor local 251 SharedPreferences.Editor editor = prefs.edit(); local 288 SharedPreferences.Editor editor = prefs.edit(); local [all...] |
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/ |
Editors.java | 17 package com.android.notificationstudio.editor; 34 public interface Editor { 38 private static final Map<Integer, Editor> EDITORS = editors(); 41 private static Map<Integer, Editor> editors() { 42 Map<Integer, Editor> editors = new HashMap<Integer, Editor>(); 69 Editor editor = EDITORS.get(item.getType()); local 70 if (editor == null) 72 Runnable updater = editor.bindEditor(editorView, item, new Runnable() [all...] |