1 package com.android.systemui.animation 2 3 /** 4 * A [LaunchAnimator.Timings] to be used in tests. 5 * 6 * Note that all timings except the total duration are non-zero to avoid divide-by-zero exceptions 7 * when computing the progress of a sub-animation (the contents fade in/out). 8 */ 9 val TEST_TIMINGS = LaunchAnimator.Timings( 10 totalDuration = 0L, 11 contentBeforeFadeOutDelay = 1L, 12 contentBeforeFadeOutDuration = 1L, 13 contentAfterFadeInDelay = 1L, 14 contentAfterFadeInDuration = 1L 15 ) 16 17 /** A [LaunchAnimator.Interpolators] to be used in tests. */ 18 val TEST_INTERPOLATORS = LaunchAnimator.Interpolators( 19 positionInterpolator = Interpolators.STANDARD, 20 positionXInterpolator = Interpolators.STANDARD, 21 contentBeforeFadeOutInterpolator = Interpolators.STANDARD, 22 contentAfterFadeInInterpolator = Interpolators.STANDARD 23 )