- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
180 lines
3.9 KiB
Smali
180 lines
3.9 KiB
Smali
.class Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/animation/TimeInterpolator;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "FrameInterpolator"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private mFrameTimes:[I
|
|
|
|
.field private mFrames:I
|
|
|
|
.field private mTotalDuration:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/graphics/drawable/AnimationDrawable;Z)V
|
|
.locals 0
|
|
|
|
.line 731
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 732
|
|
invoke-virtual {p0, p1, p2}, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->updateFrames(Landroid/graphics/drawable/AnimationDrawable;Z)I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getInterpolation(F)F
|
|
.locals 4
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mTotalDuration:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
mul-float/2addr p1, v0
|
|
|
|
const/high16 v0, 0x3f000000 # 0.5f
|
|
|
|
add-float/2addr p1, v0
|
|
|
|
float-to-int p1, p1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mFrames:I
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mFrameTimes:[I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_0
|
|
|
|
.line 764
|
|
aget v3, v1, v2
|
|
|
|
if-lt p1, v3, :cond_0
|
|
|
|
sub-int/2addr p1, v3
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-ge v2, v0, :cond_1
|
|
|
|
int-to-float p1, p1
|
|
|
|
iget v1, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mTotalDuration:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
div-float/2addr p1, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
:goto_1
|
|
int-to-float v1, v2
|
|
|
|
int-to-float v0, v0
|
|
|
|
div-float/2addr v1, v0
|
|
|
|
add-float/2addr v1, p1
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public getTotalDuration()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mTotalDuration:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public updateFrames(Landroid/graphics/drawable/AnimationDrawable;Z)I
|
|
.locals 5
|
|
|
|
.line 736
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/AnimationDrawable;->getNumberOfFrames()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mFrames:I
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mFrameTimes:[I
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 738
|
|
array-length v1, v1
|
|
|
|
if-ge v1, v0, :cond_1
|
|
|
|
.line 739
|
|
:cond_0
|
|
new-array v1, v0, [I
|
|
|
|
iput-object v1, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mFrameTimes:[I
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mFrameTimes:[I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_3
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
sub-int v4, v0, v2
|
|
|
|
add-int/lit8 v4, v4, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v4, v2
|
|
|
|
.line 744
|
|
:goto_1
|
|
invoke-virtual {p1, v4}, Landroid/graphics/drawable/AnimationDrawable;->getDuration(I)I
|
|
|
|
move-result v4
|
|
|
|
.line 745
|
|
aput v4, v1, v2
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iput v3, p0, Landroidx/appcompat/graphics/drawable/AnimatedStateListDrawableCompat$FrameInterpolator;->mTotalDuration:I
|
|
|
|
return v3
|
|
.end method
|