HomeSort by relevance Sort by last modified time
    Searched refs:Editor (Results 1 - 25 of 305) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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
77 * @return Returns a reference to the same Editor object, so you can
80 Editor putString(String key, @Nullable String value);
83 * Set a set of String values in the preferences editor, to be written
90 * @return Returns a reference to the same Editor object, so you can
93 Editor putStringSet(String key, @Nullable Set<String> values);
96 * 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);
  /frameworks/support/v4/java/android/support/v4/content/
SharedPreferencesCompat.java 30 void apply(@NonNull SharedPreferences.Editor editor);
36 public void apply(@NonNull SharedPreferences.Editor editor) {
37 editor.commit();
44 public void apply(@NonNull SharedPreferences.Editor editor) {
45 EditorCompatGingerbread.apply(editor);
66 public void apply(@NonNull SharedPreferences.Editor editor) {
    [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/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();
  /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/src/compiler/
load-elimination.h 16 explicit LoadElimination(Editor* editor) : AdvancedReducer(editor) {}
graph-reducer.h 67 class Editor {
69 virtual ~Editor() {}
83 explicit AdvancedReducer(Editor* editor) : editor_(editor) {}
118 Editor* const editor_;
123 class GraphReducer : public AdvancedReducer::Editor {
  /external/v8/test/unittests/compiler/
graph-reducer-unittest.h 15 struct MockAdvancedReducerEditor : public AdvancedReducer::Editor {
  /frameworks/support/v4/gingerbread/android/support/v4/content/
EditorCompatGingerbread.java 23 public static void apply(@NonNull SharedPreferences.Editor editor) {
25 editor.apply();
28 // SharedPreferences.Editor implementation without
30 editor.commit();
  /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...]
  /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,
  /packages/apps/Contacts/src/com/android/contacts/editor/
Editor.java 17 package com.android.contacts.editor;
29 public interface Editor {
33 * Called when the given {@link Editor} is requested to be deleted by the user.
35 public void onDeleteRequested(Editor editor);
38 * Called when the given {@link Editor} has a request, for example it
49 // The editor has switched between different representations of the same
53 // Focus has changed inside the editor.
58 * Returns whether or not all the fields are empty in this {@link Editor}.
63 * Prepares this editor for the given {@link ValuesDelta}, whic
    [all...]
  /packages/apps/LegacyCamera/src/com/android/camera/
ComboPreferences.java 135 private class MyEditor implements Editor {
136 private Editor mEditorGlobal;
137 private Editor mEditorLocal;
156 public Editor clear() {
162 public Editor remove(String key) {
168 public Editor putString(String key, String value) {
177 public Editor putInt(String key, int value) {
186 public Editor putLong(String key, long value) {
195 public Editor putFloat(String key, float value) {
204 public Editor putBoolean(String key, boolean value)
    [all...]

Completed in 2090 milliseconds

1 2 3 4 5 6 7 8 91011>>