142 lines
3 KiB
Smali
142 lines
3 KiB
Smali
.class public final Lcom/airbnb/lottie/e/x;
|
|
.super Ljava/lang/Object;
|
|
.source "PointFParser.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/airbnb/lottie/e/ai;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lcom/airbnb/lottie/e/ai<",
|
|
"Landroid/graphics/PointF;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final nl:Lcom/airbnb/lottie/e/x;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/airbnb/lottie/e/x;
|
|
|
|
invoke-direct {v0}, Lcom/airbnb/lottie/e/x;-><init>()V
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/e/x;->nl:Lcom/airbnb/lottie/e/x;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final synthetic a(Lcom/airbnb/lottie/e/a/c;F)Ljava/lang/Object;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/e/a/c;->bC()Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/airbnb/lottie/e/a/c$b;->nr:Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-static {p1, p2}, Lcom/airbnb/lottie/e/p;->c(Lcom/airbnb/lottie/e/a/c;F)Landroid/graphics/PointF;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
sget-object v1, Lcom/airbnb/lottie/e/a/c$b;->nu:Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
invoke-static {p1, p2}, Lcom/airbnb/lottie/e/p;->c(Lcom/airbnb/lottie/e/a/c;F)Landroid/graphics/PointF;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
sget-object v1, Lcom/airbnb/lottie/e/a/c$b;->ny:Lcom/airbnb/lottie/e/a/c$b;
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
new-instance v0, Landroid/graphics/PointF;
|
|
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/e/a/c;->nextDouble()D
|
|
|
|
move-result-wide v1
|
|
|
|
double-to-float v1, v1
|
|
|
|
mul-float v1, v1, p2
|
|
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/e/a/c;->nextDouble()D
|
|
|
|
move-result-wide v2
|
|
|
|
double-to-float v2, v2
|
|
|
|
mul-float v2, v2, p2
|
|
|
|
invoke-direct {v0, v1, v2}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
:goto_0
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/e/a/c;->skipValue()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-object v0
|
|
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v0, "Cannot convert json to point. Next token is "
|
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
goto :goto_2
|
|
|
|
:goto_1
|
|
throw p1
|
|
|
|
:goto_2
|
|
goto :goto_1
|
|
.end method
|