Searched refs:editor (Results 1 - 24 of 24) sorted by relevance

/frameworks/support/compat/java/android/support/v4/content/
H A DSharedPreferencesCompat.java33 public void apply(@NonNull SharedPreferences.Editor editor) { argument
35 editor.apply();
40 editor.commit();
58 public void apply(@NonNull SharedPreferences.Editor editor) { argument
62 mHelper.apply(editor);
/frameworks/support/media-compat/kitkat/android/support/v4/media/session/
H A DMediaSessionCompatApi19.java43 RemoteControlClient.MetadataEditor editor = ((RemoteControlClient) rccObj).editMetadata(
45 MediaSessionCompatApi14.buildOldMetadata(metadata, editor);
46 addNewMetadata(metadata, editor);
48 editor.addEditableKey(RemoteControlClient.MetadataEditor.RATING_KEY_BY_USER);
50 editor.apply();
67 static void addNewMetadata(Bundle metadata, RemoteControlClient.MetadataEditor editor) { argument
72 editor.putLong(MediaMetadataRetriever.METADATA_KEY_YEAR,
76 editor.putObject(MediaMetadataEditor.RATING_KEY_BY_OTHERS,
80 editor.putObject(MediaMetadataEditor.RATING_KEY_BY_USER,
/frameworks/ex/common/java/com/android/common/
H A DSharedPreferencesCompat.java39 public static void apply(SharedPreferences.Editor editor) { argument
42 sApplyMethod.invoke(editor);
50 editor.commit();
H A DOperationScheduler.java318 SharedPreferences.Editor editor = mStorage.edit();
319 editor.putLong(PREFIX + "lastErrorTimeMillis", currentTimeMillis());
320 editor.putInt(PREFIX + "errorCount",
322 SharedPreferencesCompat.apply(editor);
/frameworks/support/media-compat/ics/android/support/v4/media/session/
H A DMediaSessionCompatApi14.java87 RemoteControlClient.MetadataEditor editor = ((RemoteControlClient) rccObj).editMetadata(
89 buildOldMetadata(metadata, editor);
90 editor.apply();
161 static void buildOldMetadata(Bundle metadata, RemoteControlClient.MetadataEditor editor) { argument
167 editor.putBitmap(RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK, art);
171 editor.putBitmap(RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK, art);
174 editor.putString(MediaMetadataRetriever.METADATA_KEY_ALBUM,
178 editor.putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST,
182 editor.putString(MediaMetadataRetriever.METADATA_KEY_ARTIST,
186 editor
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DApprovedPrintServices.java103 SharedPreferences.Editor editor = mPreferences.edit();
104 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices);
105 editor.apply();
153 SharedPreferences.Editor editor = mPreferences.edit();
155 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices);
156 editor.apply();
/frameworks/base/media/java/android/media/
H A DRemoteControlClient.java405 * Use {@link RemoteControlClient#editMetadata(boolean)} to create an instance of an editor,
563 // Still build the old metadata so when creating a new editor
592 MetadataEditor editor = new MetadataEditor();
594 editor.mEditorMetadata = new Bundle();
595 editor.mEditorArtwork = null;
596 editor.mMetadataChanged = true;
597 editor.mArtworkChanged = true;
598 editor.mEditableKeys = 0;
600 editor.mEditorMetadata = new Bundle(mMetadata);
601 editor
[all...]
H A DRemoteController.java381 MetadataEditor editor = new MetadataEditor();
382 editor.mEditorMetadata = new Bundle();
383 editor.mEditorArtwork = null;
384 editor.mMetadataChanged = true;
385 editor.mArtworkChanged = true;
386 editor.mEditableKeys = 0;
387 return editor;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DLocalPreferences.java124 Editor editor = null;
127 if (editor == null) {
128 editor = prefs.edit();
130 editor.remove(key);
133 if (editor != null) {
134 editor.apply();
/frameworks/base/core/java/android/preference/
H A DPreference.java1412 private void tryCommit(SharedPreferences.Editor editor) { argument
1415 editor.apply();
1420 editor.commit();
1428 * This will check if this Preference is persistent, get an editor from
1446 SharedPreferences.Editor editor = mPreferenceManager.getEditor();
1447 editor.putString(mKey, value);
1448 tryCommit(editor);
1478 * This will check if this Preference is persistent, get an editor from
1496 SharedPreferences.Editor editor = mPreferenceManager.getEditor();
1497 editor
[all...]
H A DPreferenceManager.java92 * If in no-commit mode, the shared editor to give out (which will be
98 * Blocks commits from happening on the shared editor. This is used when
611 SharedPreferences.Editor editor =
614 editor.apply();
619 editor.commit();
625 * Returns an editor to use when modifying the shared preferences.
629 * @return An editor to use to write to shared preferences.
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreference.java1357 private void tryCommit(@NonNull SharedPreferences.Editor editor) { argument
1359 SharedPreferencesCompat.EditorCompat.getInstance().apply(editor);
1366 * This will check if this Preference is persistent, get an editor from
1384 SharedPreferences.Editor editor = mPreferenceManager.getEditor();
1385 editor.putString(mKey, value);
1386 tryCommit(editor);
1430 SharedPreferences.Editor editor = mPreferenceManager.getEditor();
1431 editor.putInt(mKey, value);
1432 tryCommit(editor);
1474 SharedPreferences.Editor editor
[all...]
H A DPreferenceManager.java61 * If in no-commit mode, the shared editor to give out (which will be
67 * Blocks commits from happening on the shared editor. This is used when
432 SharedPreferences.Editor editor =
435 SharedPreferencesCompat.EditorCompat.getInstance().apply(editor);
440 * Returns an editor to use when modifying the shared preferences.
444 * @return An editor to use to write to shared preferences.
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmCdmaPhoneTest.java411 SharedPreferences.Editor editor = sharedPreferences.edit();
413 editor.putString("vm_id_key", imsi);
414 editor.putInt("vm_count_key", 5);
415 editor.apply();
478 SharedPreferences.Editor editor = sharedPreferences.edit();
479 editor.remove(Phone.CF_STATUS + mPhoneUT.getSubId());
480 editor.apply();
666 SharedPreferences.Editor editor = sp.edit();
667 editor.putString(Phone.CF_ID, imsi);
668 editor
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDevice.java707 SharedPreferences.Editor editor = preferences.edit();
708 editor.remove(mDevice.getAddress());
709 editor.commit();
770 SharedPreferences.Editor editor = preferences.edit();
771 editor.remove(mDevice.getAddress());
772 editor.commit();
793 SharedPreferences.Editor editor = mContext.getSharedPreferences(
796 editor.remove(mDevice.getAddress());
798 editor.putInt(mDevice.getAddress(), mMessageRejectionCount);
800 editor
[all...]
/frameworks/base/tests/backup/src/com/android/backuptest/
H A DBackupTestActivity.java125 SharedPreferences.Editor editor = prefs.edit();
126 editor.putInt(PREF_KEY, val+1);
127 editor.commit();
/frameworks/support/v14/preference/src/android/support/v14/preference/
H A DMultiSelectListPreference.java90 * This will check if this Preference is persistent, get an editor from
111 SharedPreferences.Editor editor = getPreferenceManager().getSharedPreferences().edit();
112 editor.putStringSet(getKey(), values);
113 SharedPreferencesCompat.EditorCompat.getInstance().apply(editor);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DPhone.java714 SharedPreferences.Editor editor = sp.edit();
715 editor.putBoolean(DNS_SERVER_CHECK_DISABLED_KEY, b);
716 editor.apply();
1207 // open the shared preferences editor, and write the value.
1210 SharedPreferences.Editor editor = sp.edit();
1211 editor.putString(NETWORK_SELECTION_KEY + subId, nsm.operatorNumeric);
1212 editor.putString(NETWORK_SELECTION_NAME_KEY + subId, nsm.operatorAlphaLong);
1213 editor.putString(NETWORK_SELECTION_SHORT_KEY + subId, nsm.operatorAlphaShort);
1216 if (!editor.commit()) {
1291 // Open the shared preferences editor, an
[all...]
H A DGsmCdmaPhone.java1262 SharedPreferences.Editor editor = sp.edit();
1264 editor.putString(VM_NUMBER + getPhoneId(), number);
1265 editor.apply();
1268 editor.putString(VM_NUMBER_CDMA + getPhoneId(), number);
1269 editor.apply();
1331 SharedPreferences.Editor editor = sp.edit();
1332 editor.putString(VM_SIM_IMSI + getPhoneId(), imsi);
1333 editor.apply();
H A DSubscriptionInfoUpdater.java483 SharedPreferences.Editor editor = sp.edit();
484 editor.putInt(CURR_SUBID + slotId, subId);
485 editor.apply();
H A DServiceStateTracker.java335 SharedPreferences.Editor editor = sp.edit();
336 editor.putString(Phone.NETWORK_SELECTION_KEY + subId,
338 editor.putString(Phone.NETWORK_SELECTION_NAME_KEY + subId,
340 editor.putString(Phone.NETWORK_SELECTION_SHORT_KEY + subId,
342 editor.remove(Phone.NETWORK_SELECTION_KEY);
343 editor.remove(Phone.NETWORK_SELECTION_NAME_KEY);
344 editor.remove(Phone.NETWORK_SELECTION_SHORT_KEY);
345 editor.commit();
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DPrintActivity.java2997 final IPdfEditor editor = IPdfEditor.Stub.asInterface(service);
3005 doTransform(editor);
3023 private void doTransform(IPdfEditor editor) { argument
3034 editor.openDocument(src);
3040 editor.removePages(mPagesToShred);
3044 editor.applyPrintAttributes(mAttributesToApply);
3051 editor.write(dst);
3055 editor.closeDocument();
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
H A DStubProvider.java634 SharedPreferences.Editor editor = mPrefs.edit();
635 editor.putLong(key, rootSize);
636 editor.apply();
/frameworks/base/core/java/android/widget/
H A DEditor.java5713 public UndoInputFilter(Editor editor) { argument
5714 mEditor = editor;
5916 * Constructs an edit operation from a text input operation on editor that replaces the
5919 public EditOperation(Editor editor, String oldText, int dstart, String newText) { argument
5920 super(editor.mUndoOwner);
5940 mOldCursorPos = editor.mTextView.getSelectionStart();
5982 Editor editor = getOwnerData();
5983 Editable text = (Editable) editor.mTextView.getText();
5992 Editor editor = getOwnerData();
5993 Editable text = (Editable) editor
6172 ProcessTextIntentActionsHandler(Editor editor) argument
[all...]

Completed in 7672 milliseconds