apkfuckery/com.discord/smali/com/airbnb/lottie/f/c.smali

935 lines
18 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lcom/airbnb/lottie/f/c;
.super Lcom/airbnb/lottie/f/a;
2019-02-04 20:29:01 +00:00
.source "LottieValueAnimator.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Landroid/view/Choreographer$FrameCallback;
# instance fields
2019-02-21 02:16:48 +00:00
.field public fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2019-02-21 02:16:48 +00:00
.field public mD:F
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
.field private mE:Z
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
.field public mF:J
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
.field public mG:F
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
.field public mH:F
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
.field public mI:F
2019-02-04 20:08:30 +00:00
.field private repeatCount:I
.field protected running:Z
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 3
invoke-direct {p0}, Lcom/airbnb/lottie/f/a;-><init>()V
const/high16 v0, 0x3f800000 # 1.0f
2019-02-21 02:16:48 +00:00
iput v0, p0, Lcom/airbnb/lottie/f/c;->mD:F
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-02-21 02:16:48 +00:00
iput-boolean v0, p0, Lcom/airbnb/lottie/f/c;->mE:Z
2019-02-04 20:08:30 +00:00
const-wide/16 v1, 0x0
2019-02-21 02:16:48 +00:00
iput-wide v1, p0, Lcom/airbnb/lottie/f/c;->mF:J
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
2019-02-21 02:16:48 +00:00
iput v1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
iput v0, p0, Lcom/airbnb/lottie/f/c;->repeatCount:I
const/high16 v1, -0x31000000
2019-02-21 02:16:48 +00:00
iput v1, p0, Lcom/airbnb/lottie/f/c;->mH:F
2019-02-04 20:08:30 +00:00
const/high16 v1, 0x4f000000
2019-02-21 02:16:48 +00:00
iput v1, p0, Lcom/airbnb/lottie/f/c;->mI:F
2019-02-04 20:08:30 +00:00
iput-boolean v0, p0, Lcom/airbnb/lottie/f/c;->running:Z
return-void
.end method
.method private bB()V
.locals 1
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->isRunning()Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x0
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/f/c;->k(Z)V
2019-02-04 20:08:30 +00:00
invoke-static {}, Landroid/view/Choreographer;->getInstance()Landroid/view/Choreographer;
move-result-object v0
invoke-virtual {v0, p0}, Landroid/view/Choreographer;->postFrameCallback(Landroid/view/Choreographer$FrameCallback;)V
:cond_0
return-void
.end method
.method private bz()V
.locals 1
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mD:F
2019-02-04 20:08:30 +00:00
neg-float v0, v0
2019-02-21 02:16:48 +00:00
iput v0, p0, Lcom/airbnb/lottie/f/c;->mD:F
2019-02-04 20:08:30 +00:00
return-void
.end method
# virtual methods
.method public final a(II)V
.locals 3
2019-02-21 02:16:48 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
const v0, -0x800001
goto :goto_0
:cond_0
2019-02-21 02:16:48 +00:00
iget v0, v0, Lcom/airbnb/lottie/d;->gd:F
2019-02-04 20:08:30 +00:00
:goto_0
2019-02-21 02:16:48 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v1, :cond_1
const v1, 0x7f7fffff # Float.MAX_VALUE
goto :goto_1
:cond_1
2019-02-21 02:16:48 +00:00
iget v1, v1, Lcom/airbnb/lottie/d;->ge:F
2019-02-04 20:08:30 +00:00
:goto_1
int-to-float p1, p1
invoke-static {p1, v0, v1}, Lcom/airbnb/lottie/f/e;->clamp(FFF)F
move-result v2
2019-02-21 02:16:48 +00:00
iput v2, p0, Lcom/airbnb/lottie/f/c;->mH:F
2019-02-04 20:08:30 +00:00
int-to-float p2, p2
invoke-static {p2, v0, v1}, Lcom/airbnb/lottie/f/e;->clamp(FFF)F
move-result v0
2019-02-21 02:16:48 +00:00
iput v0, p0, Lcom/airbnb/lottie/f/c;->mI:F
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
invoke-static {v0, p1, p2}, Lcom/airbnb/lottie/f/e;->clamp(FFF)F
move-result p1
float-to-int p1, p1
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f/c;->setFrame(I)V
return-void
.end method
.method public final aL()V
.locals 5
.annotation build Landroidx/annotation/MainThread;
.end annotation
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/airbnb/lottie/f/c;->running:Z
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->bA()Z
move-result v0
2019-02-21 02:16:48 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/f/a;->mC:Ljava/util/Set;
2019-02-04 20:08:30 +00:00
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/animation/Animator$AnimatorListener;
sget v3, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v4, 0x1a
if-lt v3, v4, :cond_0
invoke-interface {v2, p0, v0}, Landroid/animation/Animator$AnimatorListener;->onAnimationStart(Landroid/animation/Animator;Z)V
goto :goto_0
:cond_0
invoke-interface {v2, p0}, Landroid/animation/Animator$AnimatorListener;->onAnimationStart(Landroid/animation/Animator;)V
goto :goto_0
:cond_1
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->bA()Z
move-result v0
if-eqz v0, :cond_2
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMaxFrame()F
move-result v0
goto :goto_1
:cond_2
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMinFrame()F
move-result v0
:goto_1
float-to-int v0, v0
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/f/c;->setFrame(I)V
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
2019-02-21 02:16:48 +00:00
iput-wide v0, p0, Lcom/airbnb/lottie/f/c;->mF:J
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
iput v0, p0, Lcom/airbnb/lottie/f/c;->repeatCount:I
invoke-direct {p0}, Lcom/airbnb/lottie/f/c;->bB()V
return-void
.end method
.method public final aT()V
.locals 1
const/4 v0, 0x0
2019-02-21 02:16:48 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
const/high16 v0, -0x31000000
2019-02-21 02:16:48 +00:00
iput v0, p0, Lcom/airbnb/lottie/f/c;->mH:F
2019-02-04 20:08:30 +00:00
const/high16 v0, 0x4f000000
2019-02-21 02:16:48 +00:00
iput v0, p0, Lcom/airbnb/lottie/f/c;->mI:F
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public bA()Z
.locals 2
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mD:F
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
cmpg-float v0, v0, v1
if-gez v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public final by()F
.locals 3
.annotation build Landroidx/annotation/FloatRange;
from = 0.0
to = 1.0
.end annotation
2019-02-21 02:16:48 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
const/4 v0, 0x0
return v0
:cond_0
2019-02-21 02:16:48 +00:00
iget v1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget v0, v0, Lcom/airbnb/lottie/d;->gd:F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
sub-float/2addr v1, v0
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget v0, v0, Lcom/airbnb/lottie/d;->ge:F
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget-object v2, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget v2, v2, Lcom/airbnb/lottie/d;->gd:F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
sub-float/2addr v0, v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
div-float/2addr v1, v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
return v1
2019-02-04 20:08:30 +00:00
.end method
.method public final cancel()V
.locals 2
.annotation build Landroidx/annotation/MainThread;
.end annotation
2019-02-21 02:16:48 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f/a;->mC:Ljava/util/Set;
2019-02-04 20:08:30 +00:00
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/animation/Animator$AnimatorListener;
invoke-interface {v1, p0}, Landroid/animation/Animator$AnimatorListener;->onAnimationCancel(Landroid/animation/Animator;)V
goto :goto_0
:cond_0
const/4 v0, 0x1
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/f/c;->k(Z)V
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public final doFrame(J)V
.locals 6
invoke-direct {p0}, Lcom/airbnb/lottie/f/c;->bB()V
2019-02-21 02:16:48 +00:00
iget-object p1, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-eqz p1, :cond_b
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->isRunning()Z
move-result p1
if-nez p1, :cond_0
2019-02-04 20:29:01 +00:00
goto/16 :goto_7
2019-02-04 20:08:30 +00:00
:cond_0
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide p1
2019-02-21 02:16:48 +00:00
iget-wide v0, p0, Lcom/airbnb/lottie/f/c;->mF:J
2019-02-04 20:08:30 +00:00
sub-long v0, p1, v0
2019-02-21 02:16:48 +00:00
iget-object v2, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v2, :cond_1
const v2, 0x7f7fffff # Float.MAX_VALUE
goto :goto_0
:cond_1
2019-02-04 20:29:01 +00:00
const v3, 0x4e6e6b28 # 1.0E9f
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget v2, v2, Lcom/airbnb/lottie/d;->gf:F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
div-float/2addr v3, v2
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget v2, p0, Lcom/airbnb/lottie/f/c;->mD:F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-static {v2}, Ljava/lang/Math;->abs(F)F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
div-float v2, v3, v2
2019-02-04 20:08:30 +00:00
:goto_0
long-to-float v0, v0
div-float/2addr v0, v2
2019-02-21 02:16:48 +00:00
iget v1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->bA()Z
move-result v2
if-eqz v2, :cond_2
neg-float v0, v0
:cond_2
add-float/2addr v1, v0
2019-02-21 02:16:48 +00:00
iput v1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMinFrame()F
move-result v1
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMaxFrame()F
move-result v2
const/4 v3, 0x0
const/4 v4, 0x1
cmpl-float v1, v0, v1
if-ltz v1, :cond_3
cmpg-float v0, v0, v2
if-gtz v0, :cond_3
const/4 v0, 0x1
goto :goto_1
:cond_3
const/4 v0, 0x0
:goto_1
xor-int/2addr v0, v4
2019-02-21 02:16:48 +00:00
iget v1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMinFrame()F
move-result v2
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMaxFrame()F
move-result v5
invoke-static {v1, v2, v5}, Lcom/airbnb/lottie/f/e;->clamp(FFF)F
move-result v1
2019-02-21 02:16:48 +00:00
iput v1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iput-wide p1, p0, Lcom/airbnb/lottie/f/c;->mF:J
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->bx()V
const/4 v1, 0x2
if-eqz v0, :cond_8
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getRepeatCount()I
move-result v0
const/4 v2, -0x1
if-eq v0, v2, :cond_4
iget v0, p0, Lcom/airbnb/lottie/f/c;->repeatCount:I
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getRepeatCount()I
move-result v2
if-lt v0, v2, :cond_4
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMaxFrame()F
move-result p1
2019-02-21 02:16:48 +00:00
iput p1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v4}, Lcom/airbnb/lottie/f/c;->k(Z)V
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->bA()Z
move-result p1
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f/c;->j(Z)V
2019-02-04 20:08:30 +00:00
goto :goto_5
:cond_4
2019-02-21 02:16:48 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f/a;->mC:Ljava/util/Set;
2019-02-04 20:08:30 +00:00
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_5
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/animation/Animator$AnimatorListener;
invoke-interface {v2, p0}, Landroid/animation/Animator$AnimatorListener;->onAnimationRepeat(Landroid/animation/Animator;)V
goto :goto_2
:cond_5
iget v0, p0, Lcom/airbnb/lottie/f/c;->repeatCount:I
add-int/2addr v0, v4
iput v0, p0, Lcom/airbnb/lottie/f/c;->repeatCount:I
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getRepeatMode()I
move-result v0
if-ne v0, v1, :cond_6
2019-02-21 02:16:48 +00:00
iget-boolean v0, p0, Lcom/airbnb/lottie/f/c;->mE:Z
2019-02-04 20:08:30 +00:00
xor-int/2addr v0, v4
2019-02-21 02:16:48 +00:00
iput-boolean v0, p0, Lcom/airbnb/lottie/f/c;->mE:Z
2019-02-04 20:08:30 +00:00
invoke-direct {p0}, Lcom/airbnb/lottie/f/c;->bz()V
goto :goto_4
:cond_6
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->bA()Z
move-result v0
if-eqz v0, :cond_7
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMaxFrame()F
move-result v0
goto :goto_3
:cond_7
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMinFrame()F
move-result v0
:goto_3
2019-02-21 02:16:48 +00:00
iput v0, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
:goto_4
2019-02-21 02:16:48 +00:00
iput-wide p1, p0, Lcom/airbnb/lottie/f/c;->mF:J
2019-02-04 20:08:30 +00:00
:cond_8
:goto_5
2019-02-21 02:16:48 +00:00
iget-object p1, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-eqz p1, :cond_a
2019-02-21 02:16:48 +00:00
iget p1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget p2, p0, Lcom/airbnb/lottie/f/c;->mH:F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
cmpg-float p2, p1, p2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-ltz p2, :cond_9
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget p2, p0, Lcom/airbnb/lottie/f/c;->mI:F
2019-02-04 20:08:30 +00:00
cmpl-float p1, p1, p2
if-gtz p1, :cond_9
goto :goto_6
:cond_9
new-instance p1, Ljava/lang/IllegalStateException;
const/4 p2, 0x3
new-array p2, p2, [Ljava/lang/Object;
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mH:F
2019-02-04 20:08:30 +00:00
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
aput-object v0, p2, v3
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mI:F
2019-02-04 20:08:30 +00:00
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
aput-object v0, p2, v4
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
aput-object v0, p2, v1
const-string v0, "Frame must be [%f,%f]. It is %f"
invoke-static {v0, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_a
:goto_6
return-void
2019-02-04 20:29:01 +00:00
:cond_b
:goto_7
return-void
2019-02-04 20:08:30 +00:00
.end method
.method public final getAnimatedFraction()F
.locals 3
.annotation build Landroidx/annotation/FloatRange;
from = 0.0
to = 1.0
.end annotation
2019-02-21 02:16:48 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
const/4 v0, 0x0
return v0
:cond_0
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->bA()Z
move-result v0
if-eqz v0, :cond_1
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMaxFrame()F
move-result v0
2019-02-21 02:16:48 +00:00
iget v1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
sub-float/2addr v0, v1
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMaxFrame()F
move-result v1
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMinFrame()F
move-result v2
sub-float/2addr v1, v2
div-float/2addr v0, v1
return v0
:cond_1
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMinFrame()F
move-result v1
2019-02-04 20:29:01 +00:00
sub-float/2addr v0, v1
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMaxFrame()F
move-result v1
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMinFrame()F
move-result v2
sub-float/2addr v1, v2
div-float/2addr v0, v1
return v0
2019-02-04 20:08:30 +00:00
.end method
.method public final getAnimatedValue()Ljava/lang/Object;
.locals 1
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->by()F
move-result v0
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
return-object v0
.end method
.method public final getDuration()J
.locals 2
2019-02-21 02:16:48 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
const-wide/16 v0, 0x0
return-wide v0
:cond_0
invoke-virtual {v0}, Lcom/airbnb/lottie/d;->aO()F
move-result v0
float-to-long v0, v0
return-wide v0
.end method
.method public final getMaxFrame()F
2019-02-04 20:29:01 +00:00
.locals 3
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
const/4 v0, 0x0
return v0
:cond_0
2019-02-21 02:16:48 +00:00
iget v1, p0, Lcom/airbnb/lottie/f/c;->mI:F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/high16 v2, 0x4f000000
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
cmpl-float v2, v1, v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-nez v2, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget v0, v0, Lcom/airbnb/lottie/d;->ge:F
2019-02-04 20:08:30 +00:00
return v0
:cond_1
2019-02-04 20:29:01 +00:00
return v1
2019-02-04 20:08:30 +00:00
.end method
.method public final getMinFrame()F
2019-02-04 20:29:01 +00:00
.locals 3
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/f/c;->fQ:Lcom/airbnb/lottie/d;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
const/4 v0, 0x0
return v0
:cond_0
2019-02-21 02:16:48 +00:00
iget v1, p0, Lcom/airbnb/lottie/f/c;->mH:F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const/high16 v2, -0x31000000
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
cmpl-float v2, v1, v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-nez v2, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
iget v0, v0, Lcom/airbnb/lottie/d;->gd:F
2019-02-04 20:08:30 +00:00
return v0
:cond_1
2019-02-04 20:29:01 +00:00
return v1
2019-02-04 20:08:30 +00:00
.end method
.method public final isRunning()Z
.locals 1
iget-boolean v0, p0, Lcom/airbnb/lottie/f/c;->running:Z
return v0
.end method
2019-02-04 20:29:01 +00:00
.method public k(Z)V
2019-02-04 20:08:30 +00:00
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
invoke-static {}, Landroid/view/Choreographer;->getInstance()Landroid/view/Choreographer;
move-result-object v0
invoke-virtual {v0, p0}, Landroid/view/Choreographer;->removeFrameCallback(Landroid/view/Choreographer$FrameCallback;)V
if-eqz p1, :cond_0
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/airbnb/lottie/f/c;->running:Z
:cond_0
return-void
.end method
.method public final setFrame(I)V
.locals 2
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
int-to-float p1, p1
cmpl-float v0, v0, p1
if-nez v0, :cond_0
return-void
:cond_0
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMinFrame()F
move-result v0
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->getMaxFrame()F
move-result v1
invoke-static {p1, v0, v1}, Lcom/airbnb/lottie/f/e;->clamp(FFF)F
move-result p1
2019-02-21 02:16:48 +00:00
iput p1, p0, Lcom/airbnb/lottie/f/c;->mG:F
2019-02-04 20:08:30 +00:00
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
2019-02-21 02:16:48 +00:00
iput-wide v0, p0, Lcom/airbnb/lottie/f/c;->mF:J
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Lcom/airbnb/lottie/f/c;->bx()V
return-void
.end method
.method public final setMaxFrame(I)V
.locals 1
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mH:F
2019-02-04 20:08:30 +00:00
float-to-int v0, v0
invoke-virtual {p0, v0, p1}, Lcom/airbnb/lottie/f/c;->a(II)V
return-void
.end method
.method public final setMinFrame(I)V
.locals 1
2019-02-21 02:16:48 +00:00
iget v0, p0, Lcom/airbnb/lottie/f/c;->mI:F
2019-02-04 20:08:30 +00:00
float-to-int v0, v0
invoke-virtual {p0, p1, v0}, Lcom/airbnb/lottie/f/c;->a(II)V
return-void
.end method
.method public final setRepeatMode(I)V
.locals 1
invoke-super {p0, p1}, Lcom/airbnb/lottie/f/a;->setRepeatMode(I)V
const/4 v0, 0x2
if-eq p1, v0, :cond_0
2019-02-21 02:16:48 +00:00
iget-boolean p1, p0, Lcom/airbnb/lottie/f/c;->mE:Z
2019-02-04 20:08:30 +00:00
if-eqz p1, :cond_0
const/4 p1, 0x0
2019-02-21 02:16:48 +00:00
iput-boolean p1, p0, Lcom/airbnb/lottie/f/c;->mE:Z
2019-02-04 20:08:30 +00:00
invoke-direct {p0}, Lcom/airbnb/lottie/f/c;->bz()V
:cond_0
return-void
.end method