MotionLayout$DecelerateInterpolator.smali
.class Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;
.super Landroidx/constraintlayout/motion/widget/MotionInterpolator;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/constraintlayout/motion/widget/MotionLayout;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "DecelerateInterpolator"
.end annotation
# instance fields
.field currentP:F
.field initalV:F
.field maxA:F
.field final synthetic this$0:Landroidx/constraintlayout/motion/widget/MotionLayout;
# direct methods
.method constructor <init>(Landroidx/constraintlayout/motion/widget/MotionLayout;)V
.registers 2
.line 2037
iput-object p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout;
invoke-direct {p0}, Landroidx/constraintlayout/motion/widget/MotionInterpolator;-><init>()V
const/4 p1, 0x0
.line 2038
iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->initalV:F
.line 2039
iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->currentP:F
return-void
.end method
# virtual methods
.method public config(FFF)V
.registers 4
.line 2043
iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->initalV:F
.line 2044
iput p2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->currentP:F
.line 2045
iput p3, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->maxA:F
return-void
.end method
.method public getInterpolation(F)F
.registers 6
.line 2050
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->initalV:F
const/high16 v1, 0x40000000 # 2.0f
const/4 v2, 0x0
cmpl-float v2, v0, v2
if-lez v2, :cond_2a
.line 2051
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->maxA:F
div-float v3, v0, v2
cmpg-float v3, v3, p1
if-gez v3, :cond_13
div-float p1, v0, v2
.line 2054
:cond_13
iget-object v3, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout;
mul-float v2, v2, p1
sub-float/2addr v0, v2
iput v0, v3, Landroidx/constraintlayout/motion/widget/MotionLayout;->mLastVelocity:F
.line 2055
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->initalV:F
mul-float v0, v0, p1
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->maxA:F
mul-float v2, v2, p1
mul-float v2, v2, p1
div-float/2addr v2, v1
sub-float/2addr v0, v2
.line 2056
iget p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->currentP:F
:goto_28
add-float/2addr v0, p1
return v0
:cond_2a
neg-float v2, v0
.line 2059
iget v3, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->maxA:F
div-float/2addr v2, v3
cmpg-float v2, v2, p1
if-gez v2, :cond_34
neg-float p1, v0
div-float/2addr p1, v3
.line 2062
:cond_34
iget-object v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout;
mul-float v3, v3, p1
add-float/2addr v0, v3
iput v0, v2, Landroidx/constraintlayout/motion/widget/MotionLayout;->mLastVelocity:F
.line 2063
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->initalV:F
mul-float v0, v0, p1
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->maxA:F
mul-float v2, v2, p1
mul-float v2, v2, p1
div-float/2addr v2, v1
add-float/2addr v0, v2
.line 2064
iget p1, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->currentP:F
goto :goto_28
.end method
.method public getVelocity()F
.registers 2
.line 2070
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionLayout$DecelerateInterpolator;->this$0:Landroidx/constraintlayout/motion/widget/MotionLayout;
iget v0, v0, Landroidx/constraintlayout/motion/widget/MotionLayout;->mLastVelocity:F
return v0
.end method