/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | SceneTransitionLayoutStateTest.kt | 25 import com.android.compose.animation.scene.TestScenes.SceneB in <lambda>() 53 assertThat(state.isTransitioning(to = SceneB)).isFalse() in <lambda>() 54 assertThat(state.isTransitioning(from = SceneA, to = SceneB)).isFalse() in <lambda>() 60 state.startTransition(transition(from = SceneA, to = SceneB)) in <lambda>() 64 assertThat(state.isTransitioning(from = SceneB)).isFalse() in <lambda>() 65 assertThat(state.isTransitioning(to = SceneB)).isTrue() in <lambda>() 67 assertThat(state.isTransitioning(from = SceneA, to = SceneB)).isTrue() in <lambda>() 79 val transition = state.setTargetScene(SceneB, coroutineScope = this) in <lambda>() 84 assertThat(state.transitionState).isEqualTo(TransitionState.Idle(SceneB)) in <lambda>() 91 val transition = state.setTargetScene(SceneB, coroutineScope = this) in <lambda>() [all …]
|
D | InterruptionHandlerTest.kt | 23 import com.android.compose.animation.scene.TestScenes.SceneB in <lambda>() 46 state.setTargetScene(SceneB, coroutineScope = this) in <lambda>() 53 Triple(SceneA, SceneB, SceneB), in <lambda>() 56 Triple(SceneB, SceneC, SceneC), in <lambda>() 83 state.setTargetScene(SceneB, coroutineScope = this) in <lambda>() 90 Triple(SceneB, SceneC, SceneC), in <lambda>() 120 from(SceneA, to = SceneB) { spec = tween(duration) } in <lambda>() 126 state.setTargetScene(SceneB, coroutineScope = this) in <lambda>() 136 Triple(SceneA, SceneB, SceneB), in <lambda>() 139 Triple(SceneA, SceneB, SceneA), in <lambda>() [all …]
|
D | SwipeToSceneTest.kt | 43 import com.android.compose.animation.scene.TestScenes.SceneB in <lambda>() 93 Swipe.Left to SceneB, in <lambda>() 95 Swipe.Up to SceneB, in <lambda>() 102 SceneB, in <lambda>() 113 Swipe(SwipeDirection.Down, pointerCount = 2) to SceneB, in <lambda>() 114 Swipe(SwipeDirection.Right, fromSource = Edge.Left) to SceneB, in <lambda>() 115 Swipe(SwipeDirection.Down, fromSource = Edge.Top) to SceneB, in <lambda>() 153 assertThat(transition).hasToScene(SceneB) in <lambda>() 163 assertThat(transition).hasToScene(SceneB) in <lambda>() 234 assertThat(transition).hasToScene(SceneB) in <lambda>() [all …]
|
D | TransitionDslTest.kt | 44 from(TestScenes.SceneA, to = TestScenes.SceneB) in manyTransitions() 45 from(TestScenes.SceneB, to = TestScenes.SceneC) in manyTransitions() 54 from(TestScenes.SceneA, to = TestScenes.SceneB) in toFromBuilders() 55 from(TestScenes.SceneB) in toFromBuilders() 67 TestScenes.SceneA to TestScenes.SceneB, in toFromBuilders() 68 TestScenes.SceneB to null, in toFromBuilders() 75 val transitions = transitions { from(TestScenes.SceneA, to = TestScenes.SceneB) } in defaultTransitionSpec() 83 from(TestScenes.SceneA, to = TestScenes.SceneB) { spec = tween(durationMillis = 42) } in customTransitionSpec() 93 from(TestScenes.SceneA, to = TestScenes.SceneB) { fade(TestElements.Foo) } in defaultRange() 105 from(TestScenes.SceneA, to = TestScenes.SceneB) { in fractionRange() [all …]
|
D | ElementScenePickerTest.kt | 45 toScene = TestScenes.SceneB, in highestZIndexPicker() 49 onElement(key, TestScenes.SceneB).assertDoesNotExist() in highestZIndexPicker() 54 onElement(key, TestScenes.SceneB).assertIsDisplayed() in highestZIndexPicker() 58 onElement(key, TestScenes.SceneB).assertIsDisplayed() in highestZIndexPicker() 71 toScene = TestScenes.SceneB, in lowestZIndexPicker() 75 onElement(key, TestScenes.SceneB).assertDoesNotExist() in lowestZIndexPicker() 80 onElement(key, TestScenes.SceneB).assertExists().assertIsNotDisplayed() in lowestZIndexPicker() 84 onElement(key, TestScenes.SceneB).assertIsDisplayed() in lowestZIndexPicker()
|
D | DraggableHandlerTest.kt | 35 import com.android.compose.animation.scene.TestScenes.SceneB 64 val mutableUserActionsA = mutableMapOf(Swipe.Up to SceneB, Swipe.Down to SceneC) 74 key = SceneB, in <lambda>() 83 Swipe.Up to SceneB, in <lambda>() 318 toScene = SceneB, in onDragReversedDirection_changeToScene() 358 toScene = SceneB, in <lambda>() 367 toScene = SceneB, in <lambda>() 376 toScene = SceneB, in <lambda>() 431 toScene = SceneB, in <lambda>() 437 assertTransition(currentScene = SceneB, fromScene = SceneA, toScene = SceneB) in <lambda>() [all …]
|
D | ObservableTransitionStateTest.kt | 26 import com.android.compose.animation.scene.TestScenes.SceneB in <lambda>() 67 to = SceneB, in <lambda>() 78 scene(SceneB) {} in <lambda>() 90 assertThat(state.toScene).isEqualTo(SceneB) in <lambda>() 97 assertThat(state.toScene).isEqualTo(SceneB) in <lambda>() 101 assertThat(observableState()).isEqualTo(ObservableTransitionState.Idle(SceneB)) in <lambda>() 137 transition(from = SceneA, to = SceneB, current = { transitionCurrentScene }) in <lambda>() 142 transitionCurrentScene = SceneB in <lambda>() 143 assertThat(currentScene.value).isEqualTo(SceneB) in <lambda>()
|
D | MovableElementScenePickerTest.kt | 28 val picker = MovableElementScenePicker(scenes = setOf(TestScenes.SceneA, TestScenes.SceneB)) in toSceneInScenes() 32 transition(from = TestScenes.SceneA, to = TestScenes.SceneB), in toSceneInScenes() 37 .isEqualTo(TestScenes.SceneB) in toSceneInScenes() 46 transition(from = TestScenes.SceneA, to = TestScenes.SceneB), in fromSceneInScenes() 60 transition(from = TestScenes.SceneA, to = TestScenes.SceneB), in noneInScenes()
|
D | SceneTransitionLayoutTest.kt | 53 import com.android.compose.animation.scene.TestScenes.SceneB 95 userActions = mapOf(Back to SceneB), in TestContent() 102 scene(SceneB) { in TestContent() 157 currentScene = SceneB in testOnlyCurrentSceneIsDisplayed() 162 assertThat(layoutState.transitionState).hasCurrentScene(SceneB) in testOnlyCurrentSceneIsDisplayed() 173 assertThat(layoutState.transitionState).hasCurrentScene(SceneB) in testBack() 187 currentScene = SceneB in testTransitionState() 197 assertThat(transition).hasToScene(SceneB) in testTransitionState() 219 assertThat(layoutState.transitionState).hasCurrentScene(SceneB) in testTransitionState() 245 currentScene = SceneB in testSharedElement() [all …]
|
D | AnimatedSharedAsStateTest.kt | 39 import com.android.compose.animation.scene.TestScenes.SceneB 142 toScene = SceneB, in animateElementValues() 201 toScene = SceneB, in movableAnimateSharedValues() 255 toScene = SceneB, in animateSceneValues() 415 scene(SceneB) { animateFloat(100f, foo) } in <lambda>() 428 to = SceneB, in <lambda>() 440 assertThat(lastValues[foo]?.get(SceneB)).isWithin(0.001f).of(30f) in <lambda>() 445 assertThat(lastValues[bar]?.get(SceneB)).isNull() in <lambda>() 456 transitions { overscroll(SceneB, Orientation.Horizontal) } in animatedValueDoesNotOverscrollWhenOverscrollIsSpecified() 474 scene(SceneB) { animateFloat(100f, key) } in animatedValueDoesNotOverscrollWhenOverscrollIsSpecified() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/ |
D | SharedElementTest.kt | 70 onElement(TestElements.Foo, TestScenes.SceneB) in testSharedElement() 77 onElement(TestElements.Foo, TestScenes.SceneB) in testSharedElement() 84 onElement(TestElements.Foo, TestScenes.SceneB) in testSharedElement() 91 onElement(TestElements.Foo, TestScenes.SceneB) in testSharedElement() 106 toScene = TestScenes.SceneB, in testSharedElementDisabled() 131 translate(TestElements.Foo.inScene(TestScenes.SceneB), Edge.Bottom) in testSharedElementDisabled() 138 onElement(TestElements.Foo, scene = TestScenes.SceneB) in testSharedElementDisabled() 144 onElement(TestElements.Foo, scene = TestScenes.SceneB) in testSharedElementDisabled() 150 onElement(TestElements.Foo, scene = TestScenes.SceneB) in testSharedElementDisabled() 156 onElement(TestElements.Foo, scene = TestScenes.SceneB) in testSharedElementDisabled()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/utils/src/com/android/compose/animation/scene/ |
D | TestValues.kt | 27 val SceneB = SceneKey("SceneB") constant 53 from(TestScenes.SceneA, to = TestScenes.SceneB) { in <lambda>() 57 from(TestScenes.SceneB, to = TestScenes.SceneC) { in <lambda>()
|
D | TestTransition.kt | 94 toScene: SceneKey = TestScenes.SceneB, in onElement() 138 toScene: SceneKey = TestScenes.SceneB, in MotionTestRule()
|