mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
261 lines
6.1 KiB
Smali
261 lines
6.1 KiB
Smali
.class Lcom/airbnb/lottie/parser/FontCharacterParser;
|
|
.super Ljava/lang/Object;
|
|
.source "FontCharacterParser.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final DATA_NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
.field private static final NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const-string v0, "ch"
|
|
|
|
const-string v1, "size"
|
|
|
|
const-string v2, "w"
|
|
|
|
const-string v3, "style"
|
|
|
|
const-string v4, "fFamily"
|
|
|
|
const-string v5, "data"
|
|
|
|
.line 13
|
|
filled-new-array/range {v0 .. v5}, [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/FontCharacterParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
const-string v0, "shapes"
|
|
|
|
.line 21
|
|
filled-new-array {v0}, [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/FontCharacterParser;->DATA_NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 23
|
|
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/FontCharacter;
|
|
.locals 11
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 33
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 35
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->beginObject()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
move-wide v5, v2
|
|
|
|
move-object v7, v4
|
|
|
|
move-object v8, v7
|
|
|
|
move v2, v0
|
|
|
|
move-wide v3, v5
|
|
|
|
.line 36
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->hasNext()Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_9
|
|
|
|
sget-object v9, Lcom/airbnb/lottie/parser/FontCharacterParser;->NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
.line 37
|
|
invoke-virtual {p0, v9}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->selectName(Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;)I
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_8
|
|
|
|
const/4 v10, 0x1
|
|
|
|
if-eq v9, v10, :cond_7
|
|
|
|
const/4 v10, 0x2
|
|
|
|
if-eq v9, v10, :cond_6
|
|
|
|
const/4 v10, 0x3
|
|
|
|
if-eq v9, v10, :cond_5
|
|
|
|
const/4 v10, 0x4
|
|
|
|
if-eq v9, v10, :cond_4
|
|
|
|
const/4 v10, 0x5
|
|
|
|
if-eq v9, v10, :cond_0
|
|
|
|
.line 72
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipName()V
|
|
|
|
.line 73
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipValue()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 54
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->beginObject()V
|
|
|
|
.line 55
|
|
:goto_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->hasNext()Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_3
|
|
|
|
sget-object v9, Lcom/airbnb/lottie/parser/FontCharacterParser;->DATA_NAMES:Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;
|
|
|
|
.line 56
|
|
invoke-virtual {p0, v9}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->selectName(Lcom/airbnb/lottie/parser/moshi/JsonReader$Options;)I
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_1
|
|
|
|
.line 65
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipName()V
|
|
|
|
.line 66
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->skipValue()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 58
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->beginArray()V
|
|
|
|
.line 59
|
|
:goto_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->hasNext()Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_2
|
|
|
|
.line 60
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/parser/ContentModelParser;->parse(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/LottieComposition;)Lcom/airbnb/lottie/model/content/ContentModel;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Lcom/airbnb/lottie/model/content/ShapeGroup;
|
|
|
|
invoke-interface {v1, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
.line 62
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->endArray()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 69
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->endObject()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 51
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
goto :goto_0
|
|
|
|
.line 48
|
|
:cond_5
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
goto :goto_0
|
|
|
|
.line 45
|
|
:cond_6
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D
|
|
|
|
move-result-wide v5
|
|
|
|
goto :goto_0
|
|
|
|
.line 42
|
|
:cond_7
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextDouble()D
|
|
|
|
move-result-wide v3
|
|
|
|
goto :goto_0
|
|
|
|
.line 39
|
|
:cond_8
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
.line 76
|
|
:cond_9
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/parser/moshi/JsonReader;->endObject()V
|
|
|
|
.line 78
|
|
new-instance p0, Lcom/airbnb/lottie/model/FontCharacter;
|
|
|
|
move-object v0, p0
|
|
|
|
invoke-direct/range {v0 .. v8}, Lcom/airbnb/lottie/model/FontCharacter;-><init>(Ljava/util/List;CDDLjava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|