Files
rr3-apk/smali/androidx/appcompat/widget/DrawableUtils.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- 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
2026-02-18 16:13:44 -08:00

279 lines
6.8 KiB
Smali

.class public Landroidx/appcompat/widget/DrawableUtils;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/appcompat/widget/DrawableUtils$Api29Impl;,
Landroidx/appcompat/widget/DrawableUtils$Api18Impl;
}
.end annotation
# static fields
.field private static final CHECKED_STATE_SET:[I
.field private static final EMPTY_STATE_SET:[I
.field public static final INSETS_NONE:Landroid/graphics/Rect;
# direct methods
.method static constructor <clinit>()V
.locals 1
const v0, 0x10100a0
filled-new-array {v0}, [I
move-result-object v0
sput-object v0, Landroidx/appcompat/widget/DrawableUtils;->CHECKED_STATE_SET:[I
const/4 v0, 0x0
new-array v0, v0, [I
sput-object v0, Landroidx/appcompat/widget/DrawableUtils;->EMPTY_STATE_SET:[I
.line 45
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
sput-object v0, Landroidx/appcompat/widget/DrawableUtils;->INSETS_NONE:Landroid/graphics/Rect;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 47
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static canSafelyMutateDrawable(Landroid/graphics/drawable/Drawable;)Z
.locals 0
.param p0 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 p0, 0x1
return p0
.end method
.method public static fixDrawable(Landroid/graphics/drawable/Drawable;)V
.locals 3
.param p0 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 76
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x1d
if-lt v1, v2, :cond_0
const/16 v2, 0x1f
if-ge v1, v2, :cond_0
const-string v1, "android.graphics.drawable.ColorStateListDrawable"
.line 83
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
.line 86
invoke-static {p0}, Landroidx/appcompat/widget/DrawableUtils;->forceDrawableStateChange(Landroid/graphics/drawable/Drawable;)V
:cond_0
return-void
.end method
.method private static forceDrawableStateChange(Landroid/graphics/drawable/Drawable;)V
.locals 2
.line 105
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
move-result-object v0
if-eqz v0, :cond_1
.line 106
array-length v1, v0
if-nez v1, :cond_0
goto :goto_0
:cond_0
sget-object v1, Landroidx/appcompat/widget/DrawableUtils;->EMPTY_STATE_SET:[I
.line 111
invoke-virtual {p0, v1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
goto :goto_1
:cond_1
:goto_0
sget-object v1, Landroidx/appcompat/widget/DrawableUtils;->CHECKED_STATE_SET:[I
.line 108
invoke-virtual {p0, v1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
.line 114
:goto_1
invoke-virtual {p0, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
return-void
.end method
.method public static getOpticalBounds(Landroid/graphics/drawable/Drawable;)Landroid/graphics/Rect;
.locals 4
.param p0 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1d
if-lt v0, v1, :cond_0
.line 58
invoke-static {p0}, Landroidx/appcompat/widget/DrawableUtils$Api29Impl;->getOpticalInsets(Landroid/graphics/drawable/Drawable;)Landroid/graphics/Insets;
move-result-object p0
.line 59
new-instance v0, Landroid/graphics/Rect;
invoke-static {p0}, Landroidx/appcompat/widget/DrawableUtils$$ExternalSyntheticApiModelOutline0;->m(Landroid/graphics/Insets;)I
move-result v1
invoke-static {p0}, Landroidx/appcompat/widget/DrawableUtils$$ExternalSyntheticApiModelOutline1;->m(Landroid/graphics/Insets;)I
move-result v2
invoke-static {p0}, Landroidx/appcompat/widget/DrawableUtils$$ExternalSyntheticApiModelOutline2;->m(Landroid/graphics/Insets;)I
move-result v3
invoke-static {p0}, Landroidx/appcompat/widget/DrawableUtils$$ExternalSyntheticApiModelOutline3;->m(Landroid/graphics/Insets;)I
move-result p0
invoke-direct {v0, v1, v2, v3, p0}, Landroid/graphics/Rect;-><init>(IIII)V
return-object v0
.line 66
:cond_0
invoke-static {p0}, Landroidx/core/graphics/drawable/DrawableCompat;->unwrap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
move-result-object p0
invoke-static {p0}, Landroidx/appcompat/widget/DrawableUtils$Api18Impl;->getOpticalInsets(Landroid/graphics/drawable/Drawable;)Landroid/graphics/Rect;
move-result-object p0
return-object p0
.end method
.method public static parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
.locals 1
const/4 v0, 0x3
if-eq p0, v0, :cond_2
const/4 v0, 0x5
if-eq p0, v0, :cond_1
const/16 v0, 0x9
if-eq p0, v0, :cond_0
packed-switch p0, :pswitch_data_0
return-object p1
.line 133
:pswitch_0
sget-object p0, Landroid/graphics/PorterDuff$Mode;->ADD:Landroid/graphics/PorterDuff$Mode;
return-object p0
.line 131
:pswitch_1
sget-object p0, Landroid/graphics/PorterDuff$Mode;->SCREEN:Landroid/graphics/PorterDuff$Mode;
return-object p0
.line 129
:pswitch_2
sget-object p0, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
return-object p0
.line 127
:cond_0
sget-object p0, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;
return-object p0
.line 125
:cond_1
sget-object p0, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
return-object p0
.line 123
:cond_2
sget-object p0, Landroid/graphics/PorterDuff$Mode;->SRC_OVER:Landroid/graphics/PorterDuff$Mode;
return-object p0
:pswitch_data_0
.packed-switch 0xe
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method