597 lines
13 KiB
Smali
597 lines
13 KiB
Smali
|
.class Lcom/airbnb/lottie/e/o;
|
||
|
.super Ljava/lang/Object;
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static final LINEAR_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
||
|
|
||
|
.field private static my: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 16
|
||
|
.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 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
move-object v6, v4
|
||
|
|
||
|
move-object v7, v6
|
||
|
|
||
|
move-object v8, v7
|
||
|
|
||
|
move-object v9, v8
|
||
|
|
||
|
move-object v13, v9
|
||
|
|
||
|
move-object v14, v13
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v11, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->hasNext()Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_2
|
||
|
|
||
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->nextName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v10
|
||
|
|
||
|
const/4 v12, -0x1
|
||
|
|
||
|
invoke-virtual {v10}, Ljava/lang/String;->hashCode()I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
sparse-switch v15, :sswitch_data_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_0
|
||
|
const-string v15, "to"
|
||
|
|
||
|
invoke-virtual {v10, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_0
|
||
|
|
||
|
const/4 v10, 0x6
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:sswitch_1
|
||
|
const-string v15, "ti"
|
||
|
|
||
|
invoke-virtual {v10, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_0
|
||
|
|
||
|
const/4 v10, 0x7
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:sswitch_2
|
||
|
const-string v15, "t"
|
||
|
|
||
|
invoke-virtual {v10, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_0
|
||
|
|
||
|
const/4 v10, 0x0
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:sswitch_3
|
||
|
const-string v15, "s"
|
||
|
|
||
|
invoke-virtual {v10, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_0
|
||
|
|
||
|
const/4 v10, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:sswitch_4
|
||
|
const-string v15, "o"
|
||
|
|
||
|
invoke-virtual {v10, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_0
|
||
|
|
||
|
const/4 v10, 0x3
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:sswitch_5
|
||
|
const-string v15, "i"
|
||
|
|
||
|
invoke-virtual {v10, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_0
|
||
|
|
||
|
const/4 v10, 0x4
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:sswitch_6
|
||
|
const-string v15, "h"
|
||
|
|
||
|
invoke-virtual {v10, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_0
|
||
|
|
||
|
const/4 v10, 0x5
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:sswitch_7
|
||
|
const-string v15, "e"
|
||
|
|
||
|
invoke-virtual {v10, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_0
|
||
|
|
||
|
const/4 v10, 0x2
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_0
|
||
|
:goto_1
|
||
|
const/4 v10, -0x1
|
||
|
|
||
|
:goto_2
|
||
|
packed-switch v10, :pswitch_data_0
|
||
|
|
||
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->skipValue()V
|
||
|
|
||
|
goto :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 v14
|
||
|
|
||
|
goto :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 v13
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_2
|
||
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->nextInt()I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
if-ne v5, v3, :cond_1
|
||
|
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
goto :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 v9
|
||
|
|
||
|
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 v8
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:pswitch_7
|
||
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->nextDouble()D
|
||
|
|
||
|
move-result-wide v10
|
||
|
|
||
|
double-to-float v11, v10
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
invoke-virtual/range {p1 .. p1}, Landroid/util/JsonReader;->endObject()V
|
||
|
|
||
|
if-eqz v5, :cond_3
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/e/o;->LINEAR_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
||
|
|
||
|
move-object v10, v0
|
||
|
|
||
|
move-object v9, v8
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
if-eqz v6, :cond_7
|
||
|
|
||
|
if-eqz v7, :cond_7
|
||
|
|
||
|
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 v5, -0x3d380000 # -100.0f
|
||
|
|
||
|
invoke-static {v0, v5, 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, v5, 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 v5, v7, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
invoke-static {v0, v2, v3, v5}, 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_4
|
||
|
|
||
|
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;
|
||
|
|
||
|
:cond_4
|
||
|
if-eqz v2, :cond_5
|
||
|
|
||
|
if-nez v4, :cond_6
|
||
|
|
||
|
:cond_5
|
||
|
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 v4
|
||
|
|
||
|
:try_start_0
|
||
|
new-instance v1, Ljava/lang/ref/WeakReference;
|
||
|
|
||
|
invoke-direct {v1, v4}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-static {v0, v1}, 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
|
||
|
|
||
|
:catch_0
|
||
|
:cond_6
|
||
|
move-object v10, v4
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_7
|
||
|
sget-object v0, Lcom/airbnb/lottie/e/o;->LINEAR_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
||
|
|
||
|
move-object v10, v0
|
||
|
|
||
|
:goto_3
|
||
|
new-instance v0, Lcom/airbnb/lottie/g/a;
|
||
|
|
||
|
const/4 v12, 0x0
|
||
|
|
||
|
move-object v6, v0
|
||
|
|
||
|
move-object/from16 v7, p0
|
||
|
|
||
|
invoke-direct/range {v6 .. v12}, 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 v13, v0, Lcom/airbnb/lottie/g/a;->mZ:Landroid/graphics/PointF;
|
||
|
|
||
|
iput-object v14, v0, Lcom/airbnb/lottie/g/a;->na:Landroid/graphics/PointF;
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
nop
|
||
|
|
||
|
:sswitch_data_0
|
||
|
.sparse-switch
|
||
|
0x65 -> :sswitch_7
|
||
|
0x68 -> :sswitch_6
|
||
|
0x69 -> :sswitch_5
|
||
|
0x6f -> :sswitch_4
|
||
|
0x73 -> :sswitch_3
|
||
|
0x74 -> :sswitch_2
|
||
|
0xe75 -> :sswitch_1
|
||
|
0xe7b -> :sswitch_0
|
||
|
.end sparse-switch
|
||
|
|
||
|
: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;->my: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;->my: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;->my:Landroidx/collection/SparseArrayCompat;
|
||
|
|
||
|
:cond_0
|
||
|
sget-object v1, Lcom/airbnb/lottie/e/o;->my: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
|