Loading packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -230,7 +230,7 @@ class TransitionAnimatorTest( sampleIntervalMs = 16L } else { assertTrue { animation is TransitionAnimator.InterpolatedAnimation } motionControl = MotionControl { awaitFrames(count = 26) } motionControl = MotionControl { awaitFrames(count = 25) } sampleIntervalMs = 20L } Loading tests/testables/src/android/animation/AnimatorTestRuleToolkit.kt +11 −11 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ private class MotionControlImpl( } override suspend fun awaitFrames(count: Int) { onFrame.take(count).collect {} onFrame.take(count + 1).collect {} } private fun MotionControlFn.launch(): Job { Loading tests/testables/tests/src/android/animation/AnimatorTestRuleToolkitTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ class AnimatorTestRuleToolkitTest { val recordedMotion = record( animatedBox, MotionControl { awaitFrames(count = 26) }, MotionControl { awaitFrames(count = 25) }, sampleIntervalMs = 20L, recordScreenshots = true, ) Loading @@ -103,7 +103,7 @@ class AnimatorTestRuleToolkitTest { val recordedMotion = record( animatedBox, MotionControl { awaitFrames(count = 26) }, MotionControl { awaitFrames(count = 25) }, sampleIntervalMs = 20L, recordScreenshots = false, ) Loading Loading
packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -230,7 +230,7 @@ class TransitionAnimatorTest( sampleIntervalMs = 16L } else { assertTrue { animation is TransitionAnimator.InterpolatedAnimation } motionControl = MotionControl { awaitFrames(count = 26) } motionControl = MotionControl { awaitFrames(count = 25) } sampleIntervalMs = 20L } Loading
tests/testables/src/android/animation/AnimatorTestRuleToolkit.kt +11 −11 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ private class MotionControlImpl( } override suspend fun awaitFrames(count: Int) { onFrame.take(count).collect {} onFrame.take(count + 1).collect {} } private fun MotionControlFn.launch(): Job { Loading
tests/testables/tests/src/android/animation/AnimatorTestRuleToolkitTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ class AnimatorTestRuleToolkitTest { val recordedMotion = record( animatedBox, MotionControl { awaitFrames(count = 26) }, MotionControl { awaitFrames(count = 25) }, sampleIntervalMs = 20L, recordScreenshots = true, ) Loading @@ -103,7 +103,7 @@ class AnimatorTestRuleToolkitTest { val recordedMotion = record( animatedBox, MotionControl { awaitFrames(count = 26) }, MotionControl { awaitFrames(count = 25) }, sampleIntervalMs = 20L, recordScreenshots = false, ) Loading