149 lines
3.6 KiB
Smali
149 lines
3.6 KiB
Smali
.class public Lcom/google/android/material/animation/AnimationUtils;
|
|
.super Ljava/lang/Object;
|
|
.source "AnimationUtils.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final DECELERATE_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
.field public static final FAST_OUT_LINEAR_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
.field public static final FAST_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
.field public static final LINEAR_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
.field public static final LINEAR_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Landroid/view/animation/LinearInterpolator;
|
|
|
|
invoke-direct {v0}, Landroid/view/animation/LinearInterpolator;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/material/animation/AnimationUtils;->LINEAR_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
.line 2
|
|
new-instance v0, Lm2/b;
|
|
|
|
invoke-direct {v0}, Lm2/b;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/material/animation/AnimationUtils;->FAST_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
.line 3
|
|
new-instance v0, Lm2/a;
|
|
|
|
invoke-direct {v0}, Lm2/a;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/material/animation/AnimationUtils;->FAST_OUT_LINEAR_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
.line 4
|
|
new-instance v0, Lm2/c;
|
|
|
|
invoke-direct {v0}, Lm2/c;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/material/animation/AnimationUtils;->LINEAR_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
.line 5
|
|
new-instance v0, Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
invoke-direct {v0}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/material/animation/AnimationUtils;->DECELERATE_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static lerp(FFF)F
|
|
.locals 0
|
|
|
|
invoke-static {p1, p0, p2, p0}, Landroidx/appcompat/graphics/drawable/d;->a(FFFF)F
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static lerp(FFFFF)F
|
|
.locals 1
|
|
.param p2 # F
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
from = 0.0
|
|
to = 1.0
|
|
.end annotation
|
|
.end param
|
|
.param p3 # F
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
from = 0.0
|
|
to = 1.0
|
|
.end annotation
|
|
.end param
|
|
.param p4 # F
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
from = 0.0
|
|
to = 1.0
|
|
.end annotation
|
|
.end param
|
|
|
|
cmpg-float v0, p4, p2
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
cmpl-float v0, p4, p3
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
sub-float/2addr p4, p2
|
|
|
|
sub-float/2addr p3, p2
|
|
|
|
div-float/2addr p4, p3
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, p4}, Lcom/google/android/material/animation/AnimationUtils;->lerp(FFF)F
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static lerp(IIF)I
|
|
.locals 0
|
|
|
|
sub-int/2addr p1, p0
|
|
|
|
int-to-float p1, p1
|
|
|
|
invoke-static {p2, p1, p0}, Lw5/d;->a(FFI)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|