Home
last modified time | relevance | path

Searched refs:currentConnectedDevice (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/
DLocalMediaRepositoryImplTest.kt70 var currentConnectedDevice: MediaDevice? = null in deviceListUpdated_currentConnectedDeviceUpdated() variable
71 underTest.currentConnectedDevice in deviceListUpdated_currentConnectedDeviceUpdated()
72 .onEach { currentConnectedDevice = it } in deviceListUpdated_currentConnectedDeviceUpdated()
76 `when`(localMediaManager.currentConnectedDevice).thenReturn(mediaDevice1) in deviceListUpdated_currentConnectedDeviceUpdated()
81 assertThat(currentConnectedDevice).isEqualTo(mediaDevice1) in deviceListUpdated_currentConnectedDeviceUpdated()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/data/repository/
DLocalMediaRepository.kt40 val currentConnectedDevice: StateFlow<MediaDevice?> constant
86 override val currentConnectedDevice: StateFlow<MediaDevice?> = constant
88 .map { localMediaManager.currentConnectedDevice } in <lambda>()
89 .onStart { emit(localMediaManager.currentConnectedDevice) } in <lambda>()
93 localMediaManager.currentConnectedDevice,
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DMediaOutputInteractorTest.kt172 val currentDevice by collectLastValue(underTest.currentConnectedDevice) in activeLocalAndRemoteSession_defaultSession_local()
196 val currentDevice by collectLastValue(underTest.currentConnectedDevice) in activeRemoteSession_defaultSession_remote()
220 val currentDevice by collectLastValue(underTest.currentConnectedDevice) in inactiveLocalAndRemoteSession_defaultSession_local()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/data/repository/
DFakeLocalMediaRepository.kt28 override val currentConnectedDevice: StateFlow<MediaDevice?> constant in com.android.systemui.volume.data.repository.FakeLocalMediaRepository
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DMediaOutputInteractor.kt115 val currentConnectedDevice: Flow<MediaDevice?> = in <lambda>() constant
116 localMediaRepository.flatMapLatest { it.currentConnectedDevice }.distinctUntilChanged() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/interactor/
DAudioOutputInteractor.kt74 mediaOutputInteractor.currentConnectedDevice.map { mediaDevice -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDeviceManager.kt349 val connectedDevice = localMediaManager.currentConnectedDevice?.toMediaDeviceData() in <lambda>()
385 aboutToConnect?.fullMediaDevice ?: localMediaManager.currentConnectedDevice in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDeviceManagerTest.kt558 whenever(lmm.currentConnectedDevice).thenReturn(phoneDevice) in mr2ReturnsSystemRouteWithNullName_isPhone_usePhoneName()