Rabbit-R1/android (non root)/smali/smali_classes2/com/airbnb/lottie/parser/ShapePathParser.smali
2024-05-21 17:08:36 -04:00

136 lines
3.1 KiB
Smali

.class Lcom/airbnb/lottie/parser/ShapePathParser;
.super Ljava/lang/Object;
.source "ShapePathParser.java"
# static fields
.field static NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
# direct methods
.method static constructor <clinit>()V
.locals 4
const-string v0, "ks"
const-string v1, "hd"
const-string v2, "nm"
const-string v3, "ind"
.line 13
filled-new-array {v2, v3, v0, v1}, [Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;->of([Ljava/lang/String;)Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
move-result-object v0
sput-object v0, Lcom/airbnb/lottie/parser/ShapePathParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 20
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static parse(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/ShapePath;
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
const/4 v1, 0x0
move v2, v1
move v3, v2
move-object v1, v0
.line 30
:goto_0
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->hasNext()Z
move-result v4
if-eqz v4, :cond_4
sget-object v4, Lcom/airbnb/lottie/parser/ShapePathParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
.line 31
invoke-virtual {p0, v4}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->selectName(Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;)I
move-result v4
if-eqz v4, :cond_3
const/4 v5, 0x1
if-eq v4, v5, :cond_2
const/4 v5, 0x2
if-eq v4, v5, :cond_1
const/4 v5, 0x3
if-eq v4, v5, :cond_0
.line 45
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipValue()V
goto :goto_0
.line 42
:cond_0
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextBoolean()Z
move-result v3
goto :goto_0
.line 39
:cond_1
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/AnimatableValueParser;->parseShapeData(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/animatable/AnimatableShapeValue;
move-result-object v1
goto :goto_0
.line 36
:cond_2
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextInt()I
move-result v2
goto :goto_0
.line 33
:cond_3
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextString()Ljava/lang/String;
move-result-object v0
goto :goto_0
.line 49
:cond_4
new-instance p0, Lcom/airbnb/lottie/model/content/ShapePath;
invoke-direct {p0, v0, v2, v1, v3}, Lcom/airbnb/lottie/model/content/ShapePath;-><init>(Ljava/lang/String;ILcom/airbnb/lottie/model/animatable/AnimatableShapeValue;Z)V
return-object p0
.end method