Home
last modified time | relevance | path

Searched refs:layoutImpl (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DMovableElement.kt33 layoutImpl: SceneTransitionLayoutImpl, in <lambda>()
39 Box(modifier.element(layoutImpl, scene, key)) { in <lambda>()
43 remember(layoutImpl, key, scene, sceneScope, boxScope) { in <lambda>()
44 ElementScopeImpl(layoutImpl, key, scene, sceneScope, boxScope) in <lambda>()
53 layoutImpl: SceneTransitionLayoutImpl, in MovableElement()
59 Box(modifier.element(layoutImpl, scene, key)) { in MovableElement()
63 remember(layoutImpl, key, scene, sceneScope, boxScope) { in MovableElement()
64 MovableElementScopeImpl(layoutImpl, key, scene, sceneScope, boxScope) in MovableElement()
72 private val layoutImpl: SceneTransitionLayoutImpl, constant in com.android.compose.animation.scene.BaseElementScope
84 layoutImpl, in animateElementValueAsState()
[all …]
DNestedScrollToScene.kt74 layoutImpl: SceneTransitionLayoutImpl, in nestedScrollToScene()
82 layoutImpl = layoutImpl, in nestedScrollToScene()
90 private val layoutImpl: SceneTransitionLayoutImpl, in nestedScrollToScene() constant in com.android.compose.animation.scene.NestedScrollToSceneElement
98 layoutImpl = layoutImpl, in nestedScrollToScene()
107 layoutImpl = layoutImpl, in nestedScrollToScene()
117 properties["layoutImpl"] = layoutImpl in nestedScrollToScene()
125 layoutImpl: SceneTransitionLayoutImpl,
133 layoutImpl = layoutImpl,
156 layoutImpl: SceneTransitionLayoutImpl, in update()
169 layoutImpl = layoutImpl, in update()
[all …]
DUserActionDistanceScopeImpl.kt23 private val layoutImpl: SceneTransitionLayoutImpl, constant in com.android.compose.animation.scene.ElementStateScopeImpl
26 return layoutImpl.elements[this]?.sceneStates?.get(scene)?.targetSize.takeIf { in targetSize()
32 return layoutImpl.elements[this]?.sceneStates?.get(scene)?.targetOffset.takeIf { in targetOffset()
38 return layoutImpl.scenes[this]?.targetSize.takeIf { it != IntSize.Zero } in targetSize()
43 private val layoutImpl: SceneTransitionLayoutImpl, constant in com.android.compose.animation.scene.UserActionDistanceScopeImpl
44 ) : UserActionDistanceScope, ElementStateScope by layoutImpl.elementStateScope { in <lambda>()
46 get() = layoutImpl.density.density in <lambda>()
49 get() = layoutImpl.density.fontScale in <lambda>()
DScene.kt38 layoutImpl: SceneTransitionLayoutImpl, in <lambda>()
43 internal val scope = SceneScopeImpl(layoutImpl, this) in <lambda>()
94 private val layoutImpl: SceneTransitionLayoutImpl, constant in SceneScopeImpl
96 ) : SceneScope, ElementStateScope by layoutImpl.elementStateScope { in <lambda>()
98 override val layoutState: SceneTransitionLayoutState = layoutImpl.state in <lambda>()
101 return element(layoutImpl, scene, key) in <lambda>()
110 Element(layoutImpl, scene, key, modifier, content) in <lambda>()
119 MovableElement(layoutImpl, scene, key, modifier, content) in <lambda>()
130 layoutImpl = layoutImpl, in <lambda>()
146 layoutImpl = layoutImpl, in <lambda>()
[all …]
DElement.kt136 layoutImpl: SceneTransitionLayoutImpl, in element()
144 val currentTransitions = layoutImpl.state.currentTransitions in element()
145 return then(ElementModifier(layoutImpl, currentTransitions, scene, key)).testTag(key.testTag) in element()
153 private val layoutImpl: SceneTransitionLayoutImpl, constant in com.android.compose.animation.scene.ElementModifier
158 override fun create(): ElementNode = ElementNode(layoutImpl, currentTransitions, scene, key) in create()
161 node.update(layoutImpl, currentTransitions, scene, key) in create()
166 private var layoutImpl: SceneTransitionLayoutImpl, variable in com.android.compose.animation.scene.ElementNode
189 layoutImpl.elements[key] ?: Element(key).also { layoutImpl.elements[key] = it } in updateElementAndSceneValues()
213 maybePruneMaps(layoutImpl, element, sceneState) in onDetach()
224 layoutImpl: SceneTransitionLayoutImpl, in update()
[all …]
DDraggableHandler.kt63 internal val layoutImpl: SceneTransitionLayoutImpl, in onDrag() constant in com.android.compose.animation.scene.DraggableHandlerImpl
78 get() = with(layoutImpl.density) { 125.dp.toPx() } in onDrag()
85 get() = with(layoutImpl.density) { 56.dp.toPx() } in onDrag()
146 val transitionState = layoutImpl.state.transitionState in onDrag()
147 val fromScene = layoutImpl.scene(transitionState.currentScene) in onDrag()
159 layoutImpl.state, in onDrag()
164 layoutImpl, in onDrag()
187 layoutImpl.swipeSourceDetector.source( in onDrag()
190 layoutImpl.density, in onDrag()
245 val layoutState = draggableHandler.layoutImpl.state
[all …]
DSceneTransitionLayoutImpl.kt106 ?: UserActionDistanceScopeImpl(layoutImpl = this).also { in <lambda>()
124 layoutImpl = this, in <lambda>()
131 layoutImpl = this, in <lambda>()
202 .then(LayoutElement(layoutImpl = this)) in <lambda>()
255 private data class LayoutElement(private val layoutImpl: SceneTransitionLayoutImpl) : constant in LayoutElement
257 override fun create(): LayoutNode = LayoutNode(layoutImpl) in create()
260 node.layoutImpl = layoutImpl in create()
264 private class LayoutNode(var layoutImpl: SceneTransitionLayoutImpl) : variable in LayoutNode
267 return layoutImpl.state.isTransitioning() in isMeasurementApproachInProgress()
280 val transition = layoutImpl.state.currentTransition in approachMeasure()
[all …]
DAnimateSharedAsState.kt263 layoutImpl: SceneTransitionLayoutImpl, in animateSharedValueAsState()
271 DisposableEffect(layoutImpl, scene, element, key) { in animateSharedValueAsState()
273 val valueMap = layoutImpl.sharedValues.getOrPut(key) { mutableMapOf() } in animateSharedValueAsState()
286 if (valueMap.isEmpty() && layoutImpl.sharedValues[key] === valueMap) { in animateSharedValueAsState()
287 layoutImpl.sharedValues.remove(key) in animateSharedValueAsState()
300 sharedValue<T, Any>(layoutImpl, key, element).targetValues[scene] = value in animateSharedValueAsState()
303 return remember(layoutImpl, scene, element, canOverflow) { in animateSharedValueAsState()
304 AnimatedStateImpl<T, Any>(layoutImpl, scene, element, key, canOverflow) in animateSharedValueAsState()
309 layoutImpl: SceneTransitionLayoutImpl, in sharedValue()
313 return layoutImpl.sharedValues[key]?.get(element)?.let { it as SharedValue<T, Delta> } in sharedValue()
[all …]
DSwipeToScene.kt95 val layoutImpl = draggableHandler.layoutImpl in currentScene() constant
96 return layoutImpl.scene(layoutImpl.state.transitionState.currentScene) in currentScene()
DSceneTransitionLayout.kt508 val layoutImpl = remember { in SceneTransitionLayoutForTesting() constant
522 layoutImpl.updateScenes(scenes) in SceneTransitionLayoutForTesting()
525 if (state != layoutImpl.state) { in SceneTransitionLayoutForTesting()
532 layoutImpl.density = density in SceneTransitionLayoutForTesting()
533 layoutImpl.swipeSourceDetector = swipeSourceDetector in SceneTransitionLayoutForTesting()
534 layoutImpl.transitionInterceptionThreshold = transitionInterceptionThreshold in SceneTransitionLayoutForTesting()
537 layoutImpl.Content(modifier, swipeDetector) in SceneTransitionLayoutForTesting()
DSceneTransitionLayoutState.kt318 layoutImpl: SceneTransitionLayoutImpl, in interruptionProgress()
320 if (!layoutImpl.state.enableInterruptions) { in interruptionProgress()
326 layoutImpl.coroutineScope.launch { in interruptionProgress()
327 val swipeSpec = layoutImpl.state.transitions.defaultSwipeSpec in interruptionProgress()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/transformation/
DTranslate.kt35 layoutImpl: SceneTransitionLayoutImpl, in transform()
42 return with(layoutImpl.density) { in transform()
57 layoutImpl: SceneTransitionLayoutImpl, in transform()
DAnchoredSize.kt35 layoutImpl: SceneTransitionLayoutImpl, in transform()
44 layoutImpl.elements[anchor]?.sceneStates?.get(scene)?.targetSize?.takeIf { in transform()
DEdgeTranslate.kt34 layoutImpl: SceneTransitionLayoutImpl, in transform()
41 val sceneSize = layoutImpl.scene(scene).targetSize in transform()
DAnchoredTranslate.kt34 layoutImpl: SceneTransitionLayoutImpl, in transform()
49 val anchor = layoutImpl.elements[anchor] ?: throwException(scene = null) in transform()
DFade.kt30 layoutImpl: SceneTransitionLayoutImpl, in transform()
DDrawScale.kt39 layoutImpl: SceneTransitionLayoutImpl, in transform()
DScaleSize.kt37 layoutImpl: SceneTransitionLayoutImpl, in transform()
DTransformation.kt63 layoutImpl: SceneTransitionLayoutImpl, in reversed()
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DTransition.kt73 override fun interruptionProgress(layoutImpl: SceneTransitionLayoutImpl): Float { in interruptionProgress()
DDraggableHandlerTest.kt93 private val layoutImpl = constant in com.android.compose.animation.scene.DraggableHandlerTest.TestGestureScope
104 val draggableHandler = layoutImpl.draggableHandler(Orientation.Vertical)
105 val horizontalDraggableHandler = layoutImpl.draggableHandler(Orientation.Horizontal)
112 layoutImpl = layoutImpl, in nestedScrollConnection()