295 lines
6.6 KiB
Smali
295 lines
6.6 KiB
Smali
.class public Lt3/a;
|
|
.super Lcom/airbnb/lottie/model/layer/a;
|
|
.source "ImageLayer.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final A:Landroid/graphics/Paint;
|
|
|
|
.field public final B:Landroid/graphics/Rect;
|
|
|
|
.field public final C:Landroid/graphics/Rect;
|
|
|
|
.field public D: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 0
|
|
|
|
.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, Lm3/a;
|
|
|
|
const/4 p2, 0x3
|
|
|
|
invoke-direct {p1, p2}, Lm3/a;-><init>(I)V
|
|
|
|
iput-object p1, p0, Lt3/a;->A:Landroid/graphics/Paint;
|
|
|
|
.line 3
|
|
new-instance p1, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
iput-object p1, p0, Lt3/a;->B:Landroid/graphics/Rect;
|
|
|
|
.line 4
|
|
new-instance p1, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
iput-object p1, p0, Lt3/a;->C:Landroid/graphics/Rect;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final I()Landroid/graphics/Bitmap;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/airbnb/lottie/model/layer/a;->o:Lcom/airbnb/lottie/model/layer/Layer;
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/model/layer/Layer;->k()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lcom/airbnb/lottie/model/layer/a;->n:Lcom/airbnb/lottie/LottieDrawable;
|
|
|
|
invoke-virtual {v1, v0}, Lcom/airbnb/lottie/LottieDrawable;->q(Ljava/lang/String;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.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/a;->D: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/a;->D:Lo3/a;
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(Landroid/graphics/RectF;Landroid/graphics/Matrix;Z)V
|
|
.locals 1
|
|
|
|
.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
|
|
invoke-virtual {p0}, Lt3/a;->I()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p2}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
int-to-float p3, p3
|
|
|
|
invoke-static {}, Lw3/h;->e()F
|
|
|
|
move-result v0
|
|
|
|
mul-float/2addr v0, p3
|
|
|
|
invoke-virtual {p2}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result p2
|
|
|
|
int-to-float p2, p2
|
|
|
|
invoke-static {}, Lw3/h;->e()F
|
|
|
|
move-result p3
|
|
|
|
mul-float/2addr p3, p2
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-virtual {p1, p2, p2, v0, p3}, Landroid/graphics/RectF;->set(FFFF)V
|
|
|
|
.line 4
|
|
iget-object p2, p0, Lcom/airbnb/lottie/model/layer/a;->m:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p2, p1}, Landroid/graphics/Matrix;->mapRect(Landroid/graphics/RectF;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public r(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V
|
|
.locals 4
|
|
.param p1 # Landroid/graphics/Canvas;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lt3/a;->I()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {}, Lw3/h;->e()F
|
|
|
|
move-result v1
|
|
|
|
.line 4
|
|
iget-object v2, p0, Lt3/a;->A:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v2, p3}, Landroid/graphics/Paint;->setAlpha(I)V
|
|
|
|
.line 5
|
|
iget-object p3, p0, Lt3/a;->D:Lo3/a;
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
.line 6
|
|
iget-object v2, p0, Lt3/a;->A:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {p3}, Lo3/a;->h()Ljava/lang/Object;
|
|
|
|
move-result-object p3
|
|
|
|
check-cast p3, Landroid/graphics/ColorFilter;
|
|
|
|
invoke-virtual {v2, p3}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
|
|
|
.line 7
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
.line 8
|
|
invoke-virtual {p1, p2}, Landroid/graphics/Canvas;->concat(Landroid/graphics/Matrix;)V
|
|
|
|
.line 9
|
|
iget-object p2, p0, Lt3/a;->B:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {p2, v3, v3, p3, v2}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
.line 10
|
|
iget-object p2, p0, Lt3/a;->C:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
int-to-float p3, p3
|
|
|
|
mul-float/2addr p3, v1
|
|
|
|
float-to-int p3, p3
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float/2addr v2, v1
|
|
|
|
float-to-int v1, v2
|
|
|
|
invoke-virtual {p2, v3, v3, p3, v1}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
.line 11
|
|
iget-object p2, p0, Lt3/a;->B:Landroid/graphics/Rect;
|
|
|
|
iget-object p3, p0, Lt3/a;->C:Landroid/graphics/Rect;
|
|
|
|
iget-object v1, p0, Lt3/a;->A:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {p1, v0, p2, p3, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V
|
|
|
|
.line 12
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|