| /compose/animation/animation-core/src/commonTest/kotlin/androidx/compose/animation/core/ |
| D | KeyframeSplineAnimationTest.kt | 42 assertEquals(AnimationVector2D(0.5f, 1.25f), animation.valueAt(125)) in interpolatedValues() 43 assertEquals(AnimationVector2D(4f, 10f), animation.velocityAt(125)) in interpolatedValues() 46 assertEquals(AnimationVector2D(1.5f, 2f), animation.valueAt(375)) in interpolatedValues() 49 assertEquals(AnimationVector2D(4f, 0f), animation.velocityAt(375)) in interpolatedValues() 53 AnimationVector2D(0.5f, 1.25f), in interpolatedValues() 57 AnimationVector2D(-4f, -10f), in interpolatedValues() 195 assertEquals(AnimationVector2D(0f, 0f), startValue) in possibleToOverrideStartAndEndValues() 196 assertEquals(AnimationVector2D(2f, 2f), endValue) in possibleToOverrideStartAndEndValues() 210 val expectedVelocity = AnimationVector2D(4f, 4f) in initialVelocityIgnored() 235 assertEquals(AnimationVector2D(0f, 0f), animation.valueAt(0L, start = Offset.Zero)) in testDelay() [all …]
|
| D | ArcAnimationTest.kt | 40 val animation = createArcAnimation<AnimationVector2D>(ArcAbove) in test2DInterpolation_withArcAbove() 41 var arcValue: AnimationVector2D in test2DInterpolation_withArcAbove() 42 var linearValue: AnimationVector2D in test2DInterpolation_withArcAbove() 68 var arcVelocity: AnimationVector2D in test2DInterpolation_withArcAbove() 86 val animation = createArcAnimation<AnimationVector2D>(ArcBelow) in test2DInterpolation_withArcBelow() 87 var arcValue: AnimationVector2D in test2DInterpolation_withArcBelow() 88 var linearValue: AnimationVector2D in test2DInterpolation_withArcBelow() 114 var arcVelocity: AnimationVector2D in test2DInterpolation_withArcBelow() 132 val animation = createArcAnimation<AnimationVector2D>(ArcLinear) in test2DInterpolation_withLinearArc() 133 var arcValue: AnimationVector2D in test2DInterpolation_withLinearArc() [all …]
|
| D | AnimationVectorTest.kt | 27 assertEquals(AnimationVector2D(0f, 0f), AnimationVector(1f, 2f).apply { reset() }) in testReset() 43 AnimationVector2D(0f, 0f).hashCode(), in testHashCode() 57 assertNotEquals(AnimationVector2D(2f, 1f).hashCode(), AnimationVector(1f, 2f).hashCode()) in testHashCode() 71 assertEquals(AnimationVector2D(7f, 500f), AnimationVector(7f, 500f)) in testAnimationVectorFactoryMethod() 72 assertNotEquals(AnimationVector2D(7f, 501f), AnimationVector(7f, 500f)) in testAnimationVectorFactoryMethod()
|
| D | KeyframeArcAnimationTest.kt | 37 var arcVector: AnimationVector2D in test2DArcKeyFrame_interpolatedValues() 38 var linearVector: AnimationVector2D in test2DArcKeyFrame_interpolatedValues() 87 var arcVector: AnimationVector2D in test2DArcKeyFrame_multipleEasing() 88 var linearVector: AnimationVector2D in test2DArcKeyFrame_multipleEasing()
|
| D | SuspendAnimationTest.kt | 61 val offsetToVector: TwoWayConverter<Offset, AnimationVector2D> = in <lambda>() 63 convertToVector = { AnimationVector2D(it.x, it.y) }, in <lambda>() 118 val offsetToVector: TwoWayConverter<Offset, AnimationVector2D> = in <lambda>() 120 convertToVector = { AnimationVector2D(it.x, it.y) }, in <lambda>()
|
| D | AnimationTestUtils.kt | 132 AnimationVector2D::class -> { in getVelocityFromMillis() 165 AnimationVector2D::class -> AnimationVector2D(value, value) in createFilledVector()
|
| D | AnimatableTest.kt | 111 val offsetToVector: TwoWayConverter<Offset, AnimationVector2D> = in <lambda>() 113 convertToVector = { AnimationVector2D(it.x, it.y) }, in <lambda>()
|
| /compose/animation/animation-core/src/commonMain/kotlin/androidx/compose/animation/core/ |
| D | VectorConverters.kt | 95 public val DpOffset.Companion.VectorConverter: TwoWayConverter<DpOffset, AnimationVector2D> 99 public val Size.Companion.VectorConverter: TwoWayConverter<Size, AnimationVector2D> 103 public val Offset.Companion.VectorConverter: TwoWayConverter<Offset, AnimationVector2D> 107 public val IntOffset.Companion.VectorConverter: TwoWayConverter<IntOffset, AnimationVector2D> 115 public val IntSize.Companion.VectorConverter: TwoWayConverter<IntSize, AnimationVector2D> 126 private val DpOffsetToVector: TwoWayConverter<DpOffset, AnimationVector2D> = 128 convertToVector = { AnimationVector2D(it.x.value, it.y.value) }, in <lambda>() 133 private val SizeToVector: TwoWayConverter<Size, AnimationVector2D> = 135 convertToVector = { AnimationVector2D(it.width, it.height) }, in <lambda>() 140 private val OffsetToVector: TwoWayConverter<Offset, AnimationVector2D> = [all …]
|
| D | AnimationVectors.kt | 53 public fun AnimationVector(v1: Float, v2: Float): AnimationVector2D = AnimationVector2D(v1, v2) in reset() 143 public class AnimationVector2D(v1: Float, v2: Float) : AnimationVector() { in equals() class 158 override fun newVector(): AnimationVector2D = AnimationVector2D(0f, 0f) in equals() 182 other is AnimationVector2D && other.v1 == v1 && other.v2 == v2 in equals()
|
| D | Animatable.kt | 129 is AnimationVector2D -> negativeInfinityBounds2D 139 is AnimationVector2D -> positiveInfinityBounds2D
|
| /compose/animation/animation-core/benchmark/src/androidTest/java/androidx/compose/animation/core/benchmark/ |
| D | AnimationBenchmark.kt | 22 import androidx.compose.animation.core.AnimationVector2D 74 val anim = VectorizedTweenSpec<AnimationVector2D>(1000) in animationSpec2D() 75 val start = AnimationVector2D(0f, 0f) in animationSpec2D() 76 val end = AnimationVector2D(100f, 300f) in animationSpec2D() 87 val anim = VectorizedTweenSpec<AnimationVector2D>(1000) in animation2D() 88 val start = AnimationVector2D(0f, 0f) in animation2D() 89 val end = AnimationVector2D(100f, 300f) in animation2D()
|
| /compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/selection/ |
| D | SelectionMagnifier.kt | 20 import androidx.compose.animation.core.AnimationVector2D in <lambda>() 37 private val UnspecifiedAnimationVector2D = AnimationVector2D(Float.NaN, Float.NaN) in <lambda>() 41 TwoWayConverter<Offset, AnimationVector2D>( in <lambda>() 44 AnimationVector2D(it.x, it.y) in <lambda>()
|
| /compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/lookahead/ |
| D | SceneHostExperiment.kt | 19 import androidx.compose.animation.core.AnimationVector2D in <lambda>() 66 val offsetAnimation: DeferredTargetAnimation<IntOffset, AnimationVector2D> = remember { in <lambda>() 69 val sizeAnimation: DeferredTargetAnimation<IntSize, AnimationVector2D> = remember { in <lambda>() 160 internal fun DeferredTargetAnimation<IntOffset, AnimationVector2D>.updateTargetBasedOnCoordinates( in updateTargetBasedOnCoordinates()
|
| /compose/animation/animation-core/samples/src/main/java/androidx/compose/animation/core/samples/ |
| D | AnimatedValueSamples.kt | 20 import androidx.compose.animation.core.AnimationVector2D 86 TwoWayConverter<MySize, AnimationVector2D>( in ArbitraryValueTypeTransitionSample() 87 convertToVector = { AnimationVector2D(it.width.value, it.height.value) }, in ArbitraryValueTypeTransitionSample()
|
| D | AnimatableSamples.kt | 22 import androidx.compose.animation.core.AnimationVector2D in <lambda>() 243 sizeAnimation: DeferredTargetAnimation<IntSize, AnimationVector2D>, in DeferredTargetAnimationSample()
|
| /compose/animation/animation/src/androidUnitTest/kotlin/androidx/compose/animation/ |
| D | ConverterTest.kt | 20 import androidx.compose.animation.core.AnimationVector2D 127 Offset.VectorConverter.convertFromVector(AnimationVector2D(x, y)) in testOffsetConverter() 129 assertEquals(AnimationVector2D(x, y), Offset.VectorConverter.convertToVector(Offset(x, y))) in testOffsetConverter()
|
| /compose/ui/ui/samples/src/main/java/androidx/compose/ui/samples/ |
| D | LookaheadScopeSample.kt | 21 import androidx.compose.animation.core.AnimationVector2D in <lambda>() 79 sizeAnimation: DeferredTargetAnimation<IntSize, AnimationVector2D>, in <lambda>() 136 val offsetAnimation: DeferredTargetAnimation<IntOffset, AnimationVector2D> = in LookaheadLayoutCoordinatesSample() 241 var sizeAnim by remember { mutableStateOf<Animatable<IntSize, AnimationVector2D>?>(null) } in animateContentSizeAfterLookaheadPass()
|
| D | OnPlacedSamples.kt | 21 import androidx.compose.animation.core.AnimationVector2D 56 mutableStateOf<Animatable<IntOffset, AnimationVector2D>?>(null) in OnPlaced()
|
| /compose/animation/animation/src/commonMain/kotlin/androidx/compose/animation/ |
| D | EnterExitTransition.kt | 21 import androidx.compose.animation.core.AnimationVector2D 1057 TwoWayConverter<TransformOrigin, AnimationVector2D>( 1058 convertToVector = { AnimationVector2D(it.pivotFractionX, it.pivotFractionY) }, in <lambda>() 1072 var sizeAnimation: Transition<EnterExitState>.DeferredAnimation<IntSize, AnimationVector2D>?, 1074 Transition<EnterExitState>.DeferredAnimation<IntOffset, AnimationVector2D>?, 1075 var slideAnimation: Transition<EnterExitState>.DeferredAnimation<IntOffset, AnimationVector2D>?, 1231 var sizeAnimation: Transition<EnterExitState>.DeferredAnimation<IntSize, AnimationVector2D>?, 1233 Transition<EnterExitState>.DeferredAnimation<IntOffset, AnimationVector2D>?, 1234 var slideAnimation: Transition<EnterExitState>.DeferredAnimation<IntOffset, AnimationVector2D>?,
|
| D | AnimationModifier.kt | 22 import androidx.compose.animation.core.AnimationVector2D 166 data class AnimData(val anim: Animatable<IntSize, AnimationVector2D>, var startSize: IntSize)
|
| D | AnimatedContent.kt | 27 import androidx.compose.animation.core.AnimationVector2D in <lambda>() 569 val sizeAnimation: Transition<S>.DeferredAnimation<IntSize, AnimationVector2D>? in createSizeAnimationModifier() 601 val sizeAnimation: Transition<S>.DeferredAnimation<IntSize, AnimationVector2D>?, 635 var sizeAnimation: Transition<S>.DeferredAnimation<IntSize, AnimationVector2D>?,
|
| /compose/animation/animation-graphics/src/commonMain/kotlin/androidx/compose/animation/graphics/vector/ |
| D | AnimatorAnimationSpecs.kt | 21 import androidx.compose.animation.core.AnimationVector2D in <lambda>() 159 is AnimationVector2D -> AnimationVector2D(v1 * -1, v2 * -1) as V in reversed()
|
| /compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/layoutanimation/ |
| D | AnimatedPlacementDemo.kt | 20 import androidx.compose.animation.core.AnimationVector2D 94 var animatable by mutableStateOf<Animatable<Offset, AnimationVector2D>?>(null)
|
| /compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/suspendfun/ |
| D | PeriodicMonoSplineDemo.kt | 22 import androidx.compose.animation.core.AnimationVector2D in <lambda>() 199 val zeroVector = AnimationVector2D(0f, 0f) in MonoSplineCurve()
|
| /compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/gestures/ |
| D | TransformableState.kt | 23 import androidx.compose.animation.core.AnimationVector2D in <lambda>() 365 offset: AnimationVector2D, in vectorize()
|