287 lines
5.6 KiB
Smali
287 lines
5.6 KiB
Smali
.class final Lcom/airbnb/lottie/e/m;
|
|
.super Ljava/lang/Object;
|
|
.source "GradientFillParser.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final mP:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
.field private static final na:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const/16 v0, 0x8
|
|
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "nm"
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const-string v3, "g"
|
|
|
|
aput-object v3, v0, v2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const-string v4, "o"
|
|
|
|
aput-object v4, v0, v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
const-string v5, "t"
|
|
|
|
aput-object v5, v0, v4
|
|
|
|
const/4 v4, 0x4
|
|
|
|
const-string v5, "s"
|
|
|
|
aput-object v5, v0, v4
|
|
|
|
const/4 v4, 0x5
|
|
|
|
const-string v5, "e"
|
|
|
|
aput-object v5, v0, v4
|
|
|
|
const/4 v4, 0x6
|
|
|
|
const-string v5, "r"
|
|
|
|
aput-object v5, v0, v4
|
|
|
|
const/4 v4, 0x7
|
|
|
|
const-string v5, "hd"
|
|
|
|
aput-object v5, v0, v4
|
|
|
|
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/m;->mP:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
new-array v0, v3, [Ljava/lang/String;
|
|
|
|
const-string v3, "p"
|
|
|
|
aput-object v3, v0, v1
|
|
|
|
const-string v1, "k"
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
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/m;->na:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static k(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/b/d;
|
|
.locals 12
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
sget-object v0, Landroid/graphics/Path$FillType;->WINDING:Landroid/graphics/Path$FillType;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move-object v6, v0
|
|
|
|
move-object v4, v2
|
|
|
|
move-object v7, v4
|
|
|
|
move-object v8, v7
|
|
|
|
move-object v9, v8
|
|
|
|
move-object v10, v9
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
sget-object v0, Lcom/airbnb/lottie/e/m;->mP:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/e/a/c;->a(Lcom/airbnb/lottie/e/a/c$a;)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->bD()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->skipValue()V
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextBoolean()Z
|
|
|
|
move-result v11
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextInt()I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
sget-object v0, Landroid/graphics/Path$FillType;->WINDING:Landroid/graphics/Path$FillType;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
sget-object v0, Landroid/graphics/Path$FillType;->EVEN_ODD:Landroid/graphics/Path$FillType;
|
|
|
|
:goto_1
|
|
move-object v6, v0
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_2
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/d;->f(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/a/f;
|
|
|
|
move-result-object v10
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_3
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/d;->f(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/a/f;
|
|
|
|
move-result-object v9
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_4
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextInt()I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
sget v0, Lcom/airbnb/lottie/c/b/f;->kB:I
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
sget v0, Lcom/airbnb/lottie/c/b/f;->kC:I
|
|
|
|
:goto_2
|
|
move v5, v0
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_5
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/d;->e(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/a/d;
|
|
|
|
move-result-object v8
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_6
|
|
const/4 v0, -0x1
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginObject()V
|
|
|
|
:goto_3
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
sget-object v2, Lcom/airbnb/lottie/e/m;->na:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/e/a/c;->a(Lcom/airbnb/lottie/e/a/c$a;)I
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
if-eq v2, v1, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->bD()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->skipValue()V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
invoke-static {p0, p1, v0}, Lcom/airbnb/lottie/e/d;->a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;I)Lcom/airbnb/lottie/c/a/c;
|
|
|
|
move-result-object v7
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextInt()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endObject()V
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_7
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
new-instance p0, Lcom/airbnb/lottie/c/b/d;
|
|
|
|
move-object v3, p0
|
|
|
|
invoke-direct/range {v3 .. v11}, Lcom/airbnb/lottie/c/b/d;-><init>(Ljava/lang/String;ILandroid/graphics/Path$FillType;Lcom/airbnb/lottie/c/a/c;Lcom/airbnb/lottie/c/a/d;Lcom/airbnb/lottie/c/a/f;Lcom/airbnb/lottie/c/a/f;Z)V
|
|
|
|
return-object p0
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|