227 lines
5.2 KiB
Smali
227 lines
5.2 KiB
Smali
.class final Lcom/airbnb/lottie/e/p;
|
|
.super Ljava/lang/Object;
|
|
.source "KeyframesParser.java"
|
|
|
|
|
|
# direct methods
|
|
.method static a(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;FLcom/airbnb/lottie/e/af;)Ljava/util/List;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Landroid/util/JsonReader;",
|
|
"Lcom/airbnb/lottie/d;",
|
|
"F",
|
|
"Lcom/airbnb/lottie/e/af<",
|
|
"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}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Landroid/util/JsonToken;->STRING:Landroid/util/JsonToken;
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
const-string p0, "Lottie doesn\'t support expressions."
|
|
|
|
invoke-virtual {p1, p0}, Lcom/airbnb/lottie/d;->t(Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginObject()V
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, -0x1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v3
|
|
|
|
const/16 v4, 0x6b
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eq v3, v4, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string v3, "k"
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Landroid/util/JsonToken;->BEGIN_ARRAY:Landroid/util/JsonToken;
|
|
|
|
if-ne v1, v2, :cond_6
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginArray()V
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Landroid/util/JsonToken;->NUMBER:Landroid/util/JsonToken;
|
|
|
|
if-ne v1, v2, :cond_4
|
|
|
|
invoke-static {p0, p1, p2, p3, v5}, Lcom/airbnb/lottie/e/o;->a(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;FLcom/airbnb/lottie/e/af;Z)Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
:goto_2
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {p0, p1, p2, p3, v1}, Lcom/airbnb/lottie/e/o;->a(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;FLcom/airbnb/lottie/e/af;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_5
|
|
:goto_3
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endArray()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
invoke-static {p0, p1, p2, p3, v5}, Lcom/airbnb/lottie/e/o;->a(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;FLcom/airbnb/lottie/e/af;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_7
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endObject()V
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/e/p;->g(Ljava/util/List;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static g(Ljava/util/List;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"*>;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
add-int/lit8 v2, v0, -0x1
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
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 v3, v3, Lcom/airbnb/lottie/g/a;->gg:F
|
|
|
|
invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object v3
|
|
|
|
iput-object v3, v2, Lcom/airbnb/lottie/g/a;->mU:Ljava/lang/Float;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-interface {p0, v2}, 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;->mR:Ljava/lang/Object;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|