Home
last modified time | relevance | path

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

123

/frameworks/support/media-compat/ics/android/support/v4/media/session/
DMediaSessionCompatApi14.java87 RemoteControlClient.MetadataEditor editor = ((RemoteControlClient) rccObj).editMetadata( in setMetadata() local
89 buildOldMetadata(metadata, editor); in setMetadata()
90 editor.apply(); in setMetadata()
161 static void buildOldMetadata(Bundle metadata, RemoteControlClient.MetadataEditor editor) { in buildOldMetadata() argument
167 editor.putBitmap(RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK, art); in buildOldMetadata()
171 editor.putBitmap(RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK, art); in buildOldMetadata()
174 editor.putString(MediaMetadataRetriever.METADATA_KEY_ALBUM, in buildOldMetadata()
178 editor.putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, in buildOldMetadata()
182 editor.putString(MediaMetadataRetriever.METADATA_KEY_ARTIST, in buildOldMetadata()
186 editor.putString(MediaMetadataRetriever.METADATA_KEY_AUTHOR, in buildOldMetadata()
[all …]
/frameworks/support/media-compat/kitkat/android/support/v4/media/session/
DMediaSessionCompatApi19.java43 RemoteControlClient.MetadataEditor editor = ((RemoteControlClient) rccObj).editMetadata( in setMetadata() local
45 MediaSessionCompatApi14.buildOldMetadata(metadata, editor); in setMetadata()
46 addNewMetadata(metadata, editor); in setMetadata()
48 editor.addEditableKey(RemoteControlClient.MetadataEditor.RATING_KEY_BY_USER); in setMetadata()
50 editor.apply(); in setMetadata()
67 static void addNewMetadata(Bundle metadata, RemoteControlClient.MetadataEditor editor) { in addNewMetadata() argument
72 editor.putLong(MediaMetadataRetriever.METADATA_KEY_YEAR, in addNewMetadata()
76 editor.putObject(MediaMetadataEditor.RATING_KEY_BY_OTHERS, in addNewMetadata()
80 editor.putObject(MediaMetadataEditor.RATING_KEY_BY_USER, in addNewMetadata()
/frameworks/support/compat/java/android/support/v4/content/
DSharedPreferencesCompat.java33 public void apply(@NonNull SharedPreferences.Editor editor) { in apply() argument
35 editor.apply(); in apply()
40 editor.commit(); in apply()
58 public void apply(@NonNull SharedPreferences.Editor editor) { in apply() argument
62 mHelper.apply(editor); in apply()
/frameworks/base/media/java/android/media/
DRemoteControlClient.java592 MetadataEditor editor = new MetadataEditor(); in editMetadata() local
594 editor.mEditorMetadata = new Bundle(); in editMetadata()
595 editor.mEditorArtwork = null; in editMetadata()
596 editor.mMetadataChanged = true; in editMetadata()
597 editor.mArtworkChanged = true; in editMetadata()
598 editor.mEditableKeys = 0; in editMetadata()
600 editor.mEditorMetadata = new Bundle(mMetadata); in editMetadata()
601 editor.mEditorArtwork = mOriginalArtwork; in editMetadata()
602 editor.mMetadataChanged = false; in editMetadata()
603 editor.mArtworkChanged = false; in editMetadata()
[all …]
DRemoteController.java381 MetadataEditor editor = new MetadataEditor(); in editMetadata() local
382 editor.mEditorMetadata = new Bundle(); in editMetadata()
383 editor.mEditorArtwork = null; in editMetadata()
384 editor.mMetadataChanged = true; in editMetadata()
385 editor.mArtworkChanged = true; in editMetadata()
386 editor.mEditableKeys = 0; in editMetadata()
387 return editor; in editMetadata()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DApprovedPrintServices.java103 SharedPreferences.Editor editor = mPreferences.edit(); in addApprovedService() local
104 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices); in addApprovedService()
105 editor.apply(); in addApprovedService()
153 SharedPreferences.Editor editor = mPreferences.edit(); in pruneApprovedServices() local
155 editor.putStringSet(APPROVED_SERVICES_PREFERENCE, newApprovedServices); in pruneApprovedServices()
156 editor.apply(); in pruneApprovedServices()
/frameworks/base/core/java/android/preference/
DPreference.java1415 private void tryCommit(SharedPreferences.Editor editor) { in tryCommit() argument
1418 editor.apply(); in tryCommit()
1423 editor.commit(); in tryCommit()
1449 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistString() local
1450 editor.putString(mKey, value); in persistString()
1451 tryCommit(editor); in persistString()
1499 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistStringSet() local
1500 editor.putStringSet(mKey, values); in persistStringSet()
1501 tryCommit(editor); in persistStringSet()
1546 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistInt() local
[all …]
DPreferenceManager.java611 SharedPreferences.Editor editor = in setDefaultValues() local
614 editor.apply(); in setDefaultValues()
619 editor.commit(); in setDefaultValues()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DLocalPreferences.java124 Editor editor = null; in clearScopedAccessPreferences() local
127 if (editor == null) { in clearScopedAccessPreferences()
128 editor = prefs.edit(); in clearScopedAccessPreferences()
130 editor.remove(key); in clearScopedAccessPreferences()
133 if (editor != null) { in clearScopedAccessPreferences()
134 editor.apply(); in clearScopedAccessPreferences()
/frameworks/ex/common/java/com/android/common/
DSharedPreferencesCompat.java39 public static void apply(SharedPreferences.Editor editor) { in apply() argument
42 sApplyMethod.invoke(editor); in apply()
50 editor.commit(); in apply()
DOperationScheduler.java318 SharedPreferences.Editor editor = mStorage.edit(); in onTransientError() local
319 editor.putLong(PREFIX + "lastErrorTimeMillis", currentTimeMillis()); in onTransientError()
320 editor.putInt(PREFIX + "errorCount", in onTransientError()
322 SharedPreferencesCompat.apply(editor); in onTransientError()
/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreference.java1357 private void tryCommit(@NonNull SharedPreferences.Editor editor) { in tryCommit() argument
1359 SharedPreferencesCompat.EditorCompat.getInstance().apply(editor); in tryCommit()
1384 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistString() local
1385 editor.putString(mKey, value); in persistString()
1386 tryCommit(editor); in persistString()
1430 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistInt() local
1431 editor.putInt(mKey, value); in persistInt()
1432 tryCommit(editor); in persistInt()
1474 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistFloat() local
1475 editor.putFloat(mKey, value); in persistFloat()
[all …]
DPreferenceManager.java432 SharedPreferences.Editor editor = in setDefaultValues() local
435 SharedPreferencesCompat.EditorCompat.getInstance().apply(editor); in setDefaultValues()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java411 SharedPreferences.Editor editor = sharedPreferences.edit(); in testVoiceMailCount() local
413 editor.putString("vm_id_key", imsi); in testVoiceMailCount()
414 editor.putInt("vm_count_key", 5); in testVoiceMailCount()
415 editor.apply(); in testVoiceMailCount()
478 SharedPreferences.Editor editor = sharedPreferences.edit(); in testGetCallForwardingOption() local
479 editor.remove(Phone.CF_STATUS + mPhoneUT.getSubId()); in testGetCallForwardingOption()
480 editor.apply(); in testGetCallForwardingOption()
666 SharedPreferences.Editor editor = sp.edit(); in testCallForwardingIndicator() local
667 editor.putString(Phone.CF_ID, imsi); in testCallForwardingIndicator()
668 editor.putInt(Phone.CF_STATUS, IccRecords.CALL_FORWARDING_STATUS_ENABLED); in testCallForwardingIndicator()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java707 SharedPreferences.Editor editor = preferences.edit(); in migratePhonebookPermissionChoice() local
708 editor.remove(mDevice.getAddress()); in migratePhonebookPermissionChoice()
709 editor.commit(); in migratePhonebookPermissionChoice()
770 SharedPreferences.Editor editor = preferences.edit(); in migrateMessagePermissionChoice() local
771 editor.remove(mDevice.getAddress()); in migrateMessagePermissionChoice()
772 editor.commit(); in migrateMessagePermissionChoice()
793 SharedPreferences.Editor editor = mContext.getSharedPreferences( in saveMessageRejectionCount() local
796 editor.remove(mDevice.getAddress()); in saveMessageRejectionCount()
798 editor.putInt(mDevice.getAddress(), mMessageRejectionCount); in saveMessageRejectionCount()
800 editor.commit(); in saveMessageRejectionCount()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhone.java716 SharedPreferences.Editor editor = sp.edit(); in disableDnsCheck() local
717 editor.putBoolean(DNS_SERVER_CHECK_DISABLED_KEY, b); in disableDnsCheck()
718 editor.apply(); in disableDnsCheck()
1212 SharedPreferences.Editor editor = sp.edit(); in updateSavedNetworkOperator() local
1213 editor.putString(NETWORK_SELECTION_KEY + subId, nsm.operatorNumeric); in updateSavedNetworkOperator()
1214 editor.putString(NETWORK_SELECTION_NAME_KEY + subId, nsm.operatorAlphaLong); in updateSavedNetworkOperator()
1215 editor.putString(NETWORK_SELECTION_SHORT_KEY + subId, nsm.operatorAlphaShort); in updateSavedNetworkOperator()
1218 if (!editor.commit()) { in updateSavedNetworkOperator()
1295 SharedPreferences.Editor editor = sp.edit(); in saveClirSetting() local
1296 editor.putInt(CLIR_KEY + getPhoneId(), commandInterfaceCLIRMode); in saveClirSetting()
[all …]
/frameworks/base/docs/html-intl/intl/ko/training/basics/data-storage/
Dshared-preferences.jd101 SharedPreferences.Editor editor = sharedPref.edit();
102 editor.putInt(getString(R.string.saved_high_score), newHighScore);
103 editor.commit();
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/data-storage/
Dshared-preferences.jd101 SharedPreferences.Editor editor = sharedPref.edit();
102 editor.putInt(getString(R.string.saved_high_score), newHighScore);
103 editor.commit();
/frameworks/base/docs/html-intl/intl/ru/training/basics/data-storage/
Dshared-preferences.jd101 SharedPreferences.Editor editor = sharedPref.edit();
102 editor.putInt(getString(R.string.saved_high_score), newHighScore);
103 editor.commit();
/frameworks/base/docs/html-intl/intl/zh-cn/training/basics/data-storage/
Dshared-preferences.jd101 SharedPreferences.Editor editor = sharedPref.edit();
102 editor.putInt(getString(R.string.saved_high_score), newHighScore);
103 editor.commit();
/frameworks/base/docs/html-intl/intl/ja/training/basics/data-storage/
Dshared-preferences.jd101 SharedPreferences.Editor editor = sharedPref.edit();
102 editor.putInt(getString(R.string.saved_high_score), newHighScore);
103 editor.commit();
/frameworks/base/tests/backup/src/com/android/backuptest/
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/
DMultiSelectListPreference.java111 SharedPreferences.Editor editor = getPreferenceManager().getSharedPreferences().edit(); in persistStringSet() local
112 editor.putStringSet(getKey(), values); in persistStringSet()
113 SharedPreferencesCompat.EditorCompat.getInstance().apply(editor); in persistStringSet()
/frameworks/base/docs/html/sdk/
DOLD_RELEASENOTES.jd89 …e opened with the new layout editor. This is very much a work in progress, and provided here for p…
92 …<li>Dual page editor with a WYSIWYG page (the graphical editor) and an XML page with content assis…
94 …<li>The interactivity in the editor itself is limited to selection at the moment. Actions on the l…
96 …<li>Top part of the editor allows you to display the layout in different configurations (language,…
103 …guration selection (in a different res/layout-qualifier folder) then the editor automatically swit…
107 …nstructor/onDraw method, it may not work (the layout library used by the editor only includes a su…
118 …y drawing feature of the android framework to be supported in the layout editor (but we're working…
126 …, &lt;ViewStub&gt; elements. You can add these elements to your manifest using the xml editor only.
128 <li>If a layout fails to render in a way that prevents the whole editor from opening, you can:
131 …articular file in a different editor: right click the file in the package explorer and choose Open…
[all …]
/frameworks/base/docs/html/training/custom-views/
Dindex.jd51 …ref="http://developer.android.com/studio/write/layout-editor.html">Android Studio</a> layout edito…

123