Searched refs:contentListState (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/ |
D | DragAndDropTargetState.kt | 60 contentListState: ContentListState, in <lambda>() 70 remember(gridState, contentListState) { in <lambda>() 73 contentListState = contentListState, in <lambda>() 148 private val contentListState: ContentListState, constant in com.android.systemui.communal.ui.compose.DragAndDropTargetState 165 contentListState.list.add(placeHolder) in onStarted() 166 placeHolderIndex = contentListState.list.size - 1 in onStarted() 185 if (contentListState.isItemEditable(this.index)) { in onMoved() 209 contentListState.onSaveList( in onDrop() 224 contentListState.list.remove(placeHolder) in onEnded() 258 val currentIndex = contentListState.list.indexOf(placeHolder) in movePlaceholderTo() [all …]
|
D | GridDragDropState.kt | 57 contentListState: ContentListState, in <lambda>() 62 remember(gridState, contentListState) { in <lambda>() 65 contentListState = contentListState, in <lambda>() 90 private val contentListState: ContentListState, constant in com.android.systemui.communal.ui.compose.GridDragDropState 118 .filter { item -> contentListState.isItemEditable(item.index) } in onDragStart() 132 contentListState.onRemove(it) in onDragInterrupted() 137 contentListState.onSaveList() in onDragInterrupted() 156 .filter { item -> contentListState.isItemEditable(item.index) } in onDrag() 173 contentListState.onMove(draggingItem.index, targetItem.index) in onDrag() 176 contentListState.onMove(draggingItem.index, targetItem.index) in onDrag()
|
D | CommunalHub.kt | 174 val contentListState = rememberContentListState(widgetConfigurator, communalContent, viewModel) in <lambda>() constant 199 .pointerInput(gridState, contentOffset, contentListState) { in <lambda>() 205 val key = index?.let { keyAtIndexIfEditable(contentListState.list, index) } in <lambda>() 296 contentListState = contentListState, in <lambda>() 328 contentListState.list.indexOfFirst { it.key == key } in <lambda>() 331 contentListState.onRemove(it) in <lambda>() 332 contentListState.onSaveList() in <lambda>() 441 contentListState: ContentListState, in CommunalHubLazyGrid() 452 list = contentListState.list in CommunalHubLazyGrid() 457 contentListState = contentListState, in CommunalHubLazyGrid() [all …]
|