Home
last modified time | relevance | path

Searched refs:artist (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java96 Artist artist = new Artist(id); in load() local
97 artists.add(artist); in load()
129 Artist artist = Collections.find(artists, artistId, Artist::getId); in load() local
130 album.setArtist(artist); in load()
168 Artist artist = Collections.find(artists, artistId, Artist::getId); in load() local
169 audio.setArtist(artist); in load()
170 artist.addAudio(audio); in load()
267 Artist artist = mMediaProvider.getArtistById(artistId); in loadData() local
268 updated |= audio.setArtist(artist); in loadData()
269 updated |= loadData(artist); // TODO(b/123707561) Load separate from audio in loadData()
[all …]
DMediaDb.java261 public void loadData(@NonNull Artist artist) { in loadData() argument
263 if (artist.isLoaded()) return; in loadData()
267 boolean updated = mDataProvider.populateArtist(artist); in loadData()
269 updated |= mAudioStore.loadData(artist); in loadData()
271 artist.setLoaded(); in loadData()
273 Executors.uiThreadExecutor().execute(() -> updateArtist(artist)); in loadData()
276 Clog.e(TAG, "Search for " + artist + " failed", e); in loadData()
418 for (Artist artist : mArtists) { in getArtistById()
419 if (artist.getId() == id) { in getArtistById()
420 return artist; in getArtistById()
[all …]
DAudio.java67 boolean setArtist(@NonNull Artist artist) { in setArtist() argument
68 if (artist.equals(mArtist)) { in setArtist()
71 mArtist = artist; in setArtist()
DAlbum.java93 boolean setArtist(@NonNull Artist artist) { in setArtist() argument
94 if (artist.equals(mArtist)) { in setArtist()
97 mArtist = artist; in setArtist()
DDataProvider.java25 boolean populateArtist(@NonNull Artist artist) throws IOException; in populateArtist() argument
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DArtistFragment.java110 Artist artist = mArtists.get(position - 1); in onBindViewHolder() local
111 mMediaDb.loadData(artist); // TODO Where should we call this? In bind()? in onBindViewHolder()
112 ((ArtistViewHolder) holder).bind(artist); in onBindViewHolder()
128 return position == 0 ? R.layout.header : R.layout.artist; in getItemViewType()
152 private void bind(@NonNull Artist artist) { in bind() argument
157 if (artist.getHeadshotUri() == null) { in bind()
159 List<Album> albums = artist.getAlbums(); in bind()
167 artUri = artist.getHeadshotUri(); in bind()
170 nameView.setText(artist.getName()); in bind()
173 ArtistDetailsActivity.start(view.getContext(), artist)); in bind() local
DPlaylistFragment.java176 Artist artist = audio.getArtist(); in bind() local
177 if (artist != null && artist.getName() != null) { in bind()
178 artistNames.add(artist.getName()); in bind()
DAudioFragment.java151 Artist artist = audio.getArtist(); in bind() local
152 artistView.setText(artist == null ? null : artist.getName()); in bind()
DAlbumFragment.java158 Artist artist = album.getArtist(); in bind() local
159 artistView.setText(artist == null ? null : artist.getName()); in bind()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java69 String artist = "Bluetooth"; in buildAvrcpItem() local
87 builder.setArtistName(artist); in buildAvrcpItem()
105 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItem()
116 String artist = "Bluetooth"; in buildAvrcpItemFromAvrcpAttributes() local
137 artist, in buildAvrcpItemFromAvrcpAttributes()
157 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItemFromAvrcpAttributes()
168 String artist = "Bluetooth"; in buildAvrcpItemFromAvrcpAttributesWithBadIds_badIdsIgnored() local
193 artist, in buildAvrcpItemFromAvrcpAttributesWithBadIds_badIdsIgnored()
217 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItemFromAvrcpAttributesWithBadIds_badIdsIgnored()
243 String artist = "Bluetooth"; in avrcpMediaItem_toMediaMetadata() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DMetadata.java24 public String artist; field in Metadata
36 data.artist = artist; in clone()
52 if (!Objects.equals(artist, m.artist)) return false; in equals()
59 return "{ mediaId=\"" + mediaId + "\" title=\"" + title + "\" artist=\"" + artist in toString()
DUtil.java44 ret.artist = ""; in empty_data()
58 temp.artist = bundle.getString(MediaMetadata.METADATA_KEY_ARTIST, ""); in bundleToMetadata()
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/
DProgramInfoExt.java142 String artist = meta.getString(RadioMetadata.METADATA_KEY_ARTIST); in toMediaMetadata() local
143 if (artist != null) { in toMediaMetadata()
144 bld.putString(MediaMetadata.METADATA_KEY_ARTIST, artist); in toMediaMetadata()
150 if (title != null || artist != null) { in toMediaMetadata()
153 subtitle = artist; in toMediaMetadata()
154 } else if (artist == null) { in toMediaMetadata()
157 subtitle = title + TITLE_SEPARATOR + artist; in toMediaMetadata()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DArtistDetailsActivity.java51 public static void start(@NonNull Context context, @NonNull Artist artist) { in start() argument
54 intent.putExtra("id", artist.getId()); // TODO Add constant key in start()
111 Artist artist = mMediaDb.getArtists().get(i); in onItemsUpdated() local
112 if (artist.equals(mArtist)) { in onItemsUpdated()
174 private ArtistAdapter(@NonNull MediaDb mediaDb, @NonNull Artist artist) { in ArtistAdapter() argument
177 mArtist = artist; in ArtistAdapter()
215 private void bind(@NonNull Artist artist, @NonNull Audio audio) { in bind() argument
223 artistView.setText(artist.getName()); in bind()
DGenreDetailsActivity.java212 Artist artist = audio.getArtist(); in bind() local
213 artistView.setText(artist == null ? null : artist.getName()); in bind()
DAlbumDetailsActivity.java210 Artist artist = audio.getArtist(); in bind() local
211 artistView.setText(artist == null ? null : artist.getName()); in bind()
DPlaylistDetailsActivity.java261 Artist artist = audio.getArtist(); in bind() local
262 artistView.setText(artist == null ? null : artist.getName()); in bind()
DAudioPlayerActivity.java72 public static void start(@NonNull Context context, @NonNull Artist artist) { in start() argument
75 artist.getId()); in start()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMetadataController.java91 @Nullable TextView artist, @Nullable TextView albumTitle, in MetadataController() argument
105 ViewUtils.setVisible(artist, false); in MetadataController()
117 if (artist != null) { in MetadataController()
119 artist.setText(artistName); in MetadataController()
120 ViewUtils.setVisible(artist, !TextUtils.isEmpty(artistName)); in MetadataController()
DMediaItemMetadata.java103 boolean isPlayable, String albumTitle, String artist) { in MediaItemMetadata() argument
109 mArtist = artist; in MediaItemMetadata()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/
DKnowledgeGraph.java57 public boolean populateArtist(@NonNull Artist artist) throws IOException { in populateArtist() argument
60 JSONObject result = getResultFromKG(artist.getName(), "Person", "MusicGroup"); in populateArtist()
64 updated |= artist.setHeadshotUri(Uri.parse(imageUrl)); in populateArtist()
68 updated |= artist.setDescription(detailedDescription); in populateArtist()
/packages/apps/Car/Media/src/com/android/car/media/
DPlaybackFragment.java541 TextView artist = view.findViewById(R.id.artist); in initMetadataController() local
551 getPlaybackViewModel(), title, artist, albumTitle, outerSeparator, in initMetadataController()
/packages/providers/MediaProvider/tests/res/raw/
Dtest_m3u.m3u3 #EXTINF:123, Sample artist - Sample title
/packages/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt133 val artist: String = cursor.getString(artistIdx) in onCreate() constant
134 mTextLine2.setText(artist) in onCreate()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java146 String artist = cursor.getString(artistIdx); in onCreate()
147 mTextLine2.setText(artist); in onCreate()

12