442 lines
9.2 KiB
Smali
442 lines
9.2 KiB
Smali
.class public Lt3/d;
|
|
.super Lcom/airbnb/lottie/model/layer/a;
|
|
.source "SolidLayer.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final A:Landroid/graphics/RectF;
|
|
|
|
.field public final B:Landroid/graphics/Paint;
|
|
|
|
.field public final C:[F
|
|
|
|
.field public final D:Landroid/graphics/Path;
|
|
|
|
.field public final E:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
.field public F:Lo3/a;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lo3/a<",
|
|
"Landroid/graphics/ColorFilter;",
|
|
"Landroid/graphics/ColorFilter;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/airbnb/lottie/LottieDrawable;Lcom/airbnb/lottie/model/layer/Layer;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Lcom/airbnb/lottie/model/layer/a;-><init>(Lcom/airbnb/lottie/LottieDrawable;Lcom/airbnb/lottie/model/layer/Layer;)V
|
|
|
|
.line 2
|
|
new-instance p1, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
iput-object p1, p0, Lt3/d;->A:Landroid/graphics/RectF;
|
|
|
|
.line 3
|
|
new-instance p1, Lm3/a;
|
|
|
|
invoke-direct {p1}, Lm3/a;-><init>()V
|
|
|
|
iput-object p1, p0, Lt3/d;->B:Landroid/graphics/Paint;
|
|
|
|
const/16 v0, 0x8
|
|
|
|
new-array v0, v0, [F
|
|
|
|
.line 4
|
|
iput-object v0, p0, Lt3/d;->C:[F
|
|
|
|
.line 5
|
|
new-instance v0, Landroid/graphics/Path;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
|
|
|
|
iput-object v0, p0, Lt3/d;->D:Landroid/graphics/Path;
|
|
|
|
.line 6
|
|
iput-object p2, p0, Lt3/d;->E:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 7
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setAlpha(I)V
|
|
|
|
.line 8
|
|
sget-object v0, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
|
|
|
|
.line 9
|
|
invoke-virtual {p2}, Lcom/airbnb/lottie/model/layer/Layer;->m()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public c(Ljava/lang/Object;Lx3/j;)V
|
|
.locals 1
|
|
.param p2 # Lx3/j;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;",
|
|
"Lx3/j<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Lcom/airbnb/lottie/model/layer/a;->c(Ljava/lang/Object;Lx3/j;)V
|
|
|
|
.line 2
|
|
sget-object v0, Lcom/airbnb/lottie/l;->B:Landroid/graphics/ColorFilter;
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 3
|
|
iput-object p1, p0, Lt3/d;->F:Lo3/a;
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_0
|
|
new-instance p1, Lo3/p;
|
|
|
|
invoke-direct {p1, p2}, Lo3/p;-><init>(Lx3/j;)V
|
|
|
|
iput-object p1, p0, Lt3/d;->F:Lo3/a;
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(Landroid/graphics/RectF;Landroid/graphics/Matrix;Z)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3}, Lcom/airbnb/lottie/model/layer/a;->e(Landroid/graphics/RectF;Landroid/graphics/Matrix;Z)V
|
|
|
|
.line 2
|
|
iget-object p2, p0, Lt3/d;->A:Landroid/graphics/RectF;
|
|
|
|
iget-object p3, p0, Lt3/d;->E:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
invoke-virtual {p3}, Lcom/airbnb/lottie/model/layer/Layer;->o()I
|
|
|
|
move-result p3
|
|
|
|
int-to-float p3, p3
|
|
|
|
iget-object v0, p0, Lt3/d;->E:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/model/layer/Layer;->n()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p2, v1, v1, p3, v0}, Landroid/graphics/RectF;->set(FFFF)V
|
|
|
|
.line 3
|
|
iget-object p2, p0, Lcom/airbnb/lottie/model/layer/a;->m:Landroid/graphics/Matrix;
|
|
|
|
iget-object p3, p0, Lt3/d;->A:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {p2, p3}, Landroid/graphics/Matrix;->mapRect(Landroid/graphics/RectF;)Z
|
|
|
|
.line 4
|
|
iget-object p2, p0, Lt3/d;->A:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/graphics/RectF;->set(Landroid/graphics/RectF;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public r(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V
|
|
.locals 9
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lt3/d;->E:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/model/layer/Layer;->m()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Landroid/graphics/Color;->alpha(I)I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/airbnb/lottie/model/layer/a;->u:Lo3/o;
|
|
|
|
invoke-virtual {v1}, Lo3/o;->h()Lo3/a;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/16 v1, 0x64
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/airbnb/lottie/model/layer/a;->u:Lo3/o;
|
|
|
|
invoke-virtual {v1}, Lo3/o;->h()Lo3/a;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lo3/a;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
int-to-float p3, p3
|
|
|
|
const/high16 v2, 0x437f0000 # 255.0f
|
|
|
|
div-float/2addr p3, v2
|
|
|
|
int-to-float v0, v0
|
|
|
|
div-float/2addr v0, v2
|
|
|
|
int-to-float v1, v1
|
|
|
|
mul-float/2addr v0, v1
|
|
|
|
const/high16 v1, 0x42c80000 # 100.0f
|
|
|
|
div-float/2addr v0, v1
|
|
|
|
mul-float/2addr v0, p3
|
|
|
|
mul-float/2addr v0, v2
|
|
|
|
float-to-int p3, v0
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lt3/d;->B:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0, p3}, Landroid/graphics/Paint;->setAlpha(I)V
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lt3/d;->F:Lo3/a;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 5
|
|
iget-object v1, p0, Lt3/d;->B:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v0}, Lo3/a;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/graphics/ColorFilter;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
|
|
|
:cond_2
|
|
if-lez p3, :cond_3
|
|
|
|
.line 6
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aput v1, p3, v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 7
|
|
aput v1, p3, v2
|
|
|
|
.line 8
|
|
iget-object v3, p0, Lt3/d;->E:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
invoke-virtual {v3}, Lcom/airbnb/lottie/model/layer/Layer;->o()I
|
|
|
|
move-result v3
|
|
|
|
int-to-float v3, v3
|
|
|
|
const/4 v4, 0x2
|
|
|
|
aput v3, p3, v4
|
|
|
|
.line 9
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
const/4 v3, 0x3
|
|
|
|
aput v1, p3, v3
|
|
|
|
.line 10
|
|
iget-object v5, p0, Lt3/d;->E:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
invoke-virtual {v5}, Lcom/airbnb/lottie/model/layer/Layer;->o()I
|
|
|
|
move-result v5
|
|
|
|
int-to-float v5, v5
|
|
|
|
const/4 v6, 0x4
|
|
|
|
aput v5, p3, v6
|
|
|
|
.line 11
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
iget-object v5, p0, Lt3/d;->E:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
invoke-virtual {v5}, Lcom/airbnb/lottie/model/layer/Layer;->n()I
|
|
|
|
move-result v5
|
|
|
|
int-to-float v5, v5
|
|
|
|
const/4 v7, 0x5
|
|
|
|
aput v5, p3, v7
|
|
|
|
.line 12
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
const/4 v5, 0x6
|
|
|
|
aput v1, p3, v5
|
|
|
|
.line 13
|
|
iget-object v1, p0, Lt3/d;->E:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
invoke-virtual {v1}, Lcom/airbnb/lottie/model/layer/Layer;->n()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
const/4 v8, 0x7
|
|
|
|
aput v1, p3, v8
|
|
|
|
.line 14
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
invoke-virtual {p2, p3}, Landroid/graphics/Matrix;->mapPoints([F)V
|
|
|
|
.line 15
|
|
iget-object p2, p0, Lt3/d;->D:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {p2}, Landroid/graphics/Path;->reset()V
|
|
|
|
.line 16
|
|
iget-object p2, p0, Lt3/d;->D:Landroid/graphics/Path;
|
|
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
aget v1, p3, v0
|
|
|
|
aget p3, p3, v2
|
|
|
|
invoke-virtual {p2, v1, p3}, Landroid/graphics/Path;->moveTo(FF)V
|
|
|
|
.line 17
|
|
iget-object p2, p0, Lt3/d;->D:Landroid/graphics/Path;
|
|
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
aget v1, p3, v4
|
|
|
|
aget p3, p3, v3
|
|
|
|
invoke-virtual {p2, v1, p3}, Landroid/graphics/Path;->lineTo(FF)V
|
|
|
|
.line 18
|
|
iget-object p2, p0, Lt3/d;->D:Landroid/graphics/Path;
|
|
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
aget v1, p3, v6
|
|
|
|
aget p3, p3, v7
|
|
|
|
invoke-virtual {p2, v1, p3}, Landroid/graphics/Path;->lineTo(FF)V
|
|
|
|
.line 19
|
|
iget-object p2, p0, Lt3/d;->D:Landroid/graphics/Path;
|
|
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
aget v1, p3, v5
|
|
|
|
aget p3, p3, v8
|
|
|
|
invoke-virtual {p2, v1, p3}, Landroid/graphics/Path;->lineTo(FF)V
|
|
|
|
.line 20
|
|
iget-object p2, p0, Lt3/d;->D:Landroid/graphics/Path;
|
|
|
|
iget-object p3, p0, Lt3/d;->C:[F
|
|
|
|
aget v0, p3, v0
|
|
|
|
aget p3, p3, v2
|
|
|
|
invoke-virtual {p2, v0, p3}, Landroid/graphics/Path;->lineTo(FF)V
|
|
|
|
.line 21
|
|
iget-object p2, p0, Lt3/d;->D:Landroid/graphics/Path;
|
|
|
|
invoke-virtual {p2}, Landroid/graphics/Path;->close()V
|
|
|
|
.line 22
|
|
iget-object p2, p0, Lt3/d;->D:Landroid/graphics/Path;
|
|
|
|
iget-object p3, p0, Lt3/d;->B:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|