612 lines
12 KiB
Smali
612 lines
12 KiB
Smali
.class public abstract Lcom/airbnb/lottie/a/b/a;
|
|
.super Ljava/lang/Object;
|
|
.source "BaseKeyframeAnimation.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/airbnb/lottie/a/b/a$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K:",
|
|
"Ljava/lang/Object;",
|
|
"A:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public dW:F
|
|
|
|
.field public gN:Z
|
|
|
|
.field private final gO:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TK;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field protected gP:Lcom/airbnb/lottie/g/c;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/airbnb/lottie/g/c<",
|
|
"TA;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private gQ:Lcom/airbnb/lottie/g/a;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TK;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private gR:Lcom/airbnb/lottie/g/a;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TK;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private gS:F
|
|
|
|
.field private gT:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TA;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private gU:F
|
|
|
|
.field private gV:F
|
|
|
|
.field final listeners:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/airbnb/lottie/a/b/a$a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Ljava/util/List;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TK;>;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/a/b/a;->listeners:Ljava/util/List;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/a/b/a;->gN:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/airbnb/lottie/a/b/a;->dW:F
|
|
|
|
const/high16 v0, -0x40800000 # -1.0f
|
|
|
|
iput v0, p0, Lcom/airbnb/lottie/a/b/a;->gS:F
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, p0, Lcom/airbnb/lottie/a/b/a;->gT:Ljava/lang/Object;
|
|
|
|
iput v0, p0, Lcom/airbnb/lottie/a/b/a;->gU:F
|
|
|
|
iput v0, p0, Lcom/airbnb/lottie/a/b/a;->gV:F
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/a/b/a;->gO:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private aZ()F
|
|
.locals 2
|
|
|
|
iget v0, p0, Lcom/airbnb/lottie/a/b/a;->gU:F
|
|
|
|
const/high16 v1, -0x40800000 # -1.0f
|
|
|
|
cmpl-float v0, v0, v1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gO:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gO:Ljava/util/List;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/airbnb/lottie/g/a;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/g/a;->bI()F
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
iput v0, p0, Lcom/airbnb/lottie/a/b/a;->gU:F
|
|
|
|
:cond_1
|
|
iget v0, p0, Lcom/airbnb/lottie/a/b/a;->gU:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method abstract a(Lcom/airbnb/lottie/g/a;F)Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TK;>;F)TA;"
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public final a(Lcom/airbnb/lottie/g/c;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/g/c<",
|
|
"TA;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gP:Lcom/airbnb/lottie/g/c;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, v0, Lcom/airbnb/lottie/g/c;->mI:Lcom/airbnb/lottie/a/b/a;
|
|
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/airbnb/lottie/a/b/a;->gP:Lcom/airbnb/lottie/g/c;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iput-object p0, p1, Lcom/airbnb/lottie/g/c;->mI:Lcom/airbnb/lottie/a/b/a;
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public aV()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/airbnb/lottie/a/b/a;->listeners:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/a/b/a;->listeners:Ljava/util/List;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/airbnb/lottie/a/b/a$a;
|
|
|
|
invoke-interface {v1}, Lcom/airbnb/lottie/a/b/a$a;->aQ()V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected final aW()Lcom/airbnb/lottie/g/a;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TK;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gQ:Lcom/airbnb/lottie/g/a;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget v1, p0, Lcom/airbnb/lottie/a/b/a;->dW:F
|
|
|
|
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/g/a;->f(F)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gQ:Lcom/airbnb/lottie/g/a;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gO:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/airbnb/lottie/g/a;
|
|
|
|
iget v1, p0, Lcom/airbnb/lottie/a/b/a;->dW:F
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/g/a;->bI()F
|
|
|
|
move-result v2
|
|
|
|
cmpg-float v1, v1, v2
|
|
|
|
if-gez v1, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/a/b/a;->gO:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
:goto_0
|
|
if-ltz v1, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gO:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/airbnb/lottie/g/a;
|
|
|
|
iget v2, p0, Lcom/airbnb/lottie/a/b/a;->dW:F
|
|
|
|
invoke-virtual {v0, v2}, Lcom/airbnb/lottie/g/a;->f(F)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iput-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gQ:Lcom/airbnb/lottie/g/a;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method final aX()F
|
|
.locals 3
|
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/a/b/a;->gN:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->aW()Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/g/a;->bj()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
iget v1, p0, Lcom/airbnb/lottie/a/b/a;->dW:F
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/g/a;->bI()F
|
|
|
|
move-result v2
|
|
|
|
sub-float/2addr v1, v2
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/g/a;->ba()F
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/g/a;->bI()F
|
|
|
|
move-result v0
|
|
|
|
sub-float/2addr v2, v0
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method protected final aY()F
|
|
.locals 2
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->aW()Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/g/a;->bj()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Lcom/airbnb/lottie/g/a;->mu:Landroid/view/animation/Interpolator;
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->aX()F
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {v0, v1}, Landroid/view/animation/Interpolator;->getInterpolation(F)F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final b(Lcom/airbnb/lottie/a/b/a$a;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->listeners:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method ba()F
|
|
.locals 2
|
|
|
|
iget v0, p0, Lcom/airbnb/lottie/a/b/a;->gV:F
|
|
|
|
const/high16 v1, -0x40800000 # -1.0f
|
|
|
|
cmpl-float v0, v0, v1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gO:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gO:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/airbnb/lottie/g/a;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/g/a;->ba()F
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
iput v0, p0, Lcom/airbnb/lottie/a/b/a;->gV:F
|
|
|
|
:cond_1
|
|
iget v0, p0, Lcom/airbnb/lottie/a/b/a;->gV:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getValue()Ljava/lang/Object;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TA;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->aW()Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->aY()F
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lcom/airbnb/lottie/a/b/a;->gP:Lcom/airbnb/lottie/g/c;
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
iget-object v2, p0, Lcom/airbnb/lottie/a/b/a;->gR:Lcom/airbnb/lottie/g/a;
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
iget v2, p0, Lcom/airbnb/lottie/a/b/a;->gS:F
|
|
|
|
cmpl-float v2, v2, v1
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gT:Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iput-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gR:Lcom/airbnb/lottie/g/a;
|
|
|
|
iput v1, p0, Lcom/airbnb/lottie/a/b/a;->gS:F
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/airbnb/lottie/a/b/a;->a(Lcom/airbnb/lottie/g/a;F)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gT:Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public setProgress(F)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/a/b/a;->gO:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->aW()Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0}, Lcom/airbnb/lottie/a/b/a;->aZ()F
|
|
|
|
move-result v1
|
|
|
|
cmpg-float v1, p1, v1
|
|
|
|
if-gez v1, :cond_1
|
|
|
|
invoke-direct {p0}, Lcom/airbnb/lottie/a/b/a;->aZ()F
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->ba()F
|
|
|
|
move-result v1
|
|
|
|
cmpl-float v1, p1, v1
|
|
|
|
if-lez v1, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->ba()F
|
|
|
|
move-result p1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
iget v1, p0, Lcom/airbnb/lottie/a/b/a;->dW:F
|
|
|
|
cmpl-float v1, p1, v1
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
iput p1, p0, Lcom/airbnb/lottie/a/b/a;->dW:F
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->aW()Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object p1
|
|
|
|
if-ne v0, p1, :cond_4
|
|
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/g/a;->bj()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_5
|
|
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/a/b/a;->aV()V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|