Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/view/viewmodel/
DCommunalEditModeViewModelTest.kt170 val selectedKey by collectLastValue(underTest.selectedKey) in selectedKey_onReorderWidgets_isCleared() constant
174 assertThat(selectedKey).isEqualTo(key) in selectedKey_onReorderWidgets_isCleared()
177 assertThat(selectedKey).isNull() in selectedKey_onReorderWidgets_isCleared()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/
DCommunalHub.kt176 val selectedKey = viewModel.selectedKey.collectAsStateWithLifecycle() in <lambda>() constant
178 derivedStateOf { selectedKey.value != null || reorderingWidgets } in <lambda>()
297 selectedKey = selectedKey, in <lambda>()
327 selectedKey.value?.let { key -> in <lambda>()
351 viewModel.onOpenWidgetEditor(selectedKey.value) in <lambda>()
438 selectedKey: State<String?>, in CommunalHubLazyGrid()
500 remember(index) { derivedStateOf { list[index].key == selectedKey.value } } in CommunalHubLazyGrid()
997 val selectedKey by viewModel.selectedKey.collectAsStateWithLifecycle() in WidgetContent() constant
999 selectedKey?.let { key -> contentListState.list.indexOfFirst { it.key == key } } in WidgetContent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/
DBaseCommunalViewModel.kt56 val selectedKey: StateFlow<String?> constant in com.android.systemui.communal.ui.viewmodel.BaseCommunalViewModel