Home
last modified time | relevance | path

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

123

/frameworks/support/v4/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/v4/java/android/support/v4/content/
DSharedPreferencesCompat.java30 void apply(@NonNull SharedPreferences.Editor editor); in apply() argument
36 public void apply(@NonNull SharedPreferences.Editor editor) { in apply() argument
37 editor.commit(); in apply()
44 public void apply(@NonNull SharedPreferences.Editor editor) { in apply() argument
45 EditorCompatGingerbread.apply(editor); in apply()
66 public void apply(@NonNull SharedPreferences.Editor editor) { in apply() argument
67 mHelper.apply(editor); in apply()
/frameworks/support/v4/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/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.java1412 private void tryCommit(SharedPreferences.Editor editor) { in tryCommit() argument
1415 editor.apply(); in tryCommit()
1420 editor.commit(); in tryCommit()
1446 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistString() local
1447 editor.putString(mKey, value); in persistString()
1448 tryCommit(editor); in persistString()
1496 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistStringSet() local
1497 editor.putStringSet(mKey, values); in persistStringSet()
1498 tryCommit(editor); in persistStringSet()
1543 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/support/v4/gingerbread/android/support/v4/content/
DEditorCompatGingerbread.java23 public static void apply(@NonNull SharedPreferences.Editor editor) { in apply() argument
25 editor.apply(); in apply()
30 editor.commit(); in apply()
/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.java1351 private void tryCommit(@NonNull SharedPreferences.Editor editor) { in tryCommit() argument
1353 SharedPreferencesCompat.EditorCompat.getInstance().apply(editor); in tryCommit()
1378 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistString() local
1379 editor.putString(mKey, value); in persistString()
1380 tryCommit(editor); in persistString()
1424 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistInt() local
1425 editor.putInt(mKey, value); in persistInt()
1426 tryCommit(editor); in persistInt()
1468 SharedPreferences.Editor editor = mPreferenceManager.getEditor(); in persistFloat() local
1469 editor.putFloat(mKey, value); in persistFloat()
[all …]
DPreferenceManager.java427 SharedPreferences.Editor editor = in setDefaultValues() local
430 SharedPreferencesCompat.EditorCompat.getInstance().apply(editor); in setDefaultValues()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java408 SharedPreferences.Editor editor = sharedPreferences.edit(); in testVoiceMailCount() local
410 editor.putString("vm_id_key", imsi); in testVoiceMailCount()
411 editor.putInt("vm_count_key", 5); in testVoiceMailCount()
412 editor.apply(); in testVoiceMailCount()
475 SharedPreferences.Editor editor = sharedPreferences.edit(); in testGetCallForwardingOption() local
476 editor.remove(Phone.CF_STATUS + mPhoneUT.getSubId()); in testGetCallForwardingOption()
477 editor.apply(); in testGetCallForwardingOption()
663 SharedPreferences.Editor editor = sp.edit(); in testCallForwardingIndicator() local
664 editor.putString(Phone.CF_ID, imsi); in testCallForwardingIndicator()
665 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.java704 SharedPreferences.Editor editor = sp.edit(); in disableDnsCheck() local
705 editor.putBoolean(DNS_SERVER_CHECK_DISABLED_KEY, b); in disableDnsCheck()
706 editor.apply(); in disableDnsCheck()
1200 SharedPreferences.Editor editor = sp.edit(); in updateSavedNetworkOperator() local
1201 editor.putString(NETWORK_SELECTION_KEY + subId, nsm.operatorNumeric); in updateSavedNetworkOperator()
1202 editor.putString(NETWORK_SELECTION_NAME_KEY + subId, nsm.operatorAlphaLong); in updateSavedNetworkOperator()
1203 editor.putString(NETWORK_SELECTION_SHORT_KEY + subId, nsm.operatorAlphaShort); in updateSavedNetworkOperator()
1206 if (!editor.commit()) { in updateSavedNetworkOperator()
1283 SharedPreferences.Editor editor = sp.edit(); in saveClirSetting() local
1284 editor.putInt(CLIR_KEY + getPhoneId(), commandInterfaceCLIRMode); in saveClirSetting()
[all …]
/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-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/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/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/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/support/v14/preference/src/android/support/v14/preference/
DMultiSelectListPreference.java107 SharedPreferences.Editor editor = getPreferenceManager().getSharedPreferences().edit(); in persistStringSet() local
108 editor.putStringSet(getKey(), values); in persistStringSet()
109 SharedPreferencesCompat.EditorCompat.getInstance().apply(editor); in persistStringSet()
/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/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/multidex/library/src/android/support/multidex/
DMultiDexExtractor.java359 private static void apply(SharedPreferences.Editor editor) { in apply() argument
362 sApplyMethod.invoke(editor); in apply()
370 editor.commit(); in apply()

123