632 lines
13 KiB
Smali
632 lines
13 KiB
Smali
.class Lcom/airbnb/lottie/e/o;
|
|
.super Ljava/lang/Object;
|
|
.source "KeyframeParser.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final LINEAR_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
.field private static md:Landroidx/collection/SparseArrayCompat;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/collection/SparseArrayCompat<",
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Landroid/view/animation/Interpolator;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Landroid/view/animation/LinearInterpolator;
|
|
|
|
invoke-direct {v0}, Landroid/view/animation/LinearInterpolator;-><init>()V
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/e/o;->LINEAR_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static a(Landroid/util/JsonReader;Lcom/airbnb/lottie/d;FLcom/airbnb/lottie/e/af;Z)Lcom/airbnb/lottie/g/a;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Landroid/util/JsonReader;",
|
|
"Lcom/airbnb/lottie/d;",
|
|
"F",
|
|
"Lcom/airbnb/lottie/e/af<",
|
|
"TT;>;Z)",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-static {p1, p0, p2, p3}, Lcom/airbnb/lottie/e/o;->a(Lcom/airbnb/lottie/d;Landroid/util/JsonReader;FLcom/airbnb/lottie/e/af;)Lcom/airbnb/lottie/g/a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-interface {p3, p0, p2}, Lcom/airbnb/lottie/e/af;->a(Landroid/util/JsonReader;F)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Lcom/airbnb/lottie/g/a;
|
|
|
|
invoke-direct {p1, p0}, Lcom/airbnb/lottie/g/a;-><init>(Ljava/lang/Object;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private static a(Lcom/airbnb/lottie/d;Landroid/util/JsonReader;FLcom/airbnb/lottie/e/af;)Lcom/airbnb/lottie/g/a;
|
|
.locals 17
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/airbnb/lottie/d;",
|
|
"Landroid/util/JsonReader;",
|
|
"F",
|
|
"Lcom/airbnb/lottie/e/af<",
|
|
"TT;>;)",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
move/from16 v1, p2
|
|
|
|
move-object/from16 v2, p3
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->beginObject()V
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->hasNext()Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_a
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->nextName()Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
const/4 v11, -0x1
|
|
|
|
invoke-virtual {v10}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v13
|
|
|
|
const/16 v3, 0x65
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-eq v13, v3, :cond_7
|
|
|
|
const/16 v3, 0x6f
|
|
|
|
if-eq v13, v3, :cond_6
|
|
|
|
const/16 v3, 0xe75
|
|
|
|
if-eq v13, v3, :cond_5
|
|
|
|
const/16 v3, 0xe7b
|
|
|
|
if-eq v13, v3, :cond_4
|
|
|
|
const/16 v3, 0x68
|
|
|
|
if-eq v13, v3, :cond_3
|
|
|
|
const/16 v3, 0x69
|
|
|
|
if-eq v13, v3, :cond_2
|
|
|
|
const/16 v3, 0x73
|
|
|
|
if-eq v13, v3, :cond_1
|
|
|
|
const/16 v3, 0x74
|
|
|
|
if-eq v13, v3, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const-string v3, "t"
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
const-string v3, "s"
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const-string v3, "i"
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const/4 v3, 0x4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const-string v3, "h"
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const/4 v3, 0x5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const-string v3, "to"
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const/4 v3, 0x6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
const-string v3, "ti"
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const/4 v3, 0x7
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
const-string v3, "o"
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const/4 v3, 0x3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
const-string v3, "e"
|
|
|
|
invoke-virtual {v10, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
const/4 v3, 0x2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
:goto_1
|
|
const/4 v3, -0x1
|
|
|
|
:goto_2
|
|
packed-switch v3, :pswitch_data_0
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->skipValue()V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_0
|
|
invoke-static/range {p1 .. p2}, Lcom/airbnb/lottie/e/n;->c(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
move-result-object v15
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_1
|
|
invoke-static/range {p1 .. p2}, Lcom/airbnb/lottie/e/n;->c(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
move-result-object v14
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_2
|
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->nextInt()I
|
|
|
|
move-result v3
|
|
|
|
if-ne v3, v4, :cond_9
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_9
|
|
const/4 v5, 0x0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_3
|
|
invoke-static/range {p1 .. p2}, Lcom/airbnb/lottie/e/n;->c(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
move-result-object v7
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_4
|
|
invoke-static/range {p1 .. p2}, Lcom/airbnb/lottie/e/n;->c(Landroid/util/JsonReader;F)Landroid/graphics/PointF;
|
|
|
|
move-result-object v6
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_5
|
|
invoke-interface {v2, v0, v1}, Lcom/airbnb/lottie/e/af;->a(Landroid/util/JsonReader;F)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_6
|
|
invoke-interface {v2, v0, v1}, Lcom/airbnb/lottie/e/af;->a(Landroid/util/JsonReader;F)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
goto/16 :goto_0
|
|
|
|
:pswitch_7
|
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->nextDouble()D
|
|
|
|
move-result-wide v3
|
|
|
|
double-to-float v12, v3
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_a
|
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->endObject()V
|
|
|
|
if-eqz v5, :cond_b
|
|
|
|
sget-object v0, Lcom/airbnb/lottie/e/o;->LINEAR_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
move-object v11, v0
|
|
|
|
move-object v10, v9
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_b
|
|
if-eqz v6, :cond_f
|
|
|
|
if-eqz v7, :cond_f
|
|
|
|
iget v0, v6, Landroid/graphics/PointF;->x:F
|
|
|
|
neg-float v2, v1
|
|
|
|
invoke-static {v0, v2, v1}, Lcom/airbnb/lottie/f/e;->clamp(FFF)F
|
|
|
|
move-result v0
|
|
|
|
iput v0, v6, Landroid/graphics/PointF;->x:F
|
|
|
|
iget v0, v6, Landroid/graphics/PointF;->y:F
|
|
|
|
const/high16 v3, 0x42c80000 # 100.0f
|
|
|
|
const/high16 v4, -0x3d380000 # -100.0f
|
|
|
|
invoke-static {v0, v4, v3}, Lcom/airbnb/lottie/f/e;->clamp(FFF)F
|
|
|
|
move-result v0
|
|
|
|
iput v0, v6, Landroid/graphics/PointF;->y:F
|
|
|
|
iget v0, v7, Landroid/graphics/PointF;->x:F
|
|
|
|
invoke-static {v0, v2, v1}, Lcom/airbnb/lottie/f/e;->clamp(FFF)F
|
|
|
|
move-result v0
|
|
|
|
iput v0, v7, Landroid/graphics/PointF;->x:F
|
|
|
|
iget v0, v7, Landroid/graphics/PointF;->y:F
|
|
|
|
invoke-static {v0, v4, v3}, Lcom/airbnb/lottie/f/e;->clamp(FFF)F
|
|
|
|
move-result v0
|
|
|
|
iput v0, v7, Landroid/graphics/PointF;->y:F
|
|
|
|
iget v0, v6, Landroid/graphics/PointF;->x:F
|
|
|
|
iget v2, v6, Landroid/graphics/PointF;->y:F
|
|
|
|
iget v3, v7, Landroid/graphics/PointF;->x:F
|
|
|
|
iget v4, v7, Landroid/graphics/PointF;->y:F
|
|
|
|
invoke-static {v0, v2, v3, v4}, Lcom/airbnb/lottie/f/f;->a(FFFF)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/e/o;->k(I)Ljava/lang/ref/WeakReference;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_c
|
|
|
|
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
move-object v4, v3
|
|
|
|
check-cast v4, Landroid/view/animation/Interpolator;
|
|
|
|
move-object/from16 v16, v4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_c
|
|
const/16 v16, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v2, :cond_d
|
|
|
|
if-nez v16, :cond_e
|
|
|
|
:cond_d
|
|
iget v2, v6, Landroid/graphics/PointF;->x:F
|
|
|
|
div-float/2addr v2, v1
|
|
|
|
iget v3, v6, Landroid/graphics/PointF;->y:F
|
|
|
|
div-float/2addr v3, v1
|
|
|
|
iget v4, v7, Landroid/graphics/PointF;->x:F
|
|
|
|
div-float/2addr v4, v1
|
|
|
|
iget v5, v7, Landroid/graphics/PointF;->y:F
|
|
|
|
div-float/2addr v5, v1
|
|
|
|
invoke-static {v2, v3, v4, v5}, Landroidx/core/view/animation/PathInterpolatorCompat;->create(FFFF)Landroid/view/animation/Interpolator;
|
|
|
|
move-result-object v1
|
|
|
|
:try_start_0
|
|
new-instance v2, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v2, v1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
invoke-static {v0, v2}, Lcom/airbnb/lottie/e/o;->a(ILjava/lang/ref/WeakReference;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-object v11, v1
|
|
|
|
goto :goto_4
|
|
|
|
:catch_0
|
|
move-object/from16 v16, v1
|
|
|
|
:cond_e
|
|
move-object v10, v8
|
|
|
|
move-object/from16 v11, v16
|
|
|
|
goto :goto_5
|
|
|
|
:cond_f
|
|
sget-object v0, Lcom/airbnb/lottie/e/o;->LINEAR_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
move-object v11, v0
|
|
|
|
:goto_4
|
|
move-object v10, v8
|
|
|
|
:goto_5
|
|
new-instance v0, Lcom/airbnb/lottie/g/a;
|
|
|
|
const/4 v13, 0x0
|
|
|
|
move-object v7, v0
|
|
|
|
move-object/from16 v8, p0
|
|
|
|
invoke-direct/range {v7 .. v13}, Lcom/airbnb/lottie/g/a;-><init>(Lcom/airbnb/lottie/d;Ljava/lang/Object;Ljava/lang/Object;Landroid/view/animation/Interpolator;FLjava/lang/Float;)V
|
|
|
|
iput-object v14, v0, Lcom/airbnb/lottie/g/a;->mD:Landroid/graphics/PointF;
|
|
|
|
iput-object v15, v0, Lcom/airbnb/lottie/g/a;->mE:Landroid/graphics/PointF;
|
|
|
|
return-object v0
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method private static a(ILjava/lang/ref/WeakReference;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I",
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Landroid/view/animation/Interpolator;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-class v0, Lcom/airbnb/lottie/e/o;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/airbnb/lottie/e/o;->md:Landroidx/collection/SparseArrayCompat;
|
|
|
|
invoke-virtual {v1, p0, p1}, Landroidx/collection/SparseArrayCompat;->put(ILjava/lang/Object;)V
|
|
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private static k(I)Ljava/lang/ref/WeakReference;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)",
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Landroid/view/animation/Interpolator;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-class v0, Lcom/airbnb/lottie/e/o;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/airbnb/lottie/e/o;->md:Landroidx/collection/SparseArrayCompat;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Landroidx/collection/SparseArrayCompat;
|
|
|
|
invoke-direct {v1}, Landroidx/collection/SparseArrayCompat;-><init>()V
|
|
|
|
sput-object v1, Lcom/airbnb/lottie/e/o;->md:Landroidx/collection/SparseArrayCompat;
|
|
|
|
:cond_0
|
|
sget-object v1, Lcom/airbnb/lottie/e/o;->md:Landroidx/collection/SparseArrayCompat;
|
|
|
|
invoke-virtual {v1, p0}, Landroidx/collection/SparseArrayCompat;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/ref/WeakReference;
|
|
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|