Searched refs:MediaCommonViewModel (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/util/ |
D | MediaViewModelCallback.kt | 20 import com.android.systemui.media.controls.ui.viewmodel.MediaCommonViewModel 24 private val old: List<MediaCommonViewModel>, 25 private val new: List<MediaCommonViewModel>, 40 oldItem is MediaCommonViewModel.MediaControl && in areItemsTheSame() 41 newItem is MediaCommonViewModel.MediaControl in areItemsTheSame() 45 oldItem is MediaCommonViewModel.MediaRecommendations && in areItemsTheSame() 46 newItem is MediaCommonViewModel.MediaRecommendations in areItemsTheSame() 54 oldItem is MediaCommonViewModel.MediaControl && in areContentsTheSame() 55 newItem is MediaCommonViewModel.MediaControl in areContentsTheSame() 59 oldItem is MediaCommonViewModel.MediaRecommendations && in areContentsTheSame() [all …]
|
D | MediaViewModelListUpdateCallback.kt | 20 import com.android.systemui.media.controls.ui.viewmodel.MediaCommonViewModel 24 private val old: List<MediaCommonViewModel>, 25 private val new: List<MediaCommonViewModel>, 26 private val onAdded: (MediaCommonViewModel, Int) -> Unit, 27 private val onUpdated: (MediaCommonViewModel) -> Unit, 28 private val onRemoved: (MediaCommonViewModel) -> Unit, 29 private val onMoved: (MediaCommonViewModel, Int, Int) -> Unit,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/ |
D | MediaCommonViewModel.kt | 22 sealed class MediaCommonViewModel { class 24 abstract val onAdded: (MediaCommonViewModel) -> Unit 26 abstract val onUpdated: (MediaCommonViewModel) -> Unit 32 override val onAdded: (MediaCommonViewModel) -> Unit, 34 override val onUpdated: (MediaCommonViewModel) -> Unit, 36 ) : MediaCommonViewModel() 42 override val onAdded: (MediaCommonViewModel) -> Unit, 44 override val onUpdated: (MediaCommonViewModel) -> Unit, 45 ) : MediaCommonViewModel()
|
D | MediaCarouselViewModel.kt | 57 val mediaItems: StateFlow<List<MediaCommonViewModel>> = in <lambda>() 93 mutableMapOf<InstanceId, MediaCommonViewModel.MediaControl>() in <lambda>() 95 private var mediaRecs: MediaCommonViewModel.MediaRecommendations? = null in <lambda>() 113 ): MediaCommonViewModel.MediaControl { in <lambda>() 118 ?: MediaCommonViewModel.MediaControl( in <lambda>() 145 ): MediaCommonViewModel.MediaRecommendations { in <lambda>() 151 ?: MediaCommonViewModel.MediaRecommendations( in <lambda>() 159 commonViewModel as MediaCommonViewModel.MediaRecommendations in <lambda>() 167 commonViewModel as MediaCommonViewModel.MediaRecommendations in <lambda>() 175 commonViewModel: MediaCommonViewModel, in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/ui/viewmodel/ |
D | MediaCarouselViewModelTest.kt | 99 var mediaControl2 = sortedMedia?.get(0) as MediaCommonViewModel.MediaControl in loadMediaControls_mediaItemsAreUpdated() 100 var mediaControl1 = sortedMedia?.get(1) as MediaCommonViewModel.MediaControl in loadMediaControls_mediaItemsAreUpdated() 107 mediaControl2 = sortedMedia?.get(0) as MediaCommonViewModel.MediaControl in loadMediaControls_mediaItemsAreUpdated() 108 mediaControl1 = sortedMedia?.get(1) as MediaCommonViewModel.MediaControl in loadMediaControls_mediaItemsAreUpdated() 114 mediaControl1 = sortedMedia?.get(0) as MediaCommonViewModel.MediaControl in loadMediaControls_mediaItemsAreUpdated() 115 mediaControl2 = sortedMedia?.get(1) as MediaCommonViewModel.MediaControl in loadMediaControls_mediaItemsAreUpdated() 132 val firstMediaControl = sortedMedia?.get(0) as MediaCommonViewModel.MediaControl in loadMediaControlsAndRecommendations_mediaItemsAreUpdated() 133 val secondMediaControl = sortedMedia?.get(1) as MediaCommonViewModel.MediaControl in loadMediaControlsAndRecommendations_mediaItemsAreUpdated() 134 val recsCard = sortedMedia?.get(2) as MediaCommonViewModel.MediaRecommendations in loadMediaControlsAndRecommendations_mediaItemsAreUpdated() 151 var recsCard = sortedMedia?.get(0) as MediaCommonViewModel.MediaRecommendations in recommendationClicked_switchToPlayer() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/ui/util/ |
D | MediaDiffUtilTest.kt | 24 import com.android.systemui.media.controls.ui.viewmodel.MediaCommonViewModel in <lambda>() 42 val oldList = listOf<MediaCommonViewModel>() in <lambda>() 61 val oldList = listOf<MediaCommonViewModel>() in <lambda>() 160 val newList = listOf<MediaCommonViewModel>() in <lambda>() 179 val newList = listOf<MediaCommonViewModel>() in <lambda>() 197 ): MediaCommonViewModel.MediaControl { in <lambda>() 198 return MediaCommonViewModel.MediaControl( in <lambda>() 211 ): MediaCommonViewModel.MediaRecommendations { in <lambda>() 212 return MediaCommonViewModel.MediaRecommendations( in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/ |
D | MediaCarouselController.kt | 69 import com.android.systemui.media.controls.ui.viewmodel.MediaCommonViewModel in <lambda>() 324 private val controllerByViewModel = mutableMapOf<MediaCommonViewModel, MediaViewController>() in <lambda>() 325 private val commonViewModels = mutableListOf<MediaCommonViewModel>() in <lambda>() 725 private fun onAdded(commonViewModel: MediaCommonViewModel, position: Int) { in <lambda>() 734 is MediaCommonViewModel.MediaControl -> { in <lambda>() 753 is MediaCommonViewModel.MediaRecommendations -> { in <lambda>() 772 commonViewModel is MediaCommonViewModel.MediaControl && commonViewModel.isMediaFromRec in <lambda>() 784 private fun onUpdated(commonViewModel: MediaCommonViewModel) { in <lambda>() 790 private fun onRemoved(commonViewModel: MediaCommonViewModel) { in <lambda>() 793 is MediaCommonViewModel.MediaControl -> { in <lambda>() [all …]
|