Rabbit-R1/android (non root)/smali/smali_classes2/com/airbnb/lottie/value/LottieInterpolatedValue.smali
2024-05-21 17:08:36 -04:00

120 lines
3.5 KiB
Smali

.class abstract Lcom/airbnb/lottie/value/LottieInterpolatedValue;
.super Lcom/airbnb/lottie/value/LottieValueCallback;
.source "LottieInterpolatedValue.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lcom/airbnb/lottie/value/LottieValueCallback<",
"TT;>;"
}
.end annotation
# instance fields
.field private final endValue:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field private final interpolator:Landroid/view/animation/Interpolator;
.field private final startValue:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Ljava/lang/Object;Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;TT;)V"
}
.end annotation
.line 13
new-instance v0, Landroid/view/animation/LinearInterpolator;
invoke-direct {v0}, Landroid/view/animation/LinearInterpolator;-><init>()V
invoke-direct {p0, p1, p2, v0}, Lcom/airbnb/lottie/value/LottieInterpolatedValue;-><init>(Ljava/lang/Object;Ljava/lang/Object;Landroid/view/animation/Interpolator;)V
return-void
.end method
.method constructor <init>(Ljava/lang/Object;Ljava/lang/Object;Landroid/view/animation/Interpolator;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;TT;",
"Landroid/view/animation/Interpolator;",
")V"
}
.end annotation
.line 16
invoke-direct {p0}, Lcom/airbnb/lottie/value/LottieValueCallback;-><init>()V
iput-object p1, p0, Lcom/airbnb/lottie/value/LottieInterpolatedValue;->startValue:Ljava/lang/Object;
iput-object p2, p0, Lcom/airbnb/lottie/value/LottieInterpolatedValue;->endValue:Ljava/lang/Object;
iput-object p3, p0, Lcom/airbnb/lottie/value/LottieInterpolatedValue;->interpolator:Landroid/view/animation/Interpolator;
return-void
.end method
# virtual methods
.method public getValue(Lcom/airbnb/lottie/value/LottieFrameInfo;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/value/LottieFrameInfo<",
"TT;>;)TT;"
}
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/value/LottieInterpolatedValue;->interpolator:Landroid/view/animation/Interpolator;
.line 23
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getOverallProgress()F
move-result p1
invoke-interface {v0, p1}, Landroid/view/animation/Interpolator;->getInterpolation(F)F
move-result p1
iget-object v0, p0, Lcom/airbnb/lottie/value/LottieInterpolatedValue;->startValue:Ljava/lang/Object;
iget-object v1, p0, Lcom/airbnb/lottie/value/LottieInterpolatedValue;->endValue:Ljava/lang/Object;
.line 24
invoke-virtual {p0, v0, v1, p1}, Lcom/airbnb/lottie/value/LottieInterpolatedValue;->interpolateValue(Ljava/lang/Object;Ljava/lang/Object;F)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method abstract interpolateValue(Ljava/lang/Object;Ljava/lang/Object;F)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;TT;F)TT;"
}
.end annotation
.end method