504 lines
10 KiB
Smali
504 lines
10 KiB
Smali
|
.class public Lf/d/a/y/p;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "KeyframeParser.java"
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final a:Landroid/view/animation/Interpolator;
|
||
|
|
||
|
.field public static b:Landroidx/collection/SparseArrayCompat;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Landroidx/collection/SparseArrayCompat<",
|
||
|
"Ljava/lang/ref/WeakReference<",
|
||
|
"Landroid/view/animation/Interpolator;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field public static c:Lf/d/a/y/h0/c$a;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static constructor <clinit>()V
|
||
|
.locals 9
|
||
|
|
||
|
new-instance v0, Landroid/view/animation/LinearInterpolator;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/view/animation/LinearInterpolator;-><init>()V
|
||
|
|
||
|
sput-object v0, Lf/d/a/y/p;->a:Landroid/view/animation/Interpolator;
|
||
|
|
||
|
const-string/jumbo v1, "t"
|
||
|
|
||
|
const-string v2, "s"
|
||
|
|
||
|
const-string v3, "e"
|
||
|
|
||
|
const-string v4, "o"
|
||
|
|
||
|
const-string v5, "i"
|
||
|
|
||
|
const-string v6, "h"
|
||
|
|
||
|
const-string/jumbo v7, "to"
|
||
|
|
||
|
const-string/jumbo v8, "ti"
|
||
|
|
||
|
filled-new-array/range {v1 .. v8}, [Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lf/d/a/y/h0/c$a;->a([Ljava/lang/String;)Lf/d/a/y/h0/c$a;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sput-object v0, Lf/d/a/y/p;->c:Lf/d/a/y/h0/c$a;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Lf/d/a/y/h0/c;Lf/d/a/d;FLf/d/a/y/g0;Z)Lf/d/a/a0/a;
|
||
|
.locals 17
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Lf/d/a/y/h0/c;",
|
||
|
"Lf/d/a/d;",
|
||
|
"F",
|
||
|
"Lf/d/a/y/g0<",
|
||
|
"TT;>;Z)",
|
||
|
"Lf/d/a/a0/a<",
|
||
|
"TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
move/from16 v1, p2
|
||
|
|
||
|
move-object/from16 v2, p3
|
||
|
|
||
|
if-eqz p4, :cond_9
|
||
|
|
||
|
const-class v3, Lf/d/a/y/p;
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lf/d/a/y/h0/c;->b()V
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
move-object v9, v7
|
||
|
|
||
|
move-object v10, v9
|
||
|
|
||
|
move-object v11, v10
|
||
|
|
||
|
move-object v12, v11
|
||
|
|
||
|
move-object v13, v12
|
||
|
|
||
|
move-object v14, v13
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
const/4 v15, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-virtual/range {p0 .. p0}, Lf/d/a/y/h0/c;->e()Z
|
||
|
|
||
|
move-result v16
|
||
|
|
||
|
if-eqz v16, :cond_1
|
||
|
|
||
|
sget-object v6, Lf/d/a/y/p;->c:Lf/d/a/y/h0/c$a;
|
||
|
|
||
|
invoke-virtual {v0, v6}, Lf/d/a/y/h0/c;->t(Lf/d/a/y/h0/c$a;)I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
packed-switch v6, :pswitch_data_0
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lf/d/a/y/h0/c;->x()V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:pswitch_0
|
||
|
invoke-static {v0, v1}, Lf/d/a/y/o;->b(Lf/d/a/y/h0/c;F)Landroid/graphics/PointF;
|
||
|
|
||
|
move-result-object v13
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_1
|
||
|
invoke-static {v0, v1}, Lf/d/a/y/o;->b(Lf/d/a/y/h0/c;F)Landroid/graphics/PointF;
|
||
|
|
||
|
move-result-object v14
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_2
|
||
|
invoke-virtual/range {p0 .. p0}, Lf/d/a/y/h0/c;->h()I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-ne v6, v4, :cond_0
|
||
|
|
||
|
const/4 v8, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_3
|
||
|
invoke-static {v0, v1}, Lf/d/a/y/o;->b(Lf/d/a/y/h0/c;F)Landroid/graphics/PointF;
|
||
|
|
||
|
move-result-object v10
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_4
|
||
|
invoke-static {v0, v1}, Lf/d/a/y/o;->b(Lf/d/a/y/h0/c;F)Landroid/graphics/PointF;
|
||
|
|
||
|
move-result-object v9
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_5
|
||
|
invoke-interface {v2, v0, v1}, Lf/d/a/y/g0;->a(Lf/d/a/y/h0/c;F)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v11
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_6
|
||
|
invoke-interface {v2, v0, v1}, Lf/d/a/y/g0;->a(Lf/d/a/y/h0/c;F)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v12
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:pswitch_7
|
||
|
invoke-virtual/range {p0 .. p0}, Lf/d/a/y/h0/c;->g()D
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
double-to-float v15, v4
|
||
|
|
||
|
:goto_1
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
invoke-virtual/range {p0 .. p0}, Lf/d/a/y/h0/c;->d()V
|
||
|
|
||
|
if-eqz v8, :cond_2
|
||
|
|
||
|
sget-object v0, Lf/d/a/y/p;->a:Landroid/view/animation/Interpolator;
|
||
|
|
||
|
move-object v7, v0
|
||
|
|
||
|
move-object v0, v12
|
||
|
|
||
|
goto/16 :goto_4
|
||
|
|
||
|
:cond_2
|
||
|
if-eqz v9, :cond_7
|
||
|
|
||
|
if-eqz v10, :cond_7
|
||
|
|
||
|
iget v0, v9, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
neg-float v2, v1
|
||
|
|
||
|
invoke-static {v0, v2, v1}, Lf/d/a/z/f;->b(FFF)F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, v9, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
iget v0, v9, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
const/high16 v4, -0x3d380000 # -100.0f
|
||
|
|
||
|
const/high16 v5, 0x42c80000 # 100.0f
|
||
|
|
||
|
invoke-static {v0, v4, v5}, Lf/d/a/z/f;->b(FFF)F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, v9, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
iget v0, v10, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
invoke-static {v0, v2, v1}, Lf/d/a/z/f;->b(FFF)F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, v10, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
iget v0, v10, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
invoke-static {v0, v4, v5}, Lf/d/a/z/f;->b(FFF)F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, v10, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
iget v2, v9, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
iget v4, v9, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
iget v5, v10, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
invoke-static {v2, v4, v5, v0}, Lf/d/a/z/g;->h(FFFF)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
monitor-enter v3
|
||
|
|
||
|
:try_start_0
|
||
|
sget-object v0, Lf/d/a/y/p;->b:Landroidx/collection/SparseArrayCompat;
|
||
|
|
||
|
if-nez v0, :cond_3
|
||
|
|
||
|
new-instance v0, Landroidx/collection/SparseArrayCompat;
|
||
|
|
||
|
invoke-direct {v0}, Landroidx/collection/SparseArrayCompat;-><init>()V
|
||
|
|
||
|
sput-object v0, Lf/d/a/y/p;->b:Landroidx/collection/SparseArrayCompat;
|
||
|
|
||
|
:cond_3
|
||
|
sget-object v0, Lf/d/a/y/p;->b:Landroidx/collection/SparseArrayCompat;
|
||
|
|
||
|
invoke-virtual {v0, v2}, Landroidx/collection/SparseArrayCompat;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/ref/WeakReference;
|
||
|
|
||
|
monitor-exit v3
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
move-object v7, v4
|
||
|
|
||
|
check-cast v7, Landroid/view/animation/Interpolator;
|
||
|
|
||
|
:cond_4
|
||
|
if-eqz v0, :cond_5
|
||
|
|
||
|
if-nez v7, :cond_8
|
||
|
|
||
|
:cond_5
|
||
|
iget v0, v9, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
div-float/2addr v0, v1
|
||
|
|
||
|
iput v0, v9, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
iget v0, v9, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
div-float/2addr v0, v1
|
||
|
|
||
|
iput v0, v9, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
iget v0, v10, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
div-float/2addr v0, v1
|
||
|
|
||
|
iput v0, v10, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
iget v4, v10, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
div-float/2addr v4, v1
|
||
|
|
||
|
iput v4, v10, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
:try_start_1
|
||
|
iget v1, v9, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
iget v5, v9, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
invoke-static {v1, v5, v0, v4}, Landroidx/core/view/animation/PathInterpolatorCompat;->create(FFFF)Landroid/view/animation/Interpolator;
|
||
|
|
||
|
move-result-object v0
|
||
|
:try_end_1
|
||
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_1 .. :try_end_1} :catch_0
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/IllegalArgumentException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "The Path cannot loop back on itself."
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_6
|
||
|
|
||
|
iget v0, v9, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
const/high16 v1, 0x3f800000 # 1.0f
|
||
|
|
||
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(FF)F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iget v1, v9, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
iget v4, v10, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
invoke-static {v4, v5}, Ljava/lang/Math;->max(FF)F
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
iget v5, v10, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
invoke-static {v0, v1, v4, v5}, Landroidx/core/view/animation/PathInterpolatorCompat;->create(FFFF)Landroid/view/animation/Interpolator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_6
|
||
|
new-instance v0, Landroid/view/animation/LinearInterpolator;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/view/animation/LinearInterpolator;-><init>()V
|
||
|
|
||
|
:goto_2
|
||
|
move-object v7, v0
|
||
|
|
||
|
:try_start_2
|
||
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
||
|
|
||
|
invoke-direct {v0, v7}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
monitor-enter v3
|
||
|
:try_end_2
|
||
|
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_2 .. :try_end_2} :catch_1
|
||
|
|
||
|
:try_start_3
|
||
|
sget-object v1, Lf/d/a/y/p;->b:Landroidx/collection/SparseArrayCompat;
|
||
|
|
||
|
invoke-virtual {v1, v2, v0}, Landroidx/collection/SparseArrayCompat;->put(ILjava/lang/Object;)V
|
||
|
|
||
|
monitor-exit v3
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit v3
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||
|
|
||
|
:try_start_4
|
||
|
throw v0
|
||
|
:try_end_4
|
||
|
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_4 .. :try_end_4} :catch_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
:try_start_5
|
||
|
monitor-exit v3
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_1
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_7
|
||
|
sget-object v7, Lf/d/a/y/p;->a:Landroid/view/animation/Interpolator;
|
||
|
|
||
|
:catch_1
|
||
|
:cond_8
|
||
|
:goto_3
|
||
|
move-object v0, v11
|
||
|
|
||
|
:goto_4
|
||
|
new-instance v1, Lf/d/a/a0/a;
|
||
|
|
||
|
const/16 v16, 0x0
|
||
|
|
||
|
move-object v10, v1
|
||
|
|
||
|
move-object/from16 v11, p1
|
||
|
|
||
|
move-object v2, v13
|
||
|
|
||
|
move-object v13, v0
|
||
|
|
||
|
move-object v3, v14
|
||
|
|
||
|
move-object v14, v7
|
||
|
|
||
|
invoke-direct/range {v10 .. v16}, Lf/d/a/a0/a;-><init>(Lf/d/a/d;Ljava/lang/Object;Ljava/lang/Object;Landroid/view/animation/Interpolator;FLjava/lang/Float;)V
|
||
|
|
||
|
iput-object v3, v1, Lf/d/a/a0/a;->m:Landroid/graphics/PointF;
|
||
|
|
||
|
iput-object v2, v1, Lf/d/a/a0/a;->n:Landroid/graphics/PointF;
|
||
|
|
||
|
return-object v1
|
||
|
|
||
|
:cond_9
|
||
|
invoke-interface {v2, v0, v1}, Lf/d/a/y/g0;->a(Lf/d/a/y/h0/c;F)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lf/d/a/a0/a;
|
||
|
|
||
|
invoke-direct {v1, v0}, Lf/d/a/a0/a;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
return-object v1
|
||
|
|
||
|
: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
|