937 lines
24 KiB
Smali
937 lines
24 KiB
Smali
.class public Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;
|
|
.super Landroid/graphics/drawable/Drawable;
|
|
.source "DrawerArrowDrawable.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable$ArrowDirection;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final ARROW_DIRECTION_END:I = 0x3
|
|
|
|
.field public static final ARROW_DIRECTION_LEFT:I = 0x0
|
|
|
|
.field public static final ARROW_DIRECTION_RIGHT:I = 0x1
|
|
|
|
.field public static final ARROW_DIRECTION_START:I = 0x2
|
|
|
|
.field private static final ARROW_HEAD_ANGLE:F
|
|
|
|
|
|
# instance fields
|
|
.field private mArrowHeadLength:F
|
|
|
|
.field private mArrowShaftLength:F
|
|
|
|
.field private mBarGap:F
|
|
|
|
.field private mBarLength:F
|
|
|
|
.field private mDirection:I
|
|
|
|
.field private mMaxCutForBarSize:F
|
|
|
|
.field private final mPaint:Landroid/graphics/Paint;
|
|
|
|
.field private final mPath:Landroid/graphics/Path;
|
|
|
|
.field private mProgress:F
|
|
|
|
.field private final mSize:I
|
|
|
|
.field private mSpin:Z
|
|
|
|
.field private mVerticalMirror:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const-wide v0, 0x4046800000000000L # 45.0
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->toRadians(D)D
|
|
|
|
move-result-wide v0
|
|
|
|
double-to-float v0, v0
|
|
|
|
sput v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->ARROW_HEAD_ANGLE:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 6
|
|
|
|
invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V
|
|
|
|
new-instance v0, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
new-instance v0, Landroid/graphics/Path;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mVerticalMirror:Z
|
|
|
|
const/4 v1, 0x2
|
|
|
|
iput v1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mDirection:I
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
sget-object v2, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
sget-object v2, Landroid/graphics/Paint$Join;->MITER:Landroid/graphics/Paint$Join;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setStrokeJoin(Landroid/graphics/Paint$Join;)V
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
sget-object v2, Landroid/graphics/Paint$Cap;->BUTT:Landroid/graphics/Paint$Cap;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Landroidx/appcompat/R$styleable;->DrawerArrowToggle:[I
|
|
|
|
sget v3, Landroidx/appcompat/R$attr;->drawerArrowStyle:I
|
|
|
|
sget v4, Landroidx/appcompat/R$style;->Base_Widget_AppCompat_DrawerArrowToggle:I
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-virtual {p1, v5, v1, v3, v4}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
sget v1, Landroidx/appcompat/R$styleable;->DrawerArrowToggle_color:I
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/res/TypedArray;->getColor(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->setColor(I)V
|
|
|
|
sget v1, Landroidx/appcompat/R$styleable;->DrawerArrowToggle_thickness:I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {p1, v1, v3}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->setBarThickness(F)V
|
|
|
|
sget v1, Landroidx/appcompat/R$styleable;->DrawerArrowToggle_spinBars:I
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->setSpinEnabled(Z)V
|
|
|
|
sget v1, Landroidx/appcompat/R$styleable;->DrawerArrowToggle_gapBetweenBars:I
|
|
|
|
invoke-virtual {p1, v1, v3}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->setGapSize(F)V
|
|
|
|
sget v1, Landroidx/appcompat/R$styleable;->DrawerArrowToggle_drawableSize:I
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mSize:I
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->DrawerArrowToggle_barLength:I
|
|
|
|
invoke-virtual {p1, v0, v3}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
iput v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarLength:F
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->DrawerArrowToggle_arrowHeadLength:I
|
|
|
|
invoke-virtual {p1, v0, v3}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
iput v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowHeadLength:F
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->DrawerArrowToggle_arrowShaftLength:I
|
|
|
|
invoke-virtual {p1, v0, v3}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowShaftLength:F
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static lerp(FFF)F
|
|
.locals 0
|
|
|
|
sub-float/2addr p1, p0
|
|
|
|
mul-float p1, p1, p2
|
|
|
|
add-float/2addr p0, p1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public draw(Landroid/graphics/Canvas;)V
|
|
.locals 18
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mDirection:I
|
|
|
|
const/4 v4, 0x3
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
packed-switch v3, :pswitch_data_0
|
|
|
|
invoke-static/range {p0 .. p0}, Landroidx/core/graphics/drawable/DrawableCompat;->getLayoutDirection(Landroid/graphics/drawable/Drawable;)I
|
|
|
|
move-result v3
|
|
|
|
if-ne v3, v6, :cond_1
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static/range {p0 .. p0}, Landroidx/core/graphics/drawable/DrawableCompat;->getLayoutDirection(Landroid/graphics/drawable/Drawable;)I
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
const/4 v5, 0x1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
:pswitch_1
|
|
iget v3, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowHeadLength:F
|
|
|
|
mul-float v3, v3, v3
|
|
|
|
const/high16 v4, 0x40000000 # 2.0f
|
|
|
|
mul-float v3, v3, v4
|
|
|
|
float-to-double v7, v3
|
|
|
|
invoke-static {v7, v8}, Ljava/lang/Math;->sqrt(D)D
|
|
|
|
move-result-wide v7
|
|
|
|
double-to-float v3, v7
|
|
|
|
iget v7, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarLength:F
|
|
|
|
iget v8, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mProgress:F
|
|
|
|
invoke-static {v7, v3, v8}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->lerp(FFF)F
|
|
|
|
move-result v3
|
|
|
|
iget v7, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarLength:F
|
|
|
|
iget v8, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowShaftLength:F
|
|
|
|
iget v9, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mProgress:F
|
|
|
|
invoke-static {v7, v8, v9}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->lerp(FFF)F
|
|
|
|
move-result v7
|
|
|
|
iget v8, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mMaxCutForBarSize:F
|
|
|
|
iget v9, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mProgress:F
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-static {v10, v8, v9}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->lerp(FFF)F
|
|
|
|
move-result v8
|
|
|
|
invoke-static {v8}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v8
|
|
|
|
int-to-float v8, v8
|
|
|
|
sget v9, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->ARROW_HEAD_ANGLE:F
|
|
|
|
iget v11, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mProgress:F
|
|
|
|
invoke-static {v10, v9, v11}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->lerp(FFF)F
|
|
|
|
move-result v9
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
const/4 v11, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/high16 v11, -0x3ccc0000 # -180.0f
|
|
|
|
:goto_1
|
|
const/high16 v12, 0x43340000 # 180.0f
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
const/high16 v13, 0x43340000 # 180.0f
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 v13, 0x0
|
|
|
|
:goto_2
|
|
iget v14, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mProgress:F
|
|
|
|
invoke-static {v11, v13, v14}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->lerp(FFF)F
|
|
|
|
move-result v11
|
|
|
|
float-to-double v13, v3
|
|
|
|
move v15, v11
|
|
|
|
float-to-double v10, v9
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Math;->cos(D)D
|
|
|
|
move-result-wide v16
|
|
|
|
invoke-static {v13, v14}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
mul-double v16, v16, v13
|
|
|
|
invoke-static/range {v16 .. v17}, Ljava/lang/Math;->round(D)J
|
|
|
|
move-result-wide v3
|
|
|
|
long-to-float v3, v3
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Math;->sin(D)D
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-static {v13, v14}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
mul-double v13, v13, v10
|
|
|
|
invoke-static {v13, v14}, Ljava/lang/Math;->round(D)J
|
|
|
|
move-result-wide v10
|
|
|
|
long-to-float v4, v10
|
|
|
|
iget-object v10, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v10}, Landroid/graphics/Path;->rewind()V
|
|
|
|
iget v10, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarGap:F
|
|
|
|
iget-object v11, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v11}, Landroid/graphics/Paint;->getStrokeWidth()F
|
|
|
|
move-result v11
|
|
|
|
add-float/2addr v10, v11
|
|
|
|
iget v11, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mMaxCutForBarSize:F
|
|
|
|
neg-float v11, v11
|
|
|
|
iget v13, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mProgress:F
|
|
|
|
invoke-static {v10, v11, v13}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->lerp(FFF)F
|
|
|
|
move-result v10
|
|
|
|
neg-float v11, v7
|
|
|
|
const/high16 v9, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v11, v9
|
|
|
|
iget-object v13, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
add-float v14, v11, v8
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-virtual {v13, v14, v6}, Landroid/graphics/Path;->moveTo(FF)V
|
|
|
|
iget-object v13, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
mul-float v8, v8, v9
|
|
|
|
sub-float/2addr v7, v8
|
|
|
|
invoke-virtual {v13, v7, v6}, Landroid/graphics/Path;->rLineTo(FF)V
|
|
|
|
iget-object v6, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v6, v11, v10}, Landroid/graphics/Path;->moveTo(FF)V
|
|
|
|
iget-object v6, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v6, v3, v4}, Landroid/graphics/Path;->rLineTo(FF)V
|
|
|
|
iget-object v6, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
neg-float v7, v10
|
|
|
|
invoke-virtual {v6, v11, v7}, Landroid/graphics/Path;->moveTo(FF)V
|
|
|
|
iget-object v6, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
neg-float v4, v4
|
|
|
|
invoke-virtual {v6, v3, v4}, Landroid/graphics/Path;->rLineTo(FF)V
|
|
|
|
iget-object v3, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/Path;->close()V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
iget-object v3, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/Paint;->getStrokeWidth()F
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result v4
|
|
|
|
int-to-float v4, v4
|
|
|
|
const/high16 v6, 0x40400000 # 3.0f
|
|
|
|
mul-float v6, v6, v3
|
|
|
|
sub-float/2addr v4, v6
|
|
|
|
iget v6, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarGap:F
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
mul-float v7, v7, v6
|
|
|
|
sub-float/2addr v4, v7
|
|
|
|
float-to-int v4, v4
|
|
|
|
div-int/lit8 v4, v4, 0x4
|
|
|
|
mul-int/lit8 v4, v4, 0x2
|
|
|
|
int-to-float v4, v4
|
|
|
|
const/high16 v7, 0x3fc00000 # 1.5f
|
|
|
|
mul-float v3, v3, v7
|
|
|
|
add-float/2addr v3, v6
|
|
|
|
add-float/2addr v4, v3
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/Rect;->centerX()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {v1, v2, v4}, Landroid/graphics/Canvas;->translate(FF)V
|
|
|
|
iget-boolean v2, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mSpin:Z
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
iget-boolean v2, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mVerticalMirror:Z
|
|
|
|
xor-int/2addr v2, v5
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
const/4 v6, -0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
const/4 v6, 0x1
|
|
|
|
:goto_3
|
|
int-to-float v2, v6
|
|
|
|
mul-float v11, v15, v2
|
|
|
|
invoke-virtual {v1, v11}, Landroid/graphics/Canvas;->rotate(F)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
if-eqz v5, :cond_6
|
|
|
|
invoke-virtual {v1, v12}, Landroid/graphics/Canvas;->rotate(F)V
|
|
|
|
:cond_6
|
|
:goto_4
|
|
iget-object v2, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPath:Landroid/graphics/Path;
|
|
|
|
iget-object v3, v0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public getArrowHeadLength()F
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowHeadLength:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getArrowShaftLength()F
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowShaftLength:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getBarLength()F
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarLength:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getBarThickness()F
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Paint;->getStrokeWidth()F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getColor()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Paint;->getColor()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getDirection()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mDirection:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getGapSize()F
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarGap:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIntrinsicHeight()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mSize:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIntrinsicWidth()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mSize:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getOpacity()I
|
|
.locals 1
|
|
|
|
const/4 v0, -0x3
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getPaint()Landroid/graphics/Paint;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getProgress()F
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
from = 0.0
|
|
to = 1.0
|
|
.end annotation
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mProgress:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isSpinEnabled()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mSpin:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public setAlpha(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Paint;->getAlpha()I
|
|
|
|
move-result v0
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setAlpha(I)V
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setArrowHeadLength(F)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowHeadLength:F
|
|
|
|
cmpl-float v0, v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput p1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowHeadLength:F
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setArrowShaftLength(F)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowShaftLength:F
|
|
|
|
cmpl-float v0, v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput p1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mArrowShaftLength:F
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBarLength(F)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarLength:F
|
|
|
|
cmpl-float v0, v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput p1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarLength:F
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBarThickness(F)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Paint;->getStrokeWidth()F
|
|
|
|
move-result v0
|
|
|
|
cmpl-float v0, v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr p1, v0
|
|
|
|
float-to-double v0, p1
|
|
|
|
sget p1, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->ARROW_HEAD_ANGLE:F
|
|
|
|
float-to-double v2, p1
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->cos(D)D
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
mul-double v0, v0, v2
|
|
|
|
double-to-float p1, v0
|
|
|
|
iput p1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mMaxCutForBarSize:F
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setColor(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Paint;->getColor()I
|
|
|
|
move-result v0
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mPaint:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDirection(I)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mDirection:I
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
iput p1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mDirection:I
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setGapSize(F)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarGap:F
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput p1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mBarGap:F
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProgress(F)V
|
|
.locals 1
|
|
.param p1 # F
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
from = 0.0
|
|
to = 1.0
|
|
.end annotation
|
|
.end param
|
|
|
|
iget v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mProgress:F
|
|
|
|
cmpl-float v0, v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput p1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mProgress:F
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSpinEnabled(Z)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mSpin:Z
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-boolean p1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mSpin:Z
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVerticalMirror(Z)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mVerticalMirror:Z
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput-boolean p1, p0, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->mVerticalMirror:Z
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/graphics/drawable/DrawerArrowDrawable;->invalidateSelf()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|