Home
last modified time | relevance | path

Searched refs:editor (Results 1 – 25 of 422) sorted by relevance

12345678910>>...17

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSharedPreferencesTest.java25 private SharedPreferences.Editor editor; field in ShadowSharedPreferencesTest
40 editor = sharedPreferences.edit(); in setUp()
41 editor.putBoolean("boolean", true); in setUp()
42 editor.putFloat("float", 1.1f); in setUp()
43 editor.putInt("int", 2); in setUp()
44 editor.putLong("long", 3L); in setUp()
45 editor.putString("string", "foobar"); in setUp()
50 editor.putStringSet("stringSet", stringSet); in setUp()
55 editor.commit(); in commit_shouldStoreValues()
68 editor.commit(); in commit_shouldClearEditsThatNeedRemoveAndEditsThatNeedCommit()
[all …]
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPresencePreferences.java74 Editor editor = mCommonPref.edit(); in updateCapabilityDiscoveryTime() local
76 editor.putLong(CAPABILITY_DISCOVERY_TIME, time); in updateCapabilityDiscoveryTime()
77 editor.commit(); in updateCapabilityDiscoveryTime()
94 Editor editor = mCommonPref.edit(); in setSubscriberId() local
95 editor.putString(PHONE_SUBSCRIBER_ID, id); in setSubscriberId()
96 editor.commit(); in setSubscriberId()
113 Editor editor = mCommonPref.edit(); in setLine1Number() local
114 editor.putString(PHONE_LINE1_NUMBER, number); in setLine1Number()
115 editor.commit(); in setLine1Number()
132 Editor editor = mCommonPref.edit(); in setRcsTestMode() local
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DSetPreferencesActivity.java63 SharedPreferences.Editor editor = prefs.edit(); in onDialogClosed() local
64 editor.remove(PreferenceConstants.PREFERENCE_LEVEL_ROW); in onDialogClosed()
65 editor.remove(PreferenceConstants.PREFERENCE_LEVEL_INDEX); in onDialogClosed()
66 editor.remove(PreferenceConstants.PREFERENCE_LEVEL_COMPLETED); in onDialogClosed()
67 editor.remove(PreferenceConstants.PREFERENCE_LINEAR_MODE); in onDialogClosed()
68 editor.remove(PreferenceConstants.PREFERENCE_TOTAL_GAME_TIME); in onDialogClosed()
69 editor.remove(PreferenceConstants.PREFERENCE_PEARLS_COLLECTED); in onDialogClosed()
70 editor.remove(PreferenceConstants.PREFERENCE_PEARLS_TOTAL); in onDialogClosed()
71 editor.remove(PreferenceConstants.PREFERENCE_ROBOTS_DESTROYED); in onDialogClosed()
72 editor.remove(PreferenceConstants.PREFERENCE_DIFFICULTY); in onDialogClosed()
[all …]
DMainMenuActivity.java221 SharedPreferences.Editor editor = prefs.edit(); in onResume() local
222 editor.putBoolean(PreferenceConstants.PREFERENCE_CLICK_ATTACK, false); in onResume()
223 editor.commit(); in onResume()
226 SharedPreferences.Editor editor = prefs.edit(); in onResume() local
231 editor.putBoolean(PreferenceConstants.PREFERENCE_SCREEN_CONTROLS, true); in onResume()
235 editor.putBoolean(PreferenceConstants.PREFERENCE_TILT_CONTROLS, true); in onResume()
238 editor.commit(); in onResume()
260 SharedPreferences.Editor editor = prefs.edit(); in onResume() local
261 editor.putBoolean(PreferenceConstants.PREFERENCE_SAFE_MODE, true); in onResume()
262 editor.commit(); in onResume()
[all …]
DKeyboardConfigDialogPreference.java194 SharedPreferences.Editor editor = mSharedPrefs.edit(); in onDialogClosed() local
195 editor.putInt(mLeftPrefKey, mLeftKeyCode); in onDialogClosed()
196 editor.putInt(mRightPrefKey, mRightKeyCode); in onDialogClosed()
197 editor.putInt(mJumpPrefKey, mJumpKeyCode); in onDialogClosed()
198 editor.putInt(mAttackPrefKey, mAttackKeyCode); in onDialogClosed()
199 editor.commit(); in onDialogClosed()
/external/libbackup/src/com/google/android/libraries/backup/
DPersistentBackupAgentHelper.java94 String srcFileName, Editor editor, BackupKeyPredicate backupKeyPredicate) { in writeToBackupFile() argument
105 putSharedPreference(editor, buildBackupKey(srcFileName, key), value); in writeToBackupFile()
119 public static void putSharedPreference(Editor editor, String key, Object value) { in putSharedPreference() argument
121 editor.putBoolean(key, (Boolean) value); in putSharedPreference()
123 editor.putFloat(key, (Float) value); in putSharedPreference()
125 editor.putInt(key, (Integer) value); in putSharedPreference()
127 editor.putLong(key, (Long) value); in putSharedPreference()
129 editor.putString(key, (String) value); in putSharedPreference()
140 editor.putStringSet(key, (Set<String>) value); in putSharedPreference()
181 Editor editor = editors.get(fileName); in writeFromBackupFileToPreferenceFiles() local
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DDiskLruCacheTest.java248 DiskLruCache.Editor editor = cache.edit("k1"); in cannotOperateOnEditAfterPublish() local
249 setString(editor, 0, "A"); in cannotOperateOnEditAfterPublish()
250 setString(editor, 1, "B"); in cannotOperateOnEditAfterPublish()
251 editor.commit(); in cannotOperateOnEditAfterPublish()
252 assertInoperable(editor); in cannotOperateOnEditAfterPublish()
256 DiskLruCache.Editor editor = cache.edit("k1"); in cannotOperateOnEditAfterRevert() local
257 setString(editor, 0, "A"); in cannotOperateOnEditAfterRevert()
258 setString(editor, 1, "B"); in cannotOperateOnEditAfterRevert()
259 editor.abort(); in cannotOperateOnEditAfterRevert()
260 assertInoperable(editor); in cannotOperateOnEditAfterRevert()
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_rstrip.py8 editor = Editor()
9 text = editor.text
10 do_rstrip = rs.RstripExtension(editor).do_rstrip
22 editor = Editor()
27 text = editor.text
28 do_rstrip = rs.RstripExtension(editor).do_rstrip
Dtest_autocomplete.py30 cls.editor = DummyEditwin(cls.root, cls.text)
34 del cls.editor, cls.text
39 self.editor.text.delete('1.0', 'end')
40 self.autocomplete = ac.AutoComplete(self.editor)
43 self.assertEqual(self.autocomplete.editwin, self.editor)
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java234 DiskLruCache.Editor editor = null; in put() local
236 editor = cache.edit(urlToKey(response.request())); in put()
237 if (editor == null) { in put()
240 entry.writeTo(editor); in put()
241 return new CacheRequestImpl(editor); in put()
243 abortQuietly(editor); in put()
255 DiskLruCache.Editor editor = null; in update() local
257 editor = snapshot.edit(); // Returns null if snapshot is not current. in update()
258 if (editor != null) { in update()
259 entry.writeTo(editor); in update()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCache.java236 DiskLruCache.Editor editor = null; in put() local
238 editor = cache.edit(urlToKey(response.request())); in put()
239 if (editor == null) { in put()
242 entry.writeTo(editor); in put()
243 return new CacheRequestImpl(editor); in put()
245 abortQuietly(editor); in put()
257 DiskLruCache.Editor editor = null; in update() local
259 editor = snapshot.edit(); // Returns null if snapshot is not current. in update()
260 if (editor != null) { in update()
261 entry.writeTo(editor); in update()
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_format.py8 from idlelib.editor import EditorWindow
276 editor = Editor(root=cls.root)
277 cls.text = editor.text.text # Test code does not need the wrapper.
278 cls.formatter = ft.FormatParagraph(editor).format_paragraph_event
403 cls.editor = DummyEditwin(cls.root, cls.text)
404 cls.formatter = ft.FormatRegion(cls.editor)
408 del cls.text, cls.formatter, cls.editor
581 editor = DummyEditwin(None, None) # usetabs == False.
582 indents = ft.Indents(editor)
586 self.assertEqual(editor.usetabs, True)
[all …]
Dtest_editor.py3 from idlelib import editor
10 Editor = editor.EditorWindow
41 editor.get_line_indent(line, tabwidth=tabwidth),
66 editor.get_line_indent(line, tabwidth=4),
91 editor.get_line_indent(line, tabwidth=8),
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DSmaliCodeFragmentFactoryTest.java44 import com.intellij.openapi.editor.Editor;
45 import com.intellij.openapi.editor.impl.EditorImpl;
233 Editor editor = createEditor(fragment.getVirtualFile()); in assertCompletionContains() local
234 editor.getCaretModel().moveToOffset(completionText.length()); in assertCompletionContains()
236 new CodeCompletionHandlerBase(CompletionType.BASIC).invokeCompletion(getProject(), editor); in assertCompletionContains() local
256 Editor editor = createEditor(fragment.getVirtualFile()); in assertVariableType() local
257 editor.getCaretModel().moveToOffset(1); in assertVariableType()
267 Editor editor = FileEditorManager.getInstance(getProject()).openTextEditor( in createEditor() local
271 ((EditorImpl)editor).setCaretActive(); in createEditor()
272 return editor; in createEditor()
/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/
DTestCaseEditController.java207 JComponent editor = null; in updateInputEditor() local
213 editor = this.editInputString; in updateInputEditor()
217 editor = this.editInputMulti.getView(); in updateInputEditor()
221 editor = this.editInputFile; in updateInputEditor()
228 paneDetailInput.setEditor(editor); in updateInputEditor()
232 JComponent editor = null; in updateOutputEditor() local
241 editor = this.editOutputAST.getView(); in updateOutputEditor()
247 editor = this.editOutputResult; in updateOutputEditor()
253 editor = this.editOutputStd.getView(); in updateOutputEditor()
259 editor = this.editOutputReturn.getView(); in updateOutputEditor()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DDiskLruCacheWrapper.java87 DiskLruCache.Editor editor = getDiskCache().edit(safeKey); in put() local
89 if (editor != null) { in put()
91 File file = editor.getFile(0); in put()
93 editor.commit(); in put()
96 editor.abortUnlessCommitted(); in put()
/external/smali/smalidea/src/main/java/org/jf/smalidea/findUsages/
DSmaliUsageTargetProvider.java37 import com.intellij.openapi.editor.Editor;
53 @Nullable @Override public UsageTarget[] getTargets(Editor editor, PsiFile file) { in getTargets() argument
55 …TargetElementUtilBase.adjustOffset(file, editor.getDocument(), editor.getCaretModel().getOffset())… in getTargets()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/util/
DColorsActivity.java236 SharedPreferences.Editor editor = mPreferences.edit(); in colorChanged() local
239 editor.putInt(PreferenceConstants.COLOR_FG, mFgColor); in colorChanged()
242 editor.putInt(PreferenceConstants.COLOR_BG, mBgColor); in colorChanged()
244 editor.commit(); in colorChanged()
275 SharedPreferences.Editor editor = mPreferences.edit(); in onCreateOptionsMenu()
276 editor.putInt(PreferenceConstants.COLOR_FG, mFgColor); in onCreateOptionsMenu()
277 editor.putInt(PreferenceConstants.COLOR_BG, mBgColor); in onCreateOptionsMenu()
278 editor.commit(); in onCreateOptionsMenu()
/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/
Dkvm-find-errors.sh25 editor=${EDITOR-vi}
39 $editor $files
59 $editor $files
/external/python/httplib2/script/
Drelease173 local editor=$(which edit 2>/dev/null)
174 [[ -z "$editor" ]] && editor="$EDITOR"
175 if [[ -n "$editor" ]] ; then
177 $editor CHANGELOG
/external/proguard/src/proguard/classfile/editor/
DVariableCleaner.java21 package proguard.classfile.editor;
61 AttributesEditor editor = in visitCodeAttribute() local
67 editor.deleteAttribute(ClassConstants.ATTR_LocalVariableTable); in visitCodeAttribute()
73 AttributesEditor editor = in visitCodeAttribute() local
79 editor.deleteAttribute(ClassConstants.ATTR_LocalVariableTypeTable); in visitCodeAttribute()
/external/skia/modules/skplaintexteditor/
DREADME.md37 ninja -C out/default editor
39 out/default/editor resources/text/english.txt
42 out/default/editor example.txt
/external/icing/icing/index/
Dindex-processor.cc72 Index::Editor editor = in IndexDocument() local
78 editor.IndexAllBufferedTerms(); in IndexDocument()
99 auto status = editor.BufferTerm(term.c_str()); in IndexDocument()
109 auto status = editor.IndexAllBufferedTerms(); in IndexDocument()
/external/angle/src/android_system_settings/src/com/android/angle/common/
DMainFragment.java290 SharedPreferences.Editor editor = mPrefs.edit(); in removePkgPreference() local
292 editor.remove(key); in removePkgPreference()
293 editor.apply(); in removePkgPreference()
322 SharedPreferences.Editor editor = mPrefs.edit(); in mergeGlobalSettings() local
330 editor.putString(packageInfo.packageName, driver); in mergeGlobalSettings()
336 editor.putString(packageInfo.packageName, defaultDriver); in mergeGlobalSettings()
340 editor.apply(); in mergeGlobalSettings()
/external/wayland/doc/publican/sources/css/
Dbrand.css8 div.editor div.editor,

12345678910>>...17