Lines Matching refs:track
340 MediaMetadataCompat track = tracks.get(i);
347 track.getDescription().getMediaId(), MEDIA_ID_MUSICS_BY_GENRE, genre);
348 MediaMetadataCompat trackCopy = new MediaMetadataCompat.Builder(track)
406 // so we can build the correct playing queue, based on where the track was
481 Log.i(TAG, "onCustomAction: favorite for current track");
482 MediaMetadataCompat track = getCurrentPlayingMusic();
483 if (track != null) {
484 String musicId = track.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID);
586 MediaMetadataCompat track = mMusicProvider.getMusic(musicId);
587 final String trackId = track.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID);
589 IllegalStateException e = new IllegalStateException("track ID should match musicId.");
590 Log.e(TAG, "track ID should match musicId. musicId=" + musicId + " trackId=" + trackId
593 + " mediaId from track=" + track.getDescription().getMediaId()
594 + " title from track=" + track.getDescription().getTitle()
595 + " source.hashcode from track=" + track.getString(
600 mSession.setMetadata(track);
604 if (track.getDescription().getIconBitmap() == null &&
605 track.getDescription().getIconUri() != null) {
606 String albumUri = track.getDescription().getIconUri().toString();
611 MediaMetadataCompat track = mMusicProvider.getMusic(trackId);
612 track = new MediaMetadataCompat.Builder(track)
623 mMusicProvider.updateMusic(trackId, track);
629 mSession.setMetadata(track);