Home
last modified time | relevance | path

Searched refs:connectedDeviceViewModel (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/mediaoutput/ui/viewmodel/
DMediaOutputViewModelTest.kt96 val connectedDeviceViewModel by collectLastValue(underTest.connectedDeviceViewModel) in playingSession_connectedDeviceViewMode_hasTheDevice() constant
99 assertThat(connectedDeviceViewModel!!.label).isEqualTo("media_output_label_title") in playingSession_connectedDeviceViewMode_hasTheDevice()
100 assertThat(connectedDeviceViewModel!!.deviceName).isEqualTo("test_device") in playingSession_connectedDeviceViewMode_hasTheDevice()
114 val connectedDeviceViewModel by collectLastValue(underTest.connectedDeviceViewModel) in notPlaying_connectedDeviceViewMode_hasTheDevice() constant
117 assertThat(connectedDeviceViewModel!!.label) in notPlaying_connectedDeviceViewMode_hasTheDevice()
119 assertThat(connectedDeviceViewModel!!.deviceName).isEqualTo("test_device") in notPlaying_connectedDeviceViewMode_hasTheDevice()
134 val connectedDeviceViewModel by collectLastValue(underTest.connectedDeviceViewModel) in notPlaying_inAudioSharing_deviceNameSetToAudioSharing() constant
137 assertThat(connectedDeviceViewModel!!.label) in notPlaying_inAudioSharing_deviceNameSetToAudioSharing()
139 assertThat(connectedDeviceViewModel!!.deviceName).isEqualTo("audio_sharing") in notPlaying_inAudioSharing_deviceNameSetToAudioSharing()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/mediaoutput/ui/composable/
DMediaOutputComponent.kt79 val connectedDeviceViewModel: ConnectedDeviceViewModel? by in <lambda>() constant
80 viewModel.connectedDeviceViewModel.collectAsStateWithLifecycle() in <lambda>()
105 connectedDeviceViewModel?.let { ConnectedDeviceText(it) } in <lambda>()
113 private fun RowScope.ConnectedDeviceText(connectedDeviceViewModel: ConnectedDeviceViewModel) { in <lambda>()
120 text = connectedDeviceViewModel.label.toString(), in <lambda>()
125 connectedDeviceViewModel.deviceName?.let { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/ui/viewmodel/
DMediaOutputViewModel.kt54 val connectedDeviceViewModel: StateFlow<ConnectedDeviceViewModel?> = in <lambda>() constant in com.android.systemui.volume.panel.component.mediaoutput.ui.viewmodel.MediaOutputViewModel