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

1 2 3 4 5 6 7 8 91011>>

  /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();
  /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);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/
ManifestEditorContributor.java 31 * editor. Multi-page contributor replaces the contributors for the individual
32 * editors in the multi-page editor.
52 * Returns the action registed with the given text editor.
54 * @return IAction or null if editor is null.
56 protected IAction getAction(ITextEditor editor, String actionID) {
57 return (editor == null ? null : editor.getAction(actionID));
75 ITextEditor editor = local
79 getAction(editor, ITextEditorActionConstants.DELETE));
81 getAction(editor, ITextEditorActionConstants.UNDO))
    [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...]
  /external/python/cpython2/Lib/idlelib/idle_test/
test_rstrip.py 3 from idlelib.idle_test.mock_idle import Editor
8 editor = Editor()
9 text = editor.text
10 do_rstrip = rs.RstripExtension(editor).do_rstrip
22 editor = Editor()
24 ## from idlelib.EditorWindow import EditorWindow as Editor
26 ## editor = Editor(root=Tk()
    [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...]
  /packages/apps/DeskClock/src/com/android/deskclock/data/
TimerDAO.java 106 final SharedPreferences.Editor editor = prefs.edit(); local
110 editor.putInt(NEXT_TIMER_ID, id + 1);
115 editor.putStringSet(TIMER_IDS, timerIds);
118 editor.putInt(STATE + id, timer.getState().getValue());
119 editor.putLong(LENGTH + id, timer.getLength());
120 editor.putLong(TOTAL_LENGTH + id, timer.getTotalLength());
121 editor.putLong(LAST_START_TIME + id, timer.getLastStartTime());
122 editor.putLong(LAST_WALL_CLOCK_TIME + id, timer.getLastWallClockTime());
123 editor.putLong(REMAINING_TIME + id, timer.getRemainingTime())
139 final SharedPreferences.Editor editor = prefs.edit(); local
159 final SharedPreferences.Editor editor = prefs.edit(); local
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
SetPreferencesActivity.java 63 SharedPreferences.Editor editor = prefs.edit(); local
64 editor.remove(PreferenceConstants.PREFERENCE_LEVEL_ROW);
65 editor.remove(PreferenceConstants.PREFERENCE_LEVEL_INDEX);
66 editor.remove(PreferenceConstants.PREFERENCE_LEVEL_COMPLETED);
67 editor.remove(PreferenceConstants.PREFERENCE_LINEAR_MODE);
68 editor.remove(PreferenceConstants.PREFERENCE_TOTAL_GAME_TIME);
69 editor.remove(PreferenceConstants.PREFERENCE_PEARLS_COLLECTED);
70 editor.remove(PreferenceConstants.PREFERENCE_PEARLS_TOTAL);
71 editor.remove(PreferenceConstants.PREFERENCE_ROBOTS_DESTROYED)
    [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...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/
SharedPreferenceLoggerTest.java 80 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local
81 editor.putInt(TEST_KEY, 1);
82 editor.putInt(TEST_KEY, 1);
83 editor.putInt(TEST_KEY, 1);
84 editor.putInt(TEST_KEY, 2);
85 editor.putInt(TEST_KEY, 2);
86 editor.putInt(TEST_KEY, 2);
87 editor.putInt(TEST_KEY, 2);
96 final SharedPreferences.Editor editor = mSharedPrefLogger.edit() local
114 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local
128 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local
141 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local
154 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); local
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
UnwrapWizard.java 22 public UnwrapWizard(UnwrapRefactoring ref, LayoutEditorDelegate editor) {
23 super(ref, editor);
UseCompoundDrawableWizard.java 22 UseCompoundDrawableWizard(UseCompoundDrawableRefactoring ref, LayoutEditorDelegate editor) {
23 super(ref, editor);
  /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...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/pages/
OverviewInfoPart.java 38 public OverviewInfoPart(Composite body, FormToolkit toolkit, ManifestEditor editor) {
39 super(body, toolkit, editor,
40 getManifestUiNode(editor), // uiElementNode
50 private static UiElementNode getManifestUiNode(ManifestEditor editor) {
51 AndroidManifestDescriptors manifestDescriptors = editor.getManifestDescriptors();
54 if (editor.getUiRootNode().getDescriptor() == desc) {
55 return editor.getUiRootNode();
57 return editor.getUiRootNode().findUiChildNode(desc.getXmlName());
62 // The editor will be reloaded once we have the proper descriptors anyway.
63 return editor.getUiRootNode()
    [all...]
  /cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
BroadcastIntentReceiver.java 34 SharedPreferences.Editor editor = prefs.edit(); local
35 editor.putBoolean(OWNER_CHANGED_BROADCAST_RECEIVED_KEY, true);
36 editor.apply();
  /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();
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/otherxml/
PlainXmlEditorDelegate.java 25 * Plain XML editor with no form for files that have no associated descriptor data
30 * Creates the form editor for plain XML files.
32 public PlainXmlEditorDelegate(CommonXmlEditor editor) {
33 super(editor, new OtherXmlContentAssist());
34 editor.addDefaultTargetListener();
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/android/content/
TestSharedPreferencesTest.java 24 private SharedPreferences.Editor editor; field in class:TestSharedPreferencesTest
32 editor = sharedPreferences.edit();
33 editor.putBoolean("boolean", true);
34 editor.putFloat("float", 1.1f);
35 editor.putInt("int", 2);
36 editor.putLong("long", 3l);
37 editor.putString("string", "foobar");
42 editor.commit();
54 editor.commit()
    [all...]
  /sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/
LinesEditor.java 17 package com.android.notificationstudio.editor;
  /packages/apps/Messaging/src/com/android/messaging/util/
BuglePrefsImpl.java 85 final SharedPreferences.Editor editor = prefs.edit(); local
86 editor.putInt(key, value);
87 editor.apply();
95 final SharedPreferences.Editor editor = prefs.edit(); local
96 editor.putLong(key, value);
97 editor.apply();
105 final SharedPreferences.Editor editor = prefs.edit() local
115 final SharedPreferences.Editor editor = prefs.edit(); local
131 final SharedPreferences.Editor editor = prefs.edit(); local
    [all...]
  /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/prefs/
PrefsBackupHelperTest.java 25 import android.content.SharedPreferences.Editor;
132 SharedPreferences.Editor editor = mDefaultPrefs.edit(); local
135 editor.putInt(LOCAL_PREFERENCE_1, 1);
136 editor.putInt(LOCAL_PREFERENCE_2, 2);
137 editor.putBoolean(SCOPED_PREFERENCE, true);
138 editor.putBoolean(NON_BACKUP_PREFERENCE, true);
139 editor.commit();
147 editor.clear().commit();
179 Editor editor = mDefaultPrefs.edit().clear() local
    [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...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
PersistentState.java 46 * top text editor, but not of the bottom text editor. You can see the difference
120 SharedPreferences.Editor editor = getPreferences(0).edit(); local
121 editor.putString("text", mSaved.getText().toString());
122 editor.putInt("selection-start", mSaved.getSelectionStart());
123 editor.putInt("selection-end", mSaved.getSelectionEnd());
124 editor.commit();
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
VoicemailNotificationSettingsUtil.java 49 SharedPreferences.Editor editor = prefs.edit(); local
50 editor.putBoolean(getVoicemailVibrationSharedPrefsKey(), isEnabled);
51 editor.commit();
70 SharedPreferences.Editor editor = prefs.edit(); local
71 editor.putString(getVoicemailRingtoneSharedPrefsKey(), ringtoneUriStr);
72 editor.commit();
110 SharedPreferences.Editor editor = prefs.edit() local
123 SharedPreferences.Editor editor = prefs.edit(); local
149 SharedPreferences.Editor editor = prefs.edit(); local
    [all...]

Completed in 784 milliseconds

1 2 3 4 5 6 7 8 91011>>