/frameworks/support/media/api21/android/support/v4/media/ |
D | MediaMetadataCompatApi21.java | 20 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/ |
D | MediaSessionLegacyHelper.java | 29 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 …]
|
D | ISessionControllerCallback.aidl | 19 import android.media.MediaMetadata; 34 void onMetadataChanged(in MediaMetadata metadata); in onMetadataChanged()
|
D | ISession.aidl | 21 import android.media.MediaMetadata; 42 void setMetadata(in MediaMetadata metadata); in setMetadata()
|
D | ISessionController.aidl | 21 import android.media.MediaMetadata; 82 MediaMetadata getMetadata(); in getMetadata()
|
D | MediaController.java | 26 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/ |
D | MediaMetadata.java | 42 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 …]
|
D | RemoteControlClient.java | 461 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;
|
D | MediaMetadata.aidl | 18 parcelable MediaMetadata;
|
D | RemoteController.java | 468 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()
|
D | MediaMetadataEditor.java | 116 protected MediaMetadata.Builder mMetadataBuilder; 131 mMetadataBuilder = new MediaMetadata.Builder(); in clear()
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
D | MediaItem.java | 18 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/ |
D | PipNotification.java | 30 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/ |
D | PlayerSession.java | 21 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()
|
D | NotificationHelper.java | 16 import android.media.MediaMetadata; 42 private MediaMetadata mMetadata; 137 public void onMetadataChanged(MediaMetadata metadata) { 207 .getLong(MediaMetadata.METADATA_KEY_DURATION); in updateNotification()
|
D | PlayerController.java | 19 import android.media.MediaMetadata; 217 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged() 230 public void onMetadataChange(MediaMetadata metadata); in onMetadataChange()
|
D | OnePlayerActivity.java | 27 import android.media.MediaMetadata; 174 public MediaMetadata mMetadata; 230 public void onMetadataChange(MediaMetadata metadata) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | UtilTest.java | 18 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/ |
D | NotificationMediaManager.java | 20 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/ |
D | VideoView2Impl.java | 31 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()
|
D | MediaControlView2Impl.java | 22 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/ |
D | Util.java | 21 import android.media.MediaMetadata; 80 public static String mediaMetadataToString(MediaMetadata metadata) { in mediaMetadataToString()
|
D | MediaSessions.java | 27 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/ |
D | MediaSessionRecord.java | 27 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/ |
D | MediaSessionCompatApi21.java | 24 import android.media.MediaMetadata; 111 ((MediaSession)sessionObj).setMetadata((MediaMetadata)metadataObj); in setMetadata()
|