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

345 lines
7.3 KiB
Smali

.class Lcom/airbnb/lottie/parser/MaskParser;
.super Ljava/lang/Object;
.source "MaskParser.java"
# direct methods
.method private constructor <init>()V
.locals 0
.line 14
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/Mask;
.locals 11
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 24
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->beginObject()V
const/4 v0, 0x0
const/4 v1, 0x0
move-object v2, v0
move-object v3, v2
move v4, v1
.line 25
:goto_0
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->hasNext()Z
move-result v5
if-eqz v5, :cond_8
.line 26
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextName()Ljava/lang/String;
move-result-object v5
.line 27
invoke-virtual {v5}, Ljava/lang/String;->hashCode()I
invoke-virtual {v5}, Ljava/lang/String;->hashCode()I
move-result v6
const/4 v7, 0x3
const/4 v8, 0x2
const/4 v9, 0x1
const/4 v10, -0x1
sparse-switch v6, :sswitch_data_0
:goto_1
move v6, v10
goto :goto_2
:sswitch_0
const-string v6, "mode"
invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-nez v6, :cond_0
goto :goto_1
:cond_0
move v6, v7
goto :goto_2
:sswitch_1
const-string v6, "inv"
invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-nez v6, :cond_1
goto :goto_1
:cond_1
move v6, v8
goto :goto_2
:sswitch_2
const-string v6, "pt"
invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-nez v6, :cond_2
goto :goto_1
:cond_2
move v6, v9
goto :goto_2
:sswitch_3
const-string v6, "o"
invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-nez v6, :cond_3
goto :goto_1
:cond_3
move v6, v1
:goto_2
packed-switch v6, :pswitch_data_0
.line 59
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipValue()V
goto :goto_0
.line 29
:pswitch_0
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
move-result v6
sparse-switch v6, :sswitch_data_1
:goto_3
move v7, v10
goto :goto_4
:sswitch_4
const-string v6, "s"
invoke-virtual {v0, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_7
goto :goto_3
:sswitch_5
const-string v6, "n"
invoke-virtual {v0, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_4
goto :goto_3
:cond_4
move v7, v8
goto :goto_4
:sswitch_6
const-string v6, "i"
invoke-virtual {v0, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_5
goto :goto_3
:cond_5
move v7, v9
goto :goto_4
:sswitch_7
const-string v6, "a"
invoke-virtual {v0, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_6
goto :goto_3
:cond_6
move v7, v1
:cond_7
:goto_4
packed-switch v7, :pswitch_data_1
.line 45
new-instance v0, Ljava/lang/StringBuilder;
const-string v6, "Unknown mask mode "
invoke-direct {v0, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v5, ". Defaulting to Add."
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/airbnb/lottie/utils/Logger;->warning(Ljava/lang/String;)V
.line 46
sget-object v0, Lcom/airbnb/lottie/model/content/Mask$MaskMode;->MASK_MODE_ADD:Lcom/airbnb/lottie/model/content/Mask$MaskMode;
goto/16 :goto_0
.line 34
:pswitch_1
sget-object v0, Lcom/airbnb/lottie/model/content/Mask$MaskMode;->MASK_MODE_SUBTRACT:Lcom/airbnb/lottie/model/content/Mask$MaskMode;
goto/16 :goto_0
.line 37
:pswitch_2
sget-object v0, Lcom/airbnb/lottie/model/content/Mask$MaskMode;->MASK_MODE_NONE:Lcom/airbnb/lottie/model/content/Mask$MaskMode;
goto/16 :goto_0
:pswitch_3
const-string v0, "Animation contains intersect masks. They are not supported but will be treated like add masks."
.line 40
invoke-virtual {p1, v0}, Lcom/airbnb/lottie/LottieComposition;->addWarning(Ljava/lang/String;)V
.line 42
sget-object v0, Lcom/airbnb/lottie/model/content/Mask$MaskMode;->MASK_MODE_INTERSECT:Lcom/airbnb/lottie/model/content/Mask$MaskMode;
goto/16 :goto_0
.line 31
:pswitch_4
sget-object v0, Lcom/airbnb/lottie/model/content/Mask$MaskMode;->MASK_MODE_ADD:Lcom/airbnb/lottie/model/content/Mask$MaskMode;
goto/16 :goto_0
.line 56
:pswitch_5
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextBoolean()Z
move-result v4
goto/16 :goto_0
.line 50
:pswitch_6
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 v2
goto/16 :goto_0
.line 53
:pswitch_7
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/AnimatableValueParser;->parseInteger(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/animatable/AnimatableIntegerValue;
move-result-object v3
goto/16 :goto_0
.line 62
:cond_8
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->endObject()V
.line 64
new-instance p0, Lcom/airbnb/lottie/model/content/Mask;
invoke-direct {p0, v0, v2, v3, v4}, Lcom/airbnb/lottie/model/content/Mask;-><init>(Lcom/airbnb/lottie/model/content/Mask$MaskMode;Lcom/airbnb/lottie/model/animatable/AnimatableShapeValue;Lcom/airbnb/lottie/model/animatable/AnimatableIntegerValue;Z)V
return-object p0
:sswitch_data_0
.sparse-switch
0x6f -> :sswitch_3
0xe04 -> :sswitch_2
0x197f1 -> :sswitch_1
0x3339a3 -> :sswitch_0
.end sparse-switch
:pswitch_data_0
.packed-switch 0x0
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_0
.end packed-switch
:sswitch_data_1
.sparse-switch
0x61 -> :sswitch_7
0x69 -> :sswitch_6
0x6e -> :sswitch_5
0x73 -> :sswitch_4
.end sparse-switch
:pswitch_data_1
.packed-switch 0x0
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
.end packed-switch
.end method