266 lines
6.2 KiB
Smali
266 lines
6.2 KiB
Smali
.class final Lcom/airbnb/lottie/e/r;
|
|
.super Ljava/lang/Object;
|
|
.source "KeyframesParser.java"
|
|
|
|
|
|
# static fields
|
|
.field static mP:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "k"
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/e/a/c$a;->a([Ljava/lang/String;)Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/e/r;->mP:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;FLcom/airbnb/lottie/e/ai;)Ljava/util/List;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/airbnb/lottie/e/a/c;",
|
|
"Lcom/airbnb/lottie/d;",
|
|
"F",
|
|
"Lcom/airbnb/lottie/e/ai<",
|
|
"TT;>;)",
|
|
"Ljava/util/List<",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->bC()Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/airbnb/lottie/e/a/c$b;->ny:Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
const-string p0, "Lottie doesn\'t support expressions."
|
|
|
|
invoke-virtual {p1, p0}, Lcom/airbnb/lottie/d;->r(Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginObject()V
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
sget-object v1, Lcom/airbnb/lottie/e/r;->mP:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
invoke-virtual {p0, v1}, Lcom/airbnb/lottie/e/a/c;->a(Lcom/airbnb/lottie/e/a/c$a;)I
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->skipValue()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->bC()Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/airbnb/lottie/e/a/c$b;->nt:Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ne v1, v2, :cond_4
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginArray()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->bC()Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lcom/airbnb/lottie/e/a/c$b;->nz:Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
if-ne v1, v2, :cond_2
|
|
|
|
invoke-static {p0, p1, p2, p3, v3}, Lcom/airbnb/lottie/e/q;->a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;FLcom/airbnb/lottie/e/ai;Z)Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
:goto_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {p0, p1, p2, p3, v1}, Lcom/airbnb/lottie/e/q;->a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;FLcom/airbnb/lottie/e/ai;Z)Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
:goto_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endArray()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
invoke-static {p0, p1, p2, p3, v3}, Lcom/airbnb/lottie/e/q;->a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;FLcom/airbnb/lottie/e/ai;Z)Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endObject()V
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/e/r;->g(Ljava/util/List;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static g(Ljava/util/List;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TT;>;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:cond_0
|
|
:goto_0
|
|
const/4 v2, 0x1
|
|
|
|
add-int/lit8 v3, v0, -0x1
|
|
|
|
if-ge v1, v3, :cond_1
|
|
|
|
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/airbnb/lottie/g/a;
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/airbnb/lottie/g/a;
|
|
|
|
iget v4, v3, Lcom/airbnb/lottie/g/a;->fQ:F
|
|
|
|
invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object v4
|
|
|
|
iput-object v4, v2, Lcom/airbnb/lottie/g/a;->oe:Ljava/lang/Float;
|
|
|
|
iget-object v4, v2, Lcom/airbnb/lottie/g/a;->oc:Ljava/lang/Object;
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
iget-object v4, v3, Lcom/airbnb/lottie/g/a;->ob:Ljava/lang/Object;
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
iget-object v3, v3, Lcom/airbnb/lottie/g/a;->ob:Ljava/lang/Object;
|
|
|
|
iput-object v3, v2, Lcom/airbnb/lottie/g/a;->oc:Ljava/lang/Object;
|
|
|
|
instance-of v3, v2, Lcom/airbnb/lottie/a/b/h;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
check-cast v2, Lcom/airbnb/lottie/a/b/h;
|
|
|
|
invoke-virtual {v2}, Lcom/airbnb/lottie/a/b/h;->bi()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-interface {p0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/airbnb/lottie/g/a;
|
|
|
|
iget-object v1, v0, Lcom/airbnb/lottie/g/a;->ob:Ljava/lang/Object;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, v0, Lcom/airbnb/lottie/g/a;->oc:Ljava/lang/Object;
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
:cond_2
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-le v1, v2, :cond_3
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|