Home
last modified time | relevance | path

Searched refs:MediaMetadata (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/support/v4/api21/android/support/v4/media/
DMediaMetadataCompatApi21.java20 import android.media.MediaMetadata;
27 return ((MediaMetadata)metadataObj).keySet(); in keySet()
31 return ((MediaMetadata)metadataObj).getBitmap(key); in getBitmap()
35 return ((MediaMetadata)metadataObj).getLong(key); in getLong()
39 return ((MediaMetadata)metadataObj).getRating(key); in getRating()
43 return ((MediaMetadata) metadataObj).getText(key); in getText()
48 return new MediaMetadata.Builder(); in newInstance()
52 ((MediaMetadata.Builder)builderObj).putBitmap(key, value); in putBitmap()
56 ((MediaMetadata.Builder)builderObj).putLong(key, value); in putLong()
60 ((MediaMetadata.Builder)builderObj).putRating(key, (Rating)ratingObj); in putRating()
[all …]
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java29 import android.media.MediaMetadata;
83 public static Bundle getOldMetadata(MediaMetadata metadata, int artworkWidth, in getOldMetadata()
87 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { in getOldMetadata()
89 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM)); in getOldMetadata()
91 if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ART)) { in getOldMetadata()
92 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART); in getOldMetadata()
95 } else if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ART)) { in getOldMetadata()
97 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in getOldMetadata()
101 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) { in getOldMetadata()
103 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)); in getOldMetadata()
[all …]
DISessionControllerCallback.aidl19 import android.media.MediaMetadata;
34 void onMetadataChanged(in MediaMetadata metadata); in onMetadataChanged()
DISession.aidl21 import android.media.MediaMetadata;
42 void setMetadata(in MediaMetadata metadata); in setMetadata()
DISessionController.aidl21 import android.media.MediaMetadata;
66 MediaMetadata getMetadata(); in getMetadata()
DMediaController.java26 import android.media.MediaMetadata;
162 public @Nullable MediaMetadata getMetadata() { in getMetadata()
541 public void onMetadataChanged(@Nullable MediaMetadata metadata) { in onMetadataChanged()
912 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged()
975 mCallback.onMetadataChanged((MediaMetadata) msg.obj); in handleMessage()
DMediaSession.java29 import android.media.MediaMetadata;
409 public void setMetadata(@Nullable MediaMetadata metadata) { in setMetadata()
/frameworks/base/media/java/android/media/
DMediaMetadata.java43 public final class MediaMetadata implements Parcelable { class
307 private MediaMetadata(Bundle bundle) { in MediaMetadata() method in MediaMetadata
311 private MediaMetadata(Parcel in) { in MediaMetadata() method in MediaMetadata
508 public static final Parcelable.Creator<MediaMetadata> CREATOR =
509 new Parcelable.Creator<MediaMetadata>() {
511 public MediaMetadata createFromParcel(Parcel in) {
512 return new MediaMetadata(in);
516 public MediaMetadata[] newArray(int size) {
517 return new MediaMetadata[size];
543 public Builder(MediaMetadata source) { in Builder()
[all …]
DRemoteControlClient.java474 String metadataKey = MediaMetadata.getKeyFromMetadataEditorKey(key); in putString()
504 String metadataKey = MediaMetadata.getKeyFromMetadataEditorKey(key); in putLong()
529 String metadataKey = MediaMetadata.getKeyFromMetadataEditorKey(key); in putBitmap()
545 String metadataKey = MediaMetadata.getKeyFromMetadataEditorKey(key); in putObject()
620 editor.mMetadataBuilder = new MediaMetadata.Builder(); in editMetadata()
622 editor.mMetadataBuilder = new MediaMetadata.Builder(mMediaMetadata); in editMetadata()
973 private MediaMetadata mMediaMetadata;
DMediaMetadata.aidl18 parcelable MediaMetadata;
DMediaMetadataEditor.java115 protected MediaMetadata.Builder mMetadataBuilder;
130 mMetadataBuilder = new MediaMetadata.Builder(); in clear()
DRemoteController.java704 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged()
778 onNewMediaMetadata((MediaMetadata) msg.obj); in handleMessage()
1003 MediaMetadata metadata = controller.getMetadata(); in updateController()
1032 private void onNewMediaMetadata(MediaMetadata metadata) { in onNewMediaMetadata()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DMediaItem.java18 import android.media.MediaMetadata;
38 return mBundle.getString(MediaMetadata.METADATA_KEY_TITLE); in getTitle()
42 return mBundle.getString(MediaMetadata.METADATA_KEY_ALBUM_ARTIST); in getArtist()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerSession.java21 import android.media.MediaMetadata;
47 protected MediaMetadata.Builder mMetadataBuilder;
120 mMetadataBuilder.putBitmap(MediaMetadata.METADATA_KEY_DISPLAY_ICON, icon); in setIcon()
149 mMetadataBuilder = new MediaMetadata.Builder(); in initMetadata()
150 mMetadataBuilder.putString(MediaMetadata.METADATA_KEY_DISPLAY_TITLE, in initMetadata()
152 mMetadataBuilder.putString(MediaMetadata.METADATA_KEY_DISPLAY_SUBTITLE, in initMetadata()
DNotificationHelper.java16 import android.media.MediaMetadata;
42 private MediaMetadata mMetadata;
137 public void onMetadataChanged(MediaMetadata metadata) {
207 .getLong(MediaMetadata.METADATA_KEY_DURATION); in updateNotification()
DPlayerController.java19 import android.media.MediaMetadata;
217 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged()
230 public void onMetadataChange(MediaMetadata metadata); in onMetadataChange()
DOnePlayerActivity.java27 import android.media.MediaMetadata;
174 public MediaMetadata mMetadata;
230 public void onMetadataChange(MediaMetadata metadata) {
/frameworks/base/docs/html/training/tv/playback/
Dnow-playing.jd122 <p>For the track currently playing, set the {@link android.media.MediaMetadata} with the
123 {@link android.media.session.MediaSession#setMetadata(android.media.MediaMetadata) setMetadata()}
130 MediaMetadata.Builder metadataBuilder = new MediaMetadata.Builder();
133 metadataBuilder.putString(MediaMetadata.METADATA_KEY_DISPLAY_TITLE,
135 metadataBuilder.putString(MediaMetadata.METADATA_KEY_DISPLAY_SUBTITLE,
137 metadataBuilder.putString(MediaMetadata.METADATA_KEY_DISPLAY_ICON_URI,
140 metadataBuilder.putString(MediaMetadata.METADATA_KEY_TITLE,
142 metadataBuilder.putString(MediaMetadata.METADATA_KEY_ARTIST,
145 metadataBuilder.putString(MediaMetadata.METADATA_KEY_ART,
/frameworks/support/v4/api21/android/support/v4/media/session/
DMediaSessionCompatApi21.java22 import android.media.MediaMetadata;
92 ((MediaSession)sessionObj).setMetadata((MediaMetadata)metadataObj); in setMetadata()
DMediaControllerCompatApi21.java22 import android.media.MediaMetadata;
220 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java28 import android.media.MediaMetadata;
105 private MediaMetadata mMetadata;
631 if (mMetadata != null && mMetadata.containsKey(MediaMetadata.METADATA_KEY_DURATION)) { in getStateWithUpdatedPosition()
632 duration = mMetadata.getLong(MediaMetadata.METADATA_KEY_DURATION); in getStateWithUpdatedPosition()
727 public void setMetadata(MediaMetadata metadata) { in setMetadata()
729 MediaMetadata temp = metadata == null ? null : new MediaMetadata.Builder(metadata) in setMetadata()
1149 public MediaMetadata getMetadata() { in getMetadata()
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java23 import android.media.MediaMetadata;
199 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java62 import android.media.MediaMetadata;
448 private MediaMetadata mMediaMetadata;
458 public void onMetadataChanged(MediaMetadata metadata) {
1851 artworkBitmap = mMediaMetadata.getBitmap(MediaMetadata.METADATA_KEY_ART);
1853 artworkBitmap = mMediaMetadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART);
2891 pw.print(" title=" + mMediaMetadata.getText(MediaMetadata.METADATA_KEY_TITLE));
/frameworks/base/docs/html/sdk/api_diff/preview-21/
DmissingSinces.txt228 NO DOC BLOCK: android.media.MediaMetadata Method getDescription()
350 NO DOC BLOCK: android.media.MediaMetadata Method getText(java.lang.String)
500 NO DOC BLOCK: android.media.MediaMetadata.Builder Method putText(java.lang.String, java.lang.CharSe…
1030 NO DOC BLOCK: android.media.MediaMetadata Field METADATA_KEY_DISPLAY_DESCRIPTION
1031 NO DOC BLOCK: android.media.MediaMetadata Field METADATA_KEY_DISPLAY_ICON
1032 NO DOC BLOCK: android.media.MediaMetadata Field METADATA_KEY_DISPLAY_ICON_URI
1033 NO DOC BLOCK: android.media.MediaMetadata Field METADATA_KEY_DISPLAY_SUBTITLE
1034 NO DOC BLOCK: android.media.MediaMetadata Field METADATA_KEY_DISPLAY_TITLE
1035 NO DOC BLOCK: android.media.MediaMetadata Field METADATA_KEY_MEDIA_ID
/frameworks/base/
DAndroid.mk433 frameworks/base/media/java/android/media/MediaMetadata.aidl \

12