/cts/tests/tests/content/src/android/content/cts/ |
SharedPreferencesTest.java | 53 prefs.edit().clear().commit(); 73 prefs.edit().putString("foo", "bar").commit(); 93 prefs.edit().putString("test-key", "test-value").commit(); 96 SharedPreferences.Editor editor = prefs.edit().putString("test-key", null); 108 // Do some later operation on editor (e.g. a redundant edit). 116 // Tests that a redundant edit after an initital setup doesn't 123 prefs.edit().commit(); 126 editor = prefs.edit(); 137 editor = prefs.edit(); 221 prefs.edit().putString("foo", "bar").commit() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
AutoComplete2.java | 38 findViewById(R.id.edit);
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
AwGeolocationPermissions.java | 37 mSharedPreferences.edit().putBoolean(key, true).apply(); 47 mSharedPreferences.edit().putBoolean(key, false).apply(); 57 mSharedPreferences.edit().remove(key).apply(); 69 editor = mSharedPreferences.edit();
|
/external/lldb/tools/driver/ |
Makefile | 29 CPP.Flags += -I/usr/include/edit #-v
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
BugreportPrefs.java | 43 prefs.edit().putInt(KEY_WARNING_STATE, value).apply();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
TypographyFix.java | 70 for (TypographyDetector.ReplaceEdit edit : edits) { 72 document.replace(edit.offset + region.getStartOffset(), 73 edit.length, edit.replaceWith);
|
/external/chromium_org/tools/clang/scripts/ |
run_tool.py | 46 Edit = collections.namedtuple( 47 'Edit', ('edit_type', 'offset', 'length', 'replacement')) 87 edits[path].append(Edit(edit_type, int(offset), int(length), replacement)) 89 print 'Unable to parse edit: %s' % line 190 edits: A dict mapping filenames to Edit instances that apply to that file. 199 # subsequent edits don't need to have their offsets updated with each edit 205 for edit in reversed(v): 206 if edit == last_edit: 208 last_edit = edit 209 contents[edit.offset:edit.offset + edit.length] = edit.replacemen [all...] |
/frameworks/ex/common/java/com/android/common/ |
OperationScheduler.java | 232 SharedPreferencesCompat.apply(mStorage.edit().putLong(name, time)); 247 mStorage.edit().putLong(PREFIX + "triggerTimeMillis", millis)); 258 SharedPreferencesCompat.apply(mStorage.edit() 295 mStorage.edit().putBoolean(PREFIX + "enabledState", enabled)); 305 SharedPreferencesCompat.apply(mStorage.edit() 319 SharedPreferences.Editor editor = mStorage.edit(); 333 SharedPreferencesCompat.apply(mStorage.edit().remove(PREFIX + "errorCount")); 343 SharedPreferencesCompat.apply(mStorage.edit().putBoolean(PREFIX + "permanentError", true)); 351 SharedPreferencesCompat.apply(mStorage.edit().remove(PREFIX + "permanentError"));
|
/packages/apps/Email/src/com/android/email/ |
Preferences.java | 117 getPreferences(context).mSharedPreferences.edit().remove(ACCOUNT_UUIDS).apply(); 121 mSharedPreferences.edit().putBoolean(ENABLE_DEBUG_LOGGING, value).apply(); 129 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_LOGGING, value).apply(); 137 mSharedPreferences.edit().putBoolean(ENABLE_EXCHANGE_FILE_LOGGING, value).apply(); 145 mSharedPreferences.edit().putBoolean(ENABLE_STRICT_MODE, value).apply(); 161 mSharedPreferences.edit().putString(DEVICE_UID, result).apply(); 171 mSharedPreferences.edit().putInt(ONE_TIME_INITIALIZATION_PROGRESS, progress).apply(); 264 .edit() 270 mSharedPreferences.edit().clear().apply();
|
/frameworks/av/media/mtp/ |
MtpServer.cpp | 234 ObjectEdit* edit = mObjectEditList[i]; local 235 commitEdit(edit); 236 delete edit; 283 ObjectEdit* edit = new ObjectEdit(handle, path, size, format, fd); local 284 mObjectEditList.add(edit); 290 ObjectEdit* edit = mObjectEditList[i]; local 291 if (edit->mHandle == handle) return edit; 299 ObjectEdit* edit = mObjectEditList[i]; local 300 if (edit->mHandle == handle) 706 ObjectEdit* edit = getEditObject(handle); local 1122 ObjectEdit* edit = getEditObject(handle); local 1184 ObjectEdit* edit = getEditObject(handle); local 1227 ObjectEdit* edit = getEditObject(handle); local [all...] |
/developers/build/prebuilts/gradle/ActivityInstrumentation/Application/src/main/java/com/example/android/activityinstrumentation/ |
MainActivity.java | 101 mPrefs.edit().putInt(PREF_SPINNER_POS, position).commit(); 106 mPrefs.edit().remove(PREF_SPINNER_POS).commit();
|
/developers/samples/android/testing/ActivityInstrumentation/Application/src/main/java/com/example/android/activityinstrumentation/ |
MainActivity.java | 101 mPrefs.edit().putInt(PREF_SPINNER_POS, position).commit(); 106 mPrefs.edit().remove(PREF_SPINNER_POS).commit();
|
/development/samples/browseable/ActivityInstrumentation/src/com.example.android.activityinstrumentation/ |
MainActivity.java | 101 mPrefs.edit().putInt(PREF_SPINNER_POS, position).commit(); 106 mPrefs.edit().remove(PREF_SPINNER_POS).commit();
|
/external/chromium_org/third_party/openssl/openssl/ |
build-config.mk | 1 # Auto-generated - DO NOT EDIT! 2 # To regenerate, edit openssl.config, then run:
|
/external/clang/tools/clang-format/ |
clang-format-sublime.py | 30 def run(self, edit): 51 edit, sublime.Region(0, self.view.size()),
|
/external/llvm/utils/git-svn/ |
git-svnrevert | 42 # Begin the commit but give our user an opportunity to edit it. 43 git commit --file="$TEMPLATE" --edit
|
/external/openssl/ |
build-config-static-32.mk | 1 # Auto-generated - DO NOT EDIT! 2 # To regenerate, edit openssl.config, then run:
|
build-config-static-64.mk | 1 # Auto-generated - DO NOT EDIT! 2 # To regenerate, edit openssl.config, then run:
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
UsageTracker.java | 63 getSharedPrefs().edit().putLong(mPrefKey, System.currentTimeMillis()).commit(); 67 getSharedPrefs().edit().remove(mPrefKey).commit();
|
/ndk/sources/host-tools/sed-4.2.1/doc/ |
groupify.sed | 8 @c Do not edit this file!! It is automatically generated from sed-in.texi.
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/bookmarks/basic/ |
popup.js | 47 $('<span>[<a id="editlink" href="#">Edit</a> <a id="deletelink" ' + 49 var edit = bookmarkNode.children ? $('<table><tr><td>Name</td><td>' + 52 // Show add and edit links when hover over. 79 $('#adddialog').empty().append(edit).dialog({autoOpen: false, 95 edit.val(anchor.text()); 96 $('#editdialog').empty().append(edit).dialog({autoOpen: false, 97 closeOnEscape: true, title: 'Edit Title', modal: true, 101 title: edit.val() 103 anchor.text(edit.val());
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
LocalBluetoothPreferences.java | 120 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); 129 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); 135 // Load the shared preferences and edit it on a background 139 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); 158 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); 164 SharedPreferences.Editor editor = getSharedPreferences(context).edit();
|
/packages/apps/Camera/src/com/android/camera/ |
ComboPreferences.java | 82 mPrefGlobal.edit().putString(key, (String) v).apply(); 84 mPrefGlobal.edit().putInt(key, (Integer) v).apply(); 86 mPrefGlobal.edit().putLong(key, (Long) v).apply(); 88 mPrefGlobal.edit().putFloat(key, (Float) v).apply(); 90 mPrefGlobal.edit().putBoolean(key, (Boolean) v).apply(); 92 src.edit().remove(key).apply(); 216 mEditorGlobal = mPrefGlobal.edit(); 217 mEditorLocal = mPrefLocal.edit(); 308 public Editor edit() { method in class:ComboPreferences
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/formatting/ |
AndroidXmlFormattingStrategyTest.java | 36 ReplaceEdit edit = AndroidXmlFormattingStrategy.createReplaceEdit(document, replaceStart, local 38 assertNotNull(edit); 39 edit.apply(document);
|
/system/core/libutils/ |
String16.cpp | 346 char16_t* edit = NULL; local 350 if (!edit) { 351 SharedBuffer* buf = SharedBuffer::bufferFromData(mString)->edit(); 355 edit = (char16_t*)buf->data(); 356 mString = str = edit; 358 edit[i] = tolower((char)v); 368 char16_t* edit = NULL; local 371 if (!edit) { 372 SharedBuffer* buf = SharedBuffer::bufferFromData(mString)->edit(); 376 edit = (char16_t*)buf->data() [all...] |