Home
last modified time | relevance | path

Searched refs:MediaData (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/data/repository/
DMediaFilterRepository.kt25 import com.android.systemui.media.controls.shared.model.MediaData in <lambda>()
86 private val _selectedUserEntries: MutableStateFlow<Map<InstanceId, MediaData>> = in <lambda>()
88 val selectedUserEntries: StateFlow<Map<InstanceId, MediaData>> = in <lambda>()
91 private val _allUserEntries: MutableStateFlow<Map<String, MediaData>> = in <lambda>()
93 val allUserEntries: StateFlow<Map<String, MediaData>> = _allUserEntries.asStateFlow() in <lambda>()
97 it.isPlaying == true && it.playbackLocation == MediaData.PLAYBACK_LOCAL in <lambda>()
100 it.isPlaying == true && it.playbackLocation == MediaData.PLAYBACK_CAST_LOCAL in <lambda>()
105 .thenByDescending { it.playbackLocation != MediaData.PLAYBACK_CAST_REMOTE } in <lambda>()
118 fun addMediaEntry(key: String, data: MediaData) { in <lambda>()
119 val entries = LinkedHashMap<String, MediaData>(_allUserEntries.value) in <lambda>()
[all …]
DMediaDataRepository.kt23 import com.android.systemui.media.controls.shared.model.MediaData
44 private val _mediaEntries: MutableStateFlow<Map<String, MediaData>> =
46 val mediaEntries: StateFlow<Map<String, MediaData>> = _mediaEntries.asStateFlow()
106 fun removeMediaEntry(key: String): MediaData? { in removeMediaEntry()
107 val entries = LinkedHashMap<String, MediaData>(_mediaEntries.value) in removeMediaEntry()
113 fun addMediaEntry(key: String, data: MediaData): MediaData? { in addMediaEntry()
114 val entries = LinkedHashMap<String, MediaData>(_mediaEntries.value) in addMediaEntry()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataCombineLatestTest.java36 import com.android.systemui.media.controls.shared.model.MediaData;
70 private MediaData mMediaData;
78 mMediaData = new MediaData( in setUp()
81 MediaData.PLAYBACK_LOCAL, false, KEY, false, false, false, 0L, 0L, in setUp()
113 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in emitEventAfterDeviceFirst()
127 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in emitEventAfterMediaFirst()
144 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in migrateKeyMediaFirst()
160 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in migrateKeyDeviceFirst()
178 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in migrateKeyMediaAfter()
196 ArgumentCaptor<MediaData> captor = ArgumentCaptor.forClass(MediaData.class); in migrateKeyDeviceAfter()
[all …]
DMediaSessionBasedFilterTest.kt28 import com.android.systemui.media.controls.shared.model.MediaData
91 private lateinit var mediaData1: MediaData
92 private lateinit var mediaData2: MediaData
93 private lateinit var mediaData3: MediaData
94 private lateinit var mediaData4: MediaData
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/data/repository/
DMediaFilterRepositoryTest.kt29 import com.android.systemui.media.controls.shared.model.MediaData
54 val userMedia = MediaData().copy(active = true, instanceId = instanceId) in addSelectedUserMediaEntry_activeThenInactivate()
76 val userMedia = MediaData().copy(instanceId = instanceId) in addSelectedUserMediaEntry_thenRemove_returnsBoolean()
95 val userMedia = MediaData().copy(instanceId = instanceId) in addSelectedUserMediaEntry_thenRemove_returnsValue()
109 val userMedia = MediaData().copy(active = true) in addAllUserMediaEntry_activeThenInactivate()
126 val userMedia = MediaData() in addAllUserMediaEntry_thenRemove_returnsValue()
301 MediaData( in loadMediaFromRec()
309 MediaData( in loadMediaFromRec()
374 ): MediaData { in createMediaData()
375 return MediaData( in createMediaData()
[all …]
DMediaDataRepositoryTest.kt29 import com.android.systemui.media.controls.shared.model.MediaData
63 val firstData = MediaData().copy(isPlaying = true) in addAndRemoveMediaData()
66 val secondData = MediaData().copy(resumption = true) in addAndRemoveMediaData()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/
DMediaCarouselControllerTest.kt48 import com.android.systemui.media.controls.shared.model.MediaData
222 playbackLocation = MediaData.PLAYBACK_LOCAL, in testPlayerOrdering()
234 playbackLocation = MediaData.PLAYBACK_CAST_LOCAL, in testPlayerOrdering()
246 playbackLocation = MediaData.PLAYBACK_LOCAL, in testPlayerOrdering()
258 playbackLocation = MediaData.PLAYBACK_CAST_LOCAL, in testPlayerOrdering()
270 playbackLocation = MediaData.PLAYBACK_CAST_REMOTE, in testPlayerOrdering()
282 playbackLocation = MediaData.PLAYBACK_CAST_REMOTE, in testPlayerOrdering()
294 playbackLocation = MediaData.PLAYBACK_LOCAL, in testPlayerOrdering()
306 playbackLocation = MediaData.PLAYBACK_LOCAL, in testPlayerOrdering()
318 playbackLocation = MediaData.PLAYBACK_LOCAL, in testPlayerOrdering()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalMediaRepository.kt25 import com.android.systemui.media.controls.shared.model.MediaData
48 data: MediaData, in onMediaDataLoaded()
75 private fun updateMediaModel(data: MediaData? = null) { in updateMediaModel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
DMediaUiEventLogger.kt24 import com.android.systemui.media.controls.shared.model.MediaData
52 MediaData.PLAYBACK_LOCAL -> MediaUiEvent.LOCAL_MEDIA_ADDED in logActiveMediaAdded()
53 MediaData.PLAYBACK_CAST_LOCAL -> MediaUiEvent.CAST_MEDIA_ADDED in logActiveMediaAdded()
54 MediaData.PLAYBACK_CAST_REMOTE -> MediaUiEvent.REMOTE_MEDIA_ADDED in logActiveMediaAdded()
68 MediaData.PLAYBACK_LOCAL -> MediaUiEvent.TRANSFER_TO_LOCAL in logPlaybackLocationChange()
69 MediaData.PLAYBACK_CAST_LOCAL -> MediaUiEvent.TRANSFER_TO_CAST in logPlaybackLocationChange()
70 MediaData.PLAYBACK_CAST_REMOTE -> MediaUiEvent.TRANSFER_TO_REMOTE in logPlaybackLocationChange()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/
DMediaTestUtils.kt20 import com.android.systemui.media.controls.shared.model.MediaData
25 MediaData(
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataCombineLatest.kt19 import com.android.systemui.media.controls.shared.model.MediaData
29 private val entries: MutableMap<String, Pair<MediaData?, MediaDeviceData?>> = mutableMapOf()
34 data: MediaData, in onMediaDataLoaded()
DLegacyMediaDataFilterImpl.kt28 import com.android.systemui.media.controls.shared.model.MediaData in <lambda>()
81 private val allEntries: LinkedHashMap<String, MediaData> = LinkedHashMap() in <lambda>()
83 private val userEntries: LinkedHashMap<String, MediaData> = LinkedHashMap() in <lambda>()
107 data: MediaData, in <lambda>()
354 sortedEntries: SortedMap<String, MediaData> in <lambda>()
DMediaDataManager.kt23 import com.android.systemui.media.controls.shared.model.MediaData
119 data: MediaData, in setInactive()
DMediaSessionBasedFilter.kt28 import com.android.systemui.media.controls.shared.model.MediaData in <lambda>()
98 data: MediaData, in <lambda>()
169 info: MediaData, in <lambda>()
DMediaTimeoutListener.kt26 import com.android.systemui.media.controls.shared.model.MediaData in <lambda>()
123 data: MediaData, in <lambda>()
204 private inner class PlaybackStateListener(var key: String, data: MediaData) : in <lambda>()
232 fun setMediaData(data: MediaData) { in <lambda>()
DMediaDataProcessor.kt80 import com.android.systemui.media.controls.shared.model.MediaData in <lambda>()
331 MediaData() in <lambda>()
423 MediaData() in <lambda>()
483 private fun notifyMediaDataLoaded(key: String, oldKey: String?, info: MediaData) { in <lambda>()
698 MediaData( in <lambda>()
848 if (isRemoteCastNotification(sbn)) MediaData.PLAYBACK_CAST_REMOTE in <lambda>()
853 MediaData.PLAYBACK_LOCAL in <lambda>()
854 else MediaData.PLAYBACK_CAST_LOCAL in <lambda>()
878 MediaData( in <lambda>()
1312 fun onMediaDataLoaded(key: String, oldKey: String?, data: MediaData) = in <lambda>()
[all …]
DLegacyMediaDataManagerImpl.kt77 import com.android.systemui.media.controls.shared.model.MediaData in <lambda>()
116 MediaData( in <lambda>()
222 private val mediaEntries: LinkedHashMap<String, MediaData> = LinkedHashMap()
528 private fun notifyMediaDataLoaded(key: String, oldKey: String?, info: MediaData) { in addInternalListener()
752 MediaData( in loadMediaDataInBgForResumption()
903 if (isRemoteCastNotification(sbn)) MediaData.PLAYBACK_CAST_REMOTE in loadMediaDataInBg()
908 MediaData.PLAYBACK_LOCAL in loadMediaDataInBg()
909 else MediaData.PLAYBACK_CAST_LOCAL in loadMediaDataInBg()
932 MediaData( in loadMediaDataInBg()
1367 fun onMediaDataLoaded(key: String, oldKey: String?, data: MediaData) = in onMediaDataLoaded()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/domain/interactor/
DMediaCarouselInteractorTest.kt37 import com.android.systemui.media.controls.shared.model.MediaData
80 val userMedia = MediaData(active = true) in addUserMediaEntry_activeThenInactivate()
101 val userMedia = MediaData(active = false) in addInactiveUserMediaEntry_thenRemove()
132 val userMedia = MediaData(active = false) in addActiveRecommendation_inactiveMedia()
222 MediaData( in loadMediaFromRec()
DMediaControlInteractorTest.kt40 import com.android.systemui.media.controls.shared.model.MediaData
84 var mediaData = MediaData(userId = USER_ID, instanceId = instanceId, artist = ARTIST) in onMediaDataUpdated()
91 mediaData = MediaData(userId = USER_ID, instanceId = instanceId, artist = ARTIST_2) in onMediaDataUpdated()
99 MediaData( in onMediaDataUpdated()
224 var mediaData = MediaData(userId = USER_ID, instanceId = instanceId, artist = ARTIST) in removeMediaControl()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/ui/viewmodel/
DMediaControlViewModelTest.kt33 import com.android.systemui.media.controls.shared.model.MediaData
91 private fun initMediaData(): MediaData { in initMediaData()
112 return MediaData( in initMediaData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dream/
DMediaDreamSentinel.java31 import com.android.systemui.media.controls.shared.model.MediaData;
77 @NonNull MediaData data, boolean immediately, int receivedSmartspaceCardLatency,
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardClockInteractorTest.kt38 import com.android.systemui.media.controls.shared.model.MediaData
117 val userMedia = MediaData().copy(active = true) in clockSize_SceneContainerFlagOn_shadeModeSingle_hasMedia_SMALL()
127 val userMedia = MediaData().copy(active = true) in clockSize_SceneContainerFlagOn_shadeModeSplit_isMediaVisible_SMALL()
149 val userMedia = MediaData().copy(active = true) in clockSize_SceneContainerFlagOn_shadeModeSplit_isDozing_LARGE()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/
DMediaPlayerDataTest.kt23 import com.android.systemui.media.controls.shared.model.MediaData
46 val LOCAL = MediaData.PLAYBACK_LOCAL
47 val REMOTE = MediaData.PLAYBACK_CAST_LOCAL
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalMediaRepositoryImplTest.kt25 import com.android.systemui.media.controls.shared.model.MediaData
47 @Mock private lateinit var mediaData: MediaData
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/data/model/
DMediaSortKeyModel.kt20 import com.android.systemui.media.controls.shared.model.MediaData.Companion.PLAYBACK_LOCAL

12