Loading packages/SystemUI/compose/core/src/com/android/compose/animation/Easings.kt +7 −7 Original line number Diff line number Diff line Loading @@ -27,37 +27,37 @@ import com.android.app.animation.InterpolatorsAndroidX object Easings { /** The standard interpolator that should be used on every normal animation */ val StandardEasing = fromInterpolator(InterpolatorsAndroidX.STANDARD) val Standard = fromInterpolator(InterpolatorsAndroidX.STANDARD) /** * The standard accelerating interpolator that should be used on every regular movement of * content that is disappearing e.g. when moving off screen. */ val StandardAccelerateEasing = fromInterpolator(InterpolatorsAndroidX.STANDARD_ACCELERATE) val StandardAccelerate = fromInterpolator(InterpolatorsAndroidX.STANDARD_ACCELERATE) /** * The standard decelerating interpolator that should be used on every regular movement of * content that is appearing e.g. when coming from off screen. */ val StandardDecelerateEasing = fromInterpolator(InterpolatorsAndroidX.STANDARD_DECELERATE) val StandardDecelerate = fromInterpolator(InterpolatorsAndroidX.STANDARD_DECELERATE) /** The default emphasized interpolator. Used for hero / emphasized movement of content. */ val EmphasizedEasing = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED) val Emphasized = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED) /** * The accelerated emphasized interpolator. Used for hero / emphasized movement of content that * is disappearing e.g. when moving off screen. */ val EmphasizedAccelerateEasing = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED_ACCELERATE) val EmphasizedAccelerate = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED_ACCELERATE) /** * The decelerating emphasized interpolator. Used for hero / emphasized movement of content that * is appearing e.g. when coming from off screen */ val EmphasizedDecelerateEasing = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED_DECELERATE) val EmphasizedDecelerate = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED_DECELERATE) /** The linear interpolator. */ val LinearEasing = fromInterpolator(InterpolatorsAndroidX.LINEAR) val Linear = fromInterpolator(InterpolatorsAndroidX.LINEAR) private fun fromInterpolator(source: Interpolator) = Easing { x -> source.getInterpolation(x) } } packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/PatternBouncer.kt +4 −4 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ internal fun PatternBouncer( animationSpec = tween( durationMillis = SELECTED_DOT_REACTION_ANIMATION_DURATION_MS, easing = Easings.StandardAccelerateEasing, easing = Easings.StandardAccelerate, ), ) } else { Loading @@ -140,7 +140,7 @@ internal fun PatternBouncer( animationSpec = tween( durationMillis = SELECTED_DOT_RETRACT_ANIMATION_DURATION_MS, easing = Easings.StandardDecelerateEasing, easing = Easings.StandardDecelerate, ), ) } Loading Loading @@ -333,7 +333,7 @@ private suspend fun showFailureAnimation( FAILURE_ANIMATION_DOT_SHRINK_ANIMATION_DURATION_MS, delayMillis = rowIndex * FAILURE_ANIMATION_DOT_SHRINK_STAGGER_DELAY_MS, easing = Easings.LinearEasing, easing = Easings.Linear, ), ) Loading @@ -343,7 +343,7 @@ private suspend fun showFailureAnimation( tween( durationMillis = FAILURE_ANIMATION_DOT_REVERT_ANIMATION_DURATION, easing = Easings.StandardEasing, easing = Easings.Standard, ), ) } Loading packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/PinBouncer.kt +1 −1 Original line number Diff line number Diff line Loading @@ -317,4 +317,4 @@ private val pinButtonPressedDuration = 100.milliseconds private val pinButtonPressedEasing = LinearEasing private val pinButtonHoldTime = 33.milliseconds private val pinButtonReleasedDuration = 420.milliseconds private val pinButtonReleasedEasing = Easings.StandardEasing private val pinButtonReleasedEasing = Easings.Standard Loading
packages/SystemUI/compose/core/src/com/android/compose/animation/Easings.kt +7 −7 Original line number Diff line number Diff line Loading @@ -27,37 +27,37 @@ import com.android.app.animation.InterpolatorsAndroidX object Easings { /** The standard interpolator that should be used on every normal animation */ val StandardEasing = fromInterpolator(InterpolatorsAndroidX.STANDARD) val Standard = fromInterpolator(InterpolatorsAndroidX.STANDARD) /** * The standard accelerating interpolator that should be used on every regular movement of * content that is disappearing e.g. when moving off screen. */ val StandardAccelerateEasing = fromInterpolator(InterpolatorsAndroidX.STANDARD_ACCELERATE) val StandardAccelerate = fromInterpolator(InterpolatorsAndroidX.STANDARD_ACCELERATE) /** * The standard decelerating interpolator that should be used on every regular movement of * content that is appearing e.g. when coming from off screen. */ val StandardDecelerateEasing = fromInterpolator(InterpolatorsAndroidX.STANDARD_DECELERATE) val StandardDecelerate = fromInterpolator(InterpolatorsAndroidX.STANDARD_DECELERATE) /** The default emphasized interpolator. Used for hero / emphasized movement of content. */ val EmphasizedEasing = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED) val Emphasized = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED) /** * The accelerated emphasized interpolator. Used for hero / emphasized movement of content that * is disappearing e.g. when moving off screen. */ val EmphasizedAccelerateEasing = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED_ACCELERATE) val EmphasizedAccelerate = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED_ACCELERATE) /** * The decelerating emphasized interpolator. Used for hero / emphasized movement of content that * is appearing e.g. when coming from off screen */ val EmphasizedDecelerateEasing = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED_DECELERATE) val EmphasizedDecelerate = fromInterpolator(InterpolatorsAndroidX.EMPHASIZED_DECELERATE) /** The linear interpolator. */ val LinearEasing = fromInterpolator(InterpolatorsAndroidX.LINEAR) val Linear = fromInterpolator(InterpolatorsAndroidX.LINEAR) private fun fromInterpolator(source: Interpolator) = Easing { x -> source.getInterpolation(x) } }
packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/PatternBouncer.kt +4 −4 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ internal fun PatternBouncer( animationSpec = tween( durationMillis = SELECTED_DOT_REACTION_ANIMATION_DURATION_MS, easing = Easings.StandardAccelerateEasing, easing = Easings.StandardAccelerate, ), ) } else { Loading @@ -140,7 +140,7 @@ internal fun PatternBouncer( animationSpec = tween( durationMillis = SELECTED_DOT_RETRACT_ANIMATION_DURATION_MS, easing = Easings.StandardDecelerateEasing, easing = Easings.StandardDecelerate, ), ) } Loading Loading @@ -333,7 +333,7 @@ private suspend fun showFailureAnimation( FAILURE_ANIMATION_DOT_SHRINK_ANIMATION_DURATION_MS, delayMillis = rowIndex * FAILURE_ANIMATION_DOT_SHRINK_STAGGER_DELAY_MS, easing = Easings.LinearEasing, easing = Easings.Linear, ), ) Loading @@ -343,7 +343,7 @@ private suspend fun showFailureAnimation( tween( durationMillis = FAILURE_ANIMATION_DOT_REVERT_ANIMATION_DURATION, easing = Easings.StandardEasing, easing = Easings.Standard, ), ) } Loading
packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/PinBouncer.kt +1 −1 Original line number Diff line number Diff line Loading @@ -317,4 +317,4 @@ private val pinButtonPressedDuration = 100.milliseconds private val pinButtonPressedEasing = LinearEasing private val pinButtonHoldTime = 33.milliseconds private val pinButtonReleasedDuration = 420.milliseconds private val pinButtonReleasedEasing = Easings.StandardEasing private val pinButtonReleasedEasing = Easings.Standard