Searched refs:playlist (Results 1 – 14 of 14) sorted by relevance
204 Playlist playlist = new Playlist(); in saveState() local205 playlist.songs = new Song[mQueue.size()]; in saveState()217 playlist.songs[idx] = song; in saveState()220 playlist.currentQueueId = mQueue.get(mCurrentQueueIdx).getQueueId(); in saveState()221 playlist.currentSongPosition = mMediaPlayer.getCurrentPosition(); in saveState()222 playlist.name = CURRENT_PLAYLIST_KEY; in saveState()228 String serialized = Base64.getEncoder().encodeToString(MessageNano.toByteArray(playlist)); in saveState()234 private boolean maybeRebuildQueue(Playlist playlist) { in maybeRebuildQueue() argument240 for (Song song : playlist.songs) { in maybeRebuildQueue()246 if (playlist.currentQueueId == song.queueId) { in maybeRebuildQueue()[all …]
201 Playlist playlist = new Playlist(id); in load() local202 playlists.add(playlist); in load()388 boolean loadData(@NonNull Playlist playlist) { in loadData() argument394 String[] selectionArgs = { Long.toString(playlist.getId()) }; in loadData()404 updated |= playlist.setName(name); in loadData()412 updated |= loadAudios(playlist); // TODO(b/123707561) Load separate from playlist in loadData()477 boolean loadAudios(@NonNull Playlist playlist) { in loadAudios() argument482 "external", playlist.getId()); in loadAudios()493 updated |= playlist.addAudio(audio); in loadAudios()533 private void addToPlaylist(@NonNull Playlist playlist, @NonNull Audio audio) { in addToPlaylist() argument[all …]
315 public void loadData(@NonNull Playlist playlist) { in loadData() argument317 if (playlist.isLoaded()) return; in loadData()320 boolean updated = mAudioStore.loadData(playlist); in loadData()322 playlist.setLoaded(); in loadData()324 Executors.uiThreadExecutor().execute(() -> updatePlaylist(playlist)); in loadData()448 for (Playlist playlist : mPlaylists) { in getPlaylistById()449 if (playlist.getId() == id) { in getPlaylistById()450 return playlist; in getPlaylistById()684 private void updatePlaylist(@NonNull Playlist playlist) { in updatePlaylist() argument685 int index = mPlaylists.indexOf(playlist); in updatePlaylist()
55 public static void start(@NonNull Context context, @NonNull Playlist playlist) { in start() argument58 intent.putExtra("id", playlist.getId()); // TODO Add constant key in start()115 Playlist playlist = mMediaDb.getPlaylists().get(i); in onItemsUpdated() local116 if (playlist.equals(mPlaylist)) { in onItemsUpdated()212 private PlaylistAdapter(@NonNull MediaDb mediaDb, @NonNull Playlist playlist) { in PlaylistAdapter() argument215 mPlaylist = playlist; in PlaylistAdapter()253 private void bind(@NonNull Playlist playlist, @NonNull Audio audio) { in bind() argument265 AudioPlayerActivity.start(view.getContext(), playlist, getAdapterPosition())); in bind() local
91 public static void start(@NonNull Context context, @NonNull Playlist playlist) { in start() argument94 playlist.getId()); in start()102 public static void start(@NonNull Context context, @NonNull Playlist playlist, int position) { in start() argument105 playlist.getId()).buildUpon() in start()
116 Playlist playlist = mPlaylists.get(position - 1); in onBindViewHolder() local117 mMediaDb.loadData(playlist); // TODO Where should we call this? In bind()? in onBindViewHolder()118 ((PlaylistViewHolder) holder).bind(playlist); in onBindViewHolder()134 return position == 0 ? R.layout.header : R.layout.playlist; in getItemViewType()158 private void bind(@NonNull Playlist playlist) { in bind() argument169 List<Audio> audios = playlist.getAudios(); in bind()213 titleView.setText(playlist.getName()); in bind()218 PlaylistDetailsActivity.start(view.getContext(), playlist)); in bind() local
1 [playlist]
4990 long playlist = Long.parseLong(segments.get(3)); in updateInternal() local4992 … int rowsChanged = movePlaylistEntry(volumeName, helper, db, playlist, oldpos, newpos); in updateInternal()4994 updatePlaylistDateModifiedToNow(db, playlist); in updateInternal()5043 long playlist, int from, int to) { in movePlaylistEntry() argument5053 "playlist_id=?", new String[] {"" + playlist}, null, null, "play_order", in movePlaylistEntry()5060 "playlist_id=?", new String[] {"" + playlist}, null, null, "play_order", in movePlaylistEntry()5066 " AND playlist_id=" + playlist); in movePlaylistEntry()5074 " AND playlist_id=" + playlist); in movePlaylistEntry()5080 " AND playlist_id=" + playlist); in movePlaylistEntry()5084 " WHERE play_order=-1 AND playlist_id=" + playlist); in movePlaylistEntry()[all …]
1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...
1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...