Home
last modified time | relevance | path

Searched refs:MediaCommonModel (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/data/repository/
DMediaFilterRepositoryTest.kt28 import com.android.systemui.media.controls.shared.model.MediaCommonModel
175 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(playingInstanceId)), in addMediaControlPlayingThenRemote()
176 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(remoteInstanceId)) in addMediaControlPlayingThenRemote()
198 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(playingInstanceId1)), in switchMediaControlsPlaying()
199 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(playingInstanceId2)) in switchMediaControlsPlaying()
216 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(playingInstanceId1)), in switchMediaControlsPlaying()
217 MediaCommonModel.MediaControl( in switchMediaControlsPlaying()
228 MediaCommonModel.MediaControl( in switchMediaControlsPlaying()
231 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(playingInstanceId1)) in switchMediaControlsPlaying()
282 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(instanceId1)), in fullOrderTest()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/data/repository/
DMediaFilterRepository.kt24 import com.android.systemui.media.controls.shared.model.MediaCommonModel in <lambda>()
110 private val _currentMedia: MutableStateFlow<List<MediaCommonModel>> = in <lambda>()
114 private var sortedMedia = TreeMap<MediaSortKeyModel, MediaCommonModel>(comparator) in <lambda>()
184 val sortedMap = TreeMap<MediaSortKeyModel, MediaCommonModel>(comparator) in <lambda>()
187 commonModel !is MediaCommonModel.MediaControl || in <lambda>()
208 MediaCommonModel.MediaControl( in <lambda>()
226 mutableListOf<MediaCommonModel>().apply { addAll(_currentMedia.value) } in <lambda>()
229 mediaCommonModel is MediaCommonModel.MediaControl && in <lambda>()
249 commonModel !is MediaCommonModel.MediaControl || in <lambda>()
261 val sortedMap = TreeMap<MediaSortKeyModel, MediaCommonModel>(comparator) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/shared/model/
DMediaCommonModel.kt20 sealed class MediaCommonModel { class
25 ) : MediaCommonModel()
28 MediaCommonModel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DMediaCarouselViewModel.kt26 import com.android.systemui.media.controls.shared.model.MediaCommonModel in <lambda>()
67 is MediaCommonModel.MediaControl -> add(toViewModel(commonModel)) in <lambda>()
68 is MediaCommonModel.MediaRecommendations -> in <lambda>()
97 private var modelsPendingRemoval: MutableSet<MediaCommonModel> = mutableSetOf() in <lambda>()
112 commonModel: MediaCommonModel.MediaControl in <lambda>()
144 commonModel: MediaCommonModel.MediaRecommendations in <lambda>()
176 commonModel: MediaCommonModel.MediaControl in <lambda>()
205 commonModel: MediaCommonModel.MediaRecommendations, in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/domain/interactor/
DMediaCarouselInteractorTest.kt36 import com.android.systemui.media.controls.shared.model.MediaCommonModel
142 .containsExactly(MediaCommonModel.MediaRecommendations(recsLoadingModel)) in addActiveRecommendation_inactiveMedia()
152 MediaCommonModel.MediaRecommendations(recsLoadingModel), in addActiveRecommendation_inactiveMedia()
153 MediaCommonModel.MediaControl(mediaLoadingModel, true) in addActiveRecommendation_inactiveMedia()
238 .containsExactly(MediaCommonModel.MediaRecommendations(smartspaceLoadingModel)) in loadMediaFromRec()
246 MediaCommonModel.MediaControl(mediaLoadingModel, isMediaFromRec = true), in loadMediaFromRec()
247 MediaCommonModel.MediaRecommendations(smartspaceLoadingModel) in loadMediaFromRec()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataFilterImplTest.kt32 import com.android.systemui.media.controls.shared.model.MediaCommonModel
177 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(dataMain.instanceId)) in onDataLoadedForCurrentUser_updatesLoadedStates()
193 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(dataMain.instanceId)) in onDataLoadedForGuest_doesNotUpdateLoadedStates()
208 MediaCommonModel.MediaControl(MediaDataLoadingModel.Loaded(dataMain.instanceId)) in onRemovedForCurrent_updatesLoadedStates()
250 assertThat(currentMedia).containsExactly(MediaCommonModel.MediaControl(mediaLoaded)) in onUserSwitched_removesOldUserControls()
296 .containsExactly(MediaCommonModel.MediaControl(guestLoadedStatesModel)) in onUserSwitched_addsNewUserControls()
298 .doesNotContain(MediaCommonModel.MediaControl(mainLoadedStatesModel)) in onUserSwitched_addsNewUserControls()
318 .containsExactly(MediaCommonModel.MediaControl(mediaLoadedStatesModel)) in onProfileChanged_profileUnavailable_updateStates()
554 .containsExactly(MediaCommonModel.MediaRecommendations(recommendationsLoadingModel)) in onSmartspaceMediaDataLoaded_noMedia_activeValidRec_prioritizesSmartspace()
612 MediaCommonModel.MediaRecommendations( in onSmartspaceMediaDataLoaded_noRecentMedia_activeValidRec_prioritizesSmartspace()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/interactor/
DMediaCarouselInteractor.kt37 import com.android.systemui.media.controls.shared.model.MediaCommonModel in <lambda>()
104 val currentMedia: StateFlow<List<MediaCommonModel>> = mediaFilterRepository.currentMedia in <lambda>()