Home
last modified time | relevance | path

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

12

/frameworks/support/media/api21/android/support/v4/media/
DMediaMetadataCompatApi21.java20 import android.media.MediaMetadata;
31 return ((MediaMetadata)metadataObj).keySet(); in keySet()
35 return ((MediaMetadata)metadataObj).getBitmap(key); in getBitmap()
39 return ((MediaMetadata)metadataObj).getLong(key); in getLong()
43 return ((MediaMetadata)metadataObj).getRating(key); in getRating()
47 return ((MediaMetadata) metadataObj).getText(key); in getText()
51 ((MediaMetadata) metadataObj).writeToParcel(dest, flags); in writeToParcel()
55 return MediaMetadata.CREATOR.createFromParcel(in); in createFromParcel()
60 return new MediaMetadata.Builder(); in newInstance()
64 ((MediaMetadata.Builder)builderObj).putBitmap(key, value); in putBitmap()
[all …]
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java29 import android.media.MediaMetadata;
77 public static Bundle getOldMetadata(MediaMetadata metadata, int artworkWidth, in getOldMetadata()
81 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { in getOldMetadata()
83 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM)); in getOldMetadata()
85 if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ART)) { in getOldMetadata()
86 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART); in getOldMetadata()
89 } else if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ART)) { in getOldMetadata()
91 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in getOldMetadata()
95 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) { in getOldMetadata()
97 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;
82 MediaMetadata getMetadata(); in getMetadata()
DMediaController.java26 import android.media.MediaMetadata;
230 public @Nullable MediaMetadata getMetadata() { in getMetadata()
612 public void onMetadataChanged(@Nullable MediaMetadata metadata) { in onMetadataChanged()
1092 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged()
1159 mCallback.onMetadataChanged((MediaMetadata) msg.obj); in handleMessage()
/frameworks/base/media/java/android/media/
DMediaMetadata.java42 public final class MediaMetadata implements Parcelable { class
419 private MediaMetadata(Bundle bundle) { in MediaMetadata() method in MediaMetadata
423 private MediaMetadata(Parcel in) { in MediaMetadata() method in MediaMetadata
633 public static final Parcelable.Creator<MediaMetadata> CREATOR =
634 new Parcelable.Creator<MediaMetadata>() {
636 public MediaMetadata createFromParcel(Parcel in) {
637 return new MediaMetadata(in);
641 public MediaMetadata[] newArray(int size) {
642 return new MediaMetadata[size];
661 if (!(o instanceof MediaMetadata)) { in equals()
[all …]
DRemoteControlClient.java461 String metadataKey = MediaMetadata.getKeyFromMetadataEditorKey(key); in putString()
491 String metadataKey = MediaMetadata.getKeyFromMetadataEditorKey(key); in putLong()
516 String metadataKey = MediaMetadata.getKeyFromMetadataEditorKey(key); in putBitmap()
532 String metadataKey = MediaMetadata.getKeyFromMetadataEditorKey(key); in putObject()
607 editor.mMetadataBuilder = new MediaMetadata.Builder(); in editMetadata()
609 editor.mMetadataBuilder = new MediaMetadata.Builder(mMediaMetadata); in editMetadata()
919 private MediaMetadata mMediaMetadata;
DMediaMetadata.aidl18 parcelable MediaMetadata;
DRemoteController.java468 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged()
521 onNewMediaMetadata((MediaMetadata) msg.obj); in handleMessage()
620 MediaMetadata metadata = controller.getMetadata(); in updateController()
649 private void onNewMediaMetadata(MediaMetadata metadata) { in onNewMediaMetadata()
DMediaMetadataEditor.java116 protected MediaMetadata.Builder mMetadataBuilder;
131 mMetadataBuilder = new MediaMetadata.Builder(); in clear()
/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/packages/SystemUI/src/com/android/systemui/pip/tv/
DPipNotification.java30 import android.media.MediaMetadata;
210 MediaMetadata metadata = mPipManager.getMediaController().getMetadata(); in updateMediaControllerMetadata()
212 title = metadata.getString(MediaMetadata.METADATA_KEY_DISPLAY_TITLE); in updateMediaControllerMetadata()
214 title = metadata.getString(MediaMetadata.METADATA_KEY_TITLE); in updateMediaControllerMetadata()
216 art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in updateMediaControllerMetadata()
218 art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART); in updateMediaControllerMetadata()
/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/packages/SystemUI/tests/src/com/android/systemui/volume/
DUtilTest.java18 import android.media.MediaMetadata;
37 Assert.assertNotNull(Util.mediaMetadataToString(new MediaMetadata.Builder().build())); in testMediaMetadataToString_notNull()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationMediaManager.java20 import android.media.MediaMetadata;
50 private MediaMetadata mMediaMetadata;
68 public void onMetadataChanged(MediaMetadata metadata) {
103 public MediaMetadata getMediaMetadata() { in getMediaMetadata()
225 pw.print(" title=" + mMediaMetadata.getText(MediaMetadata.METADATA_KEY_TITLE)); in dump()
/frameworks/av/packages/MediaComponents/src/com/android/widget/
DVideoView2Impl.java31 import android.media.MediaMetadata;
225 MediaMetadata.Builder mmBuilder = new MediaMetadata.Builder();
226 mmBuilder.putLong(MediaMetadata.METADATA_KEY_DURATION,
1006 MediaMetadata.Builder builder = new MediaMetadata.Builder(); in extractMetadata()
1010 builder.putString(MediaMetadata.METADATA_KEY_TITLE, mTitle); in extractMetadata()
1012 MediaMetadata.METADATA_KEY_DURATION, mMediaPlayer.getDuration()); in extractMetadata()
1062 MediaMetadata.Builder builder = new MediaMetadata.Builder(); in extractAudioMetadata()
1063 builder.putString(MediaMetadata.METADATA_KEY_TITLE, mMusicTitleText); in extractAudioMetadata()
1064 builder.putString(MediaMetadata.METADATA_KEY_ARTIST, mMusicArtistText); in extractAudioMetadata()
DMediaControlView2Impl.java22 import android.media.MediaMetadata;
129 private MediaMetadata mMetadata;
1069 if (mMetadata.containsKey(MediaMetadata.METADATA_KEY_DURATION)) { in updateDuration()
1070 mDuration = (int) mMetadata.getLong(MediaMetadata.METADATA_KEY_DURATION); in updateDuration()
1079 if (mMetadata.containsKey(MediaMetadata.METADATA_KEY_TITLE)) { in updateTitle()
1080 mTitleView.setText(mMetadata.getString(MediaMetadata.METADATA_KEY_TITLE)); in updateTitle()
1118 if (mMetadata.containsKey(MediaMetadata.METADATA_KEY_TITLE)) { in updateAudioMetadata()
1119 titleText = mMetadata.getString(MediaMetadata.METADATA_KEY_TITLE); in updateAudioMetadata()
1124 if (mMetadata.containsKey(MediaMetadata.METADATA_KEY_ARTIST)) { in updateAudioMetadata()
1125 artistText = mMetadata.getString(MediaMetadata.METADATA_KEY_ARTIST); in updateAudioMetadata()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DUtil.java21 import android.media.MediaMetadata;
80 public static String mediaMetadataToString(MediaMetadata metadata) { in mediaMetadataToString()
DMediaSessions.java27 import android.media.MediaMetadata;
208 final MediaMetadata mm = c.getMetadata(); in dump()
295 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java27 import android.media.MediaMetadata;
99 private MediaMetadata mMetadata;
673 if (mMetadata != null && mMetadata.containsKey(MediaMetadata.METADATA_KEY_DURATION)) { in getStateWithUpdatedPosition()
674 duration = mMetadata.getLong(MediaMetadata.METADATA_KEY_DURATION); in getStateWithUpdatedPosition()
793 public void setMetadata(MediaMetadata metadata) { in setMetadata()
795 MediaMetadata temp = metadata == null ? null : new MediaMetadata.Builder(metadata) in setMetadata()
1373 public MediaMetadata getMetadata() { in getMetadata()
/frameworks/support/media/api21/android/support/v4/media/session/
DMediaSessionCompatApi21.java24 import android.media.MediaMetadata;
111 ((MediaSession)sessionObj).setMetadata((MediaMetadata)metadataObj); in setMetadata()

12