changed repo structure
This commit is contained in:
@@ -0,0 +1,254 @@
|
||||
.class public Landroidx/appcompat/widget/DrawableUtils;
|
||||
.super Ljava/lang/Object;
|
||||
.source "DrawableUtils.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.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
|
||||
|
||||
.line 50
|
||||
filled-new-array {v0}, [I
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Landroidx/appcompat/widget/DrawableUtils;->CHECKED_STATE_SET:[I
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 51
|
||||
new-array v0, v0, [I
|
||||
|
||||
sput-object v0, Landroidx/appcompat/widget/DrawableUtils;->EMPTY_STATE_SET:[I
|
||||
|
||||
.line 53
|
||||
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 55
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static canSafelyMutateDrawable(Landroid/graphics/drawable/Drawable;)Z
|
||||
.locals 0
|
||||
|
||||
const/4 p0, 0x1
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method static fixDrawable(Landroid/graphics/drawable/Drawable;)V
|
||||
.locals 3
|
||||
|
||||
.line 88
|
||||
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
|
||||
|
||||
.line 94
|
||||
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v2, 0x1d
|
||||
|
||||
if-lt v1, v2, :cond_0
|
||||
|
||||
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v2, 0x1f
|
||||
|
||||
if-ge v1, v2, :cond_0
|
||||
|
||||
const-string v1, "android.graphics.drawable.ColorStateListDrawable"
|
||||
|
||||
.line 95
|
||||
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 98
|
||||
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 149
|
||||
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getState()[I
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
.line 150
|
||||
array-length v1, v0
|
||||
|
||||
if-nez v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 155
|
||||
:cond_0
|
||||
sget-object v1, Landroidx/appcompat/widget/DrawableUtils;->EMPTY_STATE_SET:[I
|
||||
|
||||
invoke-virtual {p0, v1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 152
|
||||
:cond_1
|
||||
:goto_0
|
||||
sget-object v1, Landroidx/appcompat/widget/DrawableUtils;->CHECKED_STATE_SET:[I
|
||||
|
||||
invoke-virtual {p0, v1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
||||
|
||||
.line 158
|
||||
: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
|
||||
|
||||
.line 65
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x1d
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
.line 66
|
||||
invoke-static {p0}, Landroidx/appcompat/widget/DrawableUtils$Api29Impl;->getOpticalInsets(Landroid/graphics/drawable/Drawable;)Landroid/graphics/Insets;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
.line 67
|
||||
new-instance v0, Landroid/graphics/Rect;
|
||||
|
||||
iget v1, p0, Landroid/graphics/Insets;->left:I
|
||||
|
||||
iget v2, p0, Landroid/graphics/Insets;->top:I
|
||||
|
||||
iget v3, p0, Landroid/graphics/Insets;->right:I
|
||||
|
||||
iget p0, p0, Landroid/graphics/Insets;->bottom:I
|
||||
|
||||
invoke-direct {v0, v1, v2, v3, p0}, Landroid/graphics/Rect;-><init>(IIII)V
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 74
|
||||
: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 177
|
||||
:pswitch_0
|
||||
sget-object p0, Landroid/graphics/PorterDuff$Mode;->ADD:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
return-object p0
|
||||
|
||||
.line 175
|
||||
:pswitch_1
|
||||
sget-object p0, Landroid/graphics/PorterDuff$Mode;->SCREEN:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
return-object p0
|
||||
|
||||
.line 173
|
||||
:pswitch_2
|
||||
sget-object p0, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
return-object p0
|
||||
|
||||
.line 171
|
||||
:cond_0
|
||||
sget-object p0, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
return-object p0
|
||||
|
||||
.line 169
|
||||
:cond_1
|
||||
sget-object p0, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
||||
|
||||
return-object p0
|
||||
|
||||
.line 167
|
||||
: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
|
||||
Reference in New Issue
Block a user