/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/data/repository/ |
D | MediaFilterRepository.kt | 25 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 …]
|
D | MediaDataRepository.kt | 23 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/ |
D | MediaDataCombineLatestTest.java | 36 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 …]
|
D | MediaSessionBasedFilterTest.kt | 28 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/ |
D | MediaFilterRepositoryTest.kt | 29 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 …]
|
D | MediaDataRepositoryTest.kt | 29 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/ |
D | MediaCarouselControllerTest.kt | 48 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/ |
D | CommunalMediaRepository.kt | 25 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/ |
D | MediaUiEventLogger.kt | 24 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/ |
D | MediaTestUtils.kt | 20 import com.android.systemui.media.controls.shared.model.MediaData 25 MediaData(
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/ |
D | MediaDataCombineLatest.kt | 19 import com.android.systemui.media.controls.shared.model.MediaData 29 private val entries: MutableMap<String, Pair<MediaData?, MediaDeviceData?>> = mutableMapOf() 34 data: MediaData, in onMediaDataLoaded()
|
D | LegacyMediaDataFilterImpl.kt | 28 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>()
|
D | MediaDataManager.kt | 23 import com.android.systemui.media.controls.shared.model.MediaData 119 data: MediaData, in setInactive()
|
D | MediaSessionBasedFilter.kt | 28 import com.android.systemui.media.controls.shared.model.MediaData in <lambda>() 98 data: MediaData, in <lambda>() 169 info: MediaData, in <lambda>()
|
D | MediaTimeoutListener.kt | 26 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>()
|
D | MediaDataProcessor.kt | 80 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 …]
|
D | LegacyMediaDataManagerImpl.kt | 77 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/ |
D | MediaCarouselInteractorTest.kt | 37 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()
|
D | MediaControlInteractorTest.kt | 40 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/ |
D | MediaControlViewModelTest.kt | 33 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/ |
D | MediaDreamSentinel.java | 31 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/ |
D | KeyguardClockInteractorTest.kt | 38 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/ |
D | MediaPlayerDataTest.kt | 23 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/ |
D | CommunalMediaRepositoryImplTest.kt | 25 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/ |
D | MediaSortKeyModel.kt | 20 import com.android.systemui.media.controls.shared.model.MediaData.Companion.PLAYBACK_LOCAL
|