Rabbit-R1/android (non root)/smali/smali_classes2/com/airbnb/lottie/value/LottieRelativeIntegerValueCallback.smali

136 lines
3.5 KiB
Smali
Raw Normal View History

2024-05-21 21:08:36 +00:00
.class public Lcom/airbnb/lottie/value/LottieRelativeIntegerValueCallback;
.super Lcom/airbnb/lottie/value/LottieValueCallback;
.source "LottieRelativeIntegerValueCallback.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/airbnb/lottie/value/LottieValueCallback<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 10
invoke-direct {p0}, Lcom/airbnb/lottie/value/LottieValueCallback;-><init>()V
return-void
.end method
# virtual methods
.method public getOffset(Lcom/airbnb/lottie/value/LottieFrameInfo;)Ljava/lang/Integer;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/value/LottieFrameInfo<",
"Ljava/lang/Integer;",
">;)",
"Ljava/lang/Integer;"
}
.end annotation
.line 26
iget-object p1, p0, Lcom/airbnb/lottie/value/LottieRelativeIntegerValueCallback;->value:Ljava/lang/Object;
if-eqz p1, :cond_0
.line 30
iget-object p0, p0, Lcom/airbnb/lottie/value/LottieRelativeIntegerValueCallback;->value:Ljava/lang/Object;
check-cast p0, Ljava/lang/Integer;
return-object p0
.line 27
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "You must provide a static value in the constructor , call setValue, or override getValue."
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public getValue(Lcom/airbnb/lottie/value/LottieFrameInfo;)Ljava/lang/Integer;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/value/LottieFrameInfo<",
"Ljava/lang/Integer;",
">;)",
"Ljava/lang/Integer;"
}
.end annotation
.line 14
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getStartValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
.line 15
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getEndValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
.line 16
invoke-virtual {p1}, Lcom/airbnb/lottie/value/LottieFrameInfo;->getInterpolatedKeyframeProgress()F
move-result v2
.line 13
invoke-static {v0, v1, v2}, Lcom/airbnb/lottie/utils/MiscUtils;->lerp(IIF)I
move-result v0
.line 18
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/value/LottieRelativeIntegerValueCallback;->getOffset(Lcom/airbnb/lottie/value/LottieFrameInfo;)Ljava/lang/Integer;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
add-int/2addr v0, p0
.line 19
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
.end method
.method public bridge synthetic getValue(Lcom/airbnb/lottie/value/LottieFrameInfo;)Ljava/lang/Object;
.locals 0
.line 9
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/value/LottieRelativeIntegerValueCallback;->getValue(Lcom/airbnb/lottie/value/LottieFrameInfo;)Ljava/lang/Integer;
move-result-object p0
return-object p0
.end method