Searched refs:musicId (Results 1 – 2 of 2) sorted by relevance
136 public MediaMetadataCompat getMusic(String musicId) { in getMusic() argument137 return mMusicListById.containsKey(musicId) ? mMusicListById.get(musicId).metadata : null; in getMusic()140 public synchronized void updateMusic(String musicId, MediaMetadataCompat metadata) { in updateMusic() argument141 MutableMediaMetadata track = mMusicListById.get(musicId); in updateMusic()157 public void setFavorite(String musicId, boolean favorite) { in setFavorite() argument159 mFavoriteTracks.add(musicId); in setFavorite()161 mFavoriteTracks.remove(musicId); in setFavorite()165 public boolean isFavorite(String musicId) { in isFavorite() argument166 return mFavoriteTracks.contains(musicId); in isFavorite()234 String musicId = item.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID); in retrieveMedia() local[all …]
485 String musicId = track.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID); in onCustomAction() local486 mMusicProvider.setFavorite(musicId, !mMusicProvider.isFavorite(musicId)); in onCustomAction()585 String musicId = MediaIDHelper.extractMusicIDFromMediaID( in updateMetadata() local587 MediaMetadataCompat track = mMusicProvider.getMusic(musicId); in updateMetadata()589 if (!musicId.equals(trackId)) { in updateMetadata()591 Log.e(TAG, "track ID should match musicId. musicId=" + musicId + " trackId=" + trackId in updateMetadata()600 Log.d(TAG, "Updating metadata for MusicID= " + musicId); in updateMetadata()682 String musicId = currentMusic.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID); in setCustomAction() local684 if (mMusicProvider.isFavorite(musicId)) { in setCustomAction()688 + musicId + " current favorite=" + mMusicProvider.isFavorite(musicId)); in setCustomAction()