2020-09-16 23:45:23 +00:00
|
|
|
.class public Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Easing.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final ACCELERATE:Ljava/lang/String; = "cubic(0.4, 0.05, 0.8, 0.7)"
|
|
|
|
|
|
|
|
.field public static final ACCELERATE_NAME:Ljava/lang/String; = "accelerate"
|
|
|
|
|
|
|
|
.field public static final DECELERATE:Ljava/lang/String; = "cubic(0.0, 0.0, 0.2, 0.95)"
|
|
|
|
|
|
|
|
.field public static final DECELERATE_NAME:Ljava/lang/String; = "decelerate"
|
|
|
|
|
|
|
|
.field public static final LINEAR:Ljava/lang/String; = "cubic(1, 1, 0, 0)"
|
|
|
|
|
|
|
|
.field public static final LINEAR_NAME:Ljava/lang/String; = "linear"
|
|
|
|
|
|
|
|
.field public static NAMED_EASING:[Ljava/lang/String; = null
|
|
|
|
|
|
|
|
.field public static final STANDARD:Ljava/lang/String; = "cubic(0.4, 0.0, 0.2, 1)"
|
|
|
|
|
|
|
|
.field public static final STANDARD_NAME:Ljava/lang/String; = "standard"
|
|
|
|
|
|
|
|
.field public static sDefault:Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public str:Ljava/lang/String;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/constraintlayout/motion/utils/Easing;-><init>()V
|
|
|
|
|
|
|
|
sput-object v0, Landroidx/constraintlayout/motion/utils/Easing;->sDefault:Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
|
|
|
|
const-string v0, "standard"
|
|
|
|
|
|
|
|
const-string v1, "accelerate"
|
|
|
|
|
|
|
|
const-string v2, "decelerate"
|
|
|
|
|
|
|
|
const-string v3, "linear"
|
|
|
|
|
|
|
|
filled-new-array {v0, v1, v2, v3}, [Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sput-object v0, Landroidx/constraintlayout/motion/utils/Easing;->NAMED_EASING:[Ljava/lang/String;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const-string v0, "identity"
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/utils/Easing;->str:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static getInterpolator(Ljava/lang/String;)Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v0, "cubic"
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_0
|
|
|
|
const-string v1, "standard"
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_1
|
|
|
|
const-string v1, "linear"
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_2
|
|
|
|
const-string v1, "decelerate"
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:sswitch_3
|
|
|
|
const-string v1, "accelerate"
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
if-eq v0, v4, :cond_5
|
|
|
|
|
|
|
|
if-eq v0, v3, :cond_4
|
|
|
|
|
|
|
|
if-eq v0, v2, :cond_3
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
const-string/jumbo p0, "transitionEasing syntax error syntax:transitionEasing=\"cubic(1.0,0.5,0.0,0.6)\" or "
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/utils/Easing;->NAMED_EASING:[Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-string v0, "ConstraintSet"
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
sget-object p0, Landroidx/constraintlayout/motion/utils/Easing;->sDefault:Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p0, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;
|
|
|
|
|
|
|
|
const-string v0, "cubic(1, 1, 0, 0)"
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p0, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;
|
|
|
|
|
|
|
|
const-string v0, "cubic(0.0, 0.0, 0.2, 0.95)"
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
new-instance p0, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;
|
|
|
|
|
|
|
|
const-string v0, "cubic(0.4, 0.05, 0.8, 0.7)"
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
new-instance p0, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;
|
|
|
|
|
|
|
|
const-string v0, "cubic(0.4, 0.0, 0.2, 1)"
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Landroidx/constraintlayout/motion/utils/Easing$CubicEasing;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2020-09-22 07:09:10 +00:00
|
|
|
nop
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:sswitch_data_0
|
|
|
|
.sparse-switch
|
|
|
|
-0x50bb8523 -> :sswitch_3
|
|
|
|
-0x4b5653c4 -> :sswitch_2
|
|
|
|
-0x41b970db -> :sswitch_1
|
|
|
|
0x4e3d1ebd -> :sswitch_0
|
|
|
|
.end sparse-switch
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public get(D)D
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
return-wide p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getDiff(D)D
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
const-wide/high16 p1, 0x3ff0000000000000L # 1.0
|
|
|
|
|
|
|
|
return-wide p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/utils/Easing;->str:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|