Searched refs:musicId (Results 1 – 2 of 2) sorted by relevance
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/ |
D | MusicProvider.java | 136 public MediaMetadata getMusic(String musicId) { in getMusic() argument 137 return mMusicListById.containsKey(musicId) ? mMusicListById.get(musicId).metadata : null; in getMusic() 140 public synchronized void updateMusic(String musicId, MediaMetadata metadata) { in updateMusic() argument 141 MutableMediaMetadata track = mMusicListById.get(musicId); in updateMusic() 157 public void setFavorite(String musicId, boolean favorite) { in setFavorite() argument 159 mFavoriteTracks.add(musicId); in setFavorite() 161 mFavoriteTracks.remove(musicId); in setFavorite() 165 public boolean isFavorite(String musicId) { in isFavorite() argument 166 return mFavoriteTracks.contains(musicId); in isFavorite() 232 String musicId = item.getString(MediaMetadata.METADATA_KEY_MEDIA_ID); in retrieveMedia() local [all …]
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | MusicService.java | 443 String musicId = track.getString(MediaMetadata.METADATA_KEY_MEDIA_ID); in onCustomAction() local 444 mMusicProvider.setFavorite(musicId, !mMusicProvider.isFavorite(musicId)); in onCustomAction() 543 String musicId = MediaIDHelper.extractMusicIDFromMediaID( in updateMetadata() local 545 MediaMetadata track = mMusicProvider.getMusic(musicId); in updateMetadata() 547 if (!musicId.equals(trackId)) { in updateMetadata() 550 " musicId=", musicId, " trackId=", trackId, in updateMetadata() 560 LogHelper.d(TAG, "Updating metadata for MusicID= " + musicId); in updateMetadata() 643 String musicId = currentMusic.getString(MediaMetadata.METADATA_KEY_MEDIA_ID); in setCustomAction() local 645 if (mMusicProvider.isFavorite(musicId)) { in setCustomAction() 649 musicId, " current favorite=", mMusicProvider.isFavorite(musicId)); in setCustomAction()
|