813 lines
23 KiB
Smali
813 lines
23 KiB
Smali
.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
|
|
.field private final IK:[F
|
|
|
|
.field final IL:[F
|
|
|
|
.field private IO:Z
|
|
|
|
.field private IP:F
|
|
|
|
.field private IQ:I
|
|
|
|
.field private IR:Z
|
|
|
|
.field private final IS:Landroid/graphics/Path;
|
|
|
|
.field IU:I
|
|
|
|
.field private final IV:Landroid/graphics/RectF;
|
|
|
|
.field private IW:Landroid/graphics/RectF;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private IX:Landroid/graphics/Matrix;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private IY:I
|
|
|
|
.field private final IZ:Landroid/graphics/RectF;
|
|
|
|
.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
|
|
|
|
sget p1, Lcom/facebook/drawee/drawable/m$a;->Jb:I
|
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->IU:I
|
|
|
|
new-instance p1, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
const/16 p1, 0x8
|
|
|
|
new-array v0, p1, [F
|
|
|
|
iput-object v0, p0, Lcom/facebook/drawee/drawable/m;->IK:[F
|
|
|
|
new-array p1, p1, [F
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->IL:[F
|
|
|
|
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
|
|
|
|
iput-boolean p1, p0, Lcom/facebook/drawee/drawable/m;->IO:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/facebook/drawee/drawable/m;->IP:F
|
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->IQ:I
|
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->IY:I
|
|
|
|
iput v0, p0, Lcom/facebook/drawee/drawable/m;->mPadding:F
|
|
|
|
iput-boolean p1, p0, Lcom/facebook/drawee/drawable/m;->IR:Z
|
|
|
|
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
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->IS:Landroid/graphics/Path;
|
|
|
|
new-instance p1, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private gs()V
|
|
.locals 6
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IS:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
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
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
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;
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
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
|
|
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/drawable/m;->IO:Z
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPath:Landroid/graphics/Path;
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/RectF;->centerX()F
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/RectF;->centerY()F
|
|
|
|
move-result v3
|
|
|
|
iget-object v4, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v4}, Landroid/graphics/RectF;->width()F
|
|
|
|
move-result v4
|
|
|
|
iget-object v5, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
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;
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->IK:[F
|
|
|
|
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
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
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
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
iget v2, p0, Lcom/facebook/drawee/drawable/m;->IP:F
|
|
|
|
div-float v3, v2, v1
|
|
|
|
div-float/2addr v2, v1
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/graphics/RectF;->inset(FF)V
|
|
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/drawable/m;->IO:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/RectF;->width()F
|
|
|
|
move-result v0
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
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
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IS:Landroid/graphics/Path;
|
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/RectF;->centerX()F
|
|
|
|
move-result v3
|
|
|
|
iget-object v4, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
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
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IL:[F
|
|
|
|
array-length v3, v2
|
|
|
|
if-ge v0, v3, :cond_2
|
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->IK:[F
|
|
|
|
aget v3, v3, v0
|
|
|
|
iget v4, p0, Lcom/facebook/drawee/drawable/m;->mPadding:F
|
|
|
|
add-float/2addr v3, v4
|
|
|
|
iget v4, p0, Lcom/facebook/drawee/drawable/m;->IP:F
|
|
|
|
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
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IS:Landroid/graphics/Path;
|
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
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
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IZ:Landroid/graphics/RectF;
|
|
|
|
iget v2, p0, Lcom/facebook/drawee/drawable/m;->IP:F
|
|
|
|
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
|
|
.method public final M(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->IY:I
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(IF)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->IQ:I
|
|
|
|
iput p2, p0, Lcom/facebook/drawee/drawable/m;->IP:F
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gs()V
|
|
|
|
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
|
|
|
|
iget-object p1, p0, Lcom/facebook/drawee/drawable/m;->IK:[F
|
|
|
|
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
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IK:[F
|
|
|
|
invoke-static {p1, v2, v0, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
:goto_1
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gs()V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final draw(Landroid/graphics/Canvas;)V
|
|
.locals 10
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
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
|
|
|
|
sget-object v0, Lcom/facebook/drawee/drawable/m$1;->Ja:[I
|
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->IU:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget v0, v0, v1
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto/16 :goto_2
|
|
|
|
:pswitch_0
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/drawable/m;->IR:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IW:Landroid/graphics/RectF;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroid/graphics/RectF;
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
invoke-direct {v0, v1}, Landroid/graphics/RectF;-><init>(Landroid/graphics/RectF;)V
|
|
|
|
iput-object v0, p0, Lcom/facebook/drawee/drawable/m;->IW:Landroid/graphics/RectF;
|
|
|
|
new-instance v0, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/facebook/drawee/drawable/m;->IX:Landroid/graphics/Matrix;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/RectF;->set(Landroid/graphics/RectF;)V
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IW:Landroid/graphics/RectF;
|
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->IP:F
|
|
|
|
invoke-virtual {v0, v1, v1}, Landroid/graphics/RectF;->inset(FF)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IX:Landroid/graphics/Matrix;
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IW:Landroid/graphics/RectF;
|
|
|
|
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
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->clipRect(Landroid/graphics/RectF;)Z
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/m;->IX:Landroid/graphics/Matrix;
|
|
|
|
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_1
|
|
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;
|
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->IY:I
|
|
|
|
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
|
|
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/drawable/m;->IO:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/RectF;->width()F
|
|
|
|
move-result v0
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/RectF;->height()F
|
|
|
|
move-result v2
|
|
|
|
sub-float/2addr v0, v2
|
|
|
|
iget v2, p0, Lcom/facebook/drawee/drawable/m;->IP:F
|
|
|
|
add-float/2addr v0, v2
|
|
|
|
const/high16 v2, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v0, v2
|
|
|
|
iget-object v3, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/RectF;->height()F
|
|
|
|
move-result v3
|
|
|
|
iget-object v4, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v4}, Landroid/graphics/RectF;->width()F
|
|
|
|
move-result v4
|
|
|
|
sub-float/2addr v3, v4
|
|
|
|
iget v4, p0, Lcom/facebook/drawee/drawable/m;->IP:F
|
|
|
|
add-float/2addr v3, v4
|
|
|
|
div-float/2addr v3, v2
|
|
|
|
cmpl-float v2, v0, v1
|
|
|
|
if-lez v2, :cond_2
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v5, v2, Landroid/graphics/RectF;->left:F
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v6, v2, Landroid/graphics/RectF;->top:F
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v2, v2, Landroid/graphics/RectF;->left:F
|
|
|
|
add-float v7, v2, v0
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
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
|
|
|
|
iget-object v2, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v2, v2, Landroid/graphics/RectF;->right:F
|
|
|
|
sub-float v5, v2, v0
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v6, v0, Landroid/graphics/RectF;->top:F
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v7, v0, Landroid/graphics/RectF;->right:F
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
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_2
|
|
cmpl-float v0, v3, v1
|
|
|
|
if-lez v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v5, v0, Landroid/graphics/RectF;->left:F
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v6, v0, Landroid/graphics/RectF;->top:F
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v7, v0, Landroid/graphics/RectF;->right:F
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
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
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v5, v0, Landroid/graphics/RectF;->left:F
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v0, v0, Landroid/graphics/RectF;->bottom:F
|
|
|
|
sub-float v6, v0, v3
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
iget v7, v0, Landroid/graphics/RectF;->right:F
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IV:Landroid/graphics/RectF;
|
|
|
|
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
|
|
|
|
:pswitch_1
|
|
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_3
|
|
:goto_2
|
|
iget v0, p0, Lcom/facebook/drawee/drawable/m;->IQ:I
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
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;
|
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->IQ:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->mPaint:Landroid/graphics/Paint;
|
|
|
|
iget v1, p0, Lcom/facebook/drawee/drawable/m;->IP:F
|
|
|
|
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
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IS:Landroid/graphics/Path;
|
|
|
|
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_4
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public final gq()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/m;->IK:[F
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Ljava/util/Arrays;->fill([FF)V
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gs()V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final j(F)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Lcom/facebook/drawee/drawable/m;->mPadding:F
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gs()V
|
|
|
|
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
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gs()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final x(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/facebook/drawee/drawable/m;->IO:Z
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gs()V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final y(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/facebook/drawee/drawable/m;->IR:Z
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/m;->gs()V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/m;->invalidateSelf()V
|
|
|
|
return-void
|
|
.end method
|