/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/ |
D | AnchoredTranslateTest.kt | 28 import com.android.compose.animation.scene.TestElements 43 Box(Modifier.offset(10.dp, 50.dp).element(TestElements.Foo)) in testAnchoredTranslateExit() 44 Box(Modifier.offset(20.dp, 40.dp).element(TestElements.Bar)) in testAnchoredTranslateExit() 46 toSceneContent = { Box(Modifier.offset(30.dp, 10.dp).element(TestElements.Foo)) }, in testAnchoredTranslateExit() 50 anchoredTranslate(TestElements.Bar, TestElements.Foo) in testAnchoredTranslateExit() 54 before { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(20.dp, 40.dp) } in testAnchoredTranslateExit() 55 at(0) { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(20.dp, 40.dp) } in testAnchoredTranslateExit() 56 at(16) { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(25.dp, 30.dp) } in testAnchoredTranslateExit() 57 at(32) { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(30.dp, 20.dp) } in testAnchoredTranslateExit() 58 at(48) { onElement(TestElements.Bar).assertPositionInRootIsEqualTo(35.dp, 10.dp) } in testAnchoredTranslateExit() [all …]
|
D | EdgeTranslateTest.kt | 31 import com.android.compose.animation.scene.TestElements 55 Box(Modifier.size(100.dp).element(TestElements.Foo).align(Alignment.Center)) in testEdgeTranslate() 60 translate(TestElements.Foo, edge, startsOutsideLayoutBounds) in testEdgeTranslate() 69 before { onElement(TestElements.Foo).assertDoesNotExist() } in testEntersFromTop_startsOutsideLayoutBounds() 70 at(0) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, (-100).dp) } in testEntersFromTop_startsOutsideLayoutBounds() 71 at(32) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 0.dp) } in testEntersFromTop_startsOutsideLayoutBounds() 72 at(64) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 100.dp) } in testEntersFromTop_startsOutsideLayoutBounds() 73 after { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 100.dp) } in testEntersFromTop_startsOutsideLayoutBounds() 80 before { onElement(TestElements.Foo).assertDoesNotExist() } in testEntersFromTop_startsInsideLayoutBounds() 81 at(0) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(100.dp, 0.dp) } in testEntersFromTop_startsInsideLayoutBounds() [all …]
|
D | SharedElementTest.kt | 32 import com.android.compose.animation.scene.TestElements 50 Box(Modifier.offset(10.dp, 50.dp).element(TestElements.Foo).size(20.dp, 80.dp)) in testSharedElement() 54 Box(Modifier.offset(50.dp, 70.dp).element(TestElements.Foo).size(10.dp, 40.dp)) in testSharedElement() 62 onElement(TestElements.Foo).assertPositionInRootIsEqualTo(10.dp, 50.dp) in testSharedElement() 63 onElement(TestElements.Foo).assertSizeIsEqualTo(20.dp, 80.dp) in testSharedElement() 68 onElement(TestElements.Foo, TestScenes.SceneA).assertIsNotDisplayed() in testSharedElement() 70 onElement(TestElements.Foo, TestScenes.SceneB) in testSharedElement() 75 onElement(TestElements.Foo, TestScenes.SceneA).assertIsNotDisplayed() in testSharedElement() 77 onElement(TestElements.Foo, TestScenes.SceneB) in testSharedElement() 82 onElement(TestElements.Foo, TestScenes.SceneA).assertIsNotDisplayed() in testSharedElement() [all …]
|
D | AnchoredSizeTest.kt | 29 import com.android.compose.animation.scene.TestElements 52 fromSceneContent = { Box(Modifier.size(100.dp, 100.dp).element(TestElements.Foo)) }, in testAnchoredSizeEnter() 54 Box(Modifier.size(50.dp, 50.dp).element(TestElements.Foo)) in testAnchoredSizeEnter() 55 Box(Modifier.size(200.dp, 60.dp).element(TestElements.Bar)) in testAnchoredSizeEnter() 59 anchoredSize(TestElements.Bar, TestElements.Foo) in testAnchoredSizeEnter() 68 Box(Modifier.size(100.dp, 100.dp).element(TestElements.Foo)) in testAnchoredSizeExit() 69 Box(Modifier.size(100.dp, 100.dp).element(TestElements.Bar)) in testAnchoredSizeExit() 71 toSceneContent = { Box(Modifier.size(200.dp, 60.dp).element(TestElements.Foo)) }, in testAnchoredSizeExit() 75 anchoredSize(TestElements.Bar, TestElements.Foo) in testAnchoredSizeExit() 83 fromSceneContent = { Box(Modifier.size(100.dp, 100.dp).element(TestElements.Foo)) }, in testAnchoredWidthOnly() [all …]
|
D | TranslateTest.kt | 28 import com.android.compose.animation.scene.TestElements 43 Box(Modifier.offset(10.dp, 50.dp).element(TestElements.Foo)) in testTranslateExit() 49 translate(TestElements.Foo, x = 20.dp, y = (-40).dp) in testTranslateExit() 52 before { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(10.dp, 50.dp) } in testTranslateExit() 53 at(0) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(10.dp, 50.dp) } in testTranslateExit() 54 at(16) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(15.dp, 40.dp) } in testTranslateExit() 55 at(32) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(20.dp, 30.dp) } in testTranslateExit() 56 at(48) { onElement(TestElements.Foo).assertPositionInRootIsEqualTo(25.dp, 20.dp) } in testTranslateExit() 57 after { onElement(TestElements.Foo).assertDoesNotExist() } in testTranslateExit() 67 Box(Modifier.offset(10.dp, 50.dp).element(TestElements.Foo)) in testTranslateEnter() [all …]
|
D | ScaleSizeTest.kt | 27 import com.android.compose.animation.scene.TestElements 42 toSceneContent = { Box(Modifier.size(100.dp).element(TestElements.Foo)) }, in testScaleSize() 46 scaleSize(TestElements.Foo, width = 2f, height = 0.5f) in testScaleSize() 51 before { onElement(TestElements.Foo).assertDoesNotExist() } in testScaleSize() 52 at(0) { onElement(TestElements.Foo).assertSizeIsEqualTo(200.dp, 50.dp) } in testScaleSize() 53 at(16) { onElement(TestElements.Foo).assertSizeIsEqualTo(175.dp, 62.5.dp) } in testScaleSize() 54 at(32) { onElement(TestElements.Foo).assertSizeIsEqualTo(150.dp, 75.dp) } in testScaleSize() 55 at(48) { onElement(TestElements.Foo).assertSizeIsEqualTo(125.dp, 87.5.dp) } in testScaleSize() 56 at(64) { onElement(TestElements.Foo).assertSizeIsEqualTo(100.dp, 100.dp) } in testScaleSize() 57 after { onElement(TestElements.Foo).assertSizeIsEqualTo(100.dp, 100.dp) } in testScaleSize()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | TransitionDslTest.kt | 93 from(TestScenes.SceneA, to = TestScenes.SceneB) { fade(TestElements.Foo) } in defaultRange() 106 fractionRange(start = 0.1f, end = 0.8f) { fade(TestElements.Foo) } in fractionRange() 107 fractionRange(start = 0.2f) { fade(TestElements.Foo) } in fractionRange() 108 fractionRange(end = 0.9f) { fade(TestElements.Foo) } in fractionRange() 129 timestampRange(startMillis = 100, endMillis = 300) { fade(TestElements.Foo) } in timestampRange() 130 timestampRange(startMillis = 200) { fade(TestElements.Foo) } in timestampRange() 131 timestampRange(endMillis = 400) { fade(TestElements.Foo) } in timestampRange() 152 fractionRange(start = 0.1f, end = 0.8f) { fade(TestElements.Foo) } in reversed() 153 timestampRange(startMillis = 100, endMillis = 300) { fade(TestElements.Foo) } in reversed() 173 fractionRange(start = 0.1f, end = 0.8f) { fade(TestElements.Foo) } in defaultReversed() [all …]
|
D | MovableElementScenePickerTest.kt | 31 TestElements.Foo, in toSceneInScenes() 45 TestElements.Foo, in fromSceneInScenes() 59 TestElements.Foo, in noneInScenes()
|
D | SwipeToSceneTest.kt | 86 modifier = Modifier.size(LayoutWidth, LayoutHeight).testTag(TestElements.Foo.debugName), in <lambda>() 498 from(SceneA, to = SceneB) { fade(TestElements.Foo) } in <lambda>() 500 fade(TestElements.Foo) in <lambda>() 501 fade(TestElements.Bar) in <lambda>() 551 val fooSize = TestElements.Foo.targetSize(SceneB) ?: return 0f in <lambda>() 552 val fooOffset = TestElements.Foo.targetOffset(SceneB) ?: return 0f in <lambda>() 578 Box(Modifier.offset(y = fooYOffset).element(TestElements.Foo).size(fooSize)) in <lambda>() 610 translate(TestElements.Foo, x = { 20.dp.toPx() }, y = { 30.dp.toPx() }) in <lambda>() 623 scene(SceneB) { Box(Modifier.element(TestElements.Foo).fillMaxSize()) } in <lambda>() 635 rule.onNode(isElement(TestElements.Foo)).assertPositionInRootIsEqualTo(20.dp, 30.dp) in <lambda>()
|
D | SceneTransitionLayoutTest.kt | 127 Element(TestElements.Foo, modifier.size(size).background(Color.Red)) { in SceneScope() 139 .testTag(TestElements.Bar.debugName) in SceneScope() 228 var sharedFoo = rule.onNodeWithTag(TestElements.Foo.testTag, useUnmergedTree = true) in testSharedElement() 254 sharedFoo = rule.onNode(isElement(TestElements.Foo, SceneB)) in testSharedElement() 288 sharedFoo = rule.onNode(isElement(TestElements.Foo, SceneC)) in testSharedElement()
|
D | SceneTransitionLayoutStateTest.kt | 310 from(SceneA, to = SceneB) { fade(TestElements.Foo) } in <lambda>() 312 fade(TestElements.Foo) in <lambda>() 313 fade(TestElements.Bar) in <lambda>() 471 overscroll(SceneB, Orientation.Vertical) { fade(TestElements.Foo) } in <lambda>() 502 overscroll(SceneA, Orientation.Vertical) { fade(TestElements.Foo) } in <lambda>()
|
D | DraggableHandlerTest.kt | 981 overscroll(SceneC, Orientation.Vertical) { fade(TestElements.Foo) } in <lambda>() 1040 overscroll(SceneB, Orientation.Vertical) { fade(TestElements.Foo) } in <lambda>() 1066 overscroll(SceneC, Orientation.Vertical) { fade(TestElements.Foo) } in <lambda>() 1092 overscroll(SceneB, Orientation.Vertical) { fade(TestElements.Foo) } in <lambda>() 1119 overscroll(SceneC, Orientation.Vertical) { fade(TestElements.Foo) } in <lambda>() 1146 overscroll(SceneA, Orientation.Vertical) { fade(TestElements.Foo) } in <lambda>() 1175 overscroll(SceneA, Orientation.Vertical) { fade(TestElements.Foo) } in <lambda>()
|
D | AnimatedSharedAsStateTest.kt | 74 val key = TestElements.Foo in Foo() 94 val key = TestElements.Foo in SceneScope()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/modifiers/ |
D | SizeTest.kt | 29 import com.android.compose.animation.scene.TestElements 47 fromSceneContent = { Box(Modifier.element(TestElements.Foo).size(100.dp)) }, in noResizeDuringTransitions() 52 Box(Modifier.element(TestElements.Foo).size(200.dp)) in noResizeDuringTransitions()
|
/frameworks/base/packages/SystemUI/compose/scene/tests/utils/src/com/android/compose/animation/scene/ |
D | TestValues.kt | 33 object TestElements { object
|