/frameworks/base/media/java/android/media/ |
MediaMetadata.aidl | 18 parcelable MediaMetadata;
|
MediaMetadata.java | 41 public final class MediaMetadata implements Parcelable { 42 private static final String TAG = "MediaMetadata"; 363 private MediaMetadata(Bundle bundle) { 367 private MediaMetadata(Parcel in) { 553 * Helper for getting the String key used by {@link MediaMetadata} from the 564 public static final Parcelable.Creator<MediaMetadata> CREATOR = 565 new Parcelable.Creator<MediaMetadata>() { 567 public MediaMetadata createFromParcel(Parcel in) { 568 return new MediaMetadata(in); 572 public MediaMetadata[] newArray(int size) [all...] |
/frameworks/support/v4/api21/android/support/v4/media/ |
MediaMetadataCompatApi21.java | 20 import android.media.MediaMetadata; 28 return ((MediaMetadata)metadataObj).keySet(); 32 return ((MediaMetadata)metadataObj).getBitmap(key); 36 return ((MediaMetadata)metadataObj).getLong(key); 40 return ((MediaMetadata)metadataObj).getRating(key); 44 return ((MediaMetadata) metadataObj).getText(key); 48 ((MediaMetadata) metadataObj).writeToParcel(dest, flags); 52 return MediaMetadata.CREATOR.createFromParcel(in); 57 return new MediaMetadata.Builder(); 61 ((MediaMetadata.Builder)builderObj).putBitmap(key, value) [all...] |
/packages/services/Car/car-cluster-demo-renderer/src/android/car/cluster/demorenderer/ |
DemoMediaRenderer.java | 20 import android.media.MediaMetadata; 35 MediaMetadata.METADATA_KEY_ALBUM_ART, 36 MediaMetadata.METADATA_KEY_ART, 37 MediaMetadata.METADATA_KEY_DISPLAY_ICON 51 public void onMetadataChanged(MediaMetadata metadata) { 54 CharSequence artist = metadata.getText(MediaMetadata.METADATA_KEY_ARTIST); 55 CharSequence album = metadata.getText(MediaMetadata.METADATA_KEY_ALBUM); 56 CharSequence track = metadata.getText(MediaMetadata.METADATA_KEY_TITLE); 67 private Bitmap getMetadataBitmap(MediaMetadata metadata) {
|
MediaStateMonitor.java | 19 import android.media.MediaMetadata; 108 private void onMetadataChanged(MediaMetadata metadata) { 114 void onMetadataChanged(MediaMetadata metadata); 134 public void onMetadataChanged(MediaMetadata metadata) {
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/ |
MutableMediaMetadata.java | 19 import android.media.MediaMetadata; 23 * Holder class that encapsulates a MediaMetadata and allows the actual metadata to be modified 28 public MediaMetadata metadata; 31 public MutableMediaMetadata(String trackId, MediaMetadata metadata) {
|
MusicProvider.java | 19 import android.media.MediaMetadata; 67 private ConcurrentMap<String, List<MediaMetadata>> mMusicListByGenre; 104 public Iterable<MediaMetadata> getMusicsByGenre(String genre) { 116 public Iterable<MediaMetadata> searchMusic(String titleQuery) { 120 ArrayList<MediaMetadata> result = new ArrayList<>(); 123 if (track.metadata.getString(MediaMetadata.METADATA_KEY_TITLE).toLowerCase() 132 * Return the MediaMetadata for the given musicID. 136 public MediaMetadata getMusic(String musicId) { 140 public synchronized void updateMusic(String musicId, MediaMetadata metadata) { 146 String oldGenre = track.metadata.getString(MediaMetadata.METADATA_KEY_GENRE) [all...] |
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/ |
MutableMediaMetadata.java | 19 import android.media.MediaMetadata; 23 * Holder class that encapsulates a MediaMetadata and allows the actual metadata to be modified 28 public MediaMetadata metadata; 31 public MutableMediaMetadata(String trackId, MediaMetadata metadata) {
|
MusicProvider.java | 19 import android.media.MediaMetadata; 67 private ConcurrentMap<String, List<MediaMetadata>> mMusicListByGenre; 104 public Iterable<MediaMetadata> getMusicsByGenre(String genre) { 116 public Iterable<MediaMetadata> searchMusic(String titleQuery) { 120 ArrayList<MediaMetadata> result = new ArrayList<>(); 123 if (track.metadata.getString(MediaMetadata.METADATA_KEY_TITLE).toLowerCase() 132 * Return the MediaMetadata for the given musicID. 136 public MediaMetadata getMusic(String musicId) { 140 public synchronized void updateMusic(String musicId, MediaMetadata metadata) { 146 String oldGenre = track.metadata.getString(MediaMetadata.METADATA_KEY_GENRE) [all...] |
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/ |
MutableMediaMetadata.java | 19 import android.media.MediaMetadata; 23 * Holder class that encapsulates a MediaMetadata and allows the actual metadata to be modified 28 public MediaMetadata metadata; 31 public MutableMediaMetadata(String trackId, MediaMetadata metadata) {
|
MusicProvider.java | 19 import android.media.MediaMetadata; 67 private ConcurrentMap<String, List<MediaMetadata>> mMusicListByGenre; 104 public Iterable<MediaMetadata> getMusicsByGenre(String genre) { 116 public Iterable<MediaMetadata> searchMusic(String titleQuery) { 120 ArrayList<MediaMetadata> result = new ArrayList<>(); 123 if (track.metadata.getString(MediaMetadata.METADATA_KEY_TITLE).toLowerCase() 132 * Return the MediaMetadata for the given musicID. 136 public MediaMetadata getMusic(String musicId) { 140 public synchronized void updateMusic(String musicId, MediaMetadata metadata) { 146 String oldGenre = track.metadata.getString(MediaMetadata.METADATA_KEY_GENRE) [all...] |
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
MediaItem.java | 18 import android.media.MediaMetadata; 38 return mBundle.getString(MediaMetadata.METADATA_KEY_TITLE); 42 return mBundle.getString(MediaMetadata.METADATA_KEY_ALBUM_ARTIST);
|
/frameworks/base/core/java/android/bluetooth/ |
IBluetoothAvrcpController.aidl | 21 import android.media.MediaMetadata; 35 MediaMetadata getMetadata(in BluetoothDevice device);
|
/frameworks/base/media/java/android/media/session/ |
ISessionControllerCallback.aidl | 19 import android.media.MediaMetadata; 34 void onMetadataChanged(in MediaMetadata metadata);
|
MediaSessionLegacyHelper.java | 29 import android.media.MediaMetadata; 77 public static Bundle getOldMetadata(MediaMetadata metadata, int artworkWidth, 81 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { 83 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM)); 85 if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ART)) { 86 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART); 89 } else if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ART)) { 91 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); 95 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) { 97 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) [all...] |
ISession.aidl | 21 import android.media.MediaMetadata; 42 void setMetadata(in MediaMetadata metadata);
|
ISessionController.aidl | 21 import android.media.MediaMetadata; 71 MediaMetadata getMetadata();
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
AvrcpControllerClasses.java | 30 import android.media.MediaMetadata; 160 * This api converts meta info into MediaMetaData 162 public static MediaMetadata getMediaMetaData(TrackInfo mTrackInfo) { 164 MediaMetadata.Builder mMetaDataBuilder = new MediaMetadata.Builder(); 165 mMetaDataBuilder.putString(MediaMetadata.METADATA_KEY_ARTIST, 167 mMetaDataBuilder.putString(MediaMetadata.METADATA_KEY_TITLE, 169 mMetaDataBuilder.putString(MediaMetadata.METADATA_KEY_ALBUM, 171 mMetaDataBuilder.putString(MediaMetadata.METADATA_KEY_GENRE, 173 mMetaDataBuilder.putLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER [all...] |
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/ |
QueueHelper.java | 19 import android.media.MediaMetadata; 54 Iterable<MediaMetadata> tracks = null; 104 Iterable<MediaMetadata> tracks, String... categories) { 107 for (MediaMetadata track : tracks) { 114 MediaMetadata trackCopy = new MediaMetadata.Builder(track) 115 .putString(MediaMetadata.METADATA_KEY_MEDIA_ID, hierarchyAwareMediaID) 141 Iterable<MediaMetadata> tracks = musicProvider.getMusicsByGenre(genre);
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/ |
QueueHelper.java | 19 import android.media.MediaMetadata; 54 Iterable<MediaMetadata> tracks = null; 104 Iterable<MediaMetadata> tracks, String... categories) { 107 for (MediaMetadata track : tracks) { 114 MediaMetadata trackCopy = new MediaMetadata.Builder(track) 115 .putString(MediaMetadata.METADATA_KEY_MEDIA_ID, hierarchyAwareMediaID) 141 Iterable<MediaMetadata> tracks = musicProvider.getMusicsByGenre(genre);
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
QueueHelper.java | 19 import android.media.MediaMetadata; 54 Iterable<MediaMetadata> tracks = null; 104 Iterable<MediaMetadata> tracks, String... categories) { 107 for (MediaMetadata track : tracks) { 114 MediaMetadata trackCopy = new MediaMetadata.Builder(track) 115 .putString(MediaMetadata.METADATA_KEY_MEDIA_ID, hierarchyAwareMediaID) 141 Iterable<MediaMetadata> tracks = musicProvider.getMusicsByGenre(genre);
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ui/ |
PlaybackOverlayActivity.java | 19 import android.media.MediaMetadata; 143 final MediaMetadata.Builder metadataBuilder = new MediaMetadata.Builder(); 147 metadataBuilder.putString(MediaMetadata.METADATA_KEY_DISPLAY_TITLE, title); 148 metadataBuilder.putString(MediaMetadata.METADATA_KEY_DISPLAY_SUBTITLE, 150 metadataBuilder.putString(MediaMetadata.METADATA_KEY_DISPLAY_ICON_URI, 154 metadataBuilder.putString(MediaMetadata.METADATA_KEY_TITLE, title); 155 metadataBuilder.putString(MediaMetadata.METADATA_KEY_ARTIST, movie.getStudio()); 163 metadataBuilder.putBitmap(MediaMetadata.METADATA_KEY_ART, bitmap);
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
MusicService.java | 24 import android.media.MediaMetadata; 79 * {@link android.media.session.MediaSession#setMetadata(android.media.MediaMetadata)} and 300 for (MediaMetadata track : mMusicProvider.getMusicsByGenre(genre)) { 301 // Since mediaMetadata fields are immutable, we need to create a copy, so we 307 MediaMetadata trackCopy = new MediaMetadata.Builder(track) 308 .putString(MediaMetadata.METADATA_KEY_MEDIA_ID, hierarchyAwareMediaID) 441 MediaMetadata track = getCurrentPlayingMusic(); 443 String musicId = track.getString(MediaMetadata.METADATA_KEY_MEDIA_ID); 545 MediaMetadata track = mMusicProvider.getMusic(musicId) [all...] |
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
MusicService.java | 24 import android.media.MediaMetadata; 79 * {@link android.media.session.MediaSession#setMetadata(android.media.MediaMetadata)} and 300 for (MediaMetadata track : mMusicProvider.getMusicsByGenre(genre)) { 301 // Since mediaMetadata fields are immutable, we need to create a copy, so we 307 MediaMetadata trackCopy = new MediaMetadata.Builder(track) 308 .putString(MediaMetadata.METADATA_KEY_MEDIA_ID, hierarchyAwareMediaID) 441 MediaMetadata track = getCurrentPlayingMusic(); 443 String musicId = track.getString(MediaMetadata.METADATA_KEY_MEDIA_ID); 545 MediaMetadata track = mMusicProvider.getMusic(musicId) [all...] |
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
MusicService.java | 24 import android.media.MediaMetadata; 79 * {@link android.media.session.MediaSession#setMetadata(android.media.MediaMetadata)} and 300 for (MediaMetadata track : mMusicProvider.getMusicsByGenre(genre)) { 301 // Since mediaMetadata fields are immutable, we need to create a copy, so we 307 MediaMetadata trackCopy = new MediaMetadata.Builder(track) 308 .putString(MediaMetadata.METADATA_KEY_MEDIA_ID, hierarchyAwareMediaID) 441 MediaMetadata track = getCurrentPlayingMusic(); 443 String musicId = track.getString(MediaMetadata.METADATA_KEY_MEDIA_ID); 545 MediaMetadata track = mMusicProvider.getMusic(musicId) [all...] |