620 lines
16 KiB
Smali
620 lines
16 KiB
Smali
.class public Lcom/google/android/material/animation/MotionTiming;
|
|
.super Ljava/lang/Object;
|
|
.source "MotionTiming.java"
|
|
|
|
|
|
# instance fields
|
|
.field private delay:J
|
|
|
|
.field private duration:J
|
|
|
|
.field private interpolator:Landroid/animation/TimeInterpolator;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private repeatCount:I
|
|
|
|
.field private repeatMode:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(JJ)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 2
|
|
iput-wide v0, p0, Lcom/google/android/material/animation/MotionTiming;->delay:J
|
|
|
|
const-wide/16 v0, 0x12c
|
|
|
|
.line 3
|
|
iput-wide v0, p0, Lcom/google/android/material/animation/MotionTiming;->duration:J
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
iput-object v0, p0, Lcom/google/android/material/animation/MotionTiming;->interpolator:Landroid/animation/TimeInterpolator;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
iput v0, p0, Lcom/google/android/material/animation/MotionTiming;->repeatCount:I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 6
|
|
iput v0, p0, Lcom/google/android/material/animation/MotionTiming;->repeatMode:I
|
|
|
|
.line 7
|
|
iput-wide p1, p0, Lcom/google/android/material/animation/MotionTiming;->delay:J
|
|
|
|
.line 8
|
|
iput-wide p3, p0, Lcom/google/android/material/animation/MotionTiming;->duration:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(JJLandroid/animation/TimeInterpolator;)V
|
|
.locals 2
|
|
.param p5 # Landroid/animation/TimeInterpolator;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 9
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 10
|
|
iput-wide v0, p0, Lcom/google/android/material/animation/MotionTiming;->delay:J
|
|
|
|
const-wide/16 v0, 0x12c
|
|
|
|
.line 11
|
|
iput-wide v0, p0, Lcom/google/android/material/animation/MotionTiming;->duration:J
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 12
|
|
iput-object v0, p0, Lcom/google/android/material/animation/MotionTiming;->interpolator:Landroid/animation/TimeInterpolator;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
iput v0, p0, Lcom/google/android/material/animation/MotionTiming;->repeatCount:I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 14
|
|
iput v0, p0, Lcom/google/android/material/animation/MotionTiming;->repeatMode:I
|
|
|
|
.line 15
|
|
iput-wide p1, p0, Lcom/google/android/material/animation/MotionTiming;->delay:J
|
|
|
|
.line 16
|
|
iput-wide p3, p0, Lcom/google/android/material/animation/MotionTiming;->duration:J
|
|
|
|
.line 17
|
|
iput-object p5, p0, Lcom/google/android/material/animation/MotionTiming;->interpolator:Landroid/animation/TimeInterpolator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static createFromAnimator(Landroid/animation/ValueAnimator;)Lcom/google/android/material/animation/MotionTiming;
|
|
.locals 7
|
|
.param p0 # Landroid/animation/ValueAnimator;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v6, Lcom/google/android/material/animation/MotionTiming;
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/animation/ValueAnimator;->getStartDelay()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {p0}, Landroid/animation/ValueAnimator;->getDuration()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-static {p0}, Lcom/google/android/material/animation/MotionTiming;->getInterpolatorCompat(Landroid/animation/ValueAnimator;)Landroid/animation/TimeInterpolator;
|
|
|
|
move-result-object v5
|
|
|
|
move-object v0, v6
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/google/android/material/animation/MotionTiming;-><init>(JJLandroid/animation/TimeInterpolator;)V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/animation/ValueAnimator;->getRepeatCount()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, v6, Lcom/google/android/material/animation/MotionTiming;->repeatCount:I
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/animation/ValueAnimator;->getRepeatMode()I
|
|
|
|
move-result p0
|
|
|
|
iput p0, v6, Lcom/google/android/material/animation/MotionTiming;->repeatMode:I
|
|
|
|
return-object v6
|
|
.end method
|
|
|
|
.method private static getInterpolatorCompat(Landroid/animation/ValueAnimator;)Landroid/animation/TimeInterpolator;
|
|
.locals 1
|
|
.param p0 # Landroid/animation/ValueAnimator;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/animation/ValueAnimator;->getInterpolator()Landroid/animation/TimeInterpolator;
|
|
|
|
move-result-object p0
|
|
|
|
.line 2
|
|
instance-of v0, p0, Landroid/view/animation/AccelerateDecelerateInterpolator;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
instance-of v0, p0, Landroid/view/animation/AccelerateInterpolator;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
sget-object p0, Lcom/google/android/material/animation/AnimationUtils;->FAST_OUT_LINEAR_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
return-object p0
|
|
|
|
.line 5
|
|
:cond_1
|
|
instance-of v0, p0, Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 6
|
|
sget-object p0, Lcom/google/android/material/animation/AnimationUtils;->LINEAR_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
:cond_2
|
|
return-object p0
|
|
|
|
.line 7
|
|
:cond_3
|
|
:goto_0
|
|
sget-object p0, Lcom/google/android/material/animation/AnimationUtils;->FAST_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public apply(Landroid/animation/Animator;)V
|
|
.locals 2
|
|
.param p1 # Landroid/animation/Animator;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDelay()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/animation/Animator;->setStartDelay(J)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDuration()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/animation/Animator;->setDuration(J)Landroid/animation/Animator;
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getInterpolator()Landroid/animation/TimeInterpolator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/animation/Animator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
|
|
|
|
.line 4
|
|
instance-of v0, p1, Landroid/animation/ValueAnimator;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
check-cast p1, Landroid/animation/ValueAnimator;
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getRepeatCount()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->setRepeatCount(I)V
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getRepeatMode()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->setRepeatMode(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 6
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 1
|
|
:cond_0
|
|
instance-of v0, p1, Lcom/google/android/material/animation/MotionTiming;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return v1
|
|
|
|
.line 2
|
|
:cond_1
|
|
check-cast p1, Lcom/google/android/material/animation/MotionTiming;
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDelay()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/animation/MotionTiming;->getDelay()J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
return v1
|
|
|
|
.line 4
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDuration()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/animation/MotionTiming;->getDuration()J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
return v1
|
|
|
|
.line 5
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getRepeatCount()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/animation/MotionTiming;->getRepeatCount()I
|
|
|
|
move-result v2
|
|
|
|
if-eq v0, v2, :cond_4
|
|
|
|
return v1
|
|
|
|
.line 6
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getRepeatMode()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/animation/MotionTiming;->getRepeatMode()I
|
|
|
|
move-result v2
|
|
|
|
if-eq v0, v2, :cond_5
|
|
|
|
return v1
|
|
|
|
.line 7
|
|
:cond_5
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getInterpolator()Landroid/animation/TimeInterpolator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/animation/MotionTiming;->getInterpolator()Landroid/animation/TimeInterpolator;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getDelay()J
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-wide v0, p0, Lcom/google/android/material/animation/MotionTiming;->delay:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public getDuration()J
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-wide v0, p0, Lcom/google/android/material/animation/MotionTiming;->duration:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public getInterpolator()Landroid/animation/TimeInterpolator;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/animation/MotionTiming;->interpolator:Landroid/animation/TimeInterpolator;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/google/android/material/animation/AnimationUtils;->FAST_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getRepeatCount()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/animation/MotionTiming;->repeatCount:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getRepeatMode()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/animation/MotionTiming;->repeatMode:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 7
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDelay()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDelay()J
|
|
|
|
move-result-wide v2
|
|
|
|
const/16 v4, 0x20
|
|
|
|
ushr-long/2addr v2, v4
|
|
|
|
xor-long/2addr v0, v2
|
|
|
|
long-to-int v0, v0
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDuration()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDuration()J
|
|
|
|
move-result-wide v5
|
|
|
|
ushr-long v3, v5, v4
|
|
|
|
xor-long/2addr v1, v3
|
|
|
|
long-to-int v1, v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getInterpolator()Landroid/animation/TimeInterpolator;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getRepeatCount()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getRepeatMode()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 1
|
|
invoke-static {v0}, Lcom/airbnb/lottie/parser/moshi/a;->a(C)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x7b
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 4
|
|
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " delay: "
|
|
|
|
.line 5
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDelay()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " duration: "
|
|
|
|
.line 7
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getDuration()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " interpolator: "
|
|
|
|
.line 9
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getInterpolator()Landroid/animation/TimeInterpolator;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " repeatCount: "
|
|
|
|
.line 11
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 12
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getRepeatCount()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " repeatMode: "
|
|
|
|
.line 13
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 14
|
|
invoke-virtual {p0}, Lcom/google/android/material/animation/MotionTiming;->getRepeatMode()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "}\n"
|
|
|
|
.line 15
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 16
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|