121 lines
2.3 KiB
Smali
121 lines
2.3 KiB
Smali
.class public final Lcom/airbnb/lottie/e/z;
|
|
.super Ljava/lang/Object;
|
|
.source "ScaleXYParser.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/airbnb/lottie/e/af;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lcom/airbnb/lottie/e/af<",
|
|
"Lcom/airbnb/lottie/g/d;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final mC:Lcom/airbnb/lottie/e/z;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/airbnb/lottie/e/z;
|
|
|
|
invoke-direct {v0}, Lcom/airbnb/lottie/e/z;-><init>()V
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/e/z;->mC:Lcom/airbnb/lottie/e/z;
|
|
|
|
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(Landroid/util/JsonReader;F)Ljava/lang/Object;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Landroid/util/JsonToken;->BEGIN_ARRAY:Landroid/util/JsonToken;
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p1}, Landroid/util/JsonReader;->beginArray()V
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
move-result-wide v1
|
|
|
|
double-to-float v1, v1
|
|
|
|
invoke-virtual {p1}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
move-result-wide v2
|
|
|
|
double-to-float v2, v2
|
|
|
|
:goto_1
|
|
invoke-virtual {p1}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-virtual {p1}, Landroid/util/JsonReader;->endArray()V
|
|
|
|
:cond_3
|
|
new-instance p1, Lcom/airbnb/lottie/g/d;
|
|
|
|
const/high16 v0, 0x42c80000 # 100.0f
|
|
|
|
div-float/2addr v1, v0
|
|
|
|
mul-float v1, v1, p2
|
|
|
|
div-float/2addr v2, v0
|
|
|
|
mul-float v2, v2, p2
|
|
|
|
invoke-direct {p1, v1, v2}, Lcom/airbnb/lottie/g/d;-><init>(FF)V
|
|
|
|
return-object p1
|
|
.end method
|