2019-02-04 20:08:30 +00:00
|
|
|
.class final Lcom/airbnb/lottie/e/n;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "JsonUtils.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static a(Landroid/util/JsonReader;)I
|
|
|
|
.locals 6
|
|
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginArray()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
const-wide v2, 0x406fe00000000000L # 255.0
|
|
|
|
|
|
|
|
mul-double v0, v0, v2
|
|
|
|
|
|
|
|
double-to-int v0, v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
mul-double v4, v4, v2
|
|
|
|
|
|
|
|
double-to-int v1, v4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
mul-double v4, v4, v2
|
|
|
|
|
|
|
|
double-to-int v2, v4
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endArray()V
|
|
|
|
|
|
|
|
const/16 p0, 0xff
|
|
|
|
|
|
|
|
invoke-static {p0, v0, v1, v2}, Landroid/graphics/Color;->argb(IIII)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static b(Landroid/util/JsonReader;)F
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object v1, Lcom/airbnb/lottie/e/n$1;->mc:[I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/util/JsonToken;->ordinal()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
aget v1, v1, v2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v2, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eq v1, v2, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v2, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ne v1, v2, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginArray()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
double-to-float v0, v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endArray()V
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1
|
|
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Unknown value for token of type "
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
double-to-float p0, v0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static b(Landroid/util/JsonReader;F)Ljava/util/List;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/util/JsonReader;",
|
|
|
|
"F)",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Landroid/graphics/PointF;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.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;->beginArray()V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
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_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginArray()V
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/n;->c(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endArray()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endArray()V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static c(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object v0, Lcom/airbnb/lottie/e/n$1;->mc:[I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/util/JsonToken;->ordinal()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
aget v0, v0, v1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/n;->f(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "Unknown point starts with "
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/n;->e(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/n;->d(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static d(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
double-to-float v0, v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
double-to-float v1, v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p0, Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
mul-float v0, v0, p1
|
|
|
|
|
|
|
|
mul-float v1, v1, p1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static e(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->beginArray()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
double-to-float v0, v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
double-to-float v1, v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
sget-object v3, Landroid/util/JsonToken;->END_ARRAY:Landroid/util/JsonToken;
|
|
|
|
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endArray()V
|
|
|
|
|
|
|
|
new-instance p0, Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
mul-float v0, v0, p1
|
|
|
|
|
|
|
|
mul-float v1, v1, p1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static f(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
2019-05-03 18:53:54 +00:00
|
|
|
.locals 7
|
2019-02-04 20:08:30 +00:00
|
|
|
.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
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v2, :cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->nextName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const/4 v3, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->hashCode()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/16 v5, 0x78
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
|
|
|
if-eq v4, v5, :cond_1
|
|
|
|
|
|
|
|
const/16 v5, 0x79
|
|
|
|
|
|
|
|
if-eq v4, v5, :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 v4, "y"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v2, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
const-string v4, "x"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v2, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
:goto_1
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v3, :cond_4
|
|
|
|
|
|
|
|
if-eq v3, v6, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p0}, Lcom/airbnb/lottie/e/n;->b(Landroid/util/JsonReader;)F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static {p0}, Lcom/airbnb/lottie/e/n;->b(Landroid/util/JsonReader;)F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {p0}, Landroid/util/JsonReader;->endObject()V
|
|
|
|
|
|
|
|
new-instance p0, Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
mul-float v0, v0, p1
|
|
|
|
|
|
|
|
mul-float v1, v1, p1
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|