Home
last modified time | relevance | path

Searched refs:layoutState (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DSwipeToSceneTest.kt71 private fun layoutState( in <lambda>() method in com.android.compose.animation.scene.SwipeToSceneTest
81 layoutState: SceneTransitionLayoutState, in <lambda>()
85 state = layoutState, in <lambda>()
130 val layoutState = layoutState() in <lambda>() constant
133 TestContent(layoutState) in <lambda>()
136 assertThat(layoutState.transitionState).isIdle() in <lambda>()
137 assertThat(layoutState.transitionState).hasCurrentScene(SceneA) in <lambda>()
151 var transition = assertThat(layoutState.transitionState).isTransition() in <lambda>()
161 transition = assertThat(layoutState.transitionState).isTransition() in <lambda>()
170 assertThat(layoutState.transitionState).isIdle() in <lambda>()
[all …]
DSceneTransitionLayoutTest.kt72 private lateinit var layoutState: SceneTransitionLayoutState variable in com.android.compose.animation.scene.SceneTransitionLayoutTest
81 layoutState = in TestContent()
90 state = layoutState, in TestContent()
153 assertThat(layoutState.transitionState).isIdle() in testOnlyCurrentSceneIsDisplayed()
154 assertThat(layoutState.transitionState).hasCurrentScene(SceneA) in testOnlyCurrentSceneIsDisplayed()
161 assertThat(layoutState.transitionState).isIdle() in testOnlyCurrentSceneIsDisplayed()
162 assertThat(layoutState.transitionState).hasCurrentScene(SceneB) in testOnlyCurrentSceneIsDisplayed()
169 assertThat(layoutState.transitionState).hasCurrentScene(SceneA) in testBack()
173 assertThat(layoutState.transitionState).hasCurrentScene(SceneB) in testBack()
179 assertThat(layoutState.transitionState).isIdle() in testTransitionState()
[all …]
DDraggableHandlerTest.kt57 val layoutState = constant
95 state = layoutState,
136 get() = layoutState.transitionState
980 layoutState.transitions = transitions { in <lambda>()
986 val scene = layoutState.transitionState.currentScene in <lambda>()
988 assertThat(layoutState.transitions.overscrollSpec(scene, Orientation.Vertical)).isNotNull() in <lambda>()
989 assertThat(layoutState.currentTransition?.currentOverscrollSpec).isNull() in <lambda>()
995 assertThat(layoutState.currentTransition?.currentOverscrollSpec).isNotNull() in <lambda>()
996 assertThat(layoutState.currentTransition?.currentOverscrollSpec?.scene).isEqualTo(SceneC) in <lambda>()
997 val transition = layoutState.currentTransition in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DAnimateToScene.kt33 layoutState: BaseSceneTransitionLayoutState, in animateToScene()
37 val transitionState = layoutState.transitionState in animateToScene()
52 animate(layoutState, target, transitionKey, isInitiatedByUserInput = false) in animateToScene()
70 layoutState.finishTransition(transitionState, target) in animateToScene()
76 layoutState, in animateToScene()
93 layoutState.finishTransition(transitionState, target) in animateToScene()
97 layoutState, in animateToScene()
109 layoutState.transitions.interruptionHandler.onInterruption( in animateToScene()
130 animateToScene(layoutState, animateFrom, transitionKey = null) in animateToScene()
134 layoutState, in animateToScene()
[all …]
DDraggableHandler.kt245 val layoutState = draggableHandler.layoutImpl.state constant in com.android.compose.animation.scene.DragControllerImpl
252 get() = layoutState.transitionState == swipeTransition
260 layoutState.startTransition(newTransition) in updateTransition()
302 layoutState = layoutState, in onDrag()
413 !layoutState.canChangeScene(targetScene.key) in onStop()
447 layoutState = layoutState, in onStop()
506 layoutState: BaseSceneTransitionLayoutState, in SwipeTransition()
525 layoutState = layoutState, in SwipeTransition()
539 layoutState = old.layoutState, in SwipeTransition()
556 val layoutState: BaseSceneTransitionLayoutState, constant in com.android.compose.animation.scene.SwipeTransition
[all …]
DScene.kt76 isMeasurementApproachInProgress = { scope.layoutState.isTransitioning() } in <lambda>()
98 override val layoutState: SceneTransitionLayoutState = layoutImpl.state in <lambda>() constant
167 return noResizeDuringTransitions(layoutState = layoutImpl.state) in <lambda>()
DSceneTransitionLayoutState.kt759 layoutState = this@HoistedSceneTransitionLayoutState, in canChangeScene()
786 layoutState = this@MutableSceneTransitionLayoutStateImpl, in setTargetScene()
DSceneTransitionLayout.kt174 val layoutState: SceneTransitionLayoutState constant
/frameworks/base/core/java/com/android/internal/widget/
DLinearLayoutManager.java1188 void collectPrefetchPositionsForLayoutState(RecyclerView.State state, LayoutState layoutState, in collectPrefetchPositionsForLayoutState() argument
1190 final int pos = layoutState.mCurrentPosition; in collectPrefetchPositionsForLayoutState()
1192 layoutPrefetchRegistry.addPosition(pos, layoutState.mScrollingOffset); in collectPrefetchPositionsForLayoutState()
1449 private void recycleByLayoutState(RecyclerView.Recycler recycler, LayoutState layoutState) { in recycleByLayoutState() argument
1450 if (!layoutState.mRecycle || layoutState.mInfinite) { in recycleByLayoutState()
1453 if (layoutState.mLayoutDirection == LayoutState.LAYOUT_START) { in recycleByLayoutState()
1454 recycleViewsFromEnd(recycler, layoutState.mScrollingOffset); in recycleByLayoutState()
1456 recycleViewsFromStart(recycler, layoutState.mScrollingOffset); in recycleByLayoutState()
1471 int fill(RecyclerView.Recycler recycler, LayoutState layoutState, in fill() argument
1474 final int start = layoutState.mAvailable; in fill()
[all …]
DGridLayoutManager.java506 void collectPrefetchPositionsForLayoutState(RecyclerView.State state, LayoutState layoutState, in collectPrefetchPositionsForLayoutState() argument
510 while (count < mSpanCount && layoutState.hasMore(state) && remainingSpan > 0) { in collectPrefetchPositionsForLayoutState()
511 final int pos = layoutState.mCurrentPosition; in collectPrefetchPositionsForLayoutState()
512 layoutPrefetchRegistry.addPosition(pos, Math.max(0, layoutState.mScrollingOffset)); in collectPrefetchPositionsForLayoutState()
515 layoutState.mCurrentPosition += layoutState.mItemDirection; in collectPrefetchPositionsForLayoutState()
522 LayoutState layoutState, LayoutChunkResult result) { in layoutChunk() argument
533 layoutState.mItemDirection == LayoutState.ITEM_DIRECTION_TAIL; in layoutChunk()
538 int itemSpanIndex = getSpanIndex(recycler, state, layoutState.mCurrentPosition); in layoutChunk()
539 int itemSpanSize = getSpanSize(recycler, state, layoutState.mCurrentPosition); in layoutChunk()
542 while (count < mSpanCount && layoutState.hasMore(state) && remainingSpan > 0) { in layoutChunk()
[all …]
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/modifiers/
DSize.kt26 internal fun Modifier.noResizeDuringTransitions(layoutState: SceneTransitionLayoutState): Modifier { in <lambda>()
27 return approachLayout(isMeasurementApproachInProgress = { layoutState.isTransitioning() }) { in <lambda>()
30 if (layoutState.currentTransition == null) { in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/ui/composable/
DQuickSettings.kt88 return when (val transitionState = layoutState.transitionState) { in transitionState()
145 val transitionState = layoutState.transitionState
149 !(layoutState.isTransitioning(to = Scenes.Shade) ||
150 layoutState.isTransitioning(to = Scenes.QuickSettings))
DQuickSettingsScene.kt185 layoutState.isTransitioningBetween(Scenes.Gone, Scenes.QuickSettings) || in QuickSettingsScene()
186 layoutState.isTransitioningBetween(Scenes.Lockscreen, Scenes.QuickSettings) in QuickSettingsScene()
232 when (val state = layoutState.transitionState) { in QuickSettingsScene()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/
DDefaultClockSection.kt100 LaunchedEffect(layoutState.currentTransition?.progress) { in <lambda>()
101 val transition = layoutState.currentTransition ?: return@LaunchedEffect in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DShadeScene.kt241 layoutState.isTransitioningBetween(Scenes.Gone, Scenes.Shade) || in SingleShade()
242 layoutState.isTransitioningBetween(Scenes.Lockscreen, Scenes.Shade) in SingleShade()
412 val isScrollable = layoutState.transitionState is TransitionState.Idle in SplitShade()
DShadeHeader.kt146 shouldUseExpandedFormat(layoutState.transitionState) in CollapsedShadeHeader()
293 derivedStateOf { shouldUseExpandedFormat(layoutState.transitionState) } in ExpandedShadeHeader()
514 layoutState.isTransitioningBetween(Scenes.Shade, Scenes.QuickSettings) in StatusIcons()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/
DNotifications.kt284 layoutState.isTransitioning(from = Scenes.Shade, to = Scenes.Gone) || in NotificationScrollingStack()
285 layoutState.isTransitioning(from = Scenes.Shade, to = Scenes.Lockscreen) in NotificationScrollingStack()