Lines Matching defs:queue
33 * Utility class to help on queue related tasks.
46 LogHelper.e(TAG, "Could not build a playing queue for this mediaId: ", mediaId);
52 LogHelper.d(TAG, "Creating playing queue for ", categoryType, ", ", categoryValue);
73 LogHelper.d(TAG, "Creating playing queue for musics from search ", query);
79 public static int getMusicIndexOnQueue(Iterable<MediaSession.QueueItem> queue,
82 for (MediaSession.QueueItem item : queue) {
91 public static int getMusicIndexOnQueue(Iterable<MediaSession.QueueItem> queue,
94 for (MediaSession.QueueItem item : queue) {
105 List<MediaSession.QueueItem> queue = new ArrayList<>();
109 // We create a hierarchy-aware mediaID, so we know what the queue is about by looking
119 // queueId. Any other number unique in the queue would work.
122 queue.add(item);
124 return queue;
129 * Create a random queue. For simplicity sake, instead of a random queue, we create a
130 * queue using the first genre.
146 public static boolean isIndexPlayable(int index, List<MediaSession.QueueItem> queue) {
147 return (queue != null && index >= 0 && index < queue.size());