Home
last modified time | relevance | path

Searched refs:visibleMediaIndex (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaCarouselScrollHandler.kt107 var visibleMediaIndex: Int = 0 variable in com.android.systemui.media.MediaCarouselScrollHandler
135 var newRelativeScroll = visibleMediaIndex * playerWidthPlusPadding
474 if (newIndex != visibleMediaIndex || wasScrolledIn != nowScrolledIn) { in onMediaScrollingChanged()
475 val oldIndex = visibleMediaIndex in onMediaScrollingChanged()
476 visibleMediaIndex = newIndex in onMediaScrollingChanged()
477 if (oldIndex != visibleMediaIndex && visibleToUser) { in onMediaScrollingChanged()
483 val relativeLocation = visibleMediaIndex.toFloat() + if (playerWidthPlusPadding > 0) in onMediaScrollingChanged()
521 val visible = (i == visibleMediaIndex) || ((i == (visibleMediaIndex + 1)) && scrolledIn) in updatePlayerVisibilities()
535 val beforeActive = removedIndex <= visibleMediaIndex in onPrePlayerRemoved()
537 visibleMediaIndex = Math.max(0, visibleMediaIndex - 1) in onPrePlayerRemoved()
DMediaCarouselController.kt260 mediaCarouselScrollHandler.visibleMediaIndex == in <lambda>()
358 .elementAtOrNull(mediaCarouselScrollHandler.visibleMediaIndex) in <lambda>()
417 .elementAtOrNull(mediaCarouselScrollHandler.visibleMediaIndex) in <lambda>()
687 val visibleMediaIndex = mediaCarouselScrollHandler.visibleMediaIndex in <lambda>() constant
688 if (MediaPlayerData.players().size > visibleMediaIndex) { in <lambda>()
689 val mediaControlPanel = MediaPlayerData.players().elementAt(visibleMediaIndex) in <lambda>()
710 rank: Int = mediaCarouselScrollHandler.visibleMediaIndex in <lambda>()
745 val visibleMediaIndex = mediaCarouselScrollHandler.visibleMediaIndex in <lambda>() constant
746 if (MediaPlayerData.players().size > visibleMediaIndex) { in <lambda>()
747 val player = MediaPlayerData.players().elementAt(visibleMediaIndex) in <lambda>()