Home
last modified time | relevance | path

Searched refs:hasQueue (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Media/src/com/android/car/media/
DPlaybackFragment.java657 getPlaybackViewModel().hasQueue().observe(getViewLifecycleOwner(), hasQueue -> { in initQueue()
658 boolean enableQueue = (hasQueue != null) && hasQueue; in initQueue()
707 private void updateAppBarMenu(boolean hasQueue) { in updateAppBarMenu() argument
708 if (hasQueue && mQueueMenuItem == null) { in updateAppBarMenu()
716 hasQueue ? Collections.singletonList(mQueueMenuItem) : Collections.emptyList()); in updateAppBarMenu()
719 private void setQueueState(boolean hasQueue, boolean visible) { in setQueueState() argument
720 if (mHasQueue != hasQueue) { in setQueueState()
721 mHasQueue = hasQueue; in setQueueState()
722 updateAppBarMenu(hasQueue); in setQueueState()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DPlaybackViewModelTest.java160 mPlaybackViewModel.hasQueue().observe(mLifecycleOwner, observer); in testGetHasQueue_null()
175 mPlaybackViewModel.hasQueue().observe(mLifecycleOwner, observer); in testGetHasQueue_empty()
191 mPlaybackViewModel.hasQueue().observe(mLifecycleOwner, observer); in testGetHasQueue_true()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java194 public LiveData<Boolean> hasQueue() { in hasQueue() method in PlaybackViewModel