/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);
|
/external/v8/src/compiler/ |
checkpoint-elimination.h | 17 explicit CheckpointElimination(Editor* editor);
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/ |
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...] |
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/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/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/services/Telephony/src/com/android/phone/ |
VoicemailStatus.java | 33 public static class Editor { 41 private Editor(Context context, PhoneAccountHandle phoneAccountHandle) { 45 VvmLog.w(TAG, "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}. 117 * A voicemail status editor that the decision of whether to actually write to the database ca [all...] |
VisualVoicemailSmsFilterConfig.java | 46 new Editor(context, callingPackage, subId) 56 new Editor(context, callingPackage, subId) 91 private static class Editor { 93 private final SharedPreferences.Editor mPrefsEditor; 96 public Editor(Context context, String packageName, int subId) { 101 private Editor setInt(String key, int value) { 106 private Editor setString(String key, String value) { 111 private Editor setBoolean(String key, boolean value) { 116 private Editor setStringList(String key, List<String> value) {
|
/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...] |
/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 | 33 public void apply(@NonNull SharedPreferences.Editor editor) { 35 editor.apply(); 38 // SharedPreferences.Editor implementation without 40 editor.commit(); 58 public void apply(@NonNull SharedPreferences.Editor editor) { 62 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...] |
/external/v8/test/unittests/compiler/ |
graph-reducer-unittest.h | 15 struct MockAdvancedReducerEditor : public AdvancedReducer::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...] |
/packages/apps/Settings/src/com/android/settings/ |
SharedPreferencesLogger.java | 83 public Editor edit() { 136 public class EditorLogger implements Editor { 138 public Editor putString(String key, @Nullable String value) { 144 public Editor putStringSet(String key, @Nullable Set<String> values) { 150 public Editor putInt(String key, int value) { 156 public Editor putLong(String key, long value) { 162 public Editor putFloat(String key, float value) { 168 public Editor putBoolean(String key, boolean value) { 174 public Editor remove(String key) { 179 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...] |
/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...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarBackupAgent.java | 23 import android.content.SharedPreferences.Editor; 42 final Editor editor = getSharedPreferences( local 44 editor.putString(GeneralPreferences.KEY_ALERTS_RINGTONE,
|