2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lcom/airbnb/lottie/e/a;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "AnimatablePathValueParser.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static a(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/a/e;
|
|
|
|
.locals 4
|
|
|
|
.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;->BEGIN_ARRAY:Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
if-ne v1, v2, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginArray()V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget-object v2, Landroid/util/JsonToken;->BEGIN_OBJECT:Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-static {}, Lcom/airbnb/lottie/f/f;->bC()F
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object v3, Lcom/airbnb/lottie/e/u;->mf:Lcom/airbnb/lottie/e/u;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, p1, v2, v3, 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
|
|
|
|
|
|
|
|
new-instance v2, Lcom/airbnb/lottie/a/b/h;
|
|
|
|
|
|
|
|
invoke-direct {v2, p1, v1}, Lcom/airbnb/lottie/a/b/h;-><init>(Lcom/airbnb/lottie/d;Lcom/airbnb/lottie/g/a;)V
|
|
|
|
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endArray()V
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/e/p;->g(Ljava/util/List;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Lcom/airbnb/lottie/g/a;
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/airbnb/lottie/f/f;->bC()F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static {p0, v1}, Lcom/airbnb/lottie/e/n;->c(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Lcom/airbnb/lottie/g/a;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
new-instance p0, Lcom/airbnb/lottie/c/a/e;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/airbnb/lottie/c/a/e;-><init>(Ljava/util/List;)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static b(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/a/m;
|
2019-05-03 18:53:54 +00:00
|
|
|
.locals 11
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/util/JsonReader;",
|
|
|
|
"Lcom/airbnb/lottie/d;",
|
|
|
|
")",
|
|
|
|
"Lcom/airbnb/lottie/c/a/m<",
|
|
|
|
"Landroid/graphics/PointF;",
|
|
|
|
"Landroid/graphics/PointF;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginObject()V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
move-object v2, v1
|
|
|
|
|
|
|
|
move-object v3, v2
|
|
|
|
|
|
|
|
move-object v4, v3
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
sget-object v6, Landroid/util/JsonToken;->END_OBJECT:Landroid/util/JsonToken;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eq v5, v6, :cond_9
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const/4 v6, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/String;->hashCode()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
const/16 v8, 0x6b
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v9, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v10, 0x1
|
|
|
|
|
|
|
|
if-eq v7, v8, :cond_2
|
|
|
|
|
|
|
|
const/16 v8, 0x78
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eq v7, v8, :cond_1
|
|
|
|
|
|
|
|
const/16 v8, 0x79
|
|
|
|
|
|
|
|
if-eq v7, v8, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v7, "y"
|
|
|
|
|
|
|
|
invoke-virtual {v5, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v5, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v6, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v7, "x"
|
|
|
|
|
|
|
|
invoke-virtual {v5, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v5, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v6, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v7, "k"
|
|
|
|
|
|
|
|
invoke-virtual {v5, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v5, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v6, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
:goto_1
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v6, :cond_8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eq v6, v10, :cond_6
|
|
|
|
|
|
|
|
if-eq v6, v9, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
sget-object v6, Landroid/util/JsonToken;->STRING:Landroid/util/JsonToken;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ne v5, v6, :cond_5
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_5
|
|
|
|
invoke-static {p0, p1, v10}, Lcom/airbnb/lottie/e/d;->a(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;Z)Lcom/airbnb/lottie/c/a/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_6
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
sget-object v6, Landroid/util/JsonToken;->STRING:Landroid/util/JsonToken;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ne v5, v6, :cond_7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_2
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_3
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
invoke-static {p0, p1, v10}, Lcom/airbnb/lottie/e/d;->a(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;Z)Lcom/airbnb/lottie/c/a/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_8
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/a;->a(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/a/e;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_9
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endObject()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v1, :cond_a
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string p0, "Lottie doesn\'t support expressions."
|
|
|
|
|
|
|
|
invoke-virtual {p1, p0}, Lcom/airbnb/lottie/d;->t(Ljava/lang/String;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_a
|
|
|
|
if-eqz v2, :cond_b
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object v2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_b
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance p0, Lcom/airbnb/lottie/c/a/i;
|
|
|
|
|
|
|
|
invoke-direct {p0, v3, v4}, Lcom/airbnb/lottie/c/a/i;-><init>(Lcom/airbnb/lottie/c/a/b;Lcom/airbnb/lottie/c/a/b;)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|