g.smali
.class public final Lcom/airbnb/lottie/animation/content/g;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/airbnb/lottie/animation/content/e;
.implements Lcom/airbnb/lottie/animation/keyframe/a$a;
.implements Lcom/airbnb/lottie/animation/content/k;
# instance fields
.field public final a:Landroid/graphics/Path;
.field public final b:Lcom/airbnb/lottie/animation/a;
.field public final c:Lcom/airbnb/lottie/model/layer/b;
.field public final d:Ljava/lang/String;
.field public final e:Z
.field public final f:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/m;",
">;"
}
.end annotation
.end field
.field public final g:Lcom/airbnb/lottie/animation/keyframe/b;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/airbnb/lottie/animation/keyframe/a<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field public final h:Lcom/airbnb/lottie/animation/keyframe/e;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/airbnb/lottie/animation/keyframe/a<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field public i:Lcom/airbnb/lottie/animation/keyframe/p;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/airbnb/lottie/animation/keyframe/a<",
"Landroid/graphics/ColorFilter;",
"Landroid/graphics/ColorFilter;",
">;"
}
.end annotation
.end field
.field public final j:Lcom/airbnb/lottie/k;
# direct methods
.method public constructor <init>(Lcom/airbnb/lottie/k;Lcom/airbnb/lottie/model/layer/b;Lcom/airbnb/lottie/model/content/m;)V
.registers 7
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Landroid/graphics/Path;
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->a:Landroid/graphics/Path;
.line 3
new-instance v1, Lcom/airbnb/lottie/animation/a;
const/4 v2, 0x1
invoke-direct {v1, v2}, Lcom/airbnb/lottie/animation/a;-><init>(I)V
iput-object v1, p0, Lcom/airbnb/lottie/animation/content/g;->b:Lcom/airbnb/lottie/animation/a;
.line 4
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, p0, Lcom/airbnb/lottie/animation/content/g;->f:Ljava/util/ArrayList;
.line 5
iput-object p2, p0, Lcom/airbnb/lottie/animation/content/g;->c:Lcom/airbnb/lottie/model/layer/b;
.line 6
iget-object v1, p3, Lcom/airbnb/lottie/model/content/m;->c:Ljava/lang/String;
.line 7
iput-object v1, p0, Lcom/airbnb/lottie/animation/content/g;->d:Ljava/lang/String;
.line 8
iget-boolean v1, p3, Lcom/airbnb/lottie/model/content/m;->f:Z
.line 9
iput-boolean v1, p0, Lcom/airbnb/lottie/animation/content/g;->e:Z
.line 10
iput-object p1, p0, Lcom/airbnb/lottie/animation/content/g;->j:Lcom/airbnb/lottie/k;
.line 11
iget-object p1, p3, Lcom/airbnb/lottie/model/content/m;->d:Lcom/airbnb/lottie/model/animatable/a;
if-eqz p1, :cond_56
.line 12
iget-object p1, p3, Lcom/airbnb/lottie/model/content/m;->e:Lcom/airbnb/lottie/model/animatable/d;
if-nez p1, :cond_2e
goto :goto_56
.line 13
:cond_2e
iget-object p1, p3, Lcom/airbnb/lottie/model/content/m;->b:Landroid/graphics/Path$FillType;
.line 14
invoke-virtual {v0, p1}, Landroid/graphics/Path;->setFillType(Landroid/graphics/Path$FillType;)V
.line 15
iget-object p1, p3, Lcom/airbnb/lottie/model/content/m;->d:Lcom/airbnb/lottie/model/animatable/a;
.line 16
invoke-virtual {p1}, Lcom/airbnb/lottie/model/animatable/a;->a()Lcom/airbnb/lottie/animation/keyframe/a;
move-result-object p1
move-object v0, p1
check-cast v0, Lcom/airbnb/lottie/animation/keyframe/b;
iput-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->g:Lcom/airbnb/lottie/animation/keyframe/b;
.line 17
invoke-virtual {p1, p0}, Lcom/airbnb/lottie/animation/keyframe/a;->a(Lcom/airbnb/lottie/animation/keyframe/a$a;)V
.line 18
invoke-virtual {p2, p1}, Lcom/airbnb/lottie/model/layer/b;->c(Lcom/airbnb/lottie/animation/keyframe/a;)V
.line 19
iget-object p1, p3, Lcom/airbnb/lottie/model/content/m;->e:Lcom/airbnb/lottie/model/animatable/d;
.line 20
invoke-virtual {p1}, Lcom/airbnb/lottie/model/animatable/d;->a()Lcom/airbnb/lottie/animation/keyframe/a;
move-result-object p1
move-object p3, p1
check-cast p3, Lcom/airbnb/lottie/animation/keyframe/e;
iput-object p3, p0, Lcom/airbnb/lottie/animation/content/g;->h:Lcom/airbnb/lottie/animation/keyframe/e;
.line 21
invoke-virtual {p1, p0}, Lcom/airbnb/lottie/animation/keyframe/a;->a(Lcom/airbnb/lottie/animation/keyframe/a$a;)V
.line 22
invoke-virtual {p2, p1}, Lcom/airbnb/lottie/model/layer/b;->c(Lcom/airbnb/lottie/animation/keyframe/a;)V
return-void
:cond_56
:goto_56
const/4 p1, 0x0
.line 23
iput-object p1, p0, Lcom/airbnb/lottie/animation/content/g;->g:Lcom/airbnb/lottie/animation/keyframe/b;
.line 24
iput-object p1, p0, Lcom/airbnb/lottie/animation/content/g;->h:Lcom/airbnb/lottie/animation/keyframe/e;
return-void
.end method
# virtual methods
.method public final a(Landroid/graphics/RectF;Landroid/graphics/Matrix;Z)V
.registers 7
.line 1
iget-object p3, p0, Lcom/airbnb/lottie/animation/content/g;->a:Landroid/graphics/Path;
invoke-virtual {p3}, Landroid/graphics/Path;->reset()V
const/4 p3, 0x0
const/4 v0, 0x0
.line 2
:goto_7
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/g;->f:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-ge v0, v1, :cond_23
.line 3
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/g;->a:Landroid/graphics/Path;
iget-object v2, p0, Lcom/airbnb/lottie/animation/content/g;->f:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/airbnb/lottie/animation/content/m;
invoke-interface {v2}, Lcom/airbnb/lottie/animation/content/m;->b()Landroid/graphics/Path;
move-result-object v2
invoke-virtual {v1, v2, p2}, Landroid/graphics/Path;->addPath(Landroid/graphics/Path;Landroid/graphics/Matrix;)V
add-int/lit8 v0, v0, 0x1
goto :goto_7
.line 4
:cond_23
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/g;->a:Landroid/graphics/Path;
invoke-virtual {p2, p1, p3}, Landroid/graphics/Path;->computeBounds(Landroid/graphics/RectF;Z)V
.line 5
iget p2, p1, Landroid/graphics/RectF;->left:F
const/high16 p3, 0x3f800000 # 1.0f
sub-float/2addr p2, p3
iget v0, p1, Landroid/graphics/RectF;->top:F
sub-float/2addr v0, p3
iget v1, p1, Landroid/graphics/RectF;->right:F
add-float/2addr v1, p3
iget v2, p1, Landroid/graphics/RectF;->bottom:F
add-float/2addr v2, p3
invoke-virtual {p1, p2, v0, v1, v2}, Landroid/graphics/RectF;->set(FFFF)V
return-void
.end method
.method public final d(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V
.registers 8
.line 1
iget-boolean v0, p0, Lcom/airbnb/lottie/animation/content/g;->e:Z
if-eqz v0, :cond_5
return-void
.line 2
:cond_5
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->b:Lcom/airbnb/lottie/animation/a;
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/g;->g:Lcom/airbnb/lottie/animation/keyframe/b;
.line 3
invoke-virtual {v1}, Lcom/airbnb/lottie/animation/keyframe/a;->b()Lcom/airbnb/lottie/value/a;
move-result-object v2
invoke-virtual {v1}, Lcom/airbnb/lottie/animation/keyframe/a;->d()F
move-result v3
invoke-virtual {v1, v2, v3}, Lcom/airbnb/lottie/animation/keyframe/b;->k(Lcom/airbnb/lottie/value/a;F)I
move-result v1
.line 4
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
int-to-float p3, p3
const/high16 v0, 0x437f0000 # 255.0f
div-float/2addr p3, v0
.line 5
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/g;->h:Lcom/airbnb/lottie/animation/keyframe/e;
invoke-virtual {v1}, Lcom/airbnb/lottie/animation/keyframe/a;->f()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
int-to-float v1, v1
mul-float p3, p3, v1
const/high16 v1, 0x42c80000 # 100.0f
div-float/2addr p3, v1
mul-float p3, p3, v0
float-to-int p3, p3
.line 6
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->b:Lcom/airbnb/lottie/animation/a;
const/4 v1, 0x0
invoke-static {p3}, Lcom/airbnb/lottie/utils/f;->c(I)I
move-result p3
invoke-virtual {v0, p3}, Landroid/graphics/Paint;->setAlpha(I)V
.line 7
iget-object p3, p0, Lcom/airbnb/lottie/animation/content/g;->i:Lcom/airbnb/lottie/animation/keyframe/p;
if-eqz p3, :cond_4a
.line 8
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->b:Lcom/airbnb/lottie/animation/a;
invoke-virtual {p3}, Lcom/airbnb/lottie/animation/keyframe/p;->f()Ljava/lang/Object;
move-result-object p3
check-cast p3, Landroid/graphics/ColorFilter;
invoke-virtual {v0, p3}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
.line 9
:cond_4a
iget-object p3, p0, Lcom/airbnb/lottie/animation/content/g;->a:Landroid/graphics/Path;
invoke-virtual {p3}, Landroid/graphics/Path;->reset()V
.line 10
:goto_4f
iget-object p3, p0, Lcom/airbnb/lottie/animation/content/g;->f:Ljava/util/ArrayList;
invoke-virtual {p3}, Ljava/util/ArrayList;->size()I
move-result p3
if-ge v1, p3, :cond_6b
.line 11
iget-object p3, p0, Lcom/airbnb/lottie/animation/content/g;->a:Landroid/graphics/Path;
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->f:Ljava/util/ArrayList;
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/airbnb/lottie/animation/content/m;
invoke-interface {v0}, Lcom/airbnb/lottie/animation/content/m;->b()Landroid/graphics/Path;
move-result-object v0
invoke-virtual {p3, v0, p2}, Landroid/graphics/Path;->addPath(Landroid/graphics/Path;Landroid/graphics/Matrix;)V
add-int/lit8 v1, v1, 0x1
goto :goto_4f
.line 12
:cond_6b
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/g;->a:Landroid/graphics/Path;
iget-object p3, p0, Lcom/airbnb/lottie/animation/content/g;->b:Lcom/airbnb/lottie/animation/a;
invoke-virtual {p1, p2, p3}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V
.line 13
invoke-static {}, Lcom/airbnb/lottie/c;->n()V
return-void
.end method
.method public final e()V
.registers 2
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->j:Lcom/airbnb/lottie/k;
invoke-virtual {v0}, Lcom/airbnb/lottie/k;->invalidateSelf()V
return-void
.end method
.method public final f(Ljava/util/List;Ljava/util/List;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/c;",
">;",
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/c;",
">;)V"
}
.end annotation
const/4 p1, 0x0
.line 1
:goto_1
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v0
if-ge p1, v0, :cond_1b
.line 2
invoke-interface {p2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/airbnb/lottie/animation/content/c;
.line 3
instance-of v1, v0, Lcom/airbnb/lottie/animation/content/m;
if-eqz v1, :cond_18
.line 4
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/g;->f:Ljava/util/ArrayList;
check-cast v0, Lcom/airbnb/lottie/animation/content/m;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:cond_18
add-int/lit8 p1, p1, 0x1
goto :goto_1
:cond_1b
return-void
.end method
.method public final g(Ljava/lang/Object;Lcom/airbnb/lottie/value/b;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/airbnb/lottie/value/b;",
")V"
}
.end annotation
.line 1
sget-object v0, Lcom/airbnb/lottie/o;->a:Ljava/lang/Integer;
if-ne p1, v0, :cond_a
.line 2
iget-object p1, p0, Lcom/airbnb/lottie/animation/content/g;->g:Lcom/airbnb/lottie/animation/keyframe/b;
invoke-virtual {p1, p2}, Lcom/airbnb/lottie/animation/keyframe/a;->j(Lcom/airbnb/lottie/value/b;)V
goto :goto_38
.line 3
:cond_a
sget-object v0, Lcom/airbnb/lottie/o;->d:Ljava/lang/Integer;
if-ne p1, v0, :cond_14
.line 4
iget-object p1, p0, Lcom/airbnb/lottie/animation/content/g;->h:Lcom/airbnb/lottie/animation/keyframe/e;
invoke-virtual {p1, p2}, Lcom/airbnb/lottie/animation/keyframe/a;->j(Lcom/airbnb/lottie/value/b;)V
goto :goto_38
.line 5
:cond_14
sget-object v0, Lcom/airbnb/lottie/o;->C:Landroid/graphics/ColorFilter;
if-ne p1, v0, :cond_38
.line 6
iget-object p1, p0, Lcom/airbnb/lottie/animation/content/g;->i:Lcom/airbnb/lottie/animation/keyframe/p;
if-eqz p1, :cond_21
.line 7
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->c:Lcom/airbnb/lottie/model/layer/b;
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/model/layer/b;->o(Lcom/airbnb/lottie/animation/keyframe/a;)V
:cond_21
const/4 p1, 0x0
if-nez p2, :cond_27
.line 8
iput-object p1, p0, Lcom/airbnb/lottie/animation/content/g;->i:Lcom/airbnb/lottie/animation/keyframe/p;
goto :goto_38
.line 9
:cond_27
new-instance v0, Lcom/airbnb/lottie/animation/keyframe/p;
.line 10
invoke-direct {v0, p2, p1}, Lcom/airbnb/lottie/animation/keyframe/p;-><init>(Lcom/airbnb/lottie/value/b;Ljava/lang/Object;)V
.line 11
iput-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->i:Lcom/airbnb/lottie/animation/keyframe/p;
.line 12
invoke-virtual {v0, p0}, Lcom/airbnb/lottie/animation/keyframe/a;->a(Lcom/airbnb/lottie/animation/keyframe/a$a;)V
.line 13
iget-object p1, p0, Lcom/airbnb/lottie/animation/content/g;->c:Lcom/airbnb/lottie/model/layer/b;
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/g;->i:Lcom/airbnb/lottie/animation/keyframe/p;
invoke-virtual {p1, p2}, Lcom/airbnb/lottie/model/layer/b;->c(Lcom/airbnb/lottie/animation/keyframe/a;)V
:cond_38
:goto_38
return-void
.end method
.method public final getName()Ljava/lang/String;
.registers 2
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/g;->d:Ljava/lang/String;
return-object v0
.end method
.method public final h(Lcom/airbnb/lottie/model/e;ILjava/util/List;Lcom/airbnb/lottie/model/e;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/model/e;",
"I",
"Ljava/util/List<",
"Lcom/airbnb/lottie/model/e;",
">;",
"Lcom/airbnb/lottie/model/e;",
")V"
}
.end annotation
invoke-static {p1, p2, p3, p4, p0}, Lcom/airbnb/lottie/utils/f;->e(Lcom/airbnb/lottie/model/e;ILjava/util/List;Lcom/airbnb/lottie/model/e;Lcom/airbnb/lottie/animation/content/k;)V
return-void
.end method