Lines Matching defs:queue
31 * Utility class to help on queue related tasks.
45 LogHelper.e(TAG, "Could not build a playing queue for this mediaId: ", mediaId);
50 LogHelper.e(TAG, "Creating playing queue for musics of genre ", categoryValue);
52 List<MediaSession.QueueItem> queue = convertToQueue(
55 return queue;
61 LogHelper.e(TAG, "Creating playing queue for musics from search ", query);
67 public static final int getMusicIndexOnQueue(Iterable<MediaSession.QueueItem> queue,
70 for (MediaSession.QueueItem item: queue) {
79 public static final int getMusicIndexOnQueue(Iterable<MediaSession.QueueItem> queue,
82 for (MediaSession.QueueItem item: queue) {
93 List<MediaSession.QueueItem> queue = new ArrayList<>();
97 // queueId. Any other number unique in the queue would work.
100 queue.add(item);
102 return queue;
107 * Create a random queue. For simplicity sake, instead of a random queue, we create a
108 * queue using the first genre,
126 public static final boolean isIndexPlayable(int index, List<MediaSession.QueueItem> queue) {
127 return (queue != null && index >= 0 && index < queue.size());