.class public Lcom/airbnb/lottie/value/Keyframe; .super Ljava/lang/Object; .source "Keyframe.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;" } .end annotation # static fields .field private static final UNSET_FLOAT:F = -3987645.8f .field private static final UNSET_INT:I = 0x2ec8fb09 # instance fields .field private final composition:Lcom/airbnb/lottie/LottieComposition; .field public endFrame:Ljava/lang/Float; .field private endProgress:F .field public endValue:Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "TT;" } .end annotation .end field .field private endValueFloat:F .field private endValueInt:I .field public final interpolator:Landroid/view/animation/Interpolator; .field public pathCp1:Landroid/graphics/PointF; .field public pathCp2:Landroid/graphics/PointF; .field public final startFrame:F .field private startProgress:F .field public final startValue:Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "TT;" } .end annotation .end field .field private startValueFloat:F .field private startValueInt:I .field public final xInterpolator:Landroid/view/animation/Interpolator; .field public final yInterpolator:Landroid/view/animation/Interpolator; # direct methods .method public constructor (Lcom/airbnb/lottie/LottieComposition;Ljava/lang/Object;Ljava/lang/Object;Landroid/view/animation/Interpolator;FLjava/lang/Float;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/airbnb/lottie/LottieComposition;", "TT;TT;", "Landroid/view/animation/Interpolator;", "F", "Ljava/lang/Float;", ")V" } .end annotation .line 41 invoke-direct {p0}, Ljava/lang/Object;->()V const v0, -0x358c9d09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueFloat:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueFloat:F const v0, 0x2ec8fb09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueInt:I iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueInt:I const/4 v0, 0x1 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startProgress:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endProgress:F const/4 v0, 0x0 iput-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp1:Landroid/graphics/PointF; iput-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp2:Landroid/graphics/PointF; iput-object p1, p0, Lcom/airbnb/lottie/value/Keyframe;->composition:Lcom/airbnb/lottie/LottieComposition; iput-object p2, p0, Lcom/airbnb/lottie/value/Keyframe;->startValue:Ljava/lang/Object; iput-object p3, p0, Lcom/airbnb/lottie/value/Keyframe;->endValue:Ljava/lang/Object; iput-object p4, p0, Lcom/airbnb/lottie/value/Keyframe;->interpolator:Landroid/view/animation/Interpolator; iput-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->xInterpolator:Landroid/view/animation/Interpolator; iput-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->yInterpolator:Landroid/view/animation/Interpolator; iput p5, p0, Lcom/airbnb/lottie/value/Keyframe;->startFrame:F iput-object p6, p0, Lcom/airbnb/lottie/value/Keyframe;->endFrame:Ljava/lang/Float; return-void .end method .method public constructor (Lcom/airbnb/lottie/LottieComposition;Ljava/lang/Object;Ljava/lang/Object;Landroid/view/animation/Interpolator;Landroid/view/animation/Interpolator;FLjava/lang/Float;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/airbnb/lottie/LottieComposition;", "TT;TT;", "Landroid/view/animation/Interpolator;", "Landroid/view/animation/Interpolator;", "F", "Ljava/lang/Float;", ")V" } .end annotation .line 54 invoke-direct {p0}, Ljava/lang/Object;->()V const v0, -0x358c9d09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueFloat:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueFloat:F const v0, 0x2ec8fb09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueInt:I iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueInt:I const/4 v0, 0x1 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startProgress:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endProgress:F const/4 v0, 0x0 iput-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp1:Landroid/graphics/PointF; iput-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp2:Landroid/graphics/PointF; iput-object p1, p0, Lcom/airbnb/lottie/value/Keyframe;->composition:Lcom/airbnb/lottie/LottieComposition; iput-object p2, p0, Lcom/airbnb/lottie/value/Keyframe;->startValue:Ljava/lang/Object; iput-object p3, p0, Lcom/airbnb/lottie/value/Keyframe;->endValue:Ljava/lang/Object; iput-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->interpolator:Landroid/view/animation/Interpolator; iput-object p4, p0, Lcom/airbnb/lottie/value/Keyframe;->xInterpolator:Landroid/view/animation/Interpolator; iput-object p5, p0, Lcom/airbnb/lottie/value/Keyframe;->yInterpolator:Landroid/view/animation/Interpolator; iput p6, p0, Lcom/airbnb/lottie/value/Keyframe;->startFrame:F iput-object p7, p0, Lcom/airbnb/lottie/value/Keyframe;->endFrame:Ljava/lang/Float; return-void .end method .method protected constructor (Lcom/airbnb/lottie/LottieComposition;Ljava/lang/Object;Ljava/lang/Object;Landroid/view/animation/Interpolator;Landroid/view/animation/Interpolator;Landroid/view/animation/Interpolator;FLjava/lang/Float;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/airbnb/lottie/LottieComposition;", "TT;TT;", "Landroid/view/animation/Interpolator;", "Landroid/view/animation/Interpolator;", "Landroid/view/animation/Interpolator;", "F", "Ljava/lang/Float;", ")V" } .end annotation .line 68 invoke-direct {p0}, Ljava/lang/Object;->()V const v0, -0x358c9d09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueFloat:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueFloat:F const v0, 0x2ec8fb09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueInt:I iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueInt:I const/4 v0, 0x1 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startProgress:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endProgress:F const/4 v0, 0x0 iput-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp1:Landroid/graphics/PointF; iput-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp2:Landroid/graphics/PointF; iput-object p1, p0, Lcom/airbnb/lottie/value/Keyframe;->composition:Lcom/airbnb/lottie/LottieComposition; iput-object p2, p0, Lcom/airbnb/lottie/value/Keyframe;->startValue:Ljava/lang/Object; iput-object p3, p0, Lcom/airbnb/lottie/value/Keyframe;->endValue:Ljava/lang/Object; iput-object p4, p0, Lcom/airbnb/lottie/value/Keyframe;->interpolator:Landroid/view/animation/Interpolator; iput-object p5, p0, Lcom/airbnb/lottie/value/Keyframe;->xInterpolator:Landroid/view/animation/Interpolator; iput-object p6, p0, Lcom/airbnb/lottie/value/Keyframe;->yInterpolator:Landroid/view/animation/Interpolator; iput p7, p0, Lcom/airbnb/lottie/value/Keyframe;->startFrame:F iput-object p8, p0, Lcom/airbnb/lottie/value/Keyframe;->endFrame:Ljava/lang/Float; return-void .end method .method public constructor (Ljava/lang/Object;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation .line 82 invoke-direct {p0}, Ljava/lang/Object;->()V const v0, -0x358c9d09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueFloat:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueFloat:F const v0, 0x2ec8fb09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueInt:I iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueInt:I const/4 v0, 0x1 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startProgress:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endProgress:F const/4 v1, 0x0 iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp1:Landroid/graphics/PointF; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp2:Landroid/graphics/PointF; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->composition:Lcom/airbnb/lottie/LottieComposition; iput-object p1, p0, Lcom/airbnb/lottie/value/Keyframe;->startValue:Ljava/lang/Object; iput-object p1, p0, Lcom/airbnb/lottie/value/Keyframe;->endValue:Ljava/lang/Object; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->interpolator:Landroid/view/animation/Interpolator; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->xInterpolator:Landroid/view/animation/Interpolator; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->yInterpolator:Landroid/view/animation/Interpolator; iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startFrame:F const p1, 0x7f7fffff # Float.MAX_VALUE .line 90 invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float; move-result-object p1 iput-object p1, p0, Lcom/airbnb/lottie/value/Keyframe;->endFrame:Ljava/lang/Float; return-void .end method .method private constructor (Ljava/lang/Object;Ljava/lang/Object;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(TT;TT;)V" } .end annotation .line 93 invoke-direct {p0}, Ljava/lang/Object;->()V const v0, -0x358c9d09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueFloat:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueFloat:F const v0, 0x2ec8fb09 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueInt:I iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueInt:I const/4 v0, 0x1 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startProgress:F iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endProgress:F const/4 v1, 0x0 iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp1:Landroid/graphics/PointF; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->pathCp2:Landroid/graphics/PointF; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->composition:Lcom/airbnb/lottie/LottieComposition; iput-object p1, p0, Lcom/airbnb/lottie/value/Keyframe;->startValue:Ljava/lang/Object; iput-object p2, p0, Lcom/airbnb/lottie/value/Keyframe;->endValue:Ljava/lang/Object; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->interpolator:Landroid/view/animation/Interpolator; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->xInterpolator:Landroid/view/animation/Interpolator; iput-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->yInterpolator:Landroid/view/animation/Interpolator; iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startFrame:F const p1, 0x7f7fffff # Float.MAX_VALUE .line 101 invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float; move-result-object p1 iput-object p1, p0, Lcom/airbnb/lottie/value/Keyframe;->endFrame:Ljava/lang/Float; return-void .end method # virtual methods .method public containsProgress(F)Z .locals 1 .line 140 invoke-virtual {p0}, Lcom/airbnb/lottie/value/Keyframe;->getStartProgress()F move-result v0 cmpl-float v0, p1, v0 if-ltz v0, :cond_0 invoke-virtual {p0}, Lcom/airbnb/lottie/value/Keyframe;->getEndProgress()F move-result p0 cmpg-float p0, p1, p0 if-gez p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public copyWith(Ljava/lang/Object;Ljava/lang/Object;)Lcom/airbnb/lottie/value/Keyframe; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TT;TT;)", "Lcom/airbnb/lottie/value/Keyframe<", "TT;>;" } .end annotation .line 105 new-instance p0, Lcom/airbnb/lottie/value/Keyframe; invoke-direct {p0, p1, p2}, Lcom/airbnb/lottie/value/Keyframe;->(Ljava/lang/Object;Ljava/lang/Object;)V return-object p0 .end method .method public getEndProgress()F .locals 3 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->composition:Lcom/airbnb/lottie/LottieComposition; const/high16 v1, 0x3f800000 # 1.0f if-nez v0, :cond_0 return v1 :cond_0 iget v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endProgress:F const/4 v2, 0x1 cmpl-float v0, v0, v2 if-nez v0, :cond_2 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endFrame:Ljava/lang/Float; if-nez v0, :cond_1 iput v1, p0, Lcom/airbnb/lottie/value/Keyframe;->endProgress:F goto :goto_0 .line 126 :cond_1 invoke-virtual {p0}, Lcom/airbnb/lottie/value/Keyframe;->getStartProgress()F move-result v0 iget-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->endFrame:Ljava/lang/Float; .line 127 invoke-virtual {v1}, Ljava/lang/Float;->floatValue()F move-result v1 iget v2, p0, Lcom/airbnb/lottie/value/Keyframe;->startFrame:F sub-float/2addr v1, v2 iget-object v2, p0, Lcom/airbnb/lottie/value/Keyframe;->composition:Lcom/airbnb/lottie/LottieComposition; .line 128 invoke-virtual {v2}, Lcom/airbnb/lottie/LottieComposition;->getDurationFrames()F move-result v2 div-float/2addr v1, v2 add-float/2addr v0, v1 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endProgress:F :cond_2 :goto_0 iget p0, p0, Lcom/airbnb/lottie/value/Keyframe;->endProgress:F return p0 .end method .method public getEndValueFloat()F .locals 2 iget v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueFloat:F const v1, -0x358c9d09 cmpl-float v0, v0, v1 if-nez v0, :cond_0 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValue:Ljava/lang/Object; .line 158 check-cast v0, Ljava/lang/Float; invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F move-result v0 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueFloat:F :cond_0 iget p0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueFloat:F return p0 .end method .method public getEndValueInt()I .locals 2 iget v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueInt:I const v1, 0x2ec8fb09 if-ne v0, v1, :cond_0 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValue:Ljava/lang/Object; .line 178 check-cast v0, Ljava/lang/Integer; invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I move-result v0 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueInt:I :cond_0 iget p0, p0, Lcom/airbnb/lottie/value/Keyframe;->endValueInt:I return p0 .end method .method public getStartProgress()F .locals 3 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->composition:Lcom/airbnb/lottie/LottieComposition; if-nez v0, :cond_0 const/4 p0, 0x0 return p0 :cond_0 iget v1, p0, Lcom/airbnb/lottie/value/Keyframe;->startProgress:F const/4 v2, 0x1 cmpl-float v1, v1, v2 if-nez v1, :cond_1 iget v1, p0, Lcom/airbnb/lottie/value/Keyframe;->startFrame:F .line 113 invoke-virtual {v0}, Lcom/airbnb/lottie/LottieComposition;->getStartFrame()F move-result v0 sub-float/2addr v1, v0 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->composition:Lcom/airbnb/lottie/LottieComposition; invoke-virtual {v0}, Lcom/airbnb/lottie/LottieComposition;->getDurationFrames()F move-result v0 div-float/2addr v1, v0 iput v1, p0, Lcom/airbnb/lottie/value/Keyframe;->startProgress:F :cond_1 iget p0, p0, Lcom/airbnb/lottie/value/Keyframe;->startProgress:F return p0 .end method .method public getStartValueFloat()F .locals 2 iget v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueFloat:F const v1, -0x358c9d09 cmpl-float v0, v0, v1 if-nez v0, :cond_0 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValue:Ljava/lang/Object; .line 148 check-cast v0, Ljava/lang/Float; invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F move-result v0 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueFloat:F :cond_0 iget p0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueFloat:F return p0 .end method .method public getStartValueInt()I .locals 2 iget v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueInt:I const v1, 0x2ec8fb09 if-ne v0, v1, :cond_0 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValue:Ljava/lang/Object; .line 168 check-cast v0, Ljava/lang/Integer; invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I move-result v0 iput v0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueInt:I :cond_0 iget p0, p0, Lcom/airbnb/lottie/value/Keyframe;->startValueInt:I return p0 .end method .method public isStatic()Z .locals 1 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->interpolator:Landroid/view/animation/Interpolator; if-nez v0, :cond_0 iget-object v0, p0, Lcom/airbnb/lottie/value/Keyframe;->xInterpolator:Landroid/view/animation/Interpolator; if-nez v0, :cond_0 iget-object p0, p0, Lcom/airbnb/lottie/value/Keyframe;->yInterpolator:Landroid/view/animation/Interpolator; if-nez p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public toString()Ljava/lang/String; .locals 2 .line 184 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "Keyframe{startValue=" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->startValue:Ljava/lang/Object; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", endValue=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->endValue:Ljava/lang/Object; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", startFrame=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Lcom/airbnb/lottie/value/Keyframe;->startFrame:F invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", endFrame=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v1, p0, Lcom/airbnb/lottie/value/Keyframe;->endFrame:Ljava/lang/Float; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", interpolator=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object p0, p0, Lcom/airbnb/lottie/value/Keyframe;->interpolator:Landroid/view/animation/Interpolator; invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 const/16 v0, 0x7d invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method