/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | SceneTransitionLayoutStateTest.kt | 24 import com.android.compose.animation.scene.TestScenes.SceneA in <lambda>() 49 val state = MutableSceneTransitionLayoutStateImpl(SceneA, SceneTransitions.Empty) in <lambda>() 52 assertThat(state.isTransitioning(from = SceneA)).isFalse() in <lambda>() 54 assertThat(state.isTransitioning(from = SceneA, to = SceneB)).isFalse() in <lambda>() 59 val state = MutableSceneTransitionLayoutStateImpl(SceneA, SceneTransitions.Empty) in <lambda>() 60 state.startTransition(transition(from = SceneA, to = SceneB)) in <lambda>() 63 assertThat(state.isTransitioning(from = SceneA)).isTrue() in <lambda>() 66 assertThat(state.isTransitioning(to = SceneA)).isFalse() in <lambda>() 67 assertThat(state.isTransitioning(from = SceneA, to = SceneB)).isTrue() in <lambda>() 72 val state = MutableSceneTransitionLayoutState(SceneA) in <lambda>() [all …]
|
D | InterruptionHandlerTest.kt | 22 import com.android.compose.animation.scene.TestScenes.SceneA in <lambda>() 42 SceneA, in <lambda>() 53 Triple(SceneA, SceneB, SceneB), in <lambda>() 65 SceneA, in <lambda>() 100 SceneA, in <lambda>() 120 from(SceneA, to = SceneB) { spec = tween(duration) } in <lambda>() 136 Triple(SceneA, SceneB, SceneB), in <lambda>() 139 Triple(SceneA, SceneB, SceneA), in <lambda>() 142 Triple(SceneA, SceneC, SceneC), in <lambda>() 149 val state = MutableSceneTransitionLayoutStateImpl(SceneA, transitions {}) in <lambda>() [all …]
|
D | DraggableHandlerTest.kt | 34 import com.android.compose.animation.scene.TestScenes.SceneA 59 SceneA, 65 val mutableUserActionsB = mutableMapOf(Swipe.Up to SceneC, Swipe.Down to SceneA) 68 key = SceneA, in <lambda>() 84 Swipe(SwipeDirection.Up, fromSource = Edge.Bottom) to SceneA in <lambda>() 257 @Test fun testPreconditions() = runGestureTest { assertIdle(currentScene = SceneA) } in <lambda>() 262 assertTransition(currentScene = SceneA) in <lambda>() 268 assertTransition(currentScene = SceneA) in <lambda>() 278 assertTransition(currentScene = SceneA) in <lambda>() 281 assertTransition(currentScene = SceneA) in <lambda>() [all …]
|
D | ObservableTransitionStateTest.kt | 25 import com.android.compose.animation.scene.TestScenes.SceneA in <lambda>() 66 from = SceneA, in <lambda>() 77 scene(SceneA) {} in <lambda>() 83 assertThat(observableState()).isEqualTo(ObservableTransitionState.Idle(SceneA)) in <lambda>() 89 .isEqualTo(SceneA) in <lambda>() 96 .isEqualTo(SceneA) in <lambda>() 110 initialScene = SceneA, in <lambda>() 132 assertThat(currentScene.value).isEqualTo(SceneA) in <lambda>() 135 var transitionCurrentScene by mutableStateOf(SceneA) in <lambda>() 137 transition(from = SceneA, to = SceneB, current = { transitionCurrentScene }) in <lambda>() [all …]
|
D | TransitionDslTest.kt | 44 from(TestScenes.SceneA, to = TestScenes.SceneB) in manyTransitions() 46 from(TestScenes.SceneC, to = TestScenes.SceneA) in manyTransitions() 54 from(TestScenes.SceneA, to = TestScenes.SceneB) in toFromBuilders() 67 TestScenes.SceneA to TestScenes.SceneB, 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() 126 from(TestScenes.SceneA, to = TestScenes.SceneB) { in timestampRange() 149 from(TestScenes.SceneA, to = TestScenes.SceneB) { in reversed() [all …]
|
D | SwipeToSceneTest.kt | 42 import com.android.compose.animation.scene.TestScenes.SceneA in <lambda>() 72 initialScene: SceneKey = SceneA, in <lambda>() 89 SceneA, in <lambda>() 103 userActions = if (swipesEnabled()) mapOf(Swipe.Right to SceneA) else emptyMap(), in <lambda>() 112 Swipe.Down to SceneA, in <lambda>() 137 assertThat(layoutState.transitionState).hasCurrentScene(SceneA) in <lambda>() 152 assertThat(transition).hasFromScene(SceneA) in <lambda>() 154 assertThat(transition).hasCurrentScene(SceneA) in <lambda>() 162 assertThat(transition).hasFromScene(SceneA) in <lambda>() 164 assertThat(transition).hasCurrentScene(SceneA) in <lambda>() [all …]
|
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() 42 val picker = MovableElementScenePicker(scenes = setOf(TestScenes.SceneA)) in fromSceneInScenes() 46 transition(from = TestScenes.SceneA, to = TestScenes.SceneB), in fromSceneInScenes() 51 .isEqualTo(TestScenes.SceneA) in fromSceneInScenes() 60 transition(from = TestScenes.SceneA, to = TestScenes.SceneB), in noneInScenes()
|
D | ElementScenePickerTest.kt | 44 fromScene = TestScenes.SceneA, in highestZIndexPicker() 48 onElement(key, TestScenes.SceneA).assertIsDisplayed() in highestZIndexPicker() 53 onElement(key, TestScenes.SceneA).assertExists().assertIsNotDisplayed() in highestZIndexPicker() 57 onElement(key, TestScenes.SceneA).assertDoesNotExist() in highestZIndexPicker() 70 fromScene = TestScenes.SceneA, in lowestZIndexPicker() 74 onElement(key, TestScenes.SceneA).assertIsDisplayed() in lowestZIndexPicker() 79 onElement(key, TestScenes.SceneA).assertIsDisplayed() in lowestZIndexPicker() 83 onElement(key, TestScenes.SceneA).assertDoesNotExist() in lowestZIndexPicker()
|
D | SceneTransitionLayoutTest.kt | 52 import com.android.compose.animation.scene.TestScenes.SceneA 71 private var currentScene by mutableStateOf(SceneA) 94 SceneA, in TestContent() 154 assertThat(layoutState.transitionState).hasCurrentScene(SceneA) in testOnlyCurrentSceneIsDisplayed() 169 assertThat(layoutState.transitionState).hasCurrentScene(SceneA) in testBack() 180 assertThat(layoutState.transitionState).hasCurrentScene(SceneA) in testTransitionState() 189 assertThat(layoutState.transitionState).hasCurrentScene(SceneA) in testTransitionState() 196 assertThat(transition).hasFromScene(SceneA) in testTransitionState() 309 currentScene = SceneA in testSharedElement() 313 assertThat(layoutState.transitionState).hasCurrentScene(SceneA) in testSharedElement() [all …]
|
D | AnimatedSharedAsStateTest.kt | 38 import com.android.compose.animation.scene.TestScenes.SceneA 141 fromScene = SceneA, in animateElementValues() 200 fromScene = SceneA, in movableAnimateSharedValues() 254 fromScene = SceneA, in animateSceneValues() 396 rule.runOnUiThread { MutableSceneTransitionLayoutStateImpl(SceneA, transitions {}) } in <lambda>() 414 scene(SceneA) { animateFloat(0f, foo) } in <lambda>() 427 from = SceneA, in <lambda>() 439 assertThat(lastValues[foo]?.get(SceneA)).isWithin(0.001f).of(30f) in <lambda>() 444 assertThat(lastValues[bar]?.get(SceneA)).isNull() in <lambda>() 455 SceneA, in animatedValueDoesNotOverscrollWhenOverscrollIsSpecified() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/ |
D | SharedElementTest.kt | 68 onElement(TestElements.Foo, TestScenes.SceneA).assertIsNotDisplayed() in testSharedElement() 75 onElement(TestElements.Foo, TestScenes.SceneA).assertIsNotDisplayed() in testSharedElement() 82 onElement(TestElements.Foo, TestScenes.SceneA).assertIsNotDisplayed() in testSharedElement() 89 onElement(TestElements.Foo, TestScenes.SceneA).assertIsNotDisplayed() in testSharedElement() 105 fromScene = TestScenes.SceneA, in testSharedElementDisabled() 128 translate(TestElements.Foo.inScene(TestScenes.SceneA), Edge.Left) in testSharedElementDisabled() 136 onElement(TestElements.Foo, scene = TestScenes.SceneA) in testSharedElementDisabled() 142 onElement(TestElements.Foo, scene = TestScenes.SceneA) in testSharedElementDisabled() 148 onElement(TestElements.Foo, scene = TestScenes.SceneA) in testSharedElementDisabled() 154 onElement(TestElements.Foo, scene = TestScenes.SceneA) in testSharedElementDisabled()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/utils/src/com/android/compose/animation/scene/ |
D | TestValues.kt | 26 val SceneA = SceneKey("SceneA") constant 53 from(TestScenes.SceneA, to = TestScenes.SceneB) { in <lambda>() 61 from(TestScenes.SceneC, to = TestScenes.SceneA) { spec = snap() } in <lambda>()
|
D | TestTransition.kt | 93 fromScene: SceneKey = TestScenes.SceneA, in onElement() 137 fromScene: SceneKey = TestScenes.SceneA, in MotionTestRule()
|