- 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
350 lines
8.8 KiB
Smali
350 lines
8.8 KiB
Smali
.class public final Landroidx/core/graphics/drawable/DrawableKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nDrawable.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Drawable.kt\nandroidx/core/graphics/drawable/DrawableKt\n+ 2 Rect.kt\nandroidx/core/graphics/RectKt\n*L\n1#1,118:1\n37#2,31:119\n*S KotlinDebug\n*F\n+ 1 Drawable.kt\nandroidx/core/graphics/drawable/DrawableKt\n*L\n66#1:119,31\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final toBitmap(Landroid/graphics/drawable/Drawable;IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
.locals 5
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 51
|
|
instance-of v0, p0, Landroid/graphics/drawable/BitmapDrawable;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 52
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Landroid/graphics/drawable/BitmapDrawable;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 56
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/Bitmap;->getConfig()Landroid/graphics/Bitmap$Config;
|
|
|
|
move-result-object v1
|
|
|
|
if-ne v1, p3, :cond_3
|
|
|
|
.line 59
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result p0
|
|
|
|
if-ne p1, p0, :cond_1
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result p0
|
|
|
|
if-ne p2, p0, :cond_1
|
|
|
|
.line 60
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 62
|
|
:cond_1
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 p3, 0x1
|
|
|
|
invoke-static {p0, p1, p2, p3}, Landroid/graphics/Bitmap;->createScaledBitmap(Landroid/graphics/Bitmap;IIZ)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 54
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "bitmap is null"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
.line 66
|
|
:cond_3
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
.line 37
|
|
iget v1, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
.line 47
|
|
iget v2, v0, Landroid/graphics/Rect;->top:I
|
|
|
|
.line 57
|
|
iget v3, v0, Landroid/graphics/Rect;->right:I
|
|
|
|
.line 67
|
|
iget v0, v0, Landroid/graphics/Rect;->bottom:I
|
|
|
|
if-nez p3, :cond_4
|
|
|
|
.line 68
|
|
sget-object p3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
|
|
|
|
:cond_4
|
|
invoke-static {p1, p2, p3}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 69
|
|
invoke-virtual {p0, v4, v4, p1, p2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
.line 70
|
|
new-instance p1, Landroid/graphics/Canvas;
|
|
|
|
invoke-direct {p1, p3}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
|
|
|
|
invoke-virtual {p0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 72
|
|
invoke-virtual {p0, v1, v2, v3, v0}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
return-object p3
|
|
.end method
|
|
|
|
.method public static synthetic toBitmap$default(Landroid/graphics/drawable/Drawable;IILandroid/graphics/Bitmap$Config;ILjava/lang/Object;)Landroid/graphics/Bitmap;
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x1
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
.line 47
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
move-result p1
|
|
|
|
:cond_0
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
.line 48
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
move-result p2
|
|
|
|
:cond_1
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_2
|
|
|
|
const/4 p3, 0x0
|
|
|
|
.line 46
|
|
:cond_2
|
|
invoke-static {p0, p1, p2, p3}, Landroidx/core/graphics/drawable/DrawableKt;->toBitmap(Landroid/graphics/drawable/Drawable;IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toBitmapOrNull(Landroid/graphics/drawable/Drawable;IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 98
|
|
instance-of v0, p0, Landroid/graphics/drawable/BitmapDrawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Landroid/graphics/drawable/BitmapDrawable;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 101
|
|
:cond_0
|
|
invoke-static {p0, p1, p2, p3}, Landroidx/core/graphics/drawable/DrawableKt;->toBitmap(Landroid/graphics/drawable/Drawable;IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic toBitmapOrNull$default(Landroid/graphics/drawable/Drawable;IILandroid/graphics/Bitmap$Config;ILjava/lang/Object;)Landroid/graphics/Bitmap;
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x1
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
.line 94
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
move-result p1
|
|
|
|
:cond_0
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
.line 95
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
move-result p2
|
|
|
|
:cond_1
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
if-eqz p4, :cond_2
|
|
|
|
const/4 p3, 0x0
|
|
|
|
.line 93
|
|
:cond_2
|
|
invoke-static {p0, p1, p2, p3}, Landroidx/core/graphics/drawable/DrawableKt;->toBitmapOrNull(Landroid/graphics/drawable/Drawable;IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final updateBounds(Landroid/graphics/drawable/Drawable;IIII)V
|
|
.locals 0
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 116
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic updateBounds$default(Landroid/graphics/drawable/Drawable;IIIIILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p6, p5, 0x1
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
.line 111
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object p1
|
|
|
|
iget p1, p1, Landroid/graphics/Rect;->left:I
|
|
|
|
:cond_0
|
|
and-int/lit8 p6, p5, 0x2
|
|
|
|
if-eqz p6, :cond_1
|
|
|
|
.line 112
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object p2
|
|
|
|
iget p2, p2, Landroid/graphics/Rect;->top:I
|
|
|
|
:cond_1
|
|
and-int/lit8 p6, p5, 0x4
|
|
|
|
if-eqz p6, :cond_2
|
|
|
|
.line 113
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object p3
|
|
|
|
iget p3, p3, Landroid/graphics/Rect;->right:I
|
|
|
|
:cond_2
|
|
and-int/lit8 p5, p5, 0x8
|
|
|
|
if-eqz p5, :cond_3
|
|
|
|
.line 114
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object p4
|
|
|
|
iget p4, p4, Landroid/graphics/Rect;->bottom:I
|
|
|
|
.line 110
|
|
:cond_3
|
|
invoke-static {p0, p1, p2, p3, p4}, Landroidx/core/graphics/drawable/DrawableKt;->updateBounds(Landroid/graphics/drawable/Drawable;IIII)V
|
|
|
|
return-void
|
|
.end method
|