Lines Matching refs:mPlayingQueue
131 private List<MediaSession.QueueItem> mPlayingQueue; field in MusicService
149 mPlayingQueue = new ArrayList<>(); in onCreate()
327 if (mPlayingQueue == null || mPlayingQueue.isEmpty()) { in onPlay()
328 mPlayingQueue = QueueHelper.getRandomQueue(mMusicProvider); in onPlay()
329 mSession.setQueue(mPlayingQueue); in onPlay()
335 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onPlay()
344 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onSkipToQueueItem()
346 mCurrentIndexOnQueue = QueueHelper.getMusicIndexOnQueue(mPlayingQueue, queueId); in onSkipToQueueItem()
367 mPlayingQueue = QueueHelper.getPlayingQueue(mediaId, mMusicProvider); in onPlayFromMediaId()
368 mSession.setQueue(mPlayingQueue); in onPlayFromMediaId()
373 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onPlayFromMediaId()
375 mCurrentIndexOnQueue = QueueHelper.getMusicIndexOnQueue(mPlayingQueue, mediaId); in onPlayFromMediaId()
403 if (mPlayingQueue != null && mCurrentIndexOnQueue >= mPlayingQueue.size()) { in onSkipToNext()
408 if (QueueHelper.isIndexPlayable(mCurrentIndexOnQueue, mPlayingQueue)) { in onSkipToNext()
413 (mPlayingQueue == null ? "null" : mPlayingQueue.size())); in onSkipToNext()
422 if (mPlayingQueue != null && mCurrentIndexOnQueue < 0) { in onSkipToPrevious()
427 if (QueueHelper.isIndexPlayable(mCurrentIndexOnQueue, mPlayingQueue)) { in onSkipToPrevious()
432 (mPlayingQueue == null ? "null" : mPlayingQueue.size())); in onSkipToPrevious()
462 mPlayingQueue = QueueHelper.getRandomQueue(mMusicProvider); in onPlayFromSearch()
464 mPlayingQueue = QueueHelper.getPlayingQueueFromSearch(query, mMusicProvider); in onPlayFromSearch()
467 LogHelper.d(TAG, "playFromSearch playqueue.length=" + mPlayingQueue.size()); in onPlayFromSearch()
468 mSession.setQueue(mPlayingQueue); in onPlayFromSearch()
470 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onPlayFromSearch()
502 if (QueueHelper.isIndexPlayable(mCurrentIndexOnQueue, mPlayingQueue)) { in handlePlayRequest()
504 mPlayback.play(mPlayingQueue.get(mCurrentIndexOnQueue)); in handlePlayRequest()
537 if (!QueueHelper.isIndexPlayable(mCurrentIndexOnQueue, mPlayingQueue)) { in updateMetadata()
542 MediaSession.QueueItem queueItem = mPlayingQueue.get(mCurrentIndexOnQueue); in updateMetadata()
571 MediaSession.QueueItem queueItem = mPlayingQueue.get(mCurrentIndexOnQueue); in updateMetadata()
627 if (QueueHelper.isIndexPlayable(mCurrentIndexOnQueue, mPlayingQueue)) { in updatePlaybackState()
628 MediaSession.QueueItem item = mPlayingQueue.get(mCurrentIndexOnQueue); in updatePlaybackState()
658 if (mPlayingQueue == null || mPlayingQueue.isEmpty()) { in getAvailableActions()
667 if (mCurrentIndexOnQueue < mPlayingQueue.size() - 1) { in getAvailableActions()
674 if (QueueHelper.isIndexPlayable(mCurrentIndexOnQueue, mPlayingQueue)) { in getCurrentPlayingMusic()
675 MediaSession.QueueItem item = mPlayingQueue.get(mCurrentIndexOnQueue); in getCurrentPlayingMusic()
693 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onCompletion()
696 if (mCurrentIndexOnQueue >= mPlayingQueue.size()) { in onCompletion()