From 6e71a5f7b7a4fc75cc079ef4fb5fb2b1f2c3355c Mon Sep 17 00:00:00 2001 From: Luca Zuccarini Date: Mon, 4 Nov 2024 17:06:35 +0000 Subject: Use initial velocity with spring animations in TransitionAnimator. I've also reworked the test a bunch to reduce repetition and use parameters better. Shouldn't need to touch it much after this. Bug: 323863002 Flag: com.android.systemui.shared.return_animation_framework_library Test: atest TransitionAnimatorTest Change-Id: I961198763a73a58b3b3db0fa8b3f79f53cbf1c98 --- .../systemui/animation/TransitionAnimator.kt | 63 ++- ...Series_withFade_whenLaunching_withAnimator.json | 492 +++++++++++++++++++++ ...meSeries_withFade_whenLaunching_withSpring.json | 384 ++++++++++++++++ ...Series_withFade_whenReturning_withAnimator.json | 492 +++++++++++++++++++++ ...meSeries_withFade_whenReturning_withSpring.json | 384 ++++++++++++++++ ...ies_withoutFade_whenLaunching_withAnimator.json | 492 +++++++++++++++++++++ ...eries_withoutFade_whenLaunching_withSpring.json | 384 ++++++++++++++++ ...ies_withoutFade_whenReturning_withAnimator.json | 492 +++++++++++++++++++++ ...eries_withoutFade_whenReturning_withSpring.json | 384 ++++++++++++++++ ...ckgroundAnimationWithoutFade_whenLaunching.json | 492 --------------------- ...mationWithoutFade_whenLaunching_withSpring.json | 375 ---------------- ...ckgroundAnimationWithoutFade_whenReturning.json | 492 --------------------- ...mationWithoutFade_whenReturning_withSpring.json | 375 ---------------- .../goldens/backgroundAnimation_whenLaunching.json | 492 --------------------- ...ckgroundAnimation_whenLaunching_withSpring.json | 375 ---------------- .../goldens/backgroundAnimation_whenReturning.json | 492 --------------------- ...ckgroundAnimation_whenReturning_withSpring.json | 375 ---------------- .../systemui/animation/TransitionAnimatorTest.kt | 186 ++++---- 18 files changed, 3632 insertions(+), 3589 deletions(-) create mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenLaunching_withAnimator.json create mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenLaunching_withSpring.json create mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenReturning_withAnimator.json create mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenReturning_withSpring.json create mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenLaunching_withAnimator.json create mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenLaunching_withSpring.json create mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenReturning_withAnimator.json create mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenReturning_withSpring.json delete mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenLaunching.json delete mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenLaunching_withSpring.json delete mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenReturning.json delete mode 100644 packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenReturning_withSpring.json delete mode 100644 packages/SystemUI/tests/goldens/backgroundAnimation_whenLaunching.json delete mode 100644 packages/SystemUI/tests/goldens/backgroundAnimation_whenLaunching_withSpring.json delete mode 100644 packages/SystemUI/tests/goldens/backgroundAnimation_whenReturning.json delete mode 100644 packages/SystemUI/tests/goldens/backgroundAnimation_whenReturning_withSpring.json diff --git a/packages/SystemUI/animation/src/com/android/systemui/animation/TransitionAnimator.kt b/packages/SystemUI/animation/src/com/android/systemui/animation/TransitionAnimator.kt index 4cf264253bf8..fdb4871423c3 100644 --- a/packages/SystemUI/animation/src/com/android/systemui/animation/TransitionAnimator.kt +++ b/packages/SystemUI/animation/src/com/android/systemui/animation/TransitionAnimator.kt @@ -20,6 +20,7 @@ import android.animation.Animator import android.animation.AnimatorListenerAdapter import android.animation.ValueAnimator import android.content.Context +import android.graphics.PointF import android.graphics.PorterDuff import android.graphics.PorterDuffXfermode import android.graphics.drawable.GradientDrawable @@ -33,13 +34,13 @@ import android.view.ViewOverlay import android.view.animation.Interpolator import android.window.WindowAnimationState import com.android.app.animation.Interpolators.LINEAR -import com.android.app.animation.MathUtils.max import com.android.internal.annotations.VisibleForTesting import com.android.internal.dynamicanimation.animation.SpringAnimation import com.android.internal.dynamicanimation.animation.SpringForce import com.android.systemui.shared.Flags.returnAnimationFrameworkLibrary import java.util.concurrent.Executor import kotlin.math.abs +import kotlin.math.max import kotlin.math.min import kotlin.math.roundToInt @@ -91,6 +92,14 @@ class TransitionAnimator( ) } + /** + * Similar to [getProgress] above, bug the delay and duration are expressed as percentages + * of the animation duration (between 0f and 1f). + */ + internal fun getProgress(linearProgress: Float, delay: Float, duration: Float): Float { + return getProgressInternal(totalDuration = 1f, linearProgress, delay, duration) + } + private fun getProgressInternal( totalDuration: Float, linearProgress: Float, @@ -262,10 +271,10 @@ class TransitionAnimator( var centerY: Float, var scale: Float = 0f, - // Cached values. - var previousCenterX: Float = -1f, - var previousCenterY: Float = -1f, - var previousScale: Float = -1f, + // Update flags (used to decide whether it's time to update the transition state). + var isCenterXUpdated: Boolean = false, + var isCenterYUpdated: Boolean = false, + var isScaleUpdated: Boolean = false, // Completion flags. var isCenterXDone: Boolean = false, @@ -286,6 +295,7 @@ class TransitionAnimator( override fun setValue(state: SpringState, value: Float) { state.centerX = value + state.isCenterXUpdated = true } }, CENTER_Y { @@ -295,6 +305,7 @@ class TransitionAnimator( override fun setValue(state: SpringState, value: Float) { state.centerY = value + state.isCenterYUpdated = true } }, SCALE { @@ -304,6 +315,7 @@ class TransitionAnimator( override fun setValue(state: SpringState, value: Float) { state.scale = value + state.isScaleUpdated = true } }; @@ -444,8 +456,8 @@ class TransitionAnimator( * punching a hole in the [transition container][Controller.transitionContainer]) iff [drawHole] * is true. * - * If [useSpring] is true, a multi-spring animation will be used instead of the default - * interpolators. + * If [startVelocity] (expressed in pixels per second) is not null, a multi-spring animation + * using it for the initial momentum will be used instead of the default interpolators. */ fun startAnimation( controller: Controller, @@ -453,9 +465,9 @@ class TransitionAnimator( windowBackgroundColor: Int, fadeWindowBackgroundLayer: Boolean = true, drawHole: Boolean = false, - useSpring: Boolean = false, + startVelocity: PointF? = null, ): Animation { - if (!controller.isLaunching || useSpring) checkReturnAnimationFrameworkFlag() + if (!controller.isLaunching || startVelocity != null) checkReturnAnimationFrameworkFlag() // We add an extra layer with the same color as the dialog/app splash screen background // color, which is usually the same color of the app background. We first fade in this layer @@ -474,7 +486,7 @@ class TransitionAnimator( windowBackgroundLayer, fadeWindowBackgroundLayer, drawHole, - useSpring, + startVelocity, ) .apply { start() } } @@ -487,7 +499,7 @@ class TransitionAnimator( windowBackgroundLayer: GradientDrawable, fadeWindowBackgroundLayer: Boolean = true, drawHole: Boolean = false, - useSpring: Boolean = false, + startVelocity: PointF? = null, ): Animation { val transitionContainer = controller.transitionContainer val transitionContainerOverlay = transitionContainer.overlay @@ -504,11 +516,12 @@ class TransitionAnimator( openingWindowSyncView != null && openingWindowSyncView.viewRootImpl != controller.transitionContainer.viewRootImpl - return if (useSpring && springTimings != null && springInterpolators != null) { + return if (startVelocity != null && springTimings != null && springInterpolators != null) { createSpringAnimation( controller, startState, endState, + startVelocity, windowBackgroundLayer, transitionContainer, transitionContainerOverlay, @@ -693,6 +706,7 @@ class TransitionAnimator( controller: Controller, startState: State, endState: State, + startVelocity: PointF, windowBackgroundLayer: GradientDrawable, transitionContainer: View, transitionContainerOverlay: ViewGroupOverlay, @@ -721,19 +735,20 @@ class TransitionAnimator( fun updateProgress(state: SpringState) { if ( - (!state.isCenterXDone && state.centerX == state.previousCenterX) || - (!state.isCenterYDone && state.centerY == state.previousCenterY) || - (!state.isScaleDone && state.scale == state.previousScale) + !(state.isCenterXUpdated || state.isCenterXDone) || + !(state.isCenterYUpdated || state.isCenterYDone) || + !(state.isScaleUpdated || state.isScaleDone) ) { // Because all three springs use the same update method, we only actually update - // when all values have changed, avoiding two redundant calls per frame. + // when all properties have received their new value (which could be unchanged from + // the previous one), avoiding two redundant calls per frame. return } - // Update the latest values for the check above. - state.previousCenterX = state.centerX - state.previousCenterY = state.centerY - state.previousScale = state.scale + // Reset the update flags. + state.isCenterXUpdated = false + state.isCenterYUpdated = false + state.isScaleUpdated = false // Current scale-based values, that will be used to find the new animation bounds. val width = @@ -829,6 +844,7 @@ class TransitionAnimator( } setStartValue(startState.centerX) + setStartVelocity(startVelocity.x) setMinValue(min(startState.centerX, endState.centerX)) setMaxValue(max(startState.centerX, endState.centerX)) @@ -850,6 +866,7 @@ class TransitionAnimator( } setStartValue(startState.centerY) + setStartVelocity(startVelocity.y) setMinValue(min(startState.centerY, endState.centerY)) setMaxValue(max(startState.centerY, endState.centerY)) @@ -1057,15 +1074,13 @@ class TransitionAnimator( interpolators = springInterpolators!! val timings = springTimings!! fadeInProgress = - getProgressInternal( - totalDuration = 1f, + getProgress( linearProgress, timings.contentBeforeFadeOutDelay, timings.contentBeforeFadeOutDuration, ) fadeOutProgress = - getProgressInternal( - totalDuration = 1f, + getProgress( linearProgress, timings.contentAfterFadeInDelay, timings.contentAfterFadeInDuration, diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenLaunching_withAnimator.json b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenLaunching_withAnimator.json new file mode 100644 index 000000000000..aa8044515ea2 --- /dev/null +++ b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenLaunching_withAnimator.json @@ -0,0 +1,492 @@ +{ + "frame_ids": [ + 0, + 20, + 40, + 60, + 80, + 100, + 120, + 140, + 160, + 180, + 200, + 220, + 240, + 260, + 280, + 300, + 320, + 340, + 360, + 380, + 400, + 420, + 440, + 460, + 480, + 500 + ], + "features": [ + { + "name": "bounds", + "type": "rect", + "data_points": [ + { + "left": 100, + "top": 300, + "right": 200, + "bottom": 400 + }, + { + "left": 99, + "top": 296, + "right": 202, + "bottom": 404 + }, + { + "left": 95, + "top": 283, + "right": 207, + "bottom": 417 + }, + { + "left": 86, + "top": 256, + "right": 219, + "bottom": 443 + }, + { + "left": 68, + "top": 198, + "right": 243, + "bottom": 499 + }, + { + "left": 39, + "top": 110, + "right": 278, + "bottom": 584 + }, + { + "left": 26, + "top": 74, + "right": 292, + "bottom": 618 + }, + { + "left": 19, + "top": 55, + "right": 299, + "bottom": 637 + }, + { + "left": 15, + "top": 42, + "right": 304, + "bottom": 649 + }, + { + "left": 12, + "top": 33, + "right": 307, + "bottom": 658 + }, + { + "left": 9, + "top": 27, + "right": 310, + "bottom": 664 + }, + { + "left": 7, + "top": 21, + "right": 312, + "bottom": 669 + }, + { + "left": 6, + "top": 17, + "right": 314, + "bottom": 674 + }, + { + "left": 5, + "top": 13, + "right": 315, + "bottom": 677 + }, + { + "left": 4, + "top": 10, + "right": 316, + "bottom": 680 + }, + { + "left": 3, + "top": 8, + "right": 317, + "bottom": 682 + }, + { + "left": 2, + "top": 6, + "right": 318, + "bottom": 684 + }, + { + "left": 2, + "top": 5, + "right": 318, + "bottom": 685 + }, + { + "left": 1, + "top": 4, + "right": 319, + "bottom": 687 + }, + { + "left": 1, + "top": 2, + "right": 319, + "bottom": 688 + }, + { + "left": 1, + "top": 2, + "right": 319, + "bottom": 688 + }, + { + "left": 0, + "top": 1, + "right": 320, + "bottom": 689 + }, + { + "left": 0, + "top": 1, + "right": 320, + "bottom": 689 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + } + ] + }, + { + "name": "corner_radii", + "type": "cornerRadii", + "data_points": [ + { + "top_left_x": 10, + "top_left_y": 10, + "top_right_x": 10, + "top_right_y": 10, + "bottom_right_x": 20, + "bottom_right_y": 20, + "bottom_left_x": 20, + "bottom_left_y": 20 + }, + { + "top_left_x": 9.865689, + "top_left_y": 9.865689, + "top_right_x": 9.865689, + "top_right_y": 9.865689, + "bottom_right_x": 19.731379, + "bottom_right_y": 19.731379, + "bottom_left_x": 19.731379, + "bottom_left_y": 19.731379 + }, + { + "top_left_x": 9.419104, + "top_left_y": 9.419104, + "top_right_x": 9.419104, + "top_right_y": 9.419104, + "bottom_right_x": 18.838207, + "bottom_right_y": 18.838207, + "bottom_left_x": 18.838207, + "bottom_left_y": 18.838207 + }, + { + "top_left_x": 8.533693, + "top_left_y": 8.533693, + "top_right_x": 8.533693, + "top_right_y": 8.533693, + "bottom_right_x": 17.067387, + "bottom_right_y": 17.067387, + "bottom_left_x": 17.067387, + "bottom_left_y": 17.067387 + }, + { + "top_left_x": 6.5919456, + "top_left_y": 6.5919456, + "top_right_x": 6.5919456, + "top_right_y": 6.5919456, + "bottom_right_x": 13.183891, + "bottom_right_y": 13.183891, + "bottom_left_x": 13.183891, + "bottom_left_y": 13.183891 + }, + { + "top_left_x": 3.6674318, + "top_left_y": 3.6674318, + "top_right_x": 3.6674318, + "top_right_y": 3.6674318, + "bottom_right_x": 7.3348637, + "bottom_right_y": 7.3348637, + "bottom_left_x": 7.3348637, + "bottom_left_y": 7.3348637 + }, + { + "top_left_x": 2.4832253, + "top_left_y": 2.4832253, + "top_right_x": 2.4832253, + "top_right_y": 2.4832253, + "bottom_right_x": 4.9664507, + "bottom_right_y": 4.9664507, + "bottom_left_x": 4.9664507, + "bottom_left_y": 4.9664507 + }, + { + "top_left_x": 1.8252907, + "top_left_y": 1.8252907, + "top_right_x": 1.8252907, + "top_right_y": 1.8252907, + "bottom_right_x": 3.6505814, + "bottom_right_y": 3.6505814, + "bottom_left_x": 3.6505814, + "bottom_left_y": 3.6505814 + }, + { + "top_left_x": 1.4077549, + "top_left_y": 1.4077549, + "top_right_x": 1.4077549, + "top_right_y": 1.4077549, + "bottom_right_x": 2.8155098, + "bottom_right_y": 2.8155098, + "bottom_left_x": 2.8155098, + "bottom_left_y": 2.8155098 + }, + { + "top_left_x": 1.1067667, + "top_left_y": 1.1067667, + "top_right_x": 1.1067667, + "top_right_y": 1.1067667, + "bottom_right_x": 2.2135334, + "bottom_right_y": 2.2135334, + "bottom_left_x": 2.2135334, + "bottom_left_y": 2.2135334 + }, + { + "top_left_x": 0.88593864, + "top_left_y": 0.88593864, + "top_right_x": 0.88593864, + "top_right_y": 0.88593864, + "bottom_right_x": 1.7718773, + "bottom_right_y": 1.7718773, + "bottom_left_x": 1.7718773, + "bottom_left_y": 1.7718773 + }, + { + "top_left_x": 0.7069988, + "top_left_y": 0.7069988, + "top_right_x": 0.7069988, + "top_right_y": 0.7069988, + "bottom_right_x": 1.4139977, + "bottom_right_y": 1.4139977, + "bottom_left_x": 1.4139977, + "bottom_left_y": 1.4139977 + }, + { + "top_left_x": 0.55613136, + "top_left_y": 0.55613136, + "top_right_x": 0.55613136, + "top_right_y": 0.55613136, + "bottom_right_x": 1.1122627, + "bottom_right_y": 1.1122627, + "bottom_left_x": 1.1122627, + "bottom_left_y": 1.1122627 + }, + { + "top_left_x": 0.44889355, + "top_left_y": 0.44889355, + "top_right_x": 0.44889355, + "top_right_y": 0.44889355, + "bottom_right_x": 0.8977871, + "bottom_right_y": 0.8977871, + "bottom_left_x": 0.8977871, + "bottom_left_y": 0.8977871 + }, + { + "top_left_x": 0.34557533, + "top_left_y": 0.34557533, + "top_right_x": 0.34557533, + "top_right_y": 0.34557533, + "bottom_right_x": 0.69115067, + "bottom_right_y": 0.69115067, + "bottom_left_x": 0.69115067, + "bottom_left_y": 0.69115067 + }, + { + "top_left_x": 0.27671337, + "top_left_y": 0.27671337, + "top_right_x": 0.27671337, + "top_right_y": 0.27671337, + "bottom_right_x": 0.55342674, + "bottom_right_y": 0.55342674, + "bottom_left_x": 0.55342674, + "bottom_left_y": 0.55342674 + }, + { + "top_left_x": 0.20785141, + "top_left_y": 0.20785141, + "top_right_x": 0.20785141, + "top_right_y": 0.20785141, + "bottom_right_x": 0.41570282, + "bottom_right_y": 0.41570282, + "bottom_left_x": 0.41570282, + "bottom_left_y": 0.41570282 + }, + { + "top_left_x": 0.1601448, + "top_left_y": 0.1601448, + "top_right_x": 0.1601448, + "top_right_y": 0.1601448, + "bottom_right_x": 0.3202896, + "bottom_right_y": 0.3202896, + "bottom_left_x": 0.3202896, + "bottom_left_y": 0.3202896 + }, + { + "top_left_x": 0.117860794, + "top_left_y": 0.117860794, + "top_right_x": 0.117860794, + "top_right_y": 0.117860794, + "bottom_right_x": 0.23572159, + "bottom_right_y": 0.23572159, + "bottom_left_x": 0.23572159, + "bottom_left_y": 0.23572159 + }, + { + "top_left_x": 0.08036041, + "top_left_y": 0.08036041, + "top_right_x": 0.08036041, + "top_right_y": 0.08036041, + "bottom_right_x": 0.16072083, + "bottom_right_y": 0.16072083, + "bottom_left_x": 0.16072083, + "bottom_left_y": 0.16072083 + }, + { + "top_left_x": 0.05836296, + "top_left_y": 0.05836296, + "top_right_x": 0.05836296, + "top_right_y": 0.05836296, + "bottom_right_x": 0.11672592, + "bottom_right_y": 0.11672592, + "bottom_left_x": 0.11672592, + "bottom_left_y": 0.11672592 + }, + { + "top_left_x": 0.03636551, + "top_left_y": 0.03636551, + "top_right_x": 0.03636551, + "top_right_y": 0.03636551, + "bottom_right_x": 0.07273102, + "bottom_right_y": 0.07273102, + "bottom_left_x": 0.07273102, + "bottom_left_y": 0.07273102 + }, + { + "top_left_x": 0.018137932, + "top_left_y": 0.018137932, + "top_right_x": 0.018137932, + "top_right_y": 0.018137932, + "bottom_right_x": 0.036275864, + "bottom_right_y": 0.036275864, + "bottom_left_x": 0.036275864, + "bottom_left_y": 0.036275864 + }, + { + "top_left_x": 0.0082063675, + "top_left_y": 0.0082063675, + "top_right_x": 0.0082063675, + "top_right_y": 0.0082063675, + "bottom_right_x": 0.016412735, + "bottom_right_y": 0.016412735, + "bottom_left_x": 0.016412735, + "bottom_left_y": 0.016412735 + }, + { + "top_left_x": 0.0031013489, + "top_left_y": 0.0031013489, + "top_right_x": 0.0031013489, + "top_right_y": 0.0031013489, + "bottom_right_x": 0.0062026978, + "bottom_right_y": 0.0062026978, + "bottom_left_x": 0.0062026978, + "bottom_left_y": 0.0062026978 + }, + { + "top_left_x": 0, + "top_left_y": 0, + "top_right_x": 0, + "top_right_y": 0, + "bottom_right_x": 0, + "bottom_right_y": 0, + "bottom_left_x": 0, + "bottom_left_y": 0 + } + ] + }, + { + "name": "alpha", + "type": "int", + "data_points": [ + 0, + 96, + 153, + 192, + 220, + 238, + 249, + 254, + 233, + 191, + 153, + 117, + 85, + 57, + 33, + 14, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + } + ] +} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenLaunching_withSpring.json b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenLaunching_withSpring.json new file mode 100644 index 000000000000..7abff2c74531 --- /dev/null +++ b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenLaunching_withSpring.json @@ -0,0 +1,384 @@ +{ + "frame_ids": [ + 0, + 16, + 32, + 48, + 64, + 80, + 96, + 112, + 128, + 144, + 160, + 176, + 192, + 208, + 224, + 240, + 256, + 272, + 288, + 304 + ], + "features": [ + { + "name": "bounds", + "type": "rect", + "data_points": [ + { + "left": 0, + "top": 0, + "right": 0, + "bottom": 0 + }, + { + "left": 104, + "top": 285, + "right": 215, + "bottom": 414 + }, + { + "left": 92, + "top": 252, + "right": 227, + "bottom": 447 + }, + { + "left": 77, + "top": 213, + "right": 242, + "bottom": 486 + }, + { + "left": 63, + "top": 175, + "right": 256, + "bottom": 524 + }, + { + "left": 50, + "top": 141, + "right": 269, + "bottom": 558 + }, + { + "left": 40, + "top": 112, + "right": 279, + "bottom": 587 + }, + { + "left": 31, + "top": 88, + "right": 288, + "bottom": 611 + }, + { + "left": 23, + "top": 68, + "right": 296, + "bottom": 631 + }, + { + "left": 18, + "top": 53, + "right": 301, + "bottom": 646 + }, + { + "left": 13, + "top": 41, + "right": 306, + "bottom": 658 + }, + { + "left": 10, + "top": 31, + "right": 309, + "bottom": 667 + }, + { + "left": 7, + "top": 24, + "right": 312, + "bottom": 673 + }, + { + "left": 5, + "top": 18, + "right": 314, + "bottom": 678 + }, + { + "left": 4, + "top": 13, + "right": 315, + "bottom": 681 + }, + { + "left": 3, + "top": 10, + "right": 316, + "bottom": 684 + }, + { + "left": 2, + "top": 7, + "right": 317, + "bottom": 685 + }, + { + "left": 1, + "top": 5, + "right": 318, + "bottom": 687 + }, + { + "left": 1, + "top": 4, + "right": 318, + "bottom": 688 + }, + { + "left": 0, + "top": 3, + "right": 319, + "bottom": 688 + } + ] + }, + { + "name": "corner_radii", + "type": "cornerRadii", + "data_points": [ + null, + { + "top_left_x": 9.492916, + "top_left_y": 9.492916, + "top_right_x": 9.492916, + "top_right_y": 9.492916, + "bottom_right_x": 18.985832, + "bottom_right_y": 18.985832, + "bottom_left_x": 18.985832, + "bottom_left_y": 18.985832 + }, + { + "top_left_x": 8.381761, + "top_left_y": 8.381761, + "top_right_x": 8.381761, + "top_right_y": 8.381761, + "bottom_right_x": 16.763521, + "bottom_right_y": 16.763521, + "bottom_left_x": 16.763521, + "bottom_left_y": 16.763521 + }, + { + "top_left_x": 7.07397, + "top_left_y": 7.07397, + "top_right_x": 7.07397, + "top_right_y": 7.07397, + "bottom_right_x": 14.14794, + "bottom_right_y": 14.14794, + "bottom_left_x": 14.14794, + "bottom_left_y": 14.14794 + }, + { + "top_left_x": 5.7880254, + "top_left_y": 5.7880254, + "top_right_x": 5.7880254, + "top_right_y": 5.7880254, + "bottom_right_x": 11.576051, + "bottom_right_y": 11.576051, + "bottom_left_x": 11.576051, + "bottom_left_y": 11.576051 + }, + { + "top_left_x": 4.6295347, + "top_left_y": 4.6295347, + "top_right_x": 4.6295347, + "top_right_y": 4.6295347, + "bottom_right_x": 9.259069, + "bottom_right_y": 9.259069, + "bottom_left_x": 9.259069, + "bottom_left_y": 9.259069 + }, + { + "top_left_x": 3.638935, + "top_left_y": 3.638935, + "top_right_x": 3.638935, + "top_right_y": 3.638935, + "bottom_right_x": 7.27787, + "bottom_right_y": 7.27787, + "bottom_left_x": 7.27787, + "bottom_left_y": 7.27787 + }, + { + "top_left_x": 2.8209057, + "top_left_y": 2.8209057, + "top_right_x": 2.8209057, + "top_right_y": 2.8209057, + "bottom_right_x": 5.6418114, + "bottom_right_y": 5.6418114, + "bottom_left_x": 5.6418114, + "bottom_left_y": 5.6418114 + }, + { + "top_left_x": 2.1620893, + "top_left_y": 2.1620893, + "top_right_x": 2.1620893, + "top_right_y": 2.1620893, + "bottom_right_x": 4.3241787, + "bottom_right_y": 4.3241787, + "bottom_left_x": 4.3241787, + "bottom_left_y": 4.3241787 + }, + { + "top_left_x": 1.6414614, + "top_left_y": 1.6414614, + "top_right_x": 1.6414614, + "top_right_y": 1.6414614, + "bottom_right_x": 3.2829227, + "bottom_right_y": 3.2829227, + "bottom_left_x": 3.2829227, + "bottom_left_y": 3.2829227 + }, + { + "top_left_x": 1.2361269, + "top_left_y": 1.2361269, + "top_right_x": 1.2361269, + "top_right_y": 1.2361269, + "bottom_right_x": 2.4722538, + "bottom_right_y": 2.4722538, + "bottom_left_x": 2.4722538, + "bottom_left_y": 2.4722538 + }, + { + "top_left_x": 0.92435074, + "top_left_y": 0.92435074, + "top_right_x": 0.92435074, + "top_right_y": 0.92435074, + "bottom_right_x": 1.8487015, + "bottom_right_y": 1.8487015, + "bottom_left_x": 1.8487015, + "bottom_left_y": 1.8487015 + }, + { + "top_left_x": 0.68693924, + "top_left_y": 0.68693924, + "top_right_x": 0.68693924, + "top_right_y": 0.68693924, + "bottom_right_x": 1.3738785, + "bottom_right_y": 1.3738785, + "bottom_left_x": 1.3738785, + "bottom_left_y": 1.3738785 + }, + { + "top_left_x": 0.5076904, + "top_left_y": 0.5076904, + "top_right_x": 0.5076904, + "top_right_y": 0.5076904, + "bottom_right_x": 1.0153809, + "bottom_right_y": 1.0153809, + "bottom_left_x": 1.0153809, + "bottom_left_y": 1.0153809 + }, + { + "top_left_x": 0.3733511, + "top_left_y": 0.3733511, + "top_right_x": 0.3733511, + "top_right_y": 0.3733511, + "bottom_right_x": 0.7467022, + "bottom_right_y": 0.7467022, + "bottom_left_x": 0.7467022, + "bottom_left_y": 0.7467022 + }, + { + "top_left_x": 0.27331638, + "top_left_y": 0.27331638, + "top_right_x": 0.27331638, + "top_right_y": 0.27331638, + "bottom_right_x": 0.54663277, + "bottom_right_y": 0.54663277, + "bottom_left_x": 0.54663277, + "bottom_left_y": 0.54663277 + }, + { + "top_left_x": 0.19925308, + "top_left_y": 0.19925308, + "top_right_x": 0.19925308, + "top_right_y": 0.19925308, + "bottom_right_x": 0.39850616, + "bottom_right_y": 0.39850616, + "bottom_left_x": 0.39850616, + "bottom_left_y": 0.39850616 + }, + { + "top_left_x": 0.14470005, + "top_left_y": 0.14470005, + "top_right_x": 0.14470005, + "top_right_y": 0.14470005, + "bottom_right_x": 0.2894001, + "bottom_right_y": 0.2894001, + "bottom_left_x": 0.2894001, + "bottom_left_y": 0.2894001 + }, + { + "top_left_x": 0.10470486, + "top_left_y": 0.10470486, + "top_right_x": 0.10470486, + "top_right_y": 0.10470486, + "bottom_right_x": 0.20940971, + "bottom_right_y": 0.20940971, + "bottom_left_x": 0.20940971, + "bottom_left_y": 0.20940971 + }, + { + "top_left_x": 0.07550812, + "top_left_y": 0.07550812, + "top_right_x": 0.07550812, + "top_right_y": 0.07550812, + "bottom_right_x": 0.15101624, + "bottom_right_y": 0.15101624, + "bottom_left_x": 0.15101624, + "bottom_left_y": 0.15101624 + } + ] + }, + { + "name": "alpha", + "type": "int", + "data_points": [ + 0, + 45, + 126, + 190, + 228, + 246, + 253, + 255, + 255, + 255, + 249, + 226, + 192, + 153, + 112, + 72, + 34, + 0, + 0, + 0 + ] + } + ], + "\/\/metadata": { + "goldenRepoPath": "frameworks\/base\/packages\/SystemUI\/tests\/goldens\/backgroundAnimation_whenLaunching_withSpring.json", + "goldenIdentifier": "backgroundAnimation_whenLaunching_withSpring", + "testClassName": "TransitionAnimatorTest", + "testMethodName": "backgroundAnimation_whenLaunching[true]", + "deviceLocalPath": "\/data\/user\/0\/com.android.systemui.tests\/files\/platform_screenshots", + "result": "FAILED", + "videoLocation": "TransitionAnimatorTest\/backgroundAnimation_whenLaunching_withSpring.actual.mp4" + } +} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenReturning_withAnimator.json b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenReturning_withAnimator.json new file mode 100644 index 000000000000..aa8044515ea2 --- /dev/null +++ b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenReturning_withAnimator.json @@ -0,0 +1,492 @@ +{ + "frame_ids": [ + 0, + 20, + 40, + 60, + 80, + 100, + 120, + 140, + 160, + 180, + 200, + 220, + 240, + 260, + 280, + 300, + 320, + 340, + 360, + 380, + 400, + 420, + 440, + 460, + 480, + 500 + ], + "features": [ + { + "name": "bounds", + "type": "rect", + "data_points": [ + { + "left": 100, + "top": 300, + "right": 200, + "bottom": 400 + }, + { + "left": 99, + "top": 296, + "right": 202, + "bottom": 404 + }, + { + "left": 95, + "top": 283, + "right": 207, + "bottom": 417 + }, + { + "left": 86, + "top": 256, + "right": 219, + "bottom": 443 + }, + { + "left": 68, + "top": 198, + "right": 243, + "bottom": 499 + }, + { + "left": 39, + "top": 110, + "right": 278, + "bottom": 584 + }, + { + "left": 26, + "top": 74, + "right": 292, + "bottom": 618 + }, + { + "left": 19, + "top": 55, + "right": 299, + "bottom": 637 + }, + { + "left": 15, + "top": 42, + "right": 304, + "bottom": 649 + }, + { + "left": 12, + "top": 33, + "right": 307, + "bottom": 658 + }, + { + "left": 9, + "top": 27, + "right": 310, + "bottom": 664 + }, + { + "left": 7, + "top": 21, + "right": 312, + "bottom": 669 + }, + { + "left": 6, + "top": 17, + "right": 314, + "bottom": 674 + }, + { + "left": 5, + "top": 13, + "right": 315, + "bottom": 677 + }, + { + "left": 4, + "top": 10, + "right": 316, + "bottom": 680 + }, + { + "left": 3, + "top": 8, + "right": 317, + "bottom": 682 + }, + { + "left": 2, + "top": 6, + "right": 318, + "bottom": 684 + }, + { + "left": 2, + "top": 5, + "right": 318, + "bottom": 685 + }, + { + "left": 1, + "top": 4, + "right": 319, + "bottom": 687 + }, + { + "left": 1, + "top": 2, + "right": 319, + "bottom": 688 + }, + { + "left": 1, + "top": 2, + "right": 319, + "bottom": 688 + }, + { + "left": 0, + "top": 1, + "right": 320, + "bottom": 689 + }, + { + "left": 0, + "top": 1, + "right": 320, + "bottom": 689 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + } + ] + }, + { + "name": "corner_radii", + "type": "cornerRadii", + "data_points": [ + { + "top_left_x": 10, + "top_left_y": 10, + "top_right_x": 10, + "top_right_y": 10, + "bottom_right_x": 20, + "bottom_right_y": 20, + "bottom_left_x": 20, + "bottom_left_y": 20 + }, + { + "top_left_x": 9.865689, + "top_left_y": 9.865689, + "top_right_x": 9.865689, + "top_right_y": 9.865689, + "bottom_right_x": 19.731379, + "bottom_right_y": 19.731379, + "bottom_left_x": 19.731379, + "bottom_left_y": 19.731379 + }, + { + "top_left_x": 9.419104, + "top_left_y": 9.419104, + "top_right_x": 9.419104, + "top_right_y": 9.419104, + "bottom_right_x": 18.838207, + "bottom_right_y": 18.838207, + "bottom_left_x": 18.838207, + "bottom_left_y": 18.838207 + }, + { + "top_left_x": 8.533693, + "top_left_y": 8.533693, + "top_right_x": 8.533693, + "top_right_y": 8.533693, + "bottom_right_x": 17.067387, + "bottom_right_y": 17.067387, + "bottom_left_x": 17.067387, + "bottom_left_y": 17.067387 + }, + { + "top_left_x": 6.5919456, + "top_left_y": 6.5919456, + "top_right_x": 6.5919456, + "top_right_y": 6.5919456, + "bottom_right_x": 13.183891, + "bottom_right_y": 13.183891, + "bottom_left_x": 13.183891, + "bottom_left_y": 13.183891 + }, + { + "top_left_x": 3.6674318, + "top_left_y": 3.6674318, + "top_right_x": 3.6674318, + "top_right_y": 3.6674318, + "bottom_right_x": 7.3348637, + "bottom_right_y": 7.3348637, + "bottom_left_x": 7.3348637, + "bottom_left_y": 7.3348637 + }, + { + "top_left_x": 2.4832253, + "top_left_y": 2.4832253, + "top_right_x": 2.4832253, + "top_right_y": 2.4832253, + "bottom_right_x": 4.9664507, + "bottom_right_y": 4.9664507, + "bottom_left_x": 4.9664507, + "bottom_left_y": 4.9664507 + }, + { + "top_left_x": 1.8252907, + "top_left_y": 1.8252907, + "top_right_x": 1.8252907, + "top_right_y": 1.8252907, + "bottom_right_x": 3.6505814, + "bottom_right_y": 3.6505814, + "bottom_left_x": 3.6505814, + "bottom_left_y": 3.6505814 + }, + { + "top_left_x": 1.4077549, + "top_left_y": 1.4077549, + "top_right_x": 1.4077549, + "top_right_y": 1.4077549, + "bottom_right_x": 2.8155098, + "bottom_right_y": 2.8155098, + "bottom_left_x": 2.8155098, + "bottom_left_y": 2.8155098 + }, + { + "top_left_x": 1.1067667, + "top_left_y": 1.1067667, + "top_right_x": 1.1067667, + "top_right_y": 1.1067667, + "bottom_right_x": 2.2135334, + "bottom_right_y": 2.2135334, + "bottom_left_x": 2.2135334, + "bottom_left_y": 2.2135334 + }, + { + "top_left_x": 0.88593864, + "top_left_y": 0.88593864, + "top_right_x": 0.88593864, + "top_right_y": 0.88593864, + "bottom_right_x": 1.7718773, + "bottom_right_y": 1.7718773, + "bottom_left_x": 1.7718773, + "bottom_left_y": 1.7718773 + }, + { + "top_left_x": 0.7069988, + "top_left_y": 0.7069988, + "top_right_x": 0.7069988, + "top_right_y": 0.7069988, + "bottom_right_x": 1.4139977, + "bottom_right_y": 1.4139977, + "bottom_left_x": 1.4139977, + "bottom_left_y": 1.4139977 + }, + { + "top_left_x": 0.55613136, + "top_left_y": 0.55613136, + "top_right_x": 0.55613136, + "top_right_y": 0.55613136, + "bottom_right_x": 1.1122627, + "bottom_right_y": 1.1122627, + "bottom_left_x": 1.1122627, + "bottom_left_y": 1.1122627 + }, + { + "top_left_x": 0.44889355, + "top_left_y": 0.44889355, + "top_right_x": 0.44889355, + "top_right_y": 0.44889355, + "bottom_right_x": 0.8977871, + "bottom_right_y": 0.8977871, + "bottom_left_x": 0.8977871, + "bottom_left_y": 0.8977871 + }, + { + "top_left_x": 0.34557533, + "top_left_y": 0.34557533, + "top_right_x": 0.34557533, + "top_right_y": 0.34557533, + "bottom_right_x": 0.69115067, + "bottom_right_y": 0.69115067, + "bottom_left_x": 0.69115067, + "bottom_left_y": 0.69115067 + }, + { + "top_left_x": 0.27671337, + "top_left_y": 0.27671337, + "top_right_x": 0.27671337, + "top_right_y": 0.27671337, + "bottom_right_x": 0.55342674, + "bottom_right_y": 0.55342674, + "bottom_left_x": 0.55342674, + "bottom_left_y": 0.55342674 + }, + { + "top_left_x": 0.20785141, + "top_left_y": 0.20785141, + "top_right_x": 0.20785141, + "top_right_y": 0.20785141, + "bottom_right_x": 0.41570282, + "bottom_right_y": 0.41570282, + "bottom_left_x": 0.41570282, + "bottom_left_y": 0.41570282 + }, + { + "top_left_x": 0.1601448, + "top_left_y": 0.1601448, + "top_right_x": 0.1601448, + "top_right_y": 0.1601448, + "bottom_right_x": 0.3202896, + "bottom_right_y": 0.3202896, + "bottom_left_x": 0.3202896, + "bottom_left_y": 0.3202896 + }, + { + "top_left_x": 0.117860794, + "top_left_y": 0.117860794, + "top_right_x": 0.117860794, + "top_right_y": 0.117860794, + "bottom_right_x": 0.23572159, + "bottom_right_y": 0.23572159, + "bottom_left_x": 0.23572159, + "bottom_left_y": 0.23572159 + }, + { + "top_left_x": 0.08036041, + "top_left_y": 0.08036041, + "top_right_x": 0.08036041, + "top_right_y": 0.08036041, + "bottom_right_x": 0.16072083, + "bottom_right_y": 0.16072083, + "bottom_left_x": 0.16072083, + "bottom_left_y": 0.16072083 + }, + { + "top_left_x": 0.05836296, + "top_left_y": 0.05836296, + "top_right_x": 0.05836296, + "top_right_y": 0.05836296, + "bottom_right_x": 0.11672592, + "bottom_right_y": 0.11672592, + "bottom_left_x": 0.11672592, + "bottom_left_y": 0.11672592 + }, + { + "top_left_x": 0.03636551, + "top_left_y": 0.03636551, + "top_right_x": 0.03636551, + "top_right_y": 0.03636551, + "bottom_right_x": 0.07273102, + "bottom_right_y": 0.07273102, + "bottom_left_x": 0.07273102, + "bottom_left_y": 0.07273102 + }, + { + "top_left_x": 0.018137932, + "top_left_y": 0.018137932, + "top_right_x": 0.018137932, + "top_right_y": 0.018137932, + "bottom_right_x": 0.036275864, + "bottom_right_y": 0.036275864, + "bottom_left_x": 0.036275864, + "bottom_left_y": 0.036275864 + }, + { + "top_left_x": 0.0082063675, + "top_left_y": 0.0082063675, + "top_right_x": 0.0082063675, + "top_right_y": 0.0082063675, + "bottom_right_x": 0.016412735, + "bottom_right_y": 0.016412735, + "bottom_left_x": 0.016412735, + "bottom_left_y": 0.016412735 + }, + { + "top_left_x": 0.0031013489, + "top_left_y": 0.0031013489, + "top_right_x": 0.0031013489, + "top_right_y": 0.0031013489, + "bottom_right_x": 0.0062026978, + "bottom_right_y": 0.0062026978, + "bottom_left_x": 0.0062026978, + "bottom_left_y": 0.0062026978 + }, + { + "top_left_x": 0, + "top_left_y": 0, + "top_right_x": 0, + "top_right_y": 0, + "bottom_right_x": 0, + "bottom_right_y": 0, + "bottom_left_x": 0, + "bottom_left_y": 0 + } + ] + }, + { + "name": "alpha", + "type": "int", + "data_points": [ + 0, + 96, + 153, + 192, + 220, + 238, + 249, + 254, + 233, + 191, + 153, + 117, + 85, + 57, + 33, + 14, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + } + ] +} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenReturning_withSpring.json b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenReturning_withSpring.json new file mode 100644 index 000000000000..561961145ca1 --- /dev/null +++ b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withFade_whenReturning_withSpring.json @@ -0,0 +1,384 @@ +{ + "frame_ids": [ + 0, + 16, + 32, + 48, + 64, + 80, + 96, + 112, + 128, + 144, + 160, + 176, + 192, + 208, + 224, + 240, + 256, + 272, + 288, + 304 + ], + "features": [ + { + "name": "bounds", + "type": "rect", + "data_points": [ + { + "left": 0, + "top": 0, + "right": 0, + "bottom": 0 + }, + { + "left": 104, + "top": 285, + "right": 215, + "bottom": 414 + }, + { + "left": 92, + "top": 252, + "right": 227, + "bottom": 447 + }, + { + "left": 77, + "top": 213, + "right": 242, + "bottom": 486 + }, + { + "left": 63, + "top": 175, + "right": 256, + "bottom": 524 + }, + { + "left": 50, + "top": 141, + "right": 269, + "bottom": 558 + }, + { + "left": 40, + "top": 112, + "right": 279, + "bottom": 587 + }, + { + "left": 31, + "top": 88, + "right": 288, + "bottom": 611 + }, + { + "left": 23, + "top": 68, + "right": 296, + "bottom": 631 + }, + { + "left": 18, + "top": 53, + "right": 301, + "bottom": 646 + }, + { + "left": 13, + "top": 41, + "right": 306, + "bottom": 658 + }, + { + "left": 10, + "top": 31, + "right": 309, + "bottom": 667 + }, + { + "left": 7, + "top": 24, + "right": 312, + "bottom": 673 + }, + { + "left": 5, + "top": 18, + "right": 314, + "bottom": 678 + }, + { + "left": 4, + "top": 13, + "right": 315, + "bottom": 681 + }, + { + "left": 3, + "top": 10, + "right": 316, + "bottom": 684 + }, + { + "left": 2, + "top": 7, + "right": 317, + "bottom": 685 + }, + { + "left": 1, + "top": 5, + "right": 318, + "bottom": 687 + }, + { + "left": 1, + "top": 4, + "right": 318, + "bottom": 688 + }, + { + "left": 0, + "top": 3, + "right": 319, + "bottom": 688 + } + ] + }, + { + "name": "corner_radii", + "type": "cornerRadii", + "data_points": [ + null, + { + "top_left_x": 9.492916, + "top_left_y": 9.492916, + "top_right_x": 9.492916, + "top_right_y": 9.492916, + "bottom_right_x": 18.985832, + "bottom_right_y": 18.985832, + "bottom_left_x": 18.985832, + "bottom_left_y": 18.985832 + }, + { + "top_left_x": 8.381761, + "top_left_y": 8.381761, + "top_right_x": 8.381761, + "top_right_y": 8.381761, + "bottom_right_x": 16.763521, + "bottom_right_y": 16.763521, + "bottom_left_x": 16.763521, + "bottom_left_y": 16.763521 + }, + { + "top_left_x": 7.07397, + "top_left_y": 7.07397, + "top_right_x": 7.07397, + "top_right_y": 7.07397, + "bottom_right_x": 14.14794, + "bottom_right_y": 14.14794, + "bottom_left_x": 14.14794, + "bottom_left_y": 14.14794 + }, + { + "top_left_x": 5.7880254, + "top_left_y": 5.7880254, + "top_right_x": 5.7880254, + "top_right_y": 5.7880254, + "bottom_right_x": 11.576051, + "bottom_right_y": 11.576051, + "bottom_left_x": 11.576051, + "bottom_left_y": 11.576051 + }, + { + "top_left_x": 4.6295347, + "top_left_y": 4.6295347, + "top_right_x": 4.6295347, + "top_right_y": 4.6295347, + "bottom_right_x": 9.259069, + "bottom_right_y": 9.259069, + "bottom_left_x": 9.259069, + "bottom_left_y": 9.259069 + }, + { + "top_left_x": 3.638935, + "top_left_y": 3.638935, + "top_right_x": 3.638935, + "top_right_y": 3.638935, + "bottom_right_x": 7.27787, + "bottom_right_y": 7.27787, + "bottom_left_x": 7.27787, + "bottom_left_y": 7.27787 + }, + { + "top_left_x": 2.8209057, + "top_left_y": 2.8209057, + "top_right_x": 2.8209057, + "top_right_y": 2.8209057, + "bottom_right_x": 5.6418114, + "bottom_right_y": 5.6418114, + "bottom_left_x": 5.6418114, + "bottom_left_y": 5.6418114 + }, + { + "top_left_x": 2.1620893, + "top_left_y": 2.1620893, + "top_right_x": 2.1620893, + "top_right_y": 2.1620893, + "bottom_right_x": 4.3241787, + "bottom_right_y": 4.3241787, + "bottom_left_x": 4.3241787, + "bottom_left_y": 4.3241787 + }, + { + "top_left_x": 1.6414614, + "top_left_y": 1.6414614, + "top_right_x": 1.6414614, + "top_right_y": 1.6414614, + "bottom_right_x": 3.2829227, + "bottom_right_y": 3.2829227, + "bottom_left_x": 3.2829227, + "bottom_left_y": 3.2829227 + }, + { + "top_left_x": 1.2361269, + "top_left_y": 1.2361269, + "top_right_x": 1.2361269, + "top_right_y": 1.2361269, + "bottom_right_x": 2.4722538, + "bottom_right_y": 2.4722538, + "bottom_left_x": 2.4722538, + "bottom_left_y": 2.4722538 + }, + { + "top_left_x": 0.92435074, + "top_left_y": 0.92435074, + "top_right_x": 0.92435074, + "top_right_y": 0.92435074, + "bottom_right_x": 1.8487015, + "bottom_right_y": 1.8487015, + "bottom_left_x": 1.8487015, + "bottom_left_y": 1.8487015 + }, + { + "top_left_x": 0.68693924, + "top_left_y": 0.68693924, + "top_right_x": 0.68693924, + "top_right_y": 0.68693924, + "bottom_right_x": 1.3738785, + "bottom_right_y": 1.3738785, + "bottom_left_x": 1.3738785, + "bottom_left_y": 1.3738785 + }, + { + "top_left_x": 0.5076904, + "top_left_y": 0.5076904, + "top_right_x": 0.5076904, + "top_right_y": 0.5076904, + "bottom_right_x": 1.0153809, + "bottom_right_y": 1.0153809, + "bottom_left_x": 1.0153809, + "bottom_left_y": 1.0153809 + }, + { + "top_left_x": 0.3733511, + "top_left_y": 0.3733511, + "top_right_x": 0.3733511, + "top_right_y": 0.3733511, + "bottom_right_x": 0.7467022, + "bottom_right_y": 0.7467022, + "bottom_left_x": 0.7467022, + "bottom_left_y": 0.7467022 + }, + { + "top_left_x": 0.27331638, + "top_left_y": 0.27331638, + "top_right_x": 0.27331638, + "top_right_y": 0.27331638, + "bottom_right_x": 0.54663277, + "bottom_right_y": 0.54663277, + "bottom_left_x": 0.54663277, + "bottom_left_y": 0.54663277 + }, + { + "top_left_x": 0.19925308, + "top_left_y": 0.19925308, + "top_right_x": 0.19925308, + "top_right_y": 0.19925308, + "bottom_right_x": 0.39850616, + "bottom_right_y": 0.39850616, + "bottom_left_x": 0.39850616, + "bottom_left_y": 0.39850616 + }, + { + "top_left_x": 0.14470005, + "top_left_y": 0.14470005, + "top_right_x": 0.14470005, + "top_right_y": 0.14470005, + "bottom_right_x": 0.2894001, + "bottom_right_y": 0.2894001, + "bottom_left_x": 0.2894001, + "bottom_left_y": 0.2894001 + }, + { + "top_left_x": 0.10470486, + "top_left_y": 0.10470486, + "top_right_x": 0.10470486, + "top_right_y": 0.10470486, + "bottom_right_x": 0.20940971, + "bottom_right_y": 0.20940971, + "bottom_left_x": 0.20940971, + "bottom_left_y": 0.20940971 + }, + { + "top_left_x": 0.07550812, + "top_left_y": 0.07550812, + "top_right_x": 0.07550812, + "top_right_y": 0.07550812, + "bottom_right_x": 0.15101624, + "bottom_right_y": 0.15101624, + "bottom_left_x": 0.15101624, + "bottom_left_y": 0.15101624 + } + ] + }, + { + "name": "alpha", + "type": "int", + "data_points": [ + 0, + 45, + 126, + 190, + 228, + 246, + 253, + 255, + 255, + 255, + 249, + 226, + 192, + 153, + 112, + 72, + 34, + 0, + 0, + 0 + ] + } + ], + "\/\/metadata": { + "goldenRepoPath": "frameworks\/base\/packages\/SystemUI\/tests\/goldens\/backgroundAnimation_whenReturning_withSpring.json", + "goldenIdentifier": "backgroundAnimation_whenReturning_withSpring", + "testClassName": "TransitionAnimatorTest", + "testMethodName": "backgroundAnimation_whenReturning[true]", + "deviceLocalPath": "\/data\/user\/0\/com.android.systemui.tests\/files\/platform_screenshots", + "result": "FAILED", + "videoLocation": "TransitionAnimatorTest\/backgroundAnimation_whenReturning_withSpring.actual.mp4" + } +} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenLaunching_withAnimator.json b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenLaunching_withAnimator.json new file mode 100644 index 000000000000..7f623575fef4 --- /dev/null +++ b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenLaunching_withAnimator.json @@ -0,0 +1,492 @@ +{ + "frame_ids": [ + 0, + 20, + 40, + 60, + 80, + 100, + 120, + 140, + 160, + 180, + 200, + 220, + 240, + 260, + 280, + 300, + 320, + 340, + 360, + 380, + 400, + 420, + 440, + 460, + 480, + 500 + ], + "features": [ + { + "name": "bounds", + "type": "rect", + "data_points": [ + { + "left": 100, + "top": 300, + "right": 200, + "bottom": 400 + }, + { + "left": 99, + "top": 296, + "right": 202, + "bottom": 404 + }, + { + "left": 95, + "top": 283, + "right": 207, + "bottom": 417 + }, + { + "left": 86, + "top": 256, + "right": 219, + "bottom": 443 + }, + { + "left": 68, + "top": 198, + "right": 243, + "bottom": 499 + }, + { + "left": 39, + "top": 110, + "right": 278, + "bottom": 584 + }, + { + "left": 26, + "top": 74, + "right": 292, + "bottom": 618 + }, + { + "left": 19, + "top": 55, + "right": 299, + "bottom": 637 + }, + { + "left": 15, + "top": 42, + "right": 304, + "bottom": 649 + }, + { + "left": 12, + "top": 33, + "right": 307, + "bottom": 658 + }, + { + "left": 9, + "top": 27, + "right": 310, + "bottom": 664 + }, + { + "left": 7, + "top": 21, + "right": 312, + "bottom": 669 + }, + { + "left": 6, + "top": 17, + "right": 314, + "bottom": 674 + }, + { + "left": 5, + "top": 13, + "right": 315, + "bottom": 677 + }, + { + "left": 4, + "top": 10, + "right": 316, + "bottom": 680 + }, + { + "left": 3, + "top": 8, + "right": 317, + "bottom": 682 + }, + { + "left": 2, + "top": 6, + "right": 318, + "bottom": 684 + }, + { + "left": 2, + "top": 5, + "right": 318, + "bottom": 685 + }, + { + "left": 1, + "top": 4, + "right": 319, + "bottom": 687 + }, + { + "left": 1, + "top": 2, + "right": 319, + "bottom": 688 + }, + { + "left": 1, + "top": 2, + "right": 319, + "bottom": 688 + }, + { + "left": 0, + "top": 1, + "right": 320, + "bottom": 689 + }, + { + "left": 0, + "top": 1, + "right": 320, + "bottom": 689 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + } + ] + }, + { + "name": "corner_radii", + "type": "cornerRadii", + "data_points": [ + { + "top_left_x": 10, + "top_left_y": 10, + "top_right_x": 10, + "top_right_y": 10, + "bottom_right_x": 20, + "bottom_right_y": 20, + "bottom_left_x": 20, + "bottom_left_y": 20 + }, + { + "top_left_x": 9.865689, + "top_left_y": 9.865689, + "top_right_x": 9.865689, + "top_right_y": 9.865689, + "bottom_right_x": 19.731379, + "bottom_right_y": 19.731379, + "bottom_left_x": 19.731379, + "bottom_left_y": 19.731379 + }, + { + "top_left_x": 9.419104, + "top_left_y": 9.419104, + "top_right_x": 9.419104, + "top_right_y": 9.419104, + "bottom_right_x": 18.838207, + "bottom_right_y": 18.838207, + "bottom_left_x": 18.838207, + "bottom_left_y": 18.838207 + }, + { + "top_left_x": 8.533693, + "top_left_y": 8.533693, + "top_right_x": 8.533693, + "top_right_y": 8.533693, + "bottom_right_x": 17.067387, + "bottom_right_y": 17.067387, + "bottom_left_x": 17.067387, + "bottom_left_y": 17.067387 + }, + { + "top_left_x": 6.5919456, + "top_left_y": 6.5919456, + "top_right_x": 6.5919456, + "top_right_y": 6.5919456, + "bottom_right_x": 13.183891, + "bottom_right_y": 13.183891, + "bottom_left_x": 13.183891, + "bottom_left_y": 13.183891 + }, + { + "top_left_x": 3.6674318, + "top_left_y": 3.6674318, + "top_right_x": 3.6674318, + "top_right_y": 3.6674318, + "bottom_right_x": 7.3348637, + "bottom_right_y": 7.3348637, + "bottom_left_x": 7.3348637, + "bottom_left_y": 7.3348637 + }, + { + "top_left_x": 2.4832253, + "top_left_y": 2.4832253, + "top_right_x": 2.4832253, + "top_right_y": 2.4832253, + "bottom_right_x": 4.9664507, + "bottom_right_y": 4.9664507, + "bottom_left_x": 4.9664507, + "bottom_left_y": 4.9664507 + }, + { + "top_left_x": 1.8252907, + "top_left_y": 1.8252907, + "top_right_x": 1.8252907, + "top_right_y": 1.8252907, + "bottom_right_x": 3.6505814, + "bottom_right_y": 3.6505814, + "bottom_left_x": 3.6505814, + "bottom_left_y": 3.6505814 + }, + { + "top_left_x": 1.4077549, + "top_left_y": 1.4077549, + "top_right_x": 1.4077549, + "top_right_y": 1.4077549, + "bottom_right_x": 2.8155098, + "bottom_right_y": 2.8155098, + "bottom_left_x": 2.8155098, + "bottom_left_y": 2.8155098 + }, + { + "top_left_x": 1.1067667, + "top_left_y": 1.1067667, + "top_right_x": 1.1067667, + "top_right_y": 1.1067667, + "bottom_right_x": 2.2135334, + "bottom_right_y": 2.2135334, + "bottom_left_x": 2.2135334, + "bottom_left_y": 2.2135334 + }, + { + "top_left_x": 0.88593864, + "top_left_y": 0.88593864, + "top_right_x": 0.88593864, + "top_right_y": 0.88593864, + "bottom_right_x": 1.7718773, + "bottom_right_y": 1.7718773, + "bottom_left_x": 1.7718773, + "bottom_left_y": 1.7718773 + }, + { + "top_left_x": 0.7069988, + "top_left_y": 0.7069988, + "top_right_x": 0.7069988, + "top_right_y": 0.7069988, + "bottom_right_x": 1.4139977, + "bottom_right_y": 1.4139977, + "bottom_left_x": 1.4139977, + "bottom_left_y": 1.4139977 + }, + { + "top_left_x": 0.55613136, + "top_left_y": 0.55613136, + "top_right_x": 0.55613136, + "top_right_y": 0.55613136, + "bottom_right_x": 1.1122627, + "bottom_right_y": 1.1122627, + "bottom_left_x": 1.1122627, + "bottom_left_y": 1.1122627 + }, + { + "top_left_x": 0.44889355, + "top_left_y": 0.44889355, + "top_right_x": 0.44889355, + "top_right_y": 0.44889355, + "bottom_right_x": 0.8977871, + "bottom_right_y": 0.8977871, + "bottom_left_x": 0.8977871, + "bottom_left_y": 0.8977871 + }, + { + "top_left_x": 0.34557533, + "top_left_y": 0.34557533, + "top_right_x": 0.34557533, + "top_right_y": 0.34557533, + "bottom_right_x": 0.69115067, + "bottom_right_y": 0.69115067, + "bottom_left_x": 0.69115067, + "bottom_left_y": 0.69115067 + }, + { + "top_left_x": 0.27671337, + "top_left_y": 0.27671337, + "top_right_x": 0.27671337, + "top_right_y": 0.27671337, + "bottom_right_x": 0.55342674, + "bottom_right_y": 0.55342674, + "bottom_left_x": 0.55342674, + "bottom_left_y": 0.55342674 + }, + { + "top_left_x": 0.20785141, + "top_left_y": 0.20785141, + "top_right_x": 0.20785141, + "top_right_y": 0.20785141, + "bottom_right_x": 0.41570282, + "bottom_right_y": 0.41570282, + "bottom_left_x": 0.41570282, + "bottom_left_y": 0.41570282 + }, + { + "top_left_x": 0.1601448, + "top_left_y": 0.1601448, + "top_right_x": 0.1601448, + "top_right_y": 0.1601448, + "bottom_right_x": 0.3202896, + "bottom_right_y": 0.3202896, + "bottom_left_x": 0.3202896, + "bottom_left_y": 0.3202896 + }, + { + "top_left_x": 0.117860794, + "top_left_y": 0.117860794, + "top_right_x": 0.117860794, + "top_right_y": 0.117860794, + "bottom_right_x": 0.23572159, + "bottom_right_y": 0.23572159, + "bottom_left_x": 0.23572159, + "bottom_left_y": 0.23572159 + }, + { + "top_left_x": 0.08036041, + "top_left_y": 0.08036041, + "top_right_x": 0.08036041, + "top_right_y": 0.08036041, + "bottom_right_x": 0.16072083, + "bottom_right_y": 0.16072083, + "bottom_left_x": 0.16072083, + "bottom_left_y": 0.16072083 + }, + { + "top_left_x": 0.05836296, + "top_left_y": 0.05836296, + "top_right_x": 0.05836296, + "top_right_y": 0.05836296, + "bottom_right_x": 0.11672592, + "bottom_right_y": 0.11672592, + "bottom_left_x": 0.11672592, + "bottom_left_y": 0.11672592 + }, + { + "top_left_x": 0.03636551, + "top_left_y": 0.03636551, + "top_right_x": 0.03636551, + "top_right_y": 0.03636551, + "bottom_right_x": 0.07273102, + "bottom_right_y": 0.07273102, + "bottom_left_x": 0.07273102, + "bottom_left_y": 0.07273102 + }, + { + "top_left_x": 0.018137932, + "top_left_y": 0.018137932, + "top_right_x": 0.018137932, + "top_right_y": 0.018137932, + "bottom_right_x": 0.036275864, + "bottom_right_y": 0.036275864, + "bottom_left_x": 0.036275864, + "bottom_left_y": 0.036275864 + }, + { + "top_left_x": 0.0082063675, + "top_left_y": 0.0082063675, + "top_right_x": 0.0082063675, + "top_right_y": 0.0082063675, + "bottom_right_x": 0.016412735, + "bottom_right_y": 0.016412735, + "bottom_left_x": 0.016412735, + "bottom_left_y": 0.016412735 + }, + { + "top_left_x": 0.0031013489, + "top_left_y": 0.0031013489, + "top_right_x": 0.0031013489, + "top_right_y": 0.0031013489, + "bottom_right_x": 0.0062026978, + "bottom_right_y": 0.0062026978, + "bottom_left_x": 0.0062026978, + "bottom_left_y": 0.0062026978 + }, + { + "top_left_x": 0, + "top_left_y": 0, + "top_right_x": 0, + "top_right_y": 0, + "bottom_right_x": 0, + "bottom_right_y": 0, + "bottom_left_x": 0, + "bottom_left_y": 0 + } + ] + }, + { + "name": "alpha", + "type": "int", + "data_points": [ + 0, + 96, + 153, + 192, + 220, + 238, + 249, + 254, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255 + ] + } + ] +} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenLaunching_withSpring.json b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenLaunching_withSpring.json new file mode 100644 index 000000000000..825190ba7a32 --- /dev/null +++ b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenLaunching_withSpring.json @@ -0,0 +1,384 @@ +{ + "frame_ids": [ + 0, + 16, + 32, + 48, + 64, + 80, + 96, + 112, + 128, + 144, + 160, + 176, + 192, + 208, + 224, + 240, + 256, + 272, + 288, + 304 + ], + "features": [ + { + "name": "bounds", + "type": "rect", + "data_points": [ + { + "left": 0, + "top": 0, + "right": 0, + "bottom": 0 + }, + { + "left": 104, + "top": 285, + "right": 215, + "bottom": 414 + }, + { + "left": 92, + "top": 252, + "right": 227, + "bottom": 447 + }, + { + "left": 77, + "top": 213, + "right": 242, + "bottom": 486 + }, + { + "left": 63, + "top": 175, + "right": 256, + "bottom": 524 + }, + { + "left": 50, + "top": 141, + "right": 269, + "bottom": 558 + }, + { + "left": 40, + "top": 112, + "right": 279, + "bottom": 587 + }, + { + "left": 31, + "top": 88, + "right": 288, + "bottom": 611 + }, + { + "left": 23, + "top": 68, + "right": 296, + "bottom": 631 + }, + { + "left": 18, + "top": 53, + "right": 301, + "bottom": 646 + }, + { + "left": 13, + "top": 41, + "right": 306, + "bottom": 658 + }, + { + "left": 10, + "top": 31, + "right": 309, + "bottom": 667 + }, + { + "left": 7, + "top": 24, + "right": 312, + "bottom": 673 + }, + { + "left": 5, + "top": 18, + "right": 314, + "bottom": 678 + }, + { + "left": 4, + "top": 13, + "right": 315, + "bottom": 681 + }, + { + "left": 3, + "top": 10, + "right": 316, + "bottom": 684 + }, + { + "left": 2, + "top": 7, + "right": 317, + "bottom": 685 + }, + { + "left": 1, + "top": 5, + "right": 318, + "bottom": 687 + }, + { + "left": 1, + "top": 4, + "right": 318, + "bottom": 688 + }, + { + "left": 0, + "top": 3, + "right": 319, + "bottom": 688 + } + ] + }, + { + "name": "corner_radii", + "type": "cornerRadii", + "data_points": [ + null, + { + "top_left_x": 9.492916, + "top_left_y": 9.492916, + "top_right_x": 9.492916, + "top_right_y": 9.492916, + "bottom_right_x": 18.985832, + "bottom_right_y": 18.985832, + "bottom_left_x": 18.985832, + "bottom_left_y": 18.985832 + }, + { + "top_left_x": 8.381761, + "top_left_y": 8.381761, + "top_right_x": 8.381761, + "top_right_y": 8.381761, + "bottom_right_x": 16.763521, + "bottom_right_y": 16.763521, + "bottom_left_x": 16.763521, + "bottom_left_y": 16.763521 + }, + { + "top_left_x": 7.07397, + "top_left_y": 7.07397, + "top_right_x": 7.07397, + "top_right_y": 7.07397, + "bottom_right_x": 14.14794, + "bottom_right_y": 14.14794, + "bottom_left_x": 14.14794, + "bottom_left_y": 14.14794 + }, + { + "top_left_x": 5.7880254, + "top_left_y": 5.7880254, + "top_right_x": 5.7880254, + "top_right_y": 5.7880254, + "bottom_right_x": 11.576051, + "bottom_right_y": 11.576051, + "bottom_left_x": 11.576051, + "bottom_left_y": 11.576051 + }, + { + "top_left_x": 4.6295347, + "top_left_y": 4.6295347, + "top_right_x": 4.6295347, + "top_right_y": 4.6295347, + "bottom_right_x": 9.259069, + "bottom_right_y": 9.259069, + "bottom_left_x": 9.259069, + "bottom_left_y": 9.259069 + }, + { + "top_left_x": 3.638935, + "top_left_y": 3.638935, + "top_right_x": 3.638935, + "top_right_y": 3.638935, + "bottom_right_x": 7.27787, + "bottom_right_y": 7.27787, + "bottom_left_x": 7.27787, + "bottom_left_y": 7.27787 + }, + { + "top_left_x": 2.8209057, + "top_left_y": 2.8209057, + "top_right_x": 2.8209057, + "top_right_y": 2.8209057, + "bottom_right_x": 5.6418114, + "bottom_right_y": 5.6418114, + "bottom_left_x": 5.6418114, + "bottom_left_y": 5.6418114 + }, + { + "top_left_x": 2.1620893, + "top_left_y": 2.1620893, + "top_right_x": 2.1620893, + "top_right_y": 2.1620893, + "bottom_right_x": 4.3241787, + "bottom_right_y": 4.3241787, + "bottom_left_x": 4.3241787, + "bottom_left_y": 4.3241787 + }, + { + "top_left_x": 1.6414614, + "top_left_y": 1.6414614, + "top_right_x": 1.6414614, + "top_right_y": 1.6414614, + "bottom_right_x": 3.2829227, + "bottom_right_y": 3.2829227, + "bottom_left_x": 3.2829227, + "bottom_left_y": 3.2829227 + }, + { + "top_left_x": 1.2361269, + "top_left_y": 1.2361269, + "top_right_x": 1.2361269, + "top_right_y": 1.2361269, + "bottom_right_x": 2.4722538, + "bottom_right_y": 2.4722538, + "bottom_left_x": 2.4722538, + "bottom_left_y": 2.4722538 + }, + { + "top_left_x": 0.92435074, + "top_left_y": 0.92435074, + "top_right_x": 0.92435074, + "top_right_y": 0.92435074, + "bottom_right_x": 1.8487015, + "bottom_right_y": 1.8487015, + "bottom_left_x": 1.8487015, + "bottom_left_y": 1.8487015 + }, + { + "top_left_x": 0.68693924, + "top_left_y": 0.68693924, + "top_right_x": 0.68693924, + "top_right_y": 0.68693924, + "bottom_right_x": 1.3738785, + "bottom_right_y": 1.3738785, + "bottom_left_x": 1.3738785, + "bottom_left_y": 1.3738785 + }, + { + "top_left_x": 0.5076904, + "top_left_y": 0.5076904, + "top_right_x": 0.5076904, + "top_right_y": 0.5076904, + "bottom_right_x": 1.0153809, + "bottom_right_y": 1.0153809, + "bottom_left_x": 1.0153809, + "bottom_left_y": 1.0153809 + }, + { + "top_left_x": 0.3733511, + "top_left_y": 0.3733511, + "top_right_x": 0.3733511, + "top_right_y": 0.3733511, + "bottom_right_x": 0.7467022, + "bottom_right_y": 0.7467022, + "bottom_left_x": 0.7467022, + "bottom_left_y": 0.7467022 + }, + { + "top_left_x": 0.27331638, + "top_left_y": 0.27331638, + "top_right_x": 0.27331638, + "top_right_y": 0.27331638, + "bottom_right_x": 0.54663277, + "bottom_right_y": 0.54663277, + "bottom_left_x": 0.54663277, + "bottom_left_y": 0.54663277 + }, + { + "top_left_x": 0.19925308, + "top_left_y": 0.19925308, + "top_right_x": 0.19925308, + "top_right_y": 0.19925308, + "bottom_right_x": 0.39850616, + "bottom_right_y": 0.39850616, + "bottom_left_x": 0.39850616, + "bottom_left_y": 0.39850616 + }, + { + "top_left_x": 0.14470005, + "top_left_y": 0.14470005, + "top_right_x": 0.14470005, + "top_right_y": 0.14470005, + "bottom_right_x": 0.2894001, + "bottom_right_y": 0.2894001, + "bottom_left_x": 0.2894001, + "bottom_left_y": 0.2894001 + }, + { + "top_left_x": 0.10470486, + "top_left_y": 0.10470486, + "top_right_x": 0.10470486, + "top_right_y": 0.10470486, + "bottom_right_x": 0.20940971, + "bottom_right_y": 0.20940971, + "bottom_left_x": 0.20940971, + "bottom_left_y": 0.20940971 + }, + { + "top_left_x": 0.07550812, + "top_left_y": 0.07550812, + "top_right_x": 0.07550812, + "top_right_y": 0.07550812, + "bottom_right_x": 0.15101624, + "bottom_right_y": 0.15101624, + "bottom_left_x": 0.15101624, + "bottom_left_y": 0.15101624 + } + ] + }, + { + "name": "alpha", + "type": "int", + "data_points": [ + 0, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 249, + 226, + 192, + 153, + 112, + 72, + 34, + 0, + 0, + 0 + ] + } + ], + "\/\/metadata": { + "goldenRepoPath": "frameworks\/base\/packages\/SystemUI\/tests\/goldens\/backgroundAnimationWithoutFade_whenLaunching_withSpring.json", + "goldenIdentifier": "backgroundAnimationWithoutFade_whenLaunching_withSpring", + "testClassName": "TransitionAnimatorTest", + "testMethodName": "backgroundAnimationWithoutFade_whenLaunching[true]", + "deviceLocalPath": "\/data\/user\/0\/com.android.systemui.tests\/files\/platform_screenshots", + "result": "FAILED", + "videoLocation": "TransitionAnimatorTest\/backgroundAnimationWithoutFade_whenLaunching_withSpring.actual.mp4" + } +} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenReturning_withAnimator.json b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenReturning_withAnimator.json new file mode 100644 index 000000000000..98005c53f6e0 --- /dev/null +++ b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenReturning_withAnimator.json @@ -0,0 +1,492 @@ +{ + "frame_ids": [ + 0, + 20, + 40, + 60, + 80, + 100, + 120, + 140, + 160, + 180, + 200, + 220, + 240, + 260, + 280, + 300, + 320, + 340, + 360, + 380, + 400, + 420, + 440, + 460, + 480, + 500 + ], + "features": [ + { + "name": "bounds", + "type": "rect", + "data_points": [ + { + "left": 100, + "top": 300, + "right": 200, + "bottom": 400 + }, + { + "left": 99, + "top": 296, + "right": 202, + "bottom": 404 + }, + { + "left": 95, + "top": 283, + "right": 207, + "bottom": 417 + }, + { + "left": 86, + "top": 256, + "right": 219, + "bottom": 443 + }, + { + "left": 68, + "top": 198, + "right": 243, + "bottom": 499 + }, + { + "left": 39, + "top": 110, + "right": 278, + "bottom": 584 + }, + { + "left": 26, + "top": 74, + "right": 292, + "bottom": 618 + }, + { + "left": 19, + "top": 55, + "right": 299, + "bottom": 637 + }, + { + "left": 15, + "top": 42, + "right": 304, + "bottom": 649 + }, + { + "left": 12, + "top": 33, + "right": 307, + "bottom": 658 + }, + { + "left": 9, + "top": 27, + "right": 310, + "bottom": 664 + }, + { + "left": 7, + "top": 21, + "right": 312, + "bottom": 669 + }, + { + "left": 6, + "top": 17, + "right": 314, + "bottom": 674 + }, + { + "left": 5, + "top": 13, + "right": 315, + "bottom": 677 + }, + { + "left": 4, + "top": 10, + "right": 316, + "bottom": 680 + }, + { + "left": 3, + "top": 8, + "right": 317, + "bottom": 682 + }, + { + "left": 2, + "top": 6, + "right": 318, + "bottom": 684 + }, + { + "left": 2, + "top": 5, + "right": 318, + "bottom": 685 + }, + { + "left": 1, + "top": 4, + "right": 319, + "bottom": 687 + }, + { + "left": 1, + "top": 2, + "right": 319, + "bottom": 688 + }, + { + "left": 1, + "top": 2, + "right": 319, + "bottom": 688 + }, + { + "left": 0, + "top": 1, + "right": 320, + "bottom": 689 + }, + { + "left": 0, + "top": 1, + "right": 320, + "bottom": 689 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + }, + { + "left": 0, + "top": 0, + "right": 320, + "bottom": 690 + } + ] + }, + { + "name": "corner_radii", + "type": "cornerRadii", + "data_points": [ + { + "top_left_x": 10, + "top_left_y": 10, + "top_right_x": 10, + "top_right_y": 10, + "bottom_right_x": 20, + "bottom_right_y": 20, + "bottom_left_x": 20, + "bottom_left_y": 20 + }, + { + "top_left_x": 9.865689, + "top_left_y": 9.865689, + "top_right_x": 9.865689, + "top_right_y": 9.865689, + "bottom_right_x": 19.731379, + "bottom_right_y": 19.731379, + "bottom_left_x": 19.731379, + "bottom_left_y": 19.731379 + }, + { + "top_left_x": 9.419104, + "top_left_y": 9.419104, + "top_right_x": 9.419104, + "top_right_y": 9.419104, + "bottom_right_x": 18.838207, + "bottom_right_y": 18.838207, + "bottom_left_x": 18.838207, + "bottom_left_y": 18.838207 + }, + { + "top_left_x": 8.533693, + "top_left_y": 8.533693, + "top_right_x": 8.533693, + "top_right_y": 8.533693, + "bottom_right_x": 17.067387, + "bottom_right_y": 17.067387, + "bottom_left_x": 17.067387, + "bottom_left_y": 17.067387 + }, + { + "top_left_x": 6.5919456, + "top_left_y": 6.5919456, + "top_right_x": 6.5919456, + "top_right_y": 6.5919456, + "bottom_right_x": 13.183891, + "bottom_right_y": 13.183891, + "bottom_left_x": 13.183891, + "bottom_left_y": 13.183891 + }, + { + "top_left_x": 3.6674318, + "top_left_y": 3.6674318, + "top_right_x": 3.6674318, + "top_right_y": 3.6674318, + "bottom_right_x": 7.3348637, + "bottom_right_y": 7.3348637, + "bottom_left_x": 7.3348637, + "bottom_left_y": 7.3348637 + }, + { + "top_left_x": 2.4832253, + "top_left_y": 2.4832253, + "top_right_x": 2.4832253, + "top_right_y": 2.4832253, + "bottom_right_x": 4.9664507, + "bottom_right_y": 4.9664507, + "bottom_left_x": 4.9664507, + "bottom_left_y": 4.9664507 + }, + { + "top_left_x": 1.8252907, + "top_left_y": 1.8252907, + "top_right_x": 1.8252907, + "top_right_y": 1.8252907, + "bottom_right_x": 3.6505814, + "bottom_right_y": 3.6505814, + "bottom_left_x": 3.6505814, + "bottom_left_y": 3.6505814 + }, + { + "top_left_x": 1.4077549, + "top_left_y": 1.4077549, + "top_right_x": 1.4077549, + "top_right_y": 1.4077549, + "bottom_right_x": 2.8155098, + "bottom_right_y": 2.8155098, + "bottom_left_x": 2.8155098, + "bottom_left_y": 2.8155098 + }, + { + "top_left_x": 1.1067667, + "top_left_y": 1.1067667, + "top_right_x": 1.1067667, + "top_right_y": 1.1067667, + "bottom_right_x": 2.2135334, + "bottom_right_y": 2.2135334, + "bottom_left_x": 2.2135334, + "bottom_left_y": 2.2135334 + }, + { + "top_left_x": 0.88593864, + "top_left_y": 0.88593864, + "top_right_x": 0.88593864, + "top_right_y": 0.88593864, + "bottom_right_x": 1.7718773, + "bottom_right_y": 1.7718773, + "bottom_left_x": 1.7718773, + "bottom_left_y": 1.7718773 + }, + { + "top_left_x": 0.7069988, + "top_left_y": 0.7069988, + "top_right_x": 0.7069988, + "top_right_y": 0.7069988, + "bottom_right_x": 1.4139977, + "bottom_right_y": 1.4139977, + "bottom_left_x": 1.4139977, + "bottom_left_y": 1.4139977 + }, + { + "top_left_x": 0.55613136, + "top_left_y": 0.55613136, + "top_right_x": 0.55613136, + "top_right_y": 0.55613136, + "bottom_right_x": 1.1122627, + "bottom_right_y": 1.1122627, + "bottom_left_x": 1.1122627, + "bottom_left_y": 1.1122627 + }, + { + "top_left_x": 0.44889355, + "top_left_y": 0.44889355, + "top_right_x": 0.44889355, + "top_right_y": 0.44889355, + "bottom_right_x": 0.8977871, + "bottom_right_y": 0.8977871, + "bottom_left_x": 0.8977871, + "bottom_left_y": 0.8977871 + }, + { + "top_left_x": 0.34557533, + "top_left_y": 0.34557533, + "top_right_x": 0.34557533, + "top_right_y": 0.34557533, + "bottom_right_x": 0.69115067, + "bottom_right_y": 0.69115067, + "bottom_left_x": 0.69115067, + "bottom_left_y": 0.69115067 + }, + { + "top_left_x": 0.27671337, + "top_left_y": 0.27671337, + "top_right_x": 0.27671337, + "top_right_y": 0.27671337, + "bottom_right_x": 0.55342674, + "bottom_right_y": 0.55342674, + "bottom_left_x": 0.55342674, + "bottom_left_y": 0.55342674 + }, + { + "top_left_x": 0.20785141, + "top_left_y": 0.20785141, + "top_right_x": 0.20785141, + "top_right_y": 0.20785141, + "bottom_right_x": 0.41570282, + "bottom_right_y": 0.41570282, + "bottom_left_x": 0.41570282, + "bottom_left_y": 0.41570282 + }, + { + "top_left_x": 0.1601448, + "top_left_y": 0.1601448, + "top_right_x": 0.1601448, + "top_right_y": 0.1601448, + "bottom_right_x": 0.3202896, + "bottom_right_y": 0.3202896, + "bottom_left_x": 0.3202896, + "bottom_left_y": 0.3202896 + }, + { + "top_left_x": 0.117860794, + "top_left_y": 0.117860794, + "top_right_x": 0.117860794, + "top_right_y": 0.117860794, + "bottom_right_x": 0.23572159, + "bottom_right_y": 0.23572159, + "bottom_left_x": 0.23572159, + "bottom_left_y": 0.23572159 + }, + { + "top_left_x": 0.08036041, + "top_left_y": 0.08036041, + "top_right_x": 0.08036041, + "top_right_y": 0.08036041, + "bottom_right_x": 0.16072083, + "bottom_right_y": 0.16072083, + "bottom_left_x": 0.16072083, + "bottom_left_y": 0.16072083 + }, + { + "top_left_x": 0.05836296, + "top_left_y": 0.05836296, + "top_right_x": 0.05836296, + "top_right_y": 0.05836296, + "bottom_right_x": 0.11672592, + "bottom_right_y": 0.11672592, + "bottom_left_x": 0.11672592, + "bottom_left_y": 0.11672592 + }, + { + "top_left_x": 0.03636551, + "top_left_y": 0.03636551, + "top_right_x": 0.03636551, + "top_right_y": 0.03636551, + "bottom_right_x": 0.07273102, + "bottom_right_y": 0.07273102, + "bottom_left_x": 0.07273102, + "bottom_left_y": 0.07273102 + }, + { + "top_left_x": 0.018137932, + "top_left_y": 0.018137932, + "top_right_x": 0.018137932, + "top_right_y": 0.018137932, + "bottom_right_x": 0.036275864, + "bottom_right_y": 0.036275864, + "bottom_left_x": 0.036275864, + "bottom_left_y": 0.036275864 + }, + { + "top_left_x": 0.0082063675, + "top_left_y": 0.0082063675, + "top_right_x": 0.0082063675, + "top_right_y": 0.0082063675, + "bottom_right_x": 0.016412735, + "bottom_right_y": 0.016412735, + "bottom_left_x": 0.016412735, + "bottom_left_y": 0.016412735 + }, + { + "top_left_x": 0.0031013489, + "top_left_y": 0.0031013489, + "top_right_x": 0.0031013489, + "top_right_y": 0.0031013489, + "bottom_right_x": 0.0062026978, + "bottom_right_y": 0.0062026978, + "bottom_left_x": 0.0062026978, + "bottom_left_y": 0.0062026978 + }, + { + "top_left_x": 0, + "top_left_y": 0, + "top_right_x": 0, + "top_right_y": 0, + "bottom_right_x": 0, + "bottom_right_y": 0, + "bottom_left_x": 0, + "bottom_left_y": 0 + } + ] + }, + { + "name": "alpha", + "type": "int", + "data_points": [ + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 233, + 191, + 153, + 117, + 85, + 57, + 33, + 14, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + } + ] +} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenReturning_withSpring.json b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenReturning_withSpring.json new file mode 100644 index 000000000000..63c263175122 --- /dev/null +++ b/packages/SystemUI/tests/goldens/backgroundAnimationTimeSeries_withoutFade_whenReturning_withSpring.json @@ -0,0 +1,384 @@ +{ + "frame_ids": [ + 0, + 16, + 32, + 48, + 64, + 80, + 96, + 112, + 128, + 144, + 160, + 176, + 192, + 208, + 224, + 240, + 256, + 272, + 288, + 304 + ], + "features": [ + { + "name": "bounds", + "type": "rect", + "data_points": [ + { + "left": 0, + "top": 0, + "right": 0, + "bottom": 0 + }, + { + "left": 104, + "top": 285, + "right": 215, + "bottom": 414 + }, + { + "left": 92, + "top": 252, + "right": 227, + "bottom": 447 + }, + { + "left": 77, + "top": 213, + "right": 242, + "bottom": 486 + }, + { + "left": 63, + "top": 175, + "right": 256, + "bottom": 524 + }, + { + "left": 50, + "top": 141, + "right": 269, + "bottom": 558 + }, + { + "left": 40, + "top": 112, + "right": 279, + "bottom": 587 + }, + { + "left": 31, + "top": 88, + "right": 288, + "bottom": 611 + }, + { + "left": 23, + "top": 68, + "right": 296, + "bottom": 631 + }, + { + "left": 18, + "top": 53, + "right": 301, + "bottom": 646 + }, + { + "left": 13, + "top": 41, + "right": 306, + "bottom": 658 + }, + { + "left": 10, + "top": 31, + "right": 309, + "bottom": 667 + }, + { + "left": 7, + "top": 24, + "right": 312, + "bottom": 673 + }, + { + "left": 5, + "top": 18, + "right": 314, + "bottom": 678 + }, + { + "left": 4, + "top": 13, + "right": 315, + "bottom": 681 + }, + { + "left": 3, + "top": 10, + "right": 316, + "bottom": 684 + }, + { + "left": 2, + "top": 7, + "right": 317, + "bottom": 685 + }, + { + "left": 1, + "top": 5, + "right": 318, + "bottom": 687 + }, + { + "left": 1, + "top": 4, + "right": 318, + "bottom": 688 + }, + { + "left": 0, + "top": 3, + "right": 319, + "bottom": 688 + } + ] + }, + { + "name": "corner_radii", + "type": "cornerRadii", + "data_points": [ + null, + { + "top_left_x": 9.492916, + "top_left_y": 9.492916, + "top_right_x": 9.492916, + "top_right_y": 9.492916, + "bottom_right_x": 18.985832, + "bottom_right_y": 18.985832, + "bottom_left_x": 18.985832, + "bottom_left_y": 18.985832 + }, + { + "top_left_x": 8.381761, + "top_left_y": 8.381761, + "top_right_x": 8.381761, + "top_right_y": 8.381761, + "bottom_right_x": 16.763521, + "bottom_right_y": 16.763521, + "bottom_left_x": 16.763521, + "bottom_left_y": 16.763521 + }, + { + "top_left_x": 7.07397, + "top_left_y": 7.07397, + "top_right_x": 7.07397, + "top_right_y": 7.07397, + "bottom_right_x": 14.14794, + "bottom_right_y": 14.14794, + "bottom_left_x": 14.14794, + "bottom_left_y": 14.14794 + }, + { + "top_left_x": 5.7880254, + "top_left_y": 5.7880254, + "top_right_x": 5.7880254, + "top_right_y": 5.7880254, + "bottom_right_x": 11.576051, + "bottom_right_y": 11.576051, + "bottom_left_x": 11.576051, + "bottom_left_y": 11.576051 + }, + { + "top_left_x": 4.6295347, + "top_left_y": 4.6295347, + "top_right_x": 4.6295347, + "top_right_y": 4.6295347, + "bottom_right_x": 9.259069, + "bottom_right_y": 9.259069, + "bottom_left_x": 9.259069, + "bottom_left_y": 9.259069 + }, + { + "top_left_x": 3.638935, + "top_left_y": 3.638935, + "top_right_x": 3.638935, + "top_right_y": 3.638935, + "bottom_right_x": 7.27787, + "bottom_right_y": 7.27787, + "bottom_left_x": 7.27787, + "bottom_left_y": 7.27787 + }, + { + "top_left_x": 2.8209057, + "top_left_y": 2.8209057, + "top_right_x": 2.8209057, + "top_right_y": 2.8209057, + "bottom_right_x": 5.6418114, + "bottom_right_y": 5.6418114, + "bottom_left_x": 5.6418114, + "bottom_left_y": 5.6418114 + }, + { + "top_left_x": 2.1620893, + "top_left_y": 2.1620893, + "top_right_x": 2.1620893, + "top_right_y": 2.1620893, + "bottom_right_x": 4.3241787, + "bottom_right_y": 4.3241787, + "bottom_left_x": 4.3241787, + "bottom_left_y": 4.3241787 + }, + { + "top_left_x": 1.6414614, + "top_left_y": 1.6414614, + "top_right_x": 1.6414614, + "top_right_y": 1.6414614, + "bottom_right_x": 3.2829227, + "bottom_right_y": 3.2829227, + "bottom_left_x": 3.2829227, + "bottom_left_y": 3.2829227 + }, + { + "top_left_x": 1.2361269, + "top_left_y": 1.2361269, + "top_right_x": 1.2361269, + "top_right_y": 1.2361269, + "bottom_right_x": 2.4722538, + "bottom_right_y": 2.4722538, + "bottom_left_x": 2.4722538, + "bottom_left_y": 2.4722538 + }, + { + "top_left_x": 0.92435074, + "top_left_y": 0.92435074, + "top_right_x": 0.92435074, + "top_right_y": 0.92435074, + "bottom_right_x": 1.8487015, + "bottom_right_y": 1.8487015, + "bottom_left_x": 1.8487015, + "bottom_left_y": 1.8487015 + }, + { + "top_left_x": 0.68693924, + "top_left_y": 0.68693924, + "top_right_x": 0.68693924, + "top_right_y": 0.68693924, + "bottom_right_x": 1.3738785, + "bottom_right_y": 1.3738785, + "bottom_left_x": 1.3738785, + "bottom_left_y": 1.3738785 + }, + { + "top_left_x": 0.5076904, + "top_left_y": 0.5076904, + "top_right_x": 0.5076904, + "top_right_y": 0.5076904, + "bottom_right_x": 1.0153809, + "bottom_right_y": 1.0153809, + "bottom_left_x": 1.0153809, + "bottom_left_y": 1.0153809 + }, + { + "top_left_x": 0.3733511, + "top_left_y": 0.3733511, + "top_right_x": 0.3733511, + "top_right_y": 0.3733511, + "bottom_right_x": 0.7467022, + "bottom_right_y": 0.7467022, + "bottom_left_x": 0.7467022, + "bottom_left_y": 0.7467022 + }, + { + "top_left_x": 0.27331638, + "top_left_y": 0.27331638, + "top_right_x": 0.27331638, + "top_right_y": 0.27331638, + "bottom_right_x": 0.54663277, + "bottom_right_y": 0.54663277, + "bottom_left_x": 0.54663277, + "bottom_left_y": 0.54663277 + }, + { + "top_left_x": 0.19925308, + "top_left_y": 0.19925308, + "top_right_x": 0.19925308, + "top_right_y": 0.19925308, + "bottom_right_x": 0.39850616, + "bottom_right_y": 0.39850616, + "bottom_left_x": 0.39850616, + "bottom_left_y": 0.39850616 + }, + { + "top_left_x": 0.14470005, + "top_left_y": 0.14470005, + "top_right_x": 0.14470005, + "top_right_y": 0.14470005, + "bottom_right_x": 0.2894001, + "bottom_right_y": 0.2894001, + "bottom_left_x": 0.2894001, + "bottom_left_y": 0.2894001 + }, + { + "top_left_x": 0.10470486, + "top_left_y": 0.10470486, + "top_right_x": 0.10470486, + "top_right_y": 0.10470486, + "bottom_right_x": 0.20940971, + "bottom_right_y": 0.20940971, + "bottom_left_x": 0.20940971, + "bottom_left_y": 0.20940971 + }, + { + "top_left_x": 0.07550812, + "top_left_y": 0.07550812, + "top_right_x": 0.07550812, + "top_right_y": 0.07550812, + "bottom_right_x": 0.15101624, + "bottom_right_y": 0.15101624, + "bottom_left_x": 0.15101624, + "bottom_left_y": 0.15101624 + } + ] + }, + { + "name": "alpha", + "type": "int", + "data_points": [ + 0, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 255, + 249, + 226, + 192, + 153, + 112, + 72, + 34, + 0, + 0, + 0 + ] + } + ], + "\/\/metadata": { + "goldenRepoPath": "frameworks\/base\/packages\/SystemUI\/tests\/goldens\/backgroundAnimationWithoutFade_whenReturning_withSpring.json", + "goldenIdentifier": "backgroundAnimationWithoutFade_whenReturning_withSpring", + "testClassName": "TransitionAnimatorTest", + "testMethodName": "backgroundAnimationWithoutFade_whenReturning[true]", + "deviceLocalPath": "\/data\/user\/0\/com.android.systemui.tests\/files\/platform_screenshots", + "result": "FAILED", + "videoLocation": "TransitionAnimatorTest\/backgroundAnimationWithoutFade_whenReturning_withSpring.actual.mp4" + } +} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenLaunching.json b/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenLaunching.json deleted file mode 100644 index 7f623575fef4..000000000000 --- a/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenLaunching.json +++ /dev/null @@ -1,492 +0,0 @@ -{ - "frame_ids": [ - 0, - 20, - 40, - 60, - 80, - 100, - 120, - 140, - 160, - 180, - 200, - 220, - 240, - 260, - 280, - 300, - 320, - 340, - 360, - 380, - 400, - 420, - 440, - 460, - 480, - 500 - ], - "features": [ - { - "name": "bounds", - "type": "rect", - "data_points": [ - { - "left": 100, - "top": 300, - "right": 200, - "bottom": 400 - }, - { - "left": 99, - "top": 296, - "right": 202, - "bottom": 404 - }, - { - "left": 95, - "top": 283, - "right": 207, - "bottom": 417 - }, - { - "left": 86, - "top": 256, - "right": 219, - "bottom": 443 - }, - { - "left": 68, - "top": 198, - "right": 243, - "bottom": 499 - }, - { - "left": 39, - "top": 110, - "right": 278, - "bottom": 584 - }, - { - "left": 26, - "top": 74, - "right": 292, - "bottom": 618 - }, - { - "left": 19, - "top": 55, - "right": 299, - "bottom": 637 - }, - { - "left": 15, - "top": 42, - "right": 304, - "bottom": 649 - }, - { - "left": 12, - "top": 33, - "right": 307, - "bottom": 658 - }, - { - "left": 9, - "top": 27, - "right": 310, - "bottom": 664 - }, - { - "left": 7, - "top": 21, - "right": 312, - "bottom": 669 - }, - { - "left": 6, - "top": 17, - "right": 314, - "bottom": 674 - }, - { - "left": 5, - "top": 13, - "right": 315, - "bottom": 677 - }, - { - "left": 4, - "top": 10, - "right": 316, - "bottom": 680 - }, - { - "left": 3, - "top": 8, - "right": 317, - "bottom": 682 - }, - { - "left": 2, - "top": 6, - "right": 318, - "bottom": 684 - }, - { - "left": 2, - "top": 5, - "right": 318, - "bottom": 685 - }, - { - "left": 1, - "top": 4, - "right": 319, - "bottom": 687 - }, - { - "left": 1, - "top": 2, - "right": 319, - "bottom": 688 - }, - { - "left": 1, - "top": 2, - "right": 319, - "bottom": 688 - }, - { - "left": 0, - "top": 1, - "right": 320, - "bottom": 689 - }, - { - "left": 0, - "top": 1, - "right": 320, - "bottom": 689 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - } - ] - }, - { - "name": "corner_radii", - "type": "cornerRadii", - "data_points": [ - { - "top_left_x": 10, - "top_left_y": 10, - "top_right_x": 10, - "top_right_y": 10, - "bottom_right_x": 20, - "bottom_right_y": 20, - "bottom_left_x": 20, - "bottom_left_y": 20 - }, - { - "top_left_x": 9.865689, - "top_left_y": 9.865689, - "top_right_x": 9.865689, - "top_right_y": 9.865689, - "bottom_right_x": 19.731379, - "bottom_right_y": 19.731379, - "bottom_left_x": 19.731379, - "bottom_left_y": 19.731379 - }, - { - "top_left_x": 9.419104, - "top_left_y": 9.419104, - "top_right_x": 9.419104, - "top_right_y": 9.419104, - "bottom_right_x": 18.838207, - "bottom_right_y": 18.838207, - "bottom_left_x": 18.838207, - "bottom_left_y": 18.838207 - }, - { - "top_left_x": 8.533693, - "top_left_y": 8.533693, - "top_right_x": 8.533693, - "top_right_y": 8.533693, - "bottom_right_x": 17.067387, - "bottom_right_y": 17.067387, - "bottom_left_x": 17.067387, - "bottom_left_y": 17.067387 - }, - { - "top_left_x": 6.5919456, - "top_left_y": 6.5919456, - "top_right_x": 6.5919456, - "top_right_y": 6.5919456, - "bottom_right_x": 13.183891, - "bottom_right_y": 13.183891, - "bottom_left_x": 13.183891, - "bottom_left_y": 13.183891 - }, - { - "top_left_x": 3.6674318, - "top_left_y": 3.6674318, - "top_right_x": 3.6674318, - "top_right_y": 3.6674318, - "bottom_right_x": 7.3348637, - "bottom_right_y": 7.3348637, - "bottom_left_x": 7.3348637, - "bottom_left_y": 7.3348637 - }, - { - "top_left_x": 2.4832253, - "top_left_y": 2.4832253, - "top_right_x": 2.4832253, - "top_right_y": 2.4832253, - "bottom_right_x": 4.9664507, - "bottom_right_y": 4.9664507, - "bottom_left_x": 4.9664507, - "bottom_left_y": 4.9664507 - }, - { - "top_left_x": 1.8252907, - "top_left_y": 1.8252907, - "top_right_x": 1.8252907, - "top_right_y": 1.8252907, - "bottom_right_x": 3.6505814, - "bottom_right_y": 3.6505814, - "bottom_left_x": 3.6505814, - "bottom_left_y": 3.6505814 - }, - { - "top_left_x": 1.4077549, - "top_left_y": 1.4077549, - "top_right_x": 1.4077549, - "top_right_y": 1.4077549, - "bottom_right_x": 2.8155098, - "bottom_right_y": 2.8155098, - "bottom_left_x": 2.8155098, - "bottom_left_y": 2.8155098 - }, - { - "top_left_x": 1.1067667, - "top_left_y": 1.1067667, - "top_right_x": 1.1067667, - "top_right_y": 1.1067667, - "bottom_right_x": 2.2135334, - "bottom_right_y": 2.2135334, - "bottom_left_x": 2.2135334, - "bottom_left_y": 2.2135334 - }, - { - "top_left_x": 0.88593864, - "top_left_y": 0.88593864, - "top_right_x": 0.88593864, - "top_right_y": 0.88593864, - "bottom_right_x": 1.7718773, - "bottom_right_y": 1.7718773, - "bottom_left_x": 1.7718773, - "bottom_left_y": 1.7718773 - }, - { - "top_left_x": 0.7069988, - "top_left_y": 0.7069988, - "top_right_x": 0.7069988, - "top_right_y": 0.7069988, - "bottom_right_x": 1.4139977, - "bottom_right_y": 1.4139977, - "bottom_left_x": 1.4139977, - "bottom_left_y": 1.4139977 - }, - { - "top_left_x": 0.55613136, - "top_left_y": 0.55613136, - "top_right_x": 0.55613136, - "top_right_y": 0.55613136, - "bottom_right_x": 1.1122627, - "bottom_right_y": 1.1122627, - "bottom_left_x": 1.1122627, - "bottom_left_y": 1.1122627 - }, - { - "top_left_x": 0.44889355, - "top_left_y": 0.44889355, - "top_right_x": 0.44889355, - "top_right_y": 0.44889355, - "bottom_right_x": 0.8977871, - "bottom_right_y": 0.8977871, - "bottom_left_x": 0.8977871, - "bottom_left_y": 0.8977871 - }, - { - "top_left_x": 0.34557533, - "top_left_y": 0.34557533, - "top_right_x": 0.34557533, - "top_right_y": 0.34557533, - "bottom_right_x": 0.69115067, - "bottom_right_y": 0.69115067, - "bottom_left_x": 0.69115067, - "bottom_left_y": 0.69115067 - }, - { - "top_left_x": 0.27671337, - "top_left_y": 0.27671337, - "top_right_x": 0.27671337, - "top_right_y": 0.27671337, - "bottom_right_x": 0.55342674, - "bottom_right_y": 0.55342674, - "bottom_left_x": 0.55342674, - "bottom_left_y": 0.55342674 - }, - { - "top_left_x": 0.20785141, - "top_left_y": 0.20785141, - "top_right_x": 0.20785141, - "top_right_y": 0.20785141, - "bottom_right_x": 0.41570282, - "bottom_right_y": 0.41570282, - "bottom_left_x": 0.41570282, - "bottom_left_y": 0.41570282 - }, - { - "top_left_x": 0.1601448, - "top_left_y": 0.1601448, - "top_right_x": 0.1601448, - "top_right_y": 0.1601448, - "bottom_right_x": 0.3202896, - "bottom_right_y": 0.3202896, - "bottom_left_x": 0.3202896, - "bottom_left_y": 0.3202896 - }, - { - "top_left_x": 0.117860794, - "top_left_y": 0.117860794, - "top_right_x": 0.117860794, - "top_right_y": 0.117860794, - "bottom_right_x": 0.23572159, - "bottom_right_y": 0.23572159, - "bottom_left_x": 0.23572159, - "bottom_left_y": 0.23572159 - }, - { - "top_left_x": 0.08036041, - "top_left_y": 0.08036041, - "top_right_x": 0.08036041, - "top_right_y": 0.08036041, - "bottom_right_x": 0.16072083, - "bottom_right_y": 0.16072083, - "bottom_left_x": 0.16072083, - "bottom_left_y": 0.16072083 - }, - { - "top_left_x": 0.05836296, - "top_left_y": 0.05836296, - "top_right_x": 0.05836296, - "top_right_y": 0.05836296, - "bottom_right_x": 0.11672592, - "bottom_right_y": 0.11672592, - "bottom_left_x": 0.11672592, - "bottom_left_y": 0.11672592 - }, - { - "top_left_x": 0.03636551, - "top_left_y": 0.03636551, - "top_right_x": 0.03636551, - "top_right_y": 0.03636551, - "bottom_right_x": 0.07273102, - "bottom_right_y": 0.07273102, - "bottom_left_x": 0.07273102, - "bottom_left_y": 0.07273102 - }, - { - "top_left_x": 0.018137932, - "top_left_y": 0.018137932, - "top_right_x": 0.018137932, - "top_right_y": 0.018137932, - "bottom_right_x": 0.036275864, - "bottom_right_y": 0.036275864, - "bottom_left_x": 0.036275864, - "bottom_left_y": 0.036275864 - }, - { - "top_left_x": 0.0082063675, - "top_left_y": 0.0082063675, - "top_right_x": 0.0082063675, - "top_right_y": 0.0082063675, - "bottom_right_x": 0.016412735, - "bottom_right_y": 0.016412735, - "bottom_left_x": 0.016412735, - "bottom_left_y": 0.016412735 - }, - { - "top_left_x": 0.0031013489, - "top_left_y": 0.0031013489, - "top_right_x": 0.0031013489, - "top_right_y": 0.0031013489, - "bottom_right_x": 0.0062026978, - "bottom_right_y": 0.0062026978, - "bottom_left_x": 0.0062026978, - "bottom_left_y": 0.0062026978 - }, - { - "top_left_x": 0, - "top_left_y": 0, - "top_right_x": 0, - "top_right_y": 0, - "bottom_right_x": 0, - "bottom_right_y": 0, - "bottom_left_x": 0, - "bottom_left_y": 0 - } - ] - }, - { - "name": "alpha", - "type": "int", - "data_points": [ - 0, - 96, - 153, - 192, - 220, - 238, - 249, - 254, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255 - ] - } - ] -} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenLaunching_withSpring.json b/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenLaunching_withSpring.json deleted file mode 100644 index 18eedd450751..000000000000 --- a/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenLaunching_withSpring.json +++ /dev/null @@ -1,375 +0,0 @@ -{ - "frame_ids": [ - 0, - 16, - 32, - 48, - 64, - 80, - 96, - 112, - 128, - 144, - 160, - 176, - 192, - 208, - 224, - 240, - 256, - 272, - 288, - 304 - ], - "features": [ - { - "name": "bounds", - "type": "rect", - "data_points": [ - { - "left": 0, - "top": 0, - "right": 0, - "bottom": 0 - }, - { - "left": 94, - "top": 284, - "right": 206, - "bottom": 414 - }, - { - "left": 83, - "top": 251, - "right": 219, - "bottom": 447 - }, - { - "left": 70, - "top": 212, - "right": 234, - "bottom": 485 - }, - { - "left": 57, - "top": 173, - "right": 250, - "bottom": 522 - }, - { - "left": 46, - "top": 139, - "right": 264, - "bottom": 555 - }, - { - "left": 36, - "top": 109, - "right": 276, - "bottom": 584 - }, - { - "left": 28, - "top": 84, - "right": 285, - "bottom": 608 - }, - { - "left": 21, - "top": 65, - "right": 293, - "bottom": 627 - }, - { - "left": 16, - "top": 49, - "right": 300, - "bottom": 642 - }, - { - "left": 12, - "top": 36, - "right": 305, - "bottom": 653 - }, - { - "left": 9, - "top": 27, - "right": 308, - "bottom": 662 - }, - { - "left": 7, - "top": 20, - "right": 312, - "bottom": 669 - }, - { - "left": 5, - "top": 14, - "right": 314, - "bottom": 675 - }, - { - "left": 4, - "top": 11, - "right": 315, - "bottom": 678 - }, - { - "left": 3, - "top": 8, - "right": 316, - "bottom": 681 - }, - { - "left": 2, - "top": 5, - "right": 317, - "bottom": 684 - }, - { - "left": 1, - "top": 4, - "right": 318, - "bottom": 685 - }, - { - "left": 1, - "top": 3, - "right": 318, - "bottom": 686 - }, - { - "left": 0, - "top": 2, - "right": 319, - "bottom": 687 - } - ] - }, - { - "name": "corner_radii", - "type": "cornerRadii", - "data_points": [ - null, - { - "top_left_x": 9.492916, - "top_left_y": 9.492916, - "top_right_x": 9.492916, - "top_right_y": 9.492916, - "bottom_right_x": 18.985832, - "bottom_right_y": 18.985832, - "bottom_left_x": 18.985832, - "bottom_left_y": 18.985832 - }, - { - "top_left_x": 8.381761, - "top_left_y": 8.381761, - "top_right_x": 8.381761, - "top_right_y": 8.381761, - "bottom_right_x": 16.763521, - "bottom_right_y": 16.763521, - "bottom_left_x": 16.763521, - "bottom_left_y": 16.763521 - }, - { - "top_left_x": 7.07397, - "top_left_y": 7.07397, - "top_right_x": 7.07397, - "top_right_y": 7.07397, - "bottom_right_x": 14.14794, - "bottom_right_y": 14.14794, - "bottom_left_x": 14.14794, - "bottom_left_y": 14.14794 - }, - { - "top_left_x": 5.7880254, - "top_left_y": 5.7880254, - "top_right_x": 5.7880254, - "top_right_y": 5.7880254, - "bottom_right_x": 11.576051, - "bottom_right_y": 11.576051, - "bottom_left_x": 11.576051, - "bottom_left_y": 11.576051 - }, - { - "top_left_x": 4.6295347, - "top_left_y": 4.6295347, - "top_right_x": 4.6295347, - "top_right_y": 4.6295347, - "bottom_right_x": 9.259069, - "bottom_right_y": 9.259069, - "bottom_left_x": 9.259069, - "bottom_left_y": 9.259069 - }, - { - "top_left_x": 3.638935, - "top_left_y": 3.638935, - "top_right_x": 3.638935, - "top_right_y": 3.638935, - "bottom_right_x": 7.27787, - "bottom_right_y": 7.27787, - "bottom_left_x": 7.27787, - "bottom_left_y": 7.27787 - }, - { - "top_left_x": 2.8209057, - "top_left_y": 2.8209057, - "top_right_x": 2.8209057, - "top_right_y": 2.8209057, - "bottom_right_x": 5.6418114, - "bottom_right_y": 5.6418114, - "bottom_left_x": 5.6418114, - "bottom_left_y": 5.6418114 - }, - { - "top_left_x": 2.1620893, - "top_left_y": 2.1620893, - "top_right_x": 2.1620893, - "top_right_y": 2.1620893, - "bottom_right_x": 4.3241787, - "bottom_right_y": 4.3241787, - "bottom_left_x": 4.3241787, - "bottom_left_y": 4.3241787 - }, - { - "top_left_x": 1.6414614, - "top_left_y": 1.6414614, - "top_right_x": 1.6414614, - "top_right_y": 1.6414614, - "bottom_right_x": 3.2829227, - "bottom_right_y": 3.2829227, - "bottom_left_x": 3.2829227, - "bottom_left_y": 3.2829227 - }, - { - "top_left_x": 1.2361269, - "top_left_y": 1.2361269, - "top_right_x": 1.2361269, - "top_right_y": 1.2361269, - "bottom_right_x": 2.4722538, - "bottom_right_y": 2.4722538, - "bottom_left_x": 2.4722538, - "bottom_left_y": 2.4722538 - }, - { - "top_left_x": 0.92435074, - "top_left_y": 0.92435074, - "top_right_x": 0.92435074, - "top_right_y": 0.92435074, - "bottom_right_x": 1.8487015, - "bottom_right_y": 1.8487015, - "bottom_left_x": 1.8487015, - "bottom_left_y": 1.8487015 - }, - { - "top_left_x": 0.68693924, - "top_left_y": 0.68693924, - "top_right_x": 0.68693924, - "top_right_y": 0.68693924, - "bottom_right_x": 1.3738785, - "bottom_right_y": 1.3738785, - "bottom_left_x": 1.3738785, - "bottom_left_y": 1.3738785 - }, - { - "top_left_x": 0.5076904, - "top_left_y": 0.5076904, - "top_right_x": 0.5076904, - "top_right_y": 0.5076904, - "bottom_right_x": 1.0153809, - "bottom_right_y": 1.0153809, - "bottom_left_x": 1.0153809, - "bottom_left_y": 1.0153809 - }, - { - "top_left_x": 0.3733511, - "top_left_y": 0.3733511, - "top_right_x": 0.3733511, - "top_right_y": 0.3733511, - "bottom_right_x": 0.7467022, - "bottom_right_y": 0.7467022, - "bottom_left_x": 0.7467022, - "bottom_left_y": 0.7467022 - }, - { - "top_left_x": 0.27331638, - "top_left_y": 0.27331638, - "top_right_x": 0.27331638, - "top_right_y": 0.27331638, - "bottom_right_x": 0.54663277, - "bottom_right_y": 0.54663277, - "bottom_left_x": 0.54663277, - "bottom_left_y": 0.54663277 - }, - { - "top_left_x": 0.19925308, - "top_left_y": 0.19925308, - "top_right_x": 0.19925308, - "top_right_y": 0.19925308, - "bottom_right_x": 0.39850616, - "bottom_right_y": 0.39850616, - "bottom_left_x": 0.39850616, - "bottom_left_y": 0.39850616 - }, - { - "top_left_x": 0.14470005, - "top_left_y": 0.14470005, - "top_right_x": 0.14470005, - "top_right_y": 0.14470005, - "bottom_right_x": 0.2894001, - "bottom_right_y": 0.2894001, - "bottom_left_x": 0.2894001, - "bottom_left_y": 0.2894001 - }, - { - "top_left_x": 0.10470486, - "top_left_y": 0.10470486, - "top_right_x": 0.10470486, - "top_right_y": 0.10470486, - "bottom_right_x": 0.20940971, - "bottom_right_y": 0.20940971, - "bottom_left_x": 0.20940971, - "bottom_left_y": 0.20940971 - }, - { - "top_left_x": 0.07550812, - "top_left_y": 0.07550812, - "top_right_x": 0.07550812, - "top_right_y": 0.07550812, - "bottom_right_x": 0.15101624, - "bottom_right_y": 0.15101624, - "bottom_left_x": 0.15101624, - "bottom_left_y": 0.15101624 - } - ] - }, - { - "name": "alpha", - "type": "int", - "data_points": [ - 0, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 249, - 226, - 192, - 153, - 112, - 72, - 34, - 0, - 0, - 0 - ] - } - ] -} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenReturning.json b/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenReturning.json deleted file mode 100644 index 98005c53f6e0..000000000000 --- a/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenReturning.json +++ /dev/null @@ -1,492 +0,0 @@ -{ - "frame_ids": [ - 0, - 20, - 40, - 60, - 80, - 100, - 120, - 140, - 160, - 180, - 200, - 220, - 240, - 260, - 280, - 300, - 320, - 340, - 360, - 380, - 400, - 420, - 440, - 460, - 480, - 500 - ], - "features": [ - { - "name": "bounds", - "type": "rect", - "data_points": [ - { - "left": 100, - "top": 300, - "right": 200, - "bottom": 400 - }, - { - "left": 99, - "top": 296, - "right": 202, - "bottom": 404 - }, - { - "left": 95, - "top": 283, - "right": 207, - "bottom": 417 - }, - { - "left": 86, - "top": 256, - "right": 219, - "bottom": 443 - }, - { - "left": 68, - "top": 198, - "right": 243, - "bottom": 499 - }, - { - "left": 39, - "top": 110, - "right": 278, - "bottom": 584 - }, - { - "left": 26, - "top": 74, - "right": 292, - "bottom": 618 - }, - { - "left": 19, - "top": 55, - "right": 299, - "bottom": 637 - }, - { - "left": 15, - "top": 42, - "right": 304, - "bottom": 649 - }, - { - "left": 12, - "top": 33, - "right": 307, - "bottom": 658 - }, - { - "left": 9, - "top": 27, - "right": 310, - "bottom": 664 - }, - { - "left": 7, - "top": 21, - "right": 312, - "bottom": 669 - }, - { - "left": 6, - "top": 17, - "right": 314, - "bottom": 674 - }, - { - "left": 5, - "top": 13, - "right": 315, - "bottom": 677 - }, - { - "left": 4, - "top": 10, - "right": 316, - "bottom": 680 - }, - { - "left": 3, - "top": 8, - "right": 317, - "bottom": 682 - }, - { - "left": 2, - "top": 6, - "right": 318, - "bottom": 684 - }, - { - "left": 2, - "top": 5, - "right": 318, - "bottom": 685 - }, - { - "left": 1, - "top": 4, - "right": 319, - "bottom": 687 - }, - { - "left": 1, - "top": 2, - "right": 319, - "bottom": 688 - }, - { - "left": 1, - "top": 2, - "right": 319, - "bottom": 688 - }, - { - "left": 0, - "top": 1, - "right": 320, - "bottom": 689 - }, - { - "left": 0, - "top": 1, - "right": 320, - "bottom": 689 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - } - ] - }, - { - "name": "corner_radii", - "type": "cornerRadii", - "data_points": [ - { - "top_left_x": 10, - "top_left_y": 10, - "top_right_x": 10, - "top_right_y": 10, - "bottom_right_x": 20, - "bottom_right_y": 20, - "bottom_left_x": 20, - "bottom_left_y": 20 - }, - { - "top_left_x": 9.865689, - "top_left_y": 9.865689, - "top_right_x": 9.865689, - "top_right_y": 9.865689, - "bottom_right_x": 19.731379, - "bottom_right_y": 19.731379, - "bottom_left_x": 19.731379, - "bottom_left_y": 19.731379 - }, - { - "top_left_x": 9.419104, - "top_left_y": 9.419104, - "top_right_x": 9.419104, - "top_right_y": 9.419104, - "bottom_right_x": 18.838207, - "bottom_right_y": 18.838207, - "bottom_left_x": 18.838207, - "bottom_left_y": 18.838207 - }, - { - "top_left_x": 8.533693, - "top_left_y": 8.533693, - "top_right_x": 8.533693, - "top_right_y": 8.533693, - "bottom_right_x": 17.067387, - "bottom_right_y": 17.067387, - "bottom_left_x": 17.067387, - "bottom_left_y": 17.067387 - }, - { - "top_left_x": 6.5919456, - "top_left_y": 6.5919456, - "top_right_x": 6.5919456, - "top_right_y": 6.5919456, - "bottom_right_x": 13.183891, - "bottom_right_y": 13.183891, - "bottom_left_x": 13.183891, - "bottom_left_y": 13.183891 - }, - { - "top_left_x": 3.6674318, - "top_left_y": 3.6674318, - "top_right_x": 3.6674318, - "top_right_y": 3.6674318, - "bottom_right_x": 7.3348637, - "bottom_right_y": 7.3348637, - "bottom_left_x": 7.3348637, - "bottom_left_y": 7.3348637 - }, - { - "top_left_x": 2.4832253, - "top_left_y": 2.4832253, - "top_right_x": 2.4832253, - "top_right_y": 2.4832253, - "bottom_right_x": 4.9664507, - "bottom_right_y": 4.9664507, - "bottom_left_x": 4.9664507, - "bottom_left_y": 4.9664507 - }, - { - "top_left_x": 1.8252907, - "top_left_y": 1.8252907, - "top_right_x": 1.8252907, - "top_right_y": 1.8252907, - "bottom_right_x": 3.6505814, - "bottom_right_y": 3.6505814, - "bottom_left_x": 3.6505814, - "bottom_left_y": 3.6505814 - }, - { - "top_left_x": 1.4077549, - "top_left_y": 1.4077549, - "top_right_x": 1.4077549, - "top_right_y": 1.4077549, - "bottom_right_x": 2.8155098, - "bottom_right_y": 2.8155098, - "bottom_left_x": 2.8155098, - "bottom_left_y": 2.8155098 - }, - { - "top_left_x": 1.1067667, - "top_left_y": 1.1067667, - "top_right_x": 1.1067667, - "top_right_y": 1.1067667, - "bottom_right_x": 2.2135334, - "bottom_right_y": 2.2135334, - "bottom_left_x": 2.2135334, - "bottom_left_y": 2.2135334 - }, - { - "top_left_x": 0.88593864, - "top_left_y": 0.88593864, - "top_right_x": 0.88593864, - "top_right_y": 0.88593864, - "bottom_right_x": 1.7718773, - "bottom_right_y": 1.7718773, - "bottom_left_x": 1.7718773, - "bottom_left_y": 1.7718773 - }, - { - "top_left_x": 0.7069988, - "top_left_y": 0.7069988, - "top_right_x": 0.7069988, - "top_right_y": 0.7069988, - "bottom_right_x": 1.4139977, - "bottom_right_y": 1.4139977, - "bottom_left_x": 1.4139977, - "bottom_left_y": 1.4139977 - }, - { - "top_left_x": 0.55613136, - "top_left_y": 0.55613136, - "top_right_x": 0.55613136, - "top_right_y": 0.55613136, - "bottom_right_x": 1.1122627, - "bottom_right_y": 1.1122627, - "bottom_left_x": 1.1122627, - "bottom_left_y": 1.1122627 - }, - { - "top_left_x": 0.44889355, - "top_left_y": 0.44889355, - "top_right_x": 0.44889355, - "top_right_y": 0.44889355, - "bottom_right_x": 0.8977871, - "bottom_right_y": 0.8977871, - "bottom_left_x": 0.8977871, - "bottom_left_y": 0.8977871 - }, - { - "top_left_x": 0.34557533, - "top_left_y": 0.34557533, - "top_right_x": 0.34557533, - "top_right_y": 0.34557533, - "bottom_right_x": 0.69115067, - "bottom_right_y": 0.69115067, - "bottom_left_x": 0.69115067, - "bottom_left_y": 0.69115067 - }, - { - "top_left_x": 0.27671337, - "top_left_y": 0.27671337, - "top_right_x": 0.27671337, - "top_right_y": 0.27671337, - "bottom_right_x": 0.55342674, - "bottom_right_y": 0.55342674, - "bottom_left_x": 0.55342674, - "bottom_left_y": 0.55342674 - }, - { - "top_left_x": 0.20785141, - "top_left_y": 0.20785141, - "top_right_x": 0.20785141, - "top_right_y": 0.20785141, - "bottom_right_x": 0.41570282, - "bottom_right_y": 0.41570282, - "bottom_left_x": 0.41570282, - "bottom_left_y": 0.41570282 - }, - { - "top_left_x": 0.1601448, - "top_left_y": 0.1601448, - "top_right_x": 0.1601448, - "top_right_y": 0.1601448, - "bottom_right_x": 0.3202896, - "bottom_right_y": 0.3202896, - "bottom_left_x": 0.3202896, - "bottom_left_y": 0.3202896 - }, - { - "top_left_x": 0.117860794, - "top_left_y": 0.117860794, - "top_right_x": 0.117860794, - "top_right_y": 0.117860794, - "bottom_right_x": 0.23572159, - "bottom_right_y": 0.23572159, - "bottom_left_x": 0.23572159, - "bottom_left_y": 0.23572159 - }, - { - "top_left_x": 0.08036041, - "top_left_y": 0.08036041, - "top_right_x": 0.08036041, - "top_right_y": 0.08036041, - "bottom_right_x": 0.16072083, - "bottom_right_y": 0.16072083, - "bottom_left_x": 0.16072083, - "bottom_left_y": 0.16072083 - }, - { - "top_left_x": 0.05836296, - "top_left_y": 0.05836296, - "top_right_x": 0.05836296, - "top_right_y": 0.05836296, - "bottom_right_x": 0.11672592, - "bottom_right_y": 0.11672592, - "bottom_left_x": 0.11672592, - "bottom_left_y": 0.11672592 - }, - { - "top_left_x": 0.03636551, - "top_left_y": 0.03636551, - "top_right_x": 0.03636551, - "top_right_y": 0.03636551, - "bottom_right_x": 0.07273102, - "bottom_right_y": 0.07273102, - "bottom_left_x": 0.07273102, - "bottom_left_y": 0.07273102 - }, - { - "top_left_x": 0.018137932, - "top_left_y": 0.018137932, - "top_right_x": 0.018137932, - "top_right_y": 0.018137932, - "bottom_right_x": 0.036275864, - "bottom_right_y": 0.036275864, - "bottom_left_x": 0.036275864, - "bottom_left_y": 0.036275864 - }, - { - "top_left_x": 0.0082063675, - "top_left_y": 0.0082063675, - "top_right_x": 0.0082063675, - "top_right_y": 0.0082063675, - "bottom_right_x": 0.016412735, - "bottom_right_y": 0.016412735, - "bottom_left_x": 0.016412735, - "bottom_left_y": 0.016412735 - }, - { - "top_left_x": 0.0031013489, - "top_left_y": 0.0031013489, - "top_right_x": 0.0031013489, - "top_right_y": 0.0031013489, - "bottom_right_x": 0.0062026978, - "bottom_right_y": 0.0062026978, - "bottom_left_x": 0.0062026978, - "bottom_left_y": 0.0062026978 - }, - { - "top_left_x": 0, - "top_left_y": 0, - "top_right_x": 0, - "top_right_y": 0, - "bottom_right_x": 0, - "bottom_right_y": 0, - "bottom_left_x": 0, - "bottom_left_y": 0 - } - ] - }, - { - "name": "alpha", - "type": "int", - "data_points": [ - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 233, - 191, - 153, - 117, - 85, - 57, - 33, - 14, - 3, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] - } - ] -} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenReturning_withSpring.json b/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenReturning_withSpring.json deleted file mode 100644 index 18eedd450751..000000000000 --- a/packages/SystemUI/tests/goldens/backgroundAnimationWithoutFade_whenReturning_withSpring.json +++ /dev/null @@ -1,375 +0,0 @@ -{ - "frame_ids": [ - 0, - 16, - 32, - 48, - 64, - 80, - 96, - 112, - 128, - 144, - 160, - 176, - 192, - 208, - 224, - 240, - 256, - 272, - 288, - 304 - ], - "features": [ - { - "name": "bounds", - "type": "rect", - "data_points": [ - { - "left": 0, - "top": 0, - "right": 0, - "bottom": 0 - }, - { - "left": 94, - "top": 284, - "right": 206, - "bottom": 414 - }, - { - "left": 83, - "top": 251, - "right": 219, - "bottom": 447 - }, - { - "left": 70, - "top": 212, - "right": 234, - "bottom": 485 - }, - { - "left": 57, - "top": 173, - "right": 250, - "bottom": 522 - }, - { - "left": 46, - "top": 139, - "right": 264, - "bottom": 555 - }, - { - "left": 36, - "top": 109, - "right": 276, - "bottom": 584 - }, - { - "left": 28, - "top": 84, - "right": 285, - "bottom": 608 - }, - { - "left": 21, - "top": 65, - "right": 293, - "bottom": 627 - }, - { - "left": 16, - "top": 49, - "right": 300, - "bottom": 642 - }, - { - "left": 12, - "top": 36, - "right": 305, - "bottom": 653 - }, - { - "left": 9, - "top": 27, - "right": 308, - "bottom": 662 - }, - { - "left": 7, - "top": 20, - "right": 312, - "bottom": 669 - }, - { - "left": 5, - "top": 14, - "right": 314, - "bottom": 675 - }, - { - "left": 4, - "top": 11, - "right": 315, - "bottom": 678 - }, - { - "left": 3, - "top": 8, - "right": 316, - "bottom": 681 - }, - { - "left": 2, - "top": 5, - "right": 317, - "bottom": 684 - }, - { - "left": 1, - "top": 4, - "right": 318, - "bottom": 685 - }, - { - "left": 1, - "top": 3, - "right": 318, - "bottom": 686 - }, - { - "left": 0, - "top": 2, - "right": 319, - "bottom": 687 - } - ] - }, - { - "name": "corner_radii", - "type": "cornerRadii", - "data_points": [ - null, - { - "top_left_x": 9.492916, - "top_left_y": 9.492916, - "top_right_x": 9.492916, - "top_right_y": 9.492916, - "bottom_right_x": 18.985832, - "bottom_right_y": 18.985832, - "bottom_left_x": 18.985832, - "bottom_left_y": 18.985832 - }, - { - "top_left_x": 8.381761, - "top_left_y": 8.381761, - "top_right_x": 8.381761, - "top_right_y": 8.381761, - "bottom_right_x": 16.763521, - "bottom_right_y": 16.763521, - "bottom_left_x": 16.763521, - "bottom_left_y": 16.763521 - }, - { - "top_left_x": 7.07397, - "top_left_y": 7.07397, - "top_right_x": 7.07397, - "top_right_y": 7.07397, - "bottom_right_x": 14.14794, - "bottom_right_y": 14.14794, - "bottom_left_x": 14.14794, - "bottom_left_y": 14.14794 - }, - { - "top_left_x": 5.7880254, - "top_left_y": 5.7880254, - "top_right_x": 5.7880254, - "top_right_y": 5.7880254, - "bottom_right_x": 11.576051, - "bottom_right_y": 11.576051, - "bottom_left_x": 11.576051, - "bottom_left_y": 11.576051 - }, - { - "top_left_x": 4.6295347, - "top_left_y": 4.6295347, - "top_right_x": 4.6295347, - "top_right_y": 4.6295347, - "bottom_right_x": 9.259069, - "bottom_right_y": 9.259069, - "bottom_left_x": 9.259069, - "bottom_left_y": 9.259069 - }, - { - "top_left_x": 3.638935, - "top_left_y": 3.638935, - "top_right_x": 3.638935, - "top_right_y": 3.638935, - "bottom_right_x": 7.27787, - "bottom_right_y": 7.27787, - "bottom_left_x": 7.27787, - "bottom_left_y": 7.27787 - }, - { - "top_left_x": 2.8209057, - "top_left_y": 2.8209057, - "top_right_x": 2.8209057, - "top_right_y": 2.8209057, - "bottom_right_x": 5.6418114, - "bottom_right_y": 5.6418114, - "bottom_left_x": 5.6418114, - "bottom_left_y": 5.6418114 - }, - { - "top_left_x": 2.1620893, - "top_left_y": 2.1620893, - "top_right_x": 2.1620893, - "top_right_y": 2.1620893, - "bottom_right_x": 4.3241787, - "bottom_right_y": 4.3241787, - "bottom_left_x": 4.3241787, - "bottom_left_y": 4.3241787 - }, - { - "top_left_x": 1.6414614, - "top_left_y": 1.6414614, - "top_right_x": 1.6414614, - "top_right_y": 1.6414614, - "bottom_right_x": 3.2829227, - "bottom_right_y": 3.2829227, - "bottom_left_x": 3.2829227, - "bottom_left_y": 3.2829227 - }, - { - "top_left_x": 1.2361269, - "top_left_y": 1.2361269, - "top_right_x": 1.2361269, - "top_right_y": 1.2361269, - "bottom_right_x": 2.4722538, - "bottom_right_y": 2.4722538, - "bottom_left_x": 2.4722538, - "bottom_left_y": 2.4722538 - }, - { - "top_left_x": 0.92435074, - "top_left_y": 0.92435074, - "top_right_x": 0.92435074, - "top_right_y": 0.92435074, - "bottom_right_x": 1.8487015, - "bottom_right_y": 1.8487015, - "bottom_left_x": 1.8487015, - "bottom_left_y": 1.8487015 - }, - { - "top_left_x": 0.68693924, - "top_left_y": 0.68693924, - "top_right_x": 0.68693924, - "top_right_y": 0.68693924, - "bottom_right_x": 1.3738785, - "bottom_right_y": 1.3738785, - "bottom_left_x": 1.3738785, - "bottom_left_y": 1.3738785 - }, - { - "top_left_x": 0.5076904, - "top_left_y": 0.5076904, - "top_right_x": 0.5076904, - "top_right_y": 0.5076904, - "bottom_right_x": 1.0153809, - "bottom_right_y": 1.0153809, - "bottom_left_x": 1.0153809, - "bottom_left_y": 1.0153809 - }, - { - "top_left_x": 0.3733511, - "top_left_y": 0.3733511, - "top_right_x": 0.3733511, - "top_right_y": 0.3733511, - "bottom_right_x": 0.7467022, - "bottom_right_y": 0.7467022, - "bottom_left_x": 0.7467022, - "bottom_left_y": 0.7467022 - }, - { - "top_left_x": 0.27331638, - "top_left_y": 0.27331638, - "top_right_x": 0.27331638, - "top_right_y": 0.27331638, - "bottom_right_x": 0.54663277, - "bottom_right_y": 0.54663277, - "bottom_left_x": 0.54663277, - "bottom_left_y": 0.54663277 - }, - { - "top_left_x": 0.19925308, - "top_left_y": 0.19925308, - "top_right_x": 0.19925308, - "top_right_y": 0.19925308, - "bottom_right_x": 0.39850616, - "bottom_right_y": 0.39850616, - "bottom_left_x": 0.39850616, - "bottom_left_y": 0.39850616 - }, - { - "top_left_x": 0.14470005, - "top_left_y": 0.14470005, - "top_right_x": 0.14470005, - "top_right_y": 0.14470005, - "bottom_right_x": 0.2894001, - "bottom_right_y": 0.2894001, - "bottom_left_x": 0.2894001, - "bottom_left_y": 0.2894001 - }, - { - "top_left_x": 0.10470486, - "top_left_y": 0.10470486, - "top_right_x": 0.10470486, - "top_right_y": 0.10470486, - "bottom_right_x": 0.20940971, - "bottom_right_y": 0.20940971, - "bottom_left_x": 0.20940971, - "bottom_left_y": 0.20940971 - }, - { - "top_left_x": 0.07550812, - "top_left_y": 0.07550812, - "top_right_x": 0.07550812, - "top_right_y": 0.07550812, - "bottom_right_x": 0.15101624, - "bottom_right_y": 0.15101624, - "bottom_left_x": 0.15101624, - "bottom_left_y": 0.15101624 - } - ] - }, - { - "name": "alpha", - "type": "int", - "data_points": [ - 0, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 255, - 249, - 226, - 192, - 153, - 112, - 72, - 34, - 0, - 0, - 0 - ] - } - ] -} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimation_whenLaunching.json b/packages/SystemUI/tests/goldens/backgroundAnimation_whenLaunching.json deleted file mode 100644 index aa8044515ea2..000000000000 --- a/packages/SystemUI/tests/goldens/backgroundAnimation_whenLaunching.json +++ /dev/null @@ -1,492 +0,0 @@ -{ - "frame_ids": [ - 0, - 20, - 40, - 60, - 80, - 100, - 120, - 140, - 160, - 180, - 200, - 220, - 240, - 260, - 280, - 300, - 320, - 340, - 360, - 380, - 400, - 420, - 440, - 460, - 480, - 500 - ], - "features": [ - { - "name": "bounds", - "type": "rect", - "data_points": [ - { - "left": 100, - "top": 300, - "right": 200, - "bottom": 400 - }, - { - "left": 99, - "top": 296, - "right": 202, - "bottom": 404 - }, - { - "left": 95, - "top": 283, - "right": 207, - "bottom": 417 - }, - { - "left": 86, - "top": 256, - "right": 219, - "bottom": 443 - }, - { - "left": 68, - "top": 198, - "right": 243, - "bottom": 499 - }, - { - "left": 39, - "top": 110, - "right": 278, - "bottom": 584 - }, - { - "left": 26, - "top": 74, - "right": 292, - "bottom": 618 - }, - { - "left": 19, - "top": 55, - "right": 299, - "bottom": 637 - }, - { - "left": 15, - "top": 42, - "right": 304, - "bottom": 649 - }, - { - "left": 12, - "top": 33, - "right": 307, - "bottom": 658 - }, - { - "left": 9, - "top": 27, - "right": 310, - "bottom": 664 - }, - { - "left": 7, - "top": 21, - "right": 312, - "bottom": 669 - }, - { - "left": 6, - "top": 17, - "right": 314, - "bottom": 674 - }, - { - "left": 5, - "top": 13, - "right": 315, - "bottom": 677 - }, - { - "left": 4, - "top": 10, - "right": 316, - "bottom": 680 - }, - { - "left": 3, - "top": 8, - "right": 317, - "bottom": 682 - }, - { - "left": 2, - "top": 6, - "right": 318, - "bottom": 684 - }, - { - "left": 2, - "top": 5, - "right": 318, - "bottom": 685 - }, - { - "left": 1, - "top": 4, - "right": 319, - "bottom": 687 - }, - { - "left": 1, - "top": 2, - "right": 319, - "bottom": 688 - }, - { - "left": 1, - "top": 2, - "right": 319, - "bottom": 688 - }, - { - "left": 0, - "top": 1, - "right": 320, - "bottom": 689 - }, - { - "left": 0, - "top": 1, - "right": 320, - "bottom": 689 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - } - ] - }, - { - "name": "corner_radii", - "type": "cornerRadii", - "data_points": [ - { - "top_left_x": 10, - "top_left_y": 10, - "top_right_x": 10, - "top_right_y": 10, - "bottom_right_x": 20, - "bottom_right_y": 20, - "bottom_left_x": 20, - "bottom_left_y": 20 - }, - { - "top_left_x": 9.865689, - "top_left_y": 9.865689, - "top_right_x": 9.865689, - "top_right_y": 9.865689, - "bottom_right_x": 19.731379, - "bottom_right_y": 19.731379, - "bottom_left_x": 19.731379, - "bottom_left_y": 19.731379 - }, - { - "top_left_x": 9.419104, - "top_left_y": 9.419104, - "top_right_x": 9.419104, - "top_right_y": 9.419104, - "bottom_right_x": 18.838207, - "bottom_right_y": 18.838207, - "bottom_left_x": 18.838207, - "bottom_left_y": 18.838207 - }, - { - "top_left_x": 8.533693, - "top_left_y": 8.533693, - "top_right_x": 8.533693, - "top_right_y": 8.533693, - "bottom_right_x": 17.067387, - "bottom_right_y": 17.067387, - "bottom_left_x": 17.067387, - "bottom_left_y": 17.067387 - }, - { - "top_left_x": 6.5919456, - "top_left_y": 6.5919456, - "top_right_x": 6.5919456, - "top_right_y": 6.5919456, - "bottom_right_x": 13.183891, - "bottom_right_y": 13.183891, - "bottom_left_x": 13.183891, - "bottom_left_y": 13.183891 - }, - { - "top_left_x": 3.6674318, - "top_left_y": 3.6674318, - "top_right_x": 3.6674318, - "top_right_y": 3.6674318, - "bottom_right_x": 7.3348637, - "bottom_right_y": 7.3348637, - "bottom_left_x": 7.3348637, - "bottom_left_y": 7.3348637 - }, - { - "top_left_x": 2.4832253, - "top_left_y": 2.4832253, - "top_right_x": 2.4832253, - "top_right_y": 2.4832253, - "bottom_right_x": 4.9664507, - "bottom_right_y": 4.9664507, - "bottom_left_x": 4.9664507, - "bottom_left_y": 4.9664507 - }, - { - "top_left_x": 1.8252907, - "top_left_y": 1.8252907, - "top_right_x": 1.8252907, - "top_right_y": 1.8252907, - "bottom_right_x": 3.6505814, - "bottom_right_y": 3.6505814, - "bottom_left_x": 3.6505814, - "bottom_left_y": 3.6505814 - }, - { - "top_left_x": 1.4077549, - "top_left_y": 1.4077549, - "top_right_x": 1.4077549, - "top_right_y": 1.4077549, - "bottom_right_x": 2.8155098, - "bottom_right_y": 2.8155098, - "bottom_left_x": 2.8155098, - "bottom_left_y": 2.8155098 - }, - { - "top_left_x": 1.1067667, - "top_left_y": 1.1067667, - "top_right_x": 1.1067667, - "top_right_y": 1.1067667, - "bottom_right_x": 2.2135334, - "bottom_right_y": 2.2135334, - "bottom_left_x": 2.2135334, - "bottom_left_y": 2.2135334 - }, - { - "top_left_x": 0.88593864, - "top_left_y": 0.88593864, - "top_right_x": 0.88593864, - "top_right_y": 0.88593864, - "bottom_right_x": 1.7718773, - "bottom_right_y": 1.7718773, - "bottom_left_x": 1.7718773, - "bottom_left_y": 1.7718773 - }, - { - "top_left_x": 0.7069988, - "top_left_y": 0.7069988, - "top_right_x": 0.7069988, - "top_right_y": 0.7069988, - "bottom_right_x": 1.4139977, - "bottom_right_y": 1.4139977, - "bottom_left_x": 1.4139977, - "bottom_left_y": 1.4139977 - }, - { - "top_left_x": 0.55613136, - "top_left_y": 0.55613136, - "top_right_x": 0.55613136, - "top_right_y": 0.55613136, - "bottom_right_x": 1.1122627, - "bottom_right_y": 1.1122627, - "bottom_left_x": 1.1122627, - "bottom_left_y": 1.1122627 - }, - { - "top_left_x": 0.44889355, - "top_left_y": 0.44889355, - "top_right_x": 0.44889355, - "top_right_y": 0.44889355, - "bottom_right_x": 0.8977871, - "bottom_right_y": 0.8977871, - "bottom_left_x": 0.8977871, - "bottom_left_y": 0.8977871 - }, - { - "top_left_x": 0.34557533, - "top_left_y": 0.34557533, - "top_right_x": 0.34557533, - "top_right_y": 0.34557533, - "bottom_right_x": 0.69115067, - "bottom_right_y": 0.69115067, - "bottom_left_x": 0.69115067, - "bottom_left_y": 0.69115067 - }, - { - "top_left_x": 0.27671337, - "top_left_y": 0.27671337, - "top_right_x": 0.27671337, - "top_right_y": 0.27671337, - "bottom_right_x": 0.55342674, - "bottom_right_y": 0.55342674, - "bottom_left_x": 0.55342674, - "bottom_left_y": 0.55342674 - }, - { - "top_left_x": 0.20785141, - "top_left_y": 0.20785141, - "top_right_x": 0.20785141, - "top_right_y": 0.20785141, - "bottom_right_x": 0.41570282, - "bottom_right_y": 0.41570282, - "bottom_left_x": 0.41570282, - "bottom_left_y": 0.41570282 - }, - { - "top_left_x": 0.1601448, - "top_left_y": 0.1601448, - "top_right_x": 0.1601448, - "top_right_y": 0.1601448, - "bottom_right_x": 0.3202896, - "bottom_right_y": 0.3202896, - "bottom_left_x": 0.3202896, - "bottom_left_y": 0.3202896 - }, - { - "top_left_x": 0.117860794, - "top_left_y": 0.117860794, - "top_right_x": 0.117860794, - "top_right_y": 0.117860794, - "bottom_right_x": 0.23572159, - "bottom_right_y": 0.23572159, - "bottom_left_x": 0.23572159, - "bottom_left_y": 0.23572159 - }, - { - "top_left_x": 0.08036041, - "top_left_y": 0.08036041, - "top_right_x": 0.08036041, - "top_right_y": 0.08036041, - "bottom_right_x": 0.16072083, - "bottom_right_y": 0.16072083, - "bottom_left_x": 0.16072083, - "bottom_left_y": 0.16072083 - }, - { - "top_left_x": 0.05836296, - "top_left_y": 0.05836296, - "top_right_x": 0.05836296, - "top_right_y": 0.05836296, - "bottom_right_x": 0.11672592, - "bottom_right_y": 0.11672592, - "bottom_left_x": 0.11672592, - "bottom_left_y": 0.11672592 - }, - { - "top_left_x": 0.03636551, - "top_left_y": 0.03636551, - "top_right_x": 0.03636551, - "top_right_y": 0.03636551, - "bottom_right_x": 0.07273102, - "bottom_right_y": 0.07273102, - "bottom_left_x": 0.07273102, - "bottom_left_y": 0.07273102 - }, - { - "top_left_x": 0.018137932, - "top_left_y": 0.018137932, - "top_right_x": 0.018137932, - "top_right_y": 0.018137932, - "bottom_right_x": 0.036275864, - "bottom_right_y": 0.036275864, - "bottom_left_x": 0.036275864, - "bottom_left_y": 0.036275864 - }, - { - "top_left_x": 0.0082063675, - "top_left_y": 0.0082063675, - "top_right_x": 0.0082063675, - "top_right_y": 0.0082063675, - "bottom_right_x": 0.016412735, - "bottom_right_y": 0.016412735, - "bottom_left_x": 0.016412735, - "bottom_left_y": 0.016412735 - }, - { - "top_left_x": 0.0031013489, - "top_left_y": 0.0031013489, - "top_right_x": 0.0031013489, - "top_right_y": 0.0031013489, - "bottom_right_x": 0.0062026978, - "bottom_right_y": 0.0062026978, - "bottom_left_x": 0.0062026978, - "bottom_left_y": 0.0062026978 - }, - { - "top_left_x": 0, - "top_left_y": 0, - "top_right_x": 0, - "top_right_y": 0, - "bottom_right_x": 0, - "bottom_right_y": 0, - "bottom_left_x": 0, - "bottom_left_y": 0 - } - ] - }, - { - "name": "alpha", - "type": "int", - "data_points": [ - 0, - 96, - 153, - 192, - 220, - 238, - 249, - 254, - 233, - 191, - 153, - 117, - 85, - 57, - 33, - 14, - 3, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] - } - ] -} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimation_whenLaunching_withSpring.json b/packages/SystemUI/tests/goldens/backgroundAnimation_whenLaunching_withSpring.json deleted file mode 100644 index a840d3cb1225..000000000000 --- a/packages/SystemUI/tests/goldens/backgroundAnimation_whenLaunching_withSpring.json +++ /dev/null @@ -1,375 +0,0 @@ -{ - "frame_ids": [ - 0, - 16, - 32, - 48, - 64, - 80, - 96, - 112, - 128, - 144, - 160, - 176, - 192, - 208, - 224, - 240, - 256, - 272, - 288, - 304 - ], - "features": [ - { - "name": "bounds", - "type": "rect", - "data_points": [ - { - "left": 0, - "top": 0, - "right": 0, - "bottom": 0 - }, - { - "left": 94, - "top": 284, - "right": 206, - "bottom": 414 - }, - { - "left": 83, - "top": 251, - "right": 219, - "bottom": 447 - }, - { - "left": 70, - "top": 212, - "right": 234, - "bottom": 485 - }, - { - "left": 57, - "top": 173, - "right": 250, - "bottom": 522 - }, - { - "left": 46, - "top": 139, - "right": 264, - "bottom": 555 - }, - { - "left": 36, - "top": 109, - "right": 276, - "bottom": 584 - }, - { - "left": 28, - "top": 84, - "right": 285, - "bottom": 608 - }, - { - "left": 21, - "top": 65, - "right": 293, - "bottom": 627 - }, - { - "left": 16, - "top": 49, - "right": 300, - "bottom": 642 - }, - { - "left": 12, - "top": 36, - "right": 305, - "bottom": 653 - }, - { - "left": 9, - "top": 27, - "right": 308, - "bottom": 662 - }, - { - "left": 7, - "top": 20, - "right": 312, - "bottom": 669 - }, - { - "left": 5, - "top": 14, - "right": 314, - "bottom": 675 - }, - { - "left": 4, - "top": 11, - "right": 315, - "bottom": 678 - }, - { - "left": 3, - "top": 8, - "right": 316, - "bottom": 681 - }, - { - "left": 2, - "top": 5, - "right": 317, - "bottom": 684 - }, - { - "left": 1, - "top": 4, - "right": 318, - "bottom": 685 - }, - { - "left": 1, - "top": 3, - "right": 318, - "bottom": 686 - }, - { - "left": 0, - "top": 2, - "right": 319, - "bottom": 687 - } - ] - }, - { - "name": "corner_radii", - "type": "cornerRadii", - "data_points": [ - null, - { - "top_left_x": 9.492916, - "top_left_y": 9.492916, - "top_right_x": 9.492916, - "top_right_y": 9.492916, - "bottom_right_x": 18.985832, - "bottom_right_y": 18.985832, - "bottom_left_x": 18.985832, - "bottom_left_y": 18.985832 - }, - { - "top_left_x": 8.381761, - "top_left_y": 8.381761, - "top_right_x": 8.381761, - "top_right_y": 8.381761, - "bottom_right_x": 16.763521, - "bottom_right_y": 16.763521, - "bottom_left_x": 16.763521, - "bottom_left_y": 16.763521 - }, - { - "top_left_x": 7.07397, - "top_left_y": 7.07397, - "top_right_x": 7.07397, - "top_right_y": 7.07397, - "bottom_right_x": 14.14794, - "bottom_right_y": 14.14794, - "bottom_left_x": 14.14794, - "bottom_left_y": 14.14794 - }, - { - "top_left_x": 5.7880254, - "top_left_y": 5.7880254, - "top_right_x": 5.7880254, - "top_right_y": 5.7880254, - "bottom_right_x": 11.576051, - "bottom_right_y": 11.576051, - "bottom_left_x": 11.576051, - "bottom_left_y": 11.576051 - }, - { - "top_left_x": 4.6295347, - "top_left_y": 4.6295347, - "top_right_x": 4.6295347, - "top_right_y": 4.6295347, - "bottom_right_x": 9.259069, - "bottom_right_y": 9.259069, - "bottom_left_x": 9.259069, - "bottom_left_y": 9.259069 - }, - { - "top_left_x": 3.638935, - "top_left_y": 3.638935, - "top_right_x": 3.638935, - "top_right_y": 3.638935, - "bottom_right_x": 7.27787, - "bottom_right_y": 7.27787, - "bottom_left_x": 7.27787, - "bottom_left_y": 7.27787 - }, - { - "top_left_x": 2.8209057, - "top_left_y": 2.8209057, - "top_right_x": 2.8209057, - "top_right_y": 2.8209057, - "bottom_right_x": 5.6418114, - "bottom_right_y": 5.6418114, - "bottom_left_x": 5.6418114, - "bottom_left_y": 5.6418114 - }, - { - "top_left_x": 2.1620893, - "top_left_y": 2.1620893, - "top_right_x": 2.1620893, - "top_right_y": 2.1620893, - "bottom_right_x": 4.3241787, - "bottom_right_y": 4.3241787, - "bottom_left_x": 4.3241787, - "bottom_left_y": 4.3241787 - }, - { - "top_left_x": 1.6414614, - "top_left_y": 1.6414614, - "top_right_x": 1.6414614, - "top_right_y": 1.6414614, - "bottom_right_x": 3.2829227, - "bottom_right_y": 3.2829227, - "bottom_left_x": 3.2829227, - "bottom_left_y": 3.2829227 - }, - { - "top_left_x": 1.2361269, - "top_left_y": 1.2361269, - "top_right_x": 1.2361269, - "top_right_y": 1.2361269, - "bottom_right_x": 2.4722538, - "bottom_right_y": 2.4722538, - "bottom_left_x": 2.4722538, - "bottom_left_y": 2.4722538 - }, - { - "top_left_x": 0.92435074, - "top_left_y": 0.92435074, - "top_right_x": 0.92435074, - "top_right_y": 0.92435074, - "bottom_right_x": 1.8487015, - "bottom_right_y": 1.8487015, - "bottom_left_x": 1.8487015, - "bottom_left_y": 1.8487015 - }, - { - "top_left_x": 0.68693924, - "top_left_y": 0.68693924, - "top_right_x": 0.68693924, - "top_right_y": 0.68693924, - "bottom_right_x": 1.3738785, - "bottom_right_y": 1.3738785, - "bottom_left_x": 1.3738785, - "bottom_left_y": 1.3738785 - }, - { - "top_left_x": 0.5076904, - "top_left_y": 0.5076904, - "top_right_x": 0.5076904, - "top_right_y": 0.5076904, - "bottom_right_x": 1.0153809, - "bottom_right_y": 1.0153809, - "bottom_left_x": 1.0153809, - "bottom_left_y": 1.0153809 - }, - { - "top_left_x": 0.3733511, - "top_left_y": 0.3733511, - "top_right_x": 0.3733511, - "top_right_y": 0.3733511, - "bottom_right_x": 0.7467022, - "bottom_right_y": 0.7467022, - "bottom_left_x": 0.7467022, - "bottom_left_y": 0.7467022 - }, - { - "top_left_x": 0.27331638, - "top_left_y": 0.27331638, - "top_right_x": 0.27331638, - "top_right_y": 0.27331638, - "bottom_right_x": 0.54663277, - "bottom_right_y": 0.54663277, - "bottom_left_x": 0.54663277, - "bottom_left_y": 0.54663277 - }, - { - "top_left_x": 0.19925308, - "top_left_y": 0.19925308, - "top_right_x": 0.19925308, - "top_right_y": 0.19925308, - "bottom_right_x": 0.39850616, - "bottom_right_y": 0.39850616, - "bottom_left_x": 0.39850616, - "bottom_left_y": 0.39850616 - }, - { - "top_left_x": 0.14470005, - "top_left_y": 0.14470005, - "top_right_x": 0.14470005, - "top_right_y": 0.14470005, - "bottom_right_x": 0.2894001, - "bottom_right_y": 0.2894001, - "bottom_left_x": 0.2894001, - "bottom_left_y": 0.2894001 - }, - { - "top_left_x": 0.10470486, - "top_left_y": 0.10470486, - "top_right_x": 0.10470486, - "top_right_y": 0.10470486, - "bottom_right_x": 0.20940971, - "bottom_right_y": 0.20940971, - "bottom_left_x": 0.20940971, - "bottom_left_y": 0.20940971 - }, - { - "top_left_x": 0.07550812, - "top_left_y": 0.07550812, - "top_right_x": 0.07550812, - "top_right_y": 0.07550812, - "bottom_right_x": 0.15101624, - "bottom_right_y": 0.15101624, - "bottom_left_x": 0.15101624, - "bottom_left_y": 0.15101624 - } - ] - }, - { - "name": "alpha", - "type": "int", - "data_points": [ - 0, - 45, - 126, - 190, - 228, - 246, - 253, - 255, - 255, - 255, - 249, - 226, - 192, - 153, - 112, - 72, - 34, - 0, - 0, - 0 - ] - } - ] -} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimation_whenReturning.json b/packages/SystemUI/tests/goldens/backgroundAnimation_whenReturning.json deleted file mode 100644 index aa8044515ea2..000000000000 --- a/packages/SystemUI/tests/goldens/backgroundAnimation_whenReturning.json +++ /dev/null @@ -1,492 +0,0 @@ -{ - "frame_ids": [ - 0, - 20, - 40, - 60, - 80, - 100, - 120, - 140, - 160, - 180, - 200, - 220, - 240, - 260, - 280, - 300, - 320, - 340, - 360, - 380, - 400, - 420, - 440, - 460, - 480, - 500 - ], - "features": [ - { - "name": "bounds", - "type": "rect", - "data_points": [ - { - "left": 100, - "top": 300, - "right": 200, - "bottom": 400 - }, - { - "left": 99, - "top": 296, - "right": 202, - "bottom": 404 - }, - { - "left": 95, - "top": 283, - "right": 207, - "bottom": 417 - }, - { - "left": 86, - "top": 256, - "right": 219, - "bottom": 443 - }, - { - "left": 68, - "top": 198, - "right": 243, - "bottom": 499 - }, - { - "left": 39, - "top": 110, - "right": 278, - "bottom": 584 - }, - { - "left": 26, - "top": 74, - "right": 292, - "bottom": 618 - }, - { - "left": 19, - "top": 55, - "right": 299, - "bottom": 637 - }, - { - "left": 15, - "top": 42, - "right": 304, - "bottom": 649 - }, - { - "left": 12, - "top": 33, - "right": 307, - "bottom": 658 - }, - { - "left": 9, - "top": 27, - "right": 310, - "bottom": 664 - }, - { - "left": 7, - "top": 21, - "right": 312, - "bottom": 669 - }, - { - "left": 6, - "top": 17, - "right": 314, - "bottom": 674 - }, - { - "left": 5, - "top": 13, - "right": 315, - "bottom": 677 - }, - { - "left": 4, - "top": 10, - "right": 316, - "bottom": 680 - }, - { - "left": 3, - "top": 8, - "right": 317, - "bottom": 682 - }, - { - "left": 2, - "top": 6, - "right": 318, - "bottom": 684 - }, - { - "left": 2, - "top": 5, - "right": 318, - "bottom": 685 - }, - { - "left": 1, - "top": 4, - "right": 319, - "bottom": 687 - }, - { - "left": 1, - "top": 2, - "right": 319, - "bottom": 688 - }, - { - "left": 1, - "top": 2, - "right": 319, - "bottom": 688 - }, - { - "left": 0, - "top": 1, - "right": 320, - "bottom": 689 - }, - { - "left": 0, - "top": 1, - "right": 320, - "bottom": 689 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - }, - { - "left": 0, - "top": 0, - "right": 320, - "bottom": 690 - } - ] - }, - { - "name": "corner_radii", - "type": "cornerRadii", - "data_points": [ - { - "top_left_x": 10, - "top_left_y": 10, - "top_right_x": 10, - "top_right_y": 10, - "bottom_right_x": 20, - "bottom_right_y": 20, - "bottom_left_x": 20, - "bottom_left_y": 20 - }, - { - "top_left_x": 9.865689, - "top_left_y": 9.865689, - "top_right_x": 9.865689, - "top_right_y": 9.865689, - "bottom_right_x": 19.731379, - "bottom_right_y": 19.731379, - "bottom_left_x": 19.731379, - "bottom_left_y": 19.731379 - }, - { - "top_left_x": 9.419104, - "top_left_y": 9.419104, - "top_right_x": 9.419104, - "top_right_y": 9.419104, - "bottom_right_x": 18.838207, - "bottom_right_y": 18.838207, - "bottom_left_x": 18.838207, - "bottom_left_y": 18.838207 - }, - { - "top_left_x": 8.533693, - "top_left_y": 8.533693, - "top_right_x": 8.533693, - "top_right_y": 8.533693, - "bottom_right_x": 17.067387, - "bottom_right_y": 17.067387, - "bottom_left_x": 17.067387, - "bottom_left_y": 17.067387 - }, - { - "top_left_x": 6.5919456, - "top_left_y": 6.5919456, - "top_right_x": 6.5919456, - "top_right_y": 6.5919456, - "bottom_right_x": 13.183891, - "bottom_right_y": 13.183891, - "bottom_left_x": 13.183891, - "bottom_left_y": 13.183891 - }, - { - "top_left_x": 3.6674318, - "top_left_y": 3.6674318, - "top_right_x": 3.6674318, - "top_right_y": 3.6674318, - "bottom_right_x": 7.3348637, - "bottom_right_y": 7.3348637, - "bottom_left_x": 7.3348637, - "bottom_left_y": 7.3348637 - }, - { - "top_left_x": 2.4832253, - "top_left_y": 2.4832253, - "top_right_x": 2.4832253, - "top_right_y": 2.4832253, - "bottom_right_x": 4.9664507, - "bottom_right_y": 4.9664507, - "bottom_left_x": 4.9664507, - "bottom_left_y": 4.9664507 - }, - { - "top_left_x": 1.8252907, - "top_left_y": 1.8252907, - "top_right_x": 1.8252907, - "top_right_y": 1.8252907, - "bottom_right_x": 3.6505814, - "bottom_right_y": 3.6505814, - "bottom_left_x": 3.6505814, - "bottom_left_y": 3.6505814 - }, - { - "top_left_x": 1.4077549, - "top_left_y": 1.4077549, - "top_right_x": 1.4077549, - "top_right_y": 1.4077549, - "bottom_right_x": 2.8155098, - "bottom_right_y": 2.8155098, - "bottom_left_x": 2.8155098, - "bottom_left_y": 2.8155098 - }, - { - "top_left_x": 1.1067667, - "top_left_y": 1.1067667, - "top_right_x": 1.1067667, - "top_right_y": 1.1067667, - "bottom_right_x": 2.2135334, - "bottom_right_y": 2.2135334, - "bottom_left_x": 2.2135334, - "bottom_left_y": 2.2135334 - }, - { - "top_left_x": 0.88593864, - "top_left_y": 0.88593864, - "top_right_x": 0.88593864, - "top_right_y": 0.88593864, - "bottom_right_x": 1.7718773, - "bottom_right_y": 1.7718773, - "bottom_left_x": 1.7718773, - "bottom_left_y": 1.7718773 - }, - { - "top_left_x": 0.7069988, - "top_left_y": 0.7069988, - "top_right_x": 0.7069988, - "top_right_y": 0.7069988, - "bottom_right_x": 1.4139977, - "bottom_right_y": 1.4139977, - "bottom_left_x": 1.4139977, - "bottom_left_y": 1.4139977 - }, - { - "top_left_x": 0.55613136, - "top_left_y": 0.55613136, - "top_right_x": 0.55613136, - "top_right_y": 0.55613136, - "bottom_right_x": 1.1122627, - "bottom_right_y": 1.1122627, - "bottom_left_x": 1.1122627, - "bottom_left_y": 1.1122627 - }, - { - "top_left_x": 0.44889355, - "top_left_y": 0.44889355, - "top_right_x": 0.44889355, - "top_right_y": 0.44889355, - "bottom_right_x": 0.8977871, - "bottom_right_y": 0.8977871, - "bottom_left_x": 0.8977871, - "bottom_left_y": 0.8977871 - }, - { - "top_left_x": 0.34557533, - "top_left_y": 0.34557533, - "top_right_x": 0.34557533, - "top_right_y": 0.34557533, - "bottom_right_x": 0.69115067, - "bottom_right_y": 0.69115067, - "bottom_left_x": 0.69115067, - "bottom_left_y": 0.69115067 - }, - { - "top_left_x": 0.27671337, - "top_left_y": 0.27671337, - "top_right_x": 0.27671337, - "top_right_y": 0.27671337, - "bottom_right_x": 0.55342674, - "bottom_right_y": 0.55342674, - "bottom_left_x": 0.55342674, - "bottom_left_y": 0.55342674 - }, - { - "top_left_x": 0.20785141, - "top_left_y": 0.20785141, - "top_right_x": 0.20785141, - "top_right_y": 0.20785141, - "bottom_right_x": 0.41570282, - "bottom_right_y": 0.41570282, - "bottom_left_x": 0.41570282, - "bottom_left_y": 0.41570282 - }, - { - "top_left_x": 0.1601448, - "top_left_y": 0.1601448, - "top_right_x": 0.1601448, - "top_right_y": 0.1601448, - "bottom_right_x": 0.3202896, - "bottom_right_y": 0.3202896, - "bottom_left_x": 0.3202896, - "bottom_left_y": 0.3202896 - }, - { - "top_left_x": 0.117860794, - "top_left_y": 0.117860794, - "top_right_x": 0.117860794, - "top_right_y": 0.117860794, - "bottom_right_x": 0.23572159, - "bottom_right_y": 0.23572159, - "bottom_left_x": 0.23572159, - "bottom_left_y": 0.23572159 - }, - { - "top_left_x": 0.08036041, - "top_left_y": 0.08036041, - "top_right_x": 0.08036041, - "top_right_y": 0.08036041, - "bottom_right_x": 0.16072083, - "bottom_right_y": 0.16072083, - "bottom_left_x": 0.16072083, - "bottom_left_y": 0.16072083 - }, - { - "top_left_x": 0.05836296, - "top_left_y": 0.05836296, - "top_right_x": 0.05836296, - "top_right_y": 0.05836296, - "bottom_right_x": 0.11672592, - "bottom_right_y": 0.11672592, - "bottom_left_x": 0.11672592, - "bottom_left_y": 0.11672592 - }, - { - "top_left_x": 0.03636551, - "top_left_y": 0.03636551, - "top_right_x": 0.03636551, - "top_right_y": 0.03636551, - "bottom_right_x": 0.07273102, - "bottom_right_y": 0.07273102, - "bottom_left_x": 0.07273102, - "bottom_left_y": 0.07273102 - }, - { - "top_left_x": 0.018137932, - "top_left_y": 0.018137932, - "top_right_x": 0.018137932, - "top_right_y": 0.018137932, - "bottom_right_x": 0.036275864, - "bottom_right_y": 0.036275864, - "bottom_left_x": 0.036275864, - "bottom_left_y": 0.036275864 - }, - { - "top_left_x": 0.0082063675, - "top_left_y": 0.0082063675, - "top_right_x": 0.0082063675, - "top_right_y": 0.0082063675, - "bottom_right_x": 0.016412735, - "bottom_right_y": 0.016412735, - "bottom_left_x": 0.016412735, - "bottom_left_y": 0.016412735 - }, - { - "top_left_x": 0.0031013489, - "top_left_y": 0.0031013489, - "top_right_x": 0.0031013489, - "top_right_y": 0.0031013489, - "bottom_right_x": 0.0062026978, - "bottom_right_y": 0.0062026978, - "bottom_left_x": 0.0062026978, - "bottom_left_y": 0.0062026978 - }, - { - "top_left_x": 0, - "top_left_y": 0, - "top_right_x": 0, - "top_right_y": 0, - "bottom_right_x": 0, - "bottom_right_y": 0, - "bottom_left_x": 0, - "bottom_left_y": 0 - } - ] - }, - { - "name": "alpha", - "type": "int", - "data_points": [ - 0, - 96, - 153, - 192, - 220, - 238, - 249, - 254, - 233, - 191, - 153, - 117, - 85, - 57, - 33, - 14, - 3, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] - } - ] -} \ No newline at end of file diff --git a/packages/SystemUI/tests/goldens/backgroundAnimation_whenReturning_withSpring.json b/packages/SystemUI/tests/goldens/backgroundAnimation_whenReturning_withSpring.json deleted file mode 100644 index a840d3cb1225..000000000000 --- a/packages/SystemUI/tests/goldens/backgroundAnimation_whenReturning_withSpring.json +++ /dev/null @@ -1,375 +0,0 @@ -{ - "frame_ids": [ - 0, - 16, - 32, - 48, - 64, - 80, - 96, - 112, - 128, - 144, - 160, - 176, - 192, - 208, - 224, - 240, - 256, - 272, - 288, - 304 - ], - "features": [ - { - "name": "bounds", - "type": "rect", - "data_points": [ - { - "left": 0, - "top": 0, - "right": 0, - "bottom": 0 - }, - { - "left": 94, - "top": 284, - "right": 206, - "bottom": 414 - }, - { - "left": 83, - "top": 251, - "right": 219, - "bottom": 447 - }, - { - "left": 70, - "top": 212, - "right": 234, - "bottom": 485 - }, - { - "left": 57, - "top": 173, - "right": 250, - "bottom": 522 - }, - { - "left": 46, - "top": 139, - "right": 264, - "bottom": 555 - }, - { - "left": 36, - "top": 109, - "right": 276, - "bottom": 584 - }, - { - "left": 28, - "top": 84, - "right": 285, - "bottom": 608 - }, - { - "left": 21, - "top": 65, - "right": 293, - "bottom": 627 - }, - { - "left": 16, - "top": 49, - "right": 300, - "bottom": 642 - }, - { - "left": 12, - "top": 36, - "right": 305, - "bottom": 653 - }, - { - "left": 9, - "top": 27, - "right": 308, - "bottom": 662 - }, - { - "left": 7, - "top": 20, - "right": 312, - "bottom": 669 - }, - { - "left": 5, - "top": 14, - "right": 314, - "bottom": 675 - }, - { - "left": 4, - "top": 11, - "right": 315, - "bottom": 678 - }, - { - "left": 3, - "top": 8, - "right": 316, - "bottom": 681 - }, - { - "left": 2, - "top": 5, - "right": 317, - "bottom": 684 - }, - { - "left": 1, - "top": 4, - "right": 318, - "bottom": 685 - }, - { - "left": 1, - "top": 3, - "right": 318, - "bottom": 686 - }, - { - "left": 0, - "top": 2, - "right": 319, - "bottom": 687 - } - ] - }, - { - "name": "corner_radii", - "type": "cornerRadii", - "data_points": [ - null, - { - "top_left_x": 9.492916, - "top_left_y": 9.492916, - "top_right_x": 9.492916, - "top_right_y": 9.492916, - "bottom_right_x": 18.985832, - "bottom_right_y": 18.985832, - "bottom_left_x": 18.985832, - "bottom_left_y": 18.985832 - }, - { - "top_left_x": 8.381761, - "top_left_y": 8.381761, - "top_right_x": 8.381761, - "top_right_y": 8.381761, - "bottom_right_x": 16.763521, - "bottom_right_y": 16.763521, - "bottom_left_x": 16.763521, - "bottom_left_y": 16.763521 - }, - { - "top_left_x": 7.07397, - "top_left_y": 7.07397, - "top_right_x": 7.07397, - "top_right_y": 7.07397, - "bottom_right_x": 14.14794, - "bottom_right_y": 14.14794, - "bottom_left_x": 14.14794, - "bottom_left_y": 14.14794 - }, - { - "top_left_x": 5.7880254, - "top_left_y": 5.7880254, - "top_right_x": 5.7880254, - "top_right_y": 5.7880254, - "bottom_right_x": 11.576051, - "bottom_right_y": 11.576051, - "bottom_left_x": 11.576051, - "bottom_left_y": 11.576051 - }, - { - "top_left_x": 4.6295347, - "top_left_y": 4.6295347, - "top_right_x": 4.6295347, - "top_right_y": 4.6295347, - "bottom_right_x": 9.259069, - "bottom_right_y": 9.259069, - "bottom_left_x": 9.259069, - "bottom_left_y": 9.259069 - }, - { - "top_left_x": 3.638935, - "top_left_y": 3.638935, - "top_right_x": 3.638935, - "top_right_y": 3.638935, - "bottom_right_x": 7.27787, - "bottom_right_y": 7.27787, - "bottom_left_x": 7.27787, - "bottom_left_y": 7.27787 - }, - { - "top_left_x": 2.8209057, - "top_left_y": 2.8209057, - "top_right_x": 2.8209057, - "top_right_y": 2.8209057, - "bottom_right_x": 5.6418114, - "bottom_right_y": 5.6418114, - "bottom_left_x": 5.6418114, - "bottom_left_y": 5.6418114 - }, - { - "top_left_x": 2.1620893, - "top_left_y": 2.1620893, - "top_right_x": 2.1620893, - "top_right_y": 2.1620893, - "bottom_right_x": 4.3241787, - "bottom_right_y": 4.3241787, - "bottom_left_x": 4.3241787, - "bottom_left_y": 4.3241787 - }, - { - "top_left_x": 1.6414614, - "top_left_y": 1.6414614, - "top_right_x": 1.6414614, - "top_right_y": 1.6414614, - "bottom_right_x": 3.2829227, - "bottom_right_y": 3.2829227, - "bottom_left_x": 3.2829227, - "bottom_left_y": 3.2829227 - }, - { - "top_left_x": 1.2361269, - "top_left_y": 1.2361269, - "top_right_x": 1.2361269, - "top_right_y": 1.2361269, - "bottom_right_x": 2.4722538, - "bottom_right_y": 2.4722538, - "bottom_left_x": 2.4722538, - "bottom_left_y": 2.4722538 - }, - { - "top_left_x": 0.92435074, - "top_left_y": 0.92435074, - "top_right_x": 0.92435074, - "top_right_y": 0.92435074, - "bottom_right_x": 1.8487015, - "bottom_right_y": 1.8487015, - "bottom_left_x": 1.8487015, - "bottom_left_y": 1.8487015 - }, - { - "top_left_x": 0.68693924, - "top_left_y": 0.68693924, - "top_right_x": 0.68693924, - "top_right_y": 0.68693924, - "bottom_right_x": 1.3738785, - "bottom_right_y": 1.3738785, - "bottom_left_x": 1.3738785, - "bottom_left_y": 1.3738785 - }, - { - "top_left_x": 0.5076904, - "top_left_y": 0.5076904, - "top_right_x": 0.5076904, - "top_right_y": 0.5076904, - "bottom_right_x": 1.0153809, - "bottom_right_y": 1.0153809, - "bottom_left_x": 1.0153809, - "bottom_left_y": 1.0153809 - }, - { - "top_left_x": 0.3733511, - "top_left_y": 0.3733511, - "top_right_x": 0.3733511, - "top_right_y": 0.3733511, - "bottom_right_x": 0.7467022, - "bottom_right_y": 0.7467022, - "bottom_left_x": 0.7467022, - "bottom_left_y": 0.7467022 - }, - { - "top_left_x": 0.27331638, - "top_left_y": 0.27331638, - "top_right_x": 0.27331638, - "top_right_y": 0.27331638, - "bottom_right_x": 0.54663277, - "bottom_right_y": 0.54663277, - "bottom_left_x": 0.54663277, - "bottom_left_y": 0.54663277 - }, - { - "top_left_x": 0.19925308, - "top_left_y": 0.19925308, - "top_right_x": 0.19925308, - "top_right_y": 0.19925308, - "bottom_right_x": 0.39850616, - "bottom_right_y": 0.39850616, - "bottom_left_x": 0.39850616, - "bottom_left_y": 0.39850616 - }, - { - "top_left_x": 0.14470005, - "top_left_y": 0.14470005, - "top_right_x": 0.14470005, - "top_right_y": 0.14470005, - "bottom_right_x": 0.2894001, - "bottom_right_y": 0.2894001, - "bottom_left_x": 0.2894001, - "bottom_left_y": 0.2894001 - }, - { - "top_left_x": 0.10470486, - "top_left_y": 0.10470486, - "top_right_x": 0.10470486, - "top_right_y": 0.10470486, - "bottom_right_x": 0.20940971, - "bottom_right_y": 0.20940971, - "bottom_left_x": 0.20940971, - "bottom_left_y": 0.20940971 - }, - { - "top_left_x": 0.07550812, - "top_left_y": 0.07550812, - "top_right_x": 0.07550812, - "top_right_y": 0.07550812, - "bottom_right_x": 0.15101624, - "bottom_right_y": 0.15101624, - "bottom_left_x": 0.15101624, - "bottom_left_y": 0.15101624 - } - ] - }, - { - "name": "alpha", - "type": "int", - "data_points": [ - 0, - 45, - 126, - 190, - 228, - 246, - 253, - 255, - 255, - 255, - 249, - 226, - 192, - 153, - 112, - 72, - 34, - 0, - 0, - 0 - ] - } - ] -} \ No newline at end of file diff --git a/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt b/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt index 288ed4dc9d4f..a1f59c2cc2b5 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt @@ -20,18 +20,20 @@ import android.animation.AnimatorRuleRecordingSpec import android.animation.AnimatorTestRuleToolkit import android.animation.MotionControl import android.animation.recordMotion +import android.graphics.Color +import android.graphics.PointF import android.graphics.drawable.GradientDrawable import android.platform.test.annotations.MotionTest import android.view.ViewGroup import android.widget.FrameLayout import androidx.test.ext.junit.rules.ActivityScenarioRule import androidx.test.filters.SmallTest -import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation import com.android.systemui.SysuiTestCase import com.android.systemui.activity.EmptyTestActivity import com.android.systemui.concurrency.fakeExecutor import com.android.systemui.kosmos.Kosmos import com.android.systemui.kosmos.testScope +import com.android.systemui.runOnMainThreadAndWaitForIdleSync import kotlin.test.assertTrue import org.junit.Rule import org.junit.Test @@ -47,13 +49,25 @@ import platform.test.screenshot.PathConfig @SmallTest @MotionTest @RunWith(ParameterizedAndroidJunit4::class) -class TransitionAnimatorTest(val useSpring: Boolean) : SysuiTestCase() { +class TransitionAnimatorTest( + private val fadeWindowBackgroundLayer: Boolean, + private val isLaunching: Boolean, + private val useSpring: Boolean, +) : SysuiTestCase() { companion object { private const val GOLDENS_PATH = "frameworks/base/packages/SystemUI/tests/goldens" - @get:Parameters(name = "{0}") + @get:Parameters(name = "fadeBackground={0}, isLaunching={1}, useSpring={2}") @JvmStatic - val useSpringValues = booleanArrayOf(false, true).toList() + val parameterValues = buildList { + booleanArrayOf(true, false).forEach { fadeBackground -> + booleanArrayOf(true, false).forEach { isLaunching -> + booleanArrayOf(true, false).forEach { useSpring -> + add(arrayOf(fadeBackground, isLaunching, useSpring)) + } + } + } + } } private val kosmos = Kosmos() @@ -66,11 +80,23 @@ class TransitionAnimatorTest(val useSpring: Boolean) : SysuiTestCase() { ActivityTransitionAnimator.SPRING_TIMINGS, ActivityTransitionAnimator.SPRING_INTERPOLATORS, ) - private val withSpring = + private val fade = + if (fadeWindowBackgroundLayer) { + "withFade" + } else { + "withoutFade" + } + private val direction = + if (isLaunching) { + "whenLaunching" + } else { + "whenReturning" + } + private val mode = if (useSpring) { - "_withSpring" + "withSpring" } else { - "" + "withAnimator" } @get:Rule(order = 1) val activityRule = ActivityScenarioRule(EmptyTestActivity::class.java) @@ -83,113 +109,75 @@ class TransitionAnimatorTest(val useSpring: Boolean) : SysuiTestCase() { ) @Test - fun backgroundAnimation_whenLaunching() { - val backgroundLayer = GradientDrawable().apply { alpha = 0 } - val animator = - setUpTest(backgroundLayer, isLaunching = true).apply { - getInstrumentation().runOnMainSync { start() } - } + fun backgroundAnimationTimeSeries() { + val transitionContainer = createScene() + val backgroundLayer = createBackgroundLayer() + val animation = createAnimation(transitionContainer, backgroundLayer) - val recordedMotion = recordMotion(backgroundLayer, animator) + val recordedMotion = record(backgroundLayer, animation) motionRule .assertThat(recordedMotion) - .timeSeriesMatchesGolden("backgroundAnimation_whenLaunching$withSpring") + .timeSeriesMatchesGolden("backgroundAnimationTimeSeries_${fade}_${direction}_$mode") } - @Test - fun backgroundAnimation_whenReturning() { - val backgroundLayer = GradientDrawable().apply { alpha = 0 } - val animator = - setUpTest(backgroundLayer, isLaunching = false).apply { - getInstrumentation().runOnMainSync { start() } - } - - val recordedMotion = recordMotion(backgroundLayer, animator) - - motionRule - .assertThat(recordedMotion) - .timeSeriesMatchesGolden("backgroundAnimation_whenReturning$withSpring") - } - - @Test - fun backgroundAnimationWithoutFade_whenLaunching() { - val backgroundLayer = GradientDrawable().apply { alpha = 0 } - val animator = - setUpTest(backgroundLayer, isLaunching = true, fadeWindowBackgroundLayer = false) - .apply { getInstrumentation().runOnMainSync { start() } } - - val recordedMotion = recordMotion(backgroundLayer, animator) - - motionRule - .assertThat(recordedMotion) - .timeSeriesMatchesGolden("backgroundAnimationWithoutFade_whenLaunching$withSpring") - } - - @Test - fun backgroundAnimationWithoutFade_whenReturning() { - val backgroundLayer = GradientDrawable().apply { alpha = 0 } - val animator = - setUpTest(backgroundLayer, isLaunching = false, fadeWindowBackgroundLayer = false) - .apply { getInstrumentation().runOnMainSync { start() } } - - val recordedMotion = recordMotion(backgroundLayer, animator) - - motionRule - .assertThat(recordedMotion) - .timeSeriesMatchesGolden("backgroundAnimationWithoutFade_whenReturning$withSpring") - } - - private fun setUpTest( - backgroundLayer: GradientDrawable, - isLaunching: Boolean, - fadeWindowBackgroundLayer: Boolean = true, - ): TransitionAnimator.Animation { + private fun createScene(): ViewGroup { lateinit var transitionContainer: ViewGroup activityRule.scenario.onActivity { activity -> - transitionContainer = FrameLayout(activity).apply { setBackgroundColor(0x00FF00) } + transitionContainer = FrameLayout(activity) activity.setContentView(transitionContainer) } waitForIdleSync() + return transitionContainer + } + private fun createBackgroundLayer() = + GradientDrawable().apply { + setColor(Color.BLACK) + alpha = 0 + } + + private fun createAnimation( + transitionContainer: ViewGroup, + backgroundLayer: GradientDrawable, + ): TransitionAnimator.Animation { val controller = TestController(transitionContainer, isLaunching) - return transitionAnimator.createAnimation( - controller, - controller.createAnimatorState(), - createEndState(transitionContainer), - backgroundLayer, - fadeWindowBackgroundLayer, - useSpring = useSpring, - ) - } - private fun createEndState(container: ViewGroup): TransitionAnimator.State { val containerLocation = IntArray(2) - container.getLocationOnScreen(containerLocation) - return TransitionAnimator.State( - left = containerLocation[0], - top = containerLocation[1], - right = containerLocation[0] + 320, - bottom = containerLocation[1] + 690, - topCornerRadius = 0f, - bottomCornerRadius = 0f, - ) + transitionContainer.getLocationOnScreen(containerLocation) + val endState = + TransitionAnimator.State( + left = containerLocation[0], + top = containerLocation[1], + right = containerLocation[0] + 320, + bottom = containerLocation[1] + 690, + topCornerRadius = 0f, + bottomCornerRadius = 0f, + ) + + val startVelocity = + if (useSpring) { + PointF(2500f, 30000f) + } else { + null + } + + return transitionAnimator + .createAnimation( + controller, + controller.createAnimatorState(), + endState, + backgroundLayer, + fadeWindowBackgroundLayer, + startVelocity = startVelocity, + ) + .apply { runOnMainThreadAndWaitForIdleSync { start() } } } - private fun recordMotion( + private fun record( backgroundLayer: GradientDrawable, animation: TransitionAnimator.Animation, ): RecordedMotion { - fun record(motionControl: MotionControl, sampleIntervalMs: Long): RecordedMotion { - return motionRule.recordMotion( - AnimatorRuleRecordingSpec(backgroundLayer, motionControl, sampleIntervalMs) { - feature(DrawableFeatureCaptures.bounds, "bounds") - feature(DrawableFeatureCaptures.cornerRadii, "corner_radii") - feature(DrawableFeatureCaptures.alpha, "alpha") - } - ) - } - val motionControl: MotionControl val sampleIntervalMs: Long if (useSpring) { @@ -204,9 +192,13 @@ class TransitionAnimatorTest(val useSpring: Boolean) : SysuiTestCase() { sampleIntervalMs = 20L } - var recording: RecordedMotion? = null - getInstrumentation().runOnMainSync { recording = record(motionControl, sampleIntervalMs) } - return recording!! + return motionRule.recordMotion( + AnimatorRuleRecordingSpec(backgroundLayer, motionControl, sampleIntervalMs) { + feature(DrawableFeatureCaptures.bounds, "bounds") + feature(DrawableFeatureCaptures.cornerRadii, "corner_radii") + feature(DrawableFeatureCaptures.alpha, "alpha") + } + ) } } -- cgit v1.2.3-59-g8ed1b