2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/facebook/drawee/drawable/m;
|
|
|
|
.super Lcom/facebook/drawee/drawable/g;
|
|
|
|
.source "RoundedCornersDrawable.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/facebook/drawee/drawable/j;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/facebook/drawee/drawable/m$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private final LJ:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field final LK:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private LM:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private LO:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private LP:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private final LQ:Landroid/graphics/Path;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field LS:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private final LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private LV:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private LW:Landroid/graphics/Matrix;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private LX:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private final LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
.field private mPadding:F
|
|
|
|
|
|
|
|
.field final mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
.field private final mPath:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/drawee/drawable/g;-><init>(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
sget p1, Lcom/facebook/drawee/drawable/m$a;->Ma:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->LS:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/RectF;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/16 p1, 0x8
|
|
|
|
|
|
|
|
new-array v0, p1, [F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-object v0, p0, Lcom/facebook/drawee/drawable/m;->LJ:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-array p1, p1, [F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->LK:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Landroid/graphics/Paint;-><init>(I)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-boolean p1, p0, Lcom/facebook/drawee/drawable/m;->LM:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput v0, p0, Lcom/facebook/drawee/drawable/m;->LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->LO:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->LX:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput v0, p0, Lcom/facebook/drawee/drawable/m;->mPadding:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-boolean p1, p0, Lcom/facebook/drawee/drawable/m;->LP:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/Path;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Path;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/Path;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Path;-><init>()V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->LQ:Landroid/graphics/Path;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance p1, Landroid/graphics/RectF;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.method private gK()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 6
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LQ:Landroid/graphics/Path;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->getBounds()Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->mPadding:F
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v1}, Landroid/graphics/RectF;->inset(FF)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v2, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->addRect(Landroid/graphics/RectF;Landroid/graphics/Path$Direction;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/drawable/m;->LM:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/RectF;->centerX()F
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/RectF;->centerY()F
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v4, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/graphics/RectF;->width()F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v5, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5}, Landroid/graphics/RectF;->height()F
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/Math;->min(FF)F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
div-float/2addr v4, v1
|
|
|
|
|
|
|
|
sget-object v5, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v3, v4, v5}, Landroid/graphics/Path;->addCircle(FFFLandroid/graphics/Path$Direction;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->LJ:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v4, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v3, v4}, Landroid/graphics/Path;->addRoundRect(Landroid/graphics/RectF;[FLandroid/graphics/Path$Direction;)V
|
|
|
|
|
|
|
|
:goto_0
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v2, p0, Lcom/facebook/drawee/drawable/m;->mPadding:F
|
|
|
|
|
|
|
|
neg-float v3, v2
|
|
|
|
|
|
|
|
neg-float v2, v2
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/graphics/RectF;->inset(FF)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v2, p0, Lcom/facebook/drawee/drawable/m;->LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
div-float v3, v2, v1
|
|
|
|
|
|
|
|
div-float/2addr v2, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/graphics/RectF;->inset(FF)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/drawable/m;->LM:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/RectF;->width()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/RectF;->height()F
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-static {v0, v2}, Ljava/lang/Math;->min(FF)F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
div-float/2addr v0, v1
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LQ:Landroid/graphics/Path;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/RectF;->centerX()F
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v4, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/graphics/RectF;->centerY()F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
sget-object v5, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3, v4, v0, v5}, Landroid/graphics/Path;->addCircle(FFFLandroid/graphics/Path$Direction;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LK:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
array-length v3, v2
|
|
|
|
|
|
|
|
if-ge v0, v3, :cond_2
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->LJ:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
aget v3, v3, v0
|
|
|
|
|
|
|
|
iget v4, p0, Lcom/facebook/drawee/drawable/m;->mPadding:F
|
|
|
|
|
|
|
|
add-float/2addr v3, v4
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v4, p0, Lcom/facebook/drawee/drawable/m;->LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
div-float/2addr v4, v1
|
|
|
|
|
|
|
|
sub-float/2addr v3, v4
|
|
|
|
|
|
|
|
aput v3, v2, v0
|
|
|
|
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LQ:Landroid/graphics/Path;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v4, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v2, v4}, Landroid/graphics/Path;->addRoundRect(Landroid/graphics/RectF;[FLandroid/graphics/Path$Direction;)V
|
|
|
|
|
|
|
|
:goto_2
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LY:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v2, p0, Lcom/facebook/drawee/drawable/m;->LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
neg-float v3, v2
|
|
|
|
|
|
|
|
div-float/2addr v3, v1
|
|
|
|
|
|
|
|
neg-float v2, v2
|
|
|
|
|
|
|
|
div-float/2addr v2, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/graphics/RectF;->inset(FF)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-07-25 02:21:43 +00:00
|
|
|
.method public final R(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->LX:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(IF)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->LO:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput p2, p0, Lcom/facebook/drawee/drawable/m;->LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gK()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a([F)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object p1, p0, Lcom/facebook/drawee/drawable/m;->LJ:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Ljava/util/Arrays;->fill([FF)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
array-length v0, p1
|
|
|
|
|
|
|
|
const/16 v1, 0x8
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const-string v3, "radii should have exactly 8 values"
|
|
|
|
|
|
|
|
invoke-static {v0, v3}, Lcom/facebook/common/d/i;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LJ:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v2, v0, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
|
|
|
|
:goto_1
|
2019-07-27 00:12:07 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gK()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final draw(Landroid/graphics/Canvas;)V
|
|
|
|
.locals 10
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->getBounds()Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
sget-object v0, Lcom/facebook/drawee/drawable/m$1;->LZ:[I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->LS:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
|
|
|
|
aget v0, v0, v1
|
|
|
|
|
|
|
|
if-eq v0, v2, :cond_4
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/drawable/m;->LP:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LV:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
new-instance v0, Landroid/graphics/RectF;
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Landroid/graphics/RectF;-><init>(Landroid/graphics/RectF;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-object v0, p0, Lcom/facebook/drawee/drawable/m;->LV:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Landroid/graphics/Matrix;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-object v0, p0, Lcom/facebook/drawee/drawable/m;->LW:Landroid/graphics/Matrix;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/RectF;->set(Landroid/graphics/RectF;)V
|
|
|
|
|
|
|
|
:goto_0
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LV:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v1}, Landroid/graphics/RectF;->inset(FF)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LW:Landroid/graphics/Matrix;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LV:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v3, Landroid/graphics/Matrix$ScaleToFit;->FILL:Landroid/graphics/Matrix$ScaleToFit;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Matrix;->setRectToRect(Landroid/graphics/RectF;Landroid/graphics/RectF;Landroid/graphics/Matrix$ScaleToFit;)Z
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->clipRect(Landroid/graphics/RectF;)Z
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->LW:Landroid/graphics/Matrix;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->concat(Landroid/graphics/Matrix;)V
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/facebook/drawee/drawable/g;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-super {p0, p1}, Lcom/facebook/drawee/drawable/g;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->LX:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
sget-object v2, Landroid/graphics/Path$FillType;->EVEN_ODD:Landroid/graphics/Path$FillType;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Path;->setFillType(Landroid/graphics/Path$FillType;)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0, v2}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/drawable/m;->LM:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/RectF;->width()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/RectF;->height()F
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
sub-float/2addr v0, v2
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v2, p0, Lcom/facebook/drawee/drawable/m;->LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-float/2addr v0, v2
|
|
|
|
|
|
|
|
const/high16 v2, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
div-float/2addr v0, v2
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/RectF;->height()F
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v4, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/graphics/RectF;->width()F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
sub-float/2addr v3, v4
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v4, p0, Lcom/facebook/drawee/drawable/m;->LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-float/2addr v3, v4
|
|
|
|
|
|
|
|
div-float/2addr v3, v2
|
|
|
|
|
|
|
|
cmpl-float v2, v0, v1
|
|
|
|
|
|
|
|
if-lez v2, :cond_3
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v5, v2, Landroid/graphics/RectF;->left:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v6, v2, Landroid/graphics/RectF;->top:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v2, v2, Landroid/graphics/RectF;->left:F
|
|
|
|
|
|
|
|
add-float v7, v2, v0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v8, v2, Landroid/graphics/RectF;->bottom:F
|
|
|
|
|
|
|
|
iget-object v9, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
move-object v4, p1
|
|
|
|
|
|
|
|
invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v2, v2, Landroid/graphics/RectF;->right:F
|
|
|
|
|
|
|
|
sub-float v5, v2, v0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v6, v0, Landroid/graphics/RectF;->top:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v7, v0, Landroid/graphics/RectF;->right:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v8, v0, Landroid/graphics/RectF;->bottom:F
|
|
|
|
|
|
|
|
iget-object v9, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
cmpl-float v0, v3, v1
|
|
|
|
|
|
|
|
if-lez v0, :cond_5
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v5, v0, Landroid/graphics/RectF;->left:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v6, v0, Landroid/graphics/RectF;->top:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v7, v0, Landroid/graphics/RectF;->right:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v0, v0, Landroid/graphics/RectF;->top:F
|
|
|
|
|
|
|
|
add-float v8, v0, v3
|
|
|
|
|
|
|
|
iget-object v9, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
move-object v4, p1
|
|
|
|
|
|
|
|
invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v5, v0, Landroid/graphics/RectF;->left:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v0, v0, Landroid/graphics/RectF;->bottom:F
|
|
|
|
|
|
|
|
sub-float v6, v0, v3
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v7, v0, Landroid/graphics/RectF;->right:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LU:Landroid/graphics/RectF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v8, v0, Landroid/graphics/RectF;->bottom:F
|
|
|
|
|
|
|
|
iget-object v9, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
sget-object v2, Landroid/graphics/Path$FillType;->EVEN_ODD:Landroid/graphics/Path$FillType;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/graphics/Path;->setFillType(Landroid/graphics/Path$FillType;)V
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;)Z
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/facebook/drawee/drawable/g;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_2
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v0, p0, Lcom/facebook/drawee/drawable/m;->LO:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->LO:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->LN:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
|
|
|
|
sget-object v1, Landroid/graphics/Path$FillType;->EVEN_ODD:Landroid/graphics/Path$FillType;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Path;->setFillType(Landroid/graphics/Path$FillType;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LQ:Landroid/graphics/Path;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.method public final gI()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->LJ:[F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/util/Arrays;->fill([FF)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gK()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final k(F)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->mPadding:F
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gK()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected final onBoundsChange(Landroid/graphics/Rect;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/facebook/drawee/drawable/g;->onBoundsChange(Landroid/graphics/Rect;)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gK()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.method public final x(Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-boolean p1, p0, Lcom/facebook/drawee/drawable/m;->LM:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gK()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
.method public final y(Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iput-boolean p1, p0, Lcom/facebook/drawee/drawable/m;->LP:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gK()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|