ContentGroup.smali
.class public Lcom/airbnb/lottie/animation/content/ContentGroup;
.super Ljava/lang/Object;
# interfaces
.implements Lcom/airbnb/lottie/animation/content/DrawingContent;
.implements Lcom/airbnb/lottie/animation/content/PathContent;
.implements Lcom/airbnb/lottie/animation/keyframe/BaseKeyframeAnimation$AnimationListener;
.implements Lcom/airbnb/lottie/model/KeyPathElement;
# instance fields
.field private a:Landroid/graphics/Paint;
.field private b:Landroid/graphics/RectF;
.field private final c:Landroid/graphics/Matrix;
.field private final d:Landroid/graphics/Path;
.field private final e:Landroid/graphics/RectF;
.field private final f:Ljava/lang/String;
.field private final g:Z
.field private final h:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/Content;",
">;"
}
.end annotation
.end field
.field private final i:Lcom/airbnb/lottie/LottieDrawable;
.field private j:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/PathContent;",
">;"
}
.end annotation
.end field
.field private k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
# direct methods
.method public constructor <init>(Lcom/airbnb/lottie/LottieDrawable;Lcom/airbnb/lottie/model/layer/BaseLayer;Lcom/airbnb/lottie/model/content/ShapeGroup;)V
.registers 11
invoke-virtual {p3}, Lcom/airbnb/lottie/model/content/ShapeGroup;->c()Ljava/lang/String;
move-result-object v3
invoke-virtual {p3}, Lcom/airbnb/lottie/model/content/ShapeGroup;->d()Z
move-result v4
invoke-virtual {p3}, Lcom/airbnb/lottie/model/content/ShapeGroup;->b()Ljava/util/List;
move-result-object v0
invoke-static {p1, p2, v0}, Lcom/airbnb/lottie/animation/content/ContentGroup;->e(Lcom/airbnb/lottie/LottieDrawable;Lcom/airbnb/lottie/model/layer/BaseLayer;Ljava/util/List;)Ljava/util/List;
move-result-object v5
invoke-virtual {p3}, Lcom/airbnb/lottie/model/content/ShapeGroup;->b()Ljava/util/List;
move-result-object p3
invoke-static {p3}, Lcom/airbnb/lottie/animation/content/ContentGroup;->h(Ljava/util/List;)Lcom/airbnb/lottie/model/animatable/AnimatableTransform;
move-result-object v6
move-object v0, p0
move-object v1, p1
move-object v2, p2
invoke-direct/range {v0 .. v6}, Lcom/airbnb/lottie/animation/content/ContentGroup;-><init>(Lcom/airbnb/lottie/LottieDrawable;Lcom/airbnb/lottie/model/layer/BaseLayer;Ljava/lang/String;ZLjava/util/List;Lcom/airbnb/lottie/model/animatable/AnimatableTransform;)V
return-void
.end method
.method constructor <init>(Lcom/airbnb/lottie/LottieDrawable;Lcom/airbnb/lottie/model/layer/BaseLayer;Ljava/lang/String;ZLjava/util/List;Lcom/airbnb/lottie/model/animatable/AnimatableTransform;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/LottieDrawable;",
"Lcom/airbnb/lottie/model/layer/BaseLayer;",
"Ljava/lang/String;",
"Z",
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/Content;",
">;",
"Lcom/airbnb/lottie/model/animatable/AnimatableTransform;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lcom/airbnb/lottie/animation/LPaint;
invoke-direct {v0}, Lcom/airbnb/lottie/animation/LPaint;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->a:Landroid/graphics/Paint;
new-instance v0, Landroid/graphics/RectF;
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->b:Landroid/graphics/RectF;
new-instance v0, Landroid/graphics/Matrix;
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
new-instance v0, Landroid/graphics/Path;
invoke-direct {v0}, Landroid/graphics/Path;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->d:Landroid/graphics/Path;
new-instance v0, Landroid/graphics/RectF;
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->e:Landroid/graphics/RectF;
iput-object p3, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->f:Ljava/lang/String;
iput-object p1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->i:Lcom/airbnb/lottie/LottieDrawable;
iput-boolean p4, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->g:Z
iput-object p5, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
if-eqz p6, :cond_3e
invoke-virtual {p6}, Lcom/airbnb/lottie/model/animatable/AnimatableTransform;->b()Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
move-result-object p1
iput-object p1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
invoke-virtual {p1, p2}, Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;->a(Lcom/airbnb/lottie/model/layer/BaseLayer;)V
iget-object p1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
invoke-virtual {p1, p0}, Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;->b(Lcom/airbnb/lottie/animation/keyframe/BaseKeyframeAnimation$AnimationListener;)V
:cond_3e
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
invoke-interface {p5}, Ljava/util/List;->size()I
move-result p2
add-int/lit8 p2, p2, -0x1
:goto_49
if-ltz p2, :cond_5d
invoke-interface {p5, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p3
check-cast p3, Lcom/airbnb/lottie/animation/content/Content;
instance-of p4, p3, Lcom/airbnb/lottie/animation/content/GreedyContent;
if-eqz p4, :cond_5a
check-cast p3, Lcom/airbnb/lottie/animation/content/GreedyContent;
invoke-interface {p1, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_5a
add-int/lit8 p2, p2, -0x1
goto :goto_49
:cond_5d
invoke-interface {p1}, Ljava/util/List;->size()I
move-result p2
add-int/lit8 p2, p2, -0x1
:goto_63
if-ltz p2, :cond_79
invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p3
check-cast p3, Lcom/airbnb/lottie/animation/content/GreedyContent;
invoke-interface {p5}, Ljava/util/List;->size()I
move-result p4
invoke-interface {p5, p4}, Ljava/util/List;->listIterator(I)Ljava/util/ListIterator;
move-result-object p4
invoke-interface {p3, p4}, Lcom/airbnb/lottie/animation/content/GreedyContent;->e(Ljava/util/ListIterator;)V
add-int/lit8 p2, p2, -0x1
goto :goto_63
:cond_79
return-void
.end method
.method private static e(Lcom/airbnb/lottie/LottieDrawable;Lcom/airbnb/lottie/model/layer/BaseLayer;Ljava/util/List;)Ljava/util/List;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/LottieDrawable;",
"Lcom/airbnb/lottie/model/layer/BaseLayer;",
"Ljava/util/List<",
"Lcom/airbnb/lottie/model/content/ContentModel;",
">;)",
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/Content;",
">;"
}
.end annotation
new-instance v0, Ljava/util/ArrayList;
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
const/4 v1, 0x0
:goto_a
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v2
if-ge v1, v2, :cond_22
invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/airbnb/lottie/model/content/ContentModel;
invoke-interface {v2, p0, p1}, Lcom/airbnb/lottie/model/content/ContentModel;->a(Lcom/airbnb/lottie/LottieDrawable;Lcom/airbnb/lottie/model/layer/BaseLayer;)Lcom/airbnb/lottie/animation/content/Content;
move-result-object v2
if-eqz v2, :cond_1f
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_1f
add-int/lit8 v1, v1, 0x1
goto :goto_a
:cond_22
return-object v0
.end method
.method static h(Ljava/util/List;)Lcom/airbnb/lottie/model/animatable/AnimatableTransform;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/airbnb/lottie/model/content/ContentModel;",
">;)",
"Lcom/airbnb/lottie/model/animatable/AnimatableTransform;"
}
.end annotation
const/4 v0, 0x0
:goto_1
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v1
if-ge v0, v1, :cond_17
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/airbnb/lottie/model/content/ContentModel;
instance-of v2, v1, Lcom/airbnb/lottie/model/animatable/AnimatableTransform;
if-eqz v2, :cond_14
check-cast v1, Lcom/airbnb/lottie/model/animatable/AnimatableTransform;
return-object v1
:cond_14
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_17
const/4 p0, 0x0
return-object p0
.end method
.method private k()Z
.registers 5
const/4 v0, 0x0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_3
iget-object v3, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v3
if-ge v1, v3, :cond_1f
iget-object v3, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
instance-of v3, v3, Lcom/airbnb/lottie/animation/content/DrawingContent;
if-eqz v3, :cond_1c
add-int/lit8 v2, v2, 0x1
const/4 v3, 0x2
if-lt v2, v3, :cond_1c
const/4 v0, 0x1
return v0
:cond_1c
add-int/lit8 v1, v1, 0x1
goto :goto_3
:cond_1f
return v0
.end method
# virtual methods
.method public a()V
.registers 2
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->i:Lcom/airbnb/lottie/LottieDrawable;
invoke-virtual {v0}, Lcom/airbnb/lottie/LottieDrawable;->invalidateSelf()V
return-void
.end method
.method public b(Ljava/util/List;Ljava/util/List;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/Content;",
">;",
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/Content;",
">;)V"
}
.end annotation
new-instance p2, Ljava/util/ArrayList;
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
add-int/2addr v0, v1
invoke-direct {p2, v0}, Ljava/util/ArrayList;-><init>(I)V
invoke-interface {p2, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
iget-object p1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {p1}, Ljava/util/List;->size()I
move-result p1
add-int/lit8 p1, p1, -0x1
:goto_1b
if-ltz p1, :cond_35
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/airbnb/lottie/animation/content/Content;
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
const/4 v2, 0x0
invoke-interface {v1, v2, p1}, Ljava/util/List;->subList(II)Ljava/util/List;
move-result-object v1
invoke-interface {v0, p2, v1}, Lcom/airbnb/lottie/animation/content/Content;->b(Ljava/util/List;Ljava/util/List;)V
invoke-interface {p2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
add-int/lit8 p1, p1, -0x1
goto :goto_1b
:cond_35
return-void
.end method
.method public c(Lcom/airbnb/lottie/model/KeyPath;ILjava/util/List;Lcom/airbnb/lottie/model/KeyPath;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/model/KeyPath;",
"I",
"Ljava/util/List<",
"Lcom/airbnb/lottie/model/KeyPath;",
">;",
"Lcom/airbnb/lottie/model/KeyPath;",
")V"
}
.end annotation
invoke-virtual {p0}, Lcom/airbnb/lottie/animation/content/ContentGroup;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0, p2}, Lcom/airbnb/lottie/model/KeyPath;->g(Ljava/lang/String;I)Z
move-result v0
if-nez v0, :cond_b
return-void
:cond_b
invoke-virtual {p0}, Lcom/airbnb/lottie/animation/content/ContentGroup;->getName()Ljava/lang/String;
move-result-object v0
const-string v1, "__container"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_30
invoke-virtual {p0}, Lcom/airbnb/lottie/animation/content/ContentGroup;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p4, v0}, Lcom/airbnb/lottie/model/KeyPath;->a(Ljava/lang/String;)Lcom/airbnb/lottie/model/KeyPath;
move-result-object p4
invoke-virtual {p0}, Lcom/airbnb/lottie/animation/content/ContentGroup;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0, p2}, Lcom/airbnb/lottie/model/KeyPath;->c(Ljava/lang/String;I)Z
move-result v0
if-eqz v0, :cond_30
invoke-virtual {p4, p0}, Lcom/airbnb/lottie/model/KeyPath;->i(Lcom/airbnb/lottie/model/KeyPathElement;)Lcom/airbnb/lottie/model/KeyPath;
move-result-object v0
invoke-interface {p3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_30
invoke-virtual {p0}, Lcom/airbnb/lottie/animation/content/ContentGroup;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0, p2}, Lcom/airbnb/lottie/model/KeyPath;->h(Ljava/lang/String;I)Z
move-result v0
if-eqz v0, :cond_60
invoke-virtual {p0}, Lcom/airbnb/lottie/animation/content/ContentGroup;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0, p2}, Lcom/airbnb/lottie/model/KeyPath;->e(Ljava/lang/String;I)I
move-result v0
add-int/2addr p2, v0
const/4 v0, 0x0
:goto_44
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-ge v0, v1, :cond_60
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/airbnb/lottie/animation/content/Content;
instance-of v2, v1, Lcom/airbnb/lottie/model/KeyPathElement;
if-eqz v2, :cond_5d
check-cast v1, Lcom/airbnb/lottie/model/KeyPathElement;
invoke-interface {v1, p1, p2, p3, p4}, Lcom/airbnb/lottie/model/KeyPathElement;->c(Lcom/airbnb/lottie/model/KeyPath;ILjava/util/List;Lcom/airbnb/lottie/model/KeyPath;)V
:cond_5d
add-int/lit8 v0, v0, 0x1
goto :goto_44
:cond_60
return-void
.end method
.method public d(Landroid/graphics/RectF;Landroid/graphics/Matrix;Z)V
.registers 7
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-virtual {v0, p2}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
if-eqz p2, :cond_12
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-virtual {p2}, Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;->f()Landroid/graphics/Matrix;
move-result-object p2
invoke-virtual {v0, p2}, Landroid/graphics/Matrix;->preConcat(Landroid/graphics/Matrix;)Z
:cond_12
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->e:Landroid/graphics/RectF;
const/4 v0, 0x0
invoke-virtual {p2, v0, v0, v0, v0}, Landroid/graphics/RectF;->set(FFFF)V
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {p2}, Ljava/util/List;->size()I
move-result p2
add-int/lit8 p2, p2, -0x1
:goto_20
if-ltz p2, :cond_3f
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/airbnb/lottie/animation/content/Content;
instance-of v1, v0, Lcom/airbnb/lottie/animation/content/DrawingContent;
if-eqz v1, :cond_3c
check-cast v0, Lcom/airbnb/lottie/animation/content/DrawingContent;
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->e:Landroid/graphics/RectF;
iget-object v2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-interface {v0, v1, v2, p3}, Lcom/airbnb/lottie/animation/content/DrawingContent;->d(Landroid/graphics/RectF;Landroid/graphics/Matrix;Z)V
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->e:Landroid/graphics/RectF;
invoke-virtual {p1, v0}, Landroid/graphics/RectF;->union(Landroid/graphics/RectF;)V
:cond_3c
add-int/lit8 p2, p2, -0x1
goto :goto_20
:cond_3f
return-void
.end method
.method public f(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V
.registers 8
iget-boolean v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->g:Z
if-eqz v0, :cond_5
return-void
:cond_5
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-virtual {v0, p2}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
if-eqz p2, :cond_3f
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-virtual {p2}, Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;->f()Landroid/graphics/Matrix;
move-result-object p2
invoke-virtual {v0, p2}, Landroid/graphics/Matrix;->preConcat(Landroid/graphics/Matrix;)Z
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
invoke-virtual {p2}, Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;->h()Lcom/airbnb/lottie/animation/keyframe/BaseKeyframeAnimation;
move-result-object p2
if-nez p2, :cond_22
const/16 p2, 0x64
goto :goto_32
:cond_22
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
invoke-virtual {p2}, Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;->h()Lcom/airbnb/lottie/animation/keyframe/BaseKeyframeAnimation;
move-result-object p2
invoke-virtual {p2}, Lcom/airbnb/lottie/animation/keyframe/BaseKeyframeAnimation;->h()Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/lang/Integer;
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
move-result p2
:goto_32
int-to-float p2, p2
const/high16 v0, 0x42c80000 # 100.0f
div-float/2addr p2, v0
int-to-float p3, p3
mul-float p2, p2, p3
const/high16 p3, 0x437f0000 # 255.0f
div-float/2addr p2, p3
mul-float p2, p2, p3
float-to-int p3, p2
:cond_3f
iget-object p2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->i:Lcom/airbnb/lottie/LottieDrawable;
invoke-virtual {p2}, Lcom/airbnb/lottie/LottieDrawable;->H()Z
move-result p2
const/16 v0, 0xff
const/4 v1, 0x1
if-eqz p2, :cond_54
invoke-direct {p0}, Lcom/airbnb/lottie/animation/content/ContentGroup;->k()Z
move-result p2
if-eqz p2, :cond_54
if-eq p3, v0, :cond_54
const/4 p2, 0x1
goto :goto_55
:cond_54
const/4 p2, 0x0
:goto_55
if-eqz p2, :cond_70
iget-object v2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->b:Landroid/graphics/RectF;
const/4 v3, 0x0
invoke-virtual {v2, v3, v3, v3, v3}, Landroid/graphics/RectF;->set(FFFF)V
iget-object v2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->b:Landroid/graphics/RectF;
iget-object v3, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-virtual {p0, v2, v3, v1}, Lcom/airbnb/lottie/animation/content/ContentGroup;->d(Landroid/graphics/RectF;Landroid/graphics/Matrix;Z)V
iget-object v2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->a:Landroid/graphics/Paint;
invoke-virtual {v2, p3}, Landroid/graphics/Paint;->setAlpha(I)V
iget-object v2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->b:Landroid/graphics/RectF;
iget-object v3, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->a:Landroid/graphics/Paint;
invoke-static {p1, v2, v3}, Lcom/airbnb/lottie/utils/Utils;->m(Landroid/graphics/Canvas;Landroid/graphics/RectF;Landroid/graphics/Paint;)V
:cond_70
if-eqz p2, :cond_74
const/16 p3, 0xff
:cond_74
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
sub-int/2addr v0, v1
:goto_7b
if-ltz v0, :cond_91
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
instance-of v2, v1, Lcom/airbnb/lottie/animation/content/DrawingContent;
if-eqz v2, :cond_8e
check-cast v1, Lcom/airbnb/lottie/animation/content/DrawingContent;
iget-object v2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-interface {v1, p1, v2, p3}, Lcom/airbnb/lottie/animation/content/DrawingContent;->f(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V
:cond_8e
add-int/lit8 v0, v0, -0x1
goto :goto_7b
:cond_91
if-eqz p2, :cond_96
invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V
:cond_96
return-void
.end method
.method public g(Ljava/lang/Object;Lcom/airbnb/lottie/value/LottieValueCallback;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Lcom/airbnb/lottie/value/LottieValueCallback<",
"TT;>;)V"
}
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
if-eqz v0, :cond_7
invoke-virtual {v0, p1, p2}, Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;->c(Ljava/lang/Object;Lcom/airbnb/lottie/value/LottieValueCallback;)Z
:cond_7
return-void
.end method
.method public getName()Ljava/lang/String;
.registers 2
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->f:Ljava/lang/String;
return-object v0
.end method
.method public getPath()Landroid/graphics/Path;
.registers 5
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
if-eqz v0, :cond_12
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-virtual {v0}, Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;->f()Landroid/graphics/Matrix;
move-result-object v0
invoke-virtual {v1, v0}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V
:cond_12
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->d:Landroid/graphics/Path;
invoke-virtual {v0}, Landroid/graphics/Path;->reset()V
iget-boolean v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->g:Z
if-eqz v0, :cond_1e
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->d:Landroid/graphics/Path;
return-object v0
:cond_1e
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
:goto_26
if-ltz v0, :cond_44
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/airbnb/lottie/animation/content/Content;
instance-of v2, v1, Lcom/airbnb/lottie/animation/content/PathContent;
if-eqz v2, :cond_41
iget-object v2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->d:Landroid/graphics/Path;
check-cast v1, Lcom/airbnb/lottie/animation/content/PathContent;
invoke-interface {v1}, Lcom/airbnb/lottie/animation/content/PathContent;->getPath()Landroid/graphics/Path;
move-result-object v1
iget-object v3, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-virtual {v2, v1, v3}, Landroid/graphics/Path;->addPath(Landroid/graphics/Path;Landroid/graphics/Matrix;)V
:cond_41
add-int/lit8 v0, v0, -0x1
goto :goto_26
:cond_44
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->d:Landroid/graphics/Path;
return-object v0
.end method
.method i()Ljava/util/List;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/airbnb/lottie/animation/content/PathContent;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->j:Ljava/util/List;
if-nez v0, :cond_2a
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->j:Ljava/util/List;
const/4 v0, 0x0
:goto_c
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-ge v0, v1, :cond_2a
iget-object v1, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->h:Ljava/util/List;
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/airbnb/lottie/animation/content/Content;
instance-of v2, v1, Lcom/airbnb/lottie/animation/content/PathContent;
if-eqz v2, :cond_27
iget-object v2, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->j:Ljava/util/List;
check-cast v1, Lcom/airbnb/lottie/animation/content/PathContent;
invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_27
add-int/lit8 v0, v0, 0x1
goto :goto_c
:cond_2a
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->j:Ljava/util/List;
return-object v0
.end method
.method j()Landroid/graphics/Matrix;
.registers 2
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->k:Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;
if-eqz v0, :cond_9
invoke-virtual {v0}, Lcom/airbnb/lottie/animation/keyframe/TransformKeyframeAnimation;->f()Landroid/graphics/Matrix;
move-result-object v0
return-object v0
:cond_9
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V
iget-object v0, p0, Lcom/airbnb/lottie/animation/content/ContentGroup;->c:Landroid/graphics/Matrix;
return-object v0
.end method