Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/volume/ui/viewmodel/
DSlidersExpandableViewModel.kt23 sealed interface SlidersExpandableViewModel { interface
26 data object Unavailable : SlidersExpandableViewModel
28 data class Expandable(val isExpanded: Boolean) : SlidersExpandableViewModel
30 data object Fixed : SlidersExpandableViewModel
DAudioVolumeComponentViewModel.kt77 private val portraitExpandable: Flow<SlidersExpandableViewModel> = in <lambda>()
83 SlidersExpandableViewModel.Expandable(isExpanded) in <lambda>()
86 flowOf(SlidersExpandableViewModel.Fixed) in <lambda>()
89 .stateIn(scope, SharingStarted.Eagerly, SlidersExpandableViewModel.Unavailable) in <lambda>()
108 fun isExpandable(isPortrait: Boolean): Flow<SlidersExpandableViewModel> { in <lambda>()
112 flowOf(SlidersExpandableViewModel.Fixed) in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/volume/ui/composable/
DVolumeSlidersComponent.kt27 import com.android.systemui.volume.panel.component.volume.ui.viewmodel.SlidersExpandableViewModel
53 val expandableViewModel: SlidersExpandableViewModel by in Content()
56 .collectAsStateWithLifecycle(SlidersExpandableViewModel.Unavailable) in Content()
57 if (expandableViewModel is SlidersExpandableViewModel.Unavailable) { in Content()
61 (expandableViewModel as? SlidersExpandableViewModel.Expandable)?.isExpanded ?: true in Content()
67 isExpandable = expandableViewModel is SlidersExpandableViewModel.Expandable, in Content()