404 lines
10 KiB
Smali
404 lines
10 KiB
Smali
.class public final Lcom/airbnb/lottie/a/b/l;
|
|
.super Lcom/airbnb/lottie/a/b/a;
|
|
.source "ShapeKeyframeAnimation.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/airbnb/lottie/a/b/a<",
|
|
"Lcom/airbnb/lottie/c/b/l;",
|
|
"Landroid/graphics/Path;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final hg:Lcom/airbnb/lottie/c/b/l;
|
|
|
|
.field private final hh:Landroid/graphics/Path;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/airbnb/lottie/g/a<",
|
|
"Lcom/airbnb/lottie/c/b/l;",
|
|
">;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1}, Lcom/airbnb/lottie/a/b/a;-><init>(Ljava/util/List;)V
|
|
|
|
new-instance p1, Lcom/airbnb/lottie/c/b/l;
|
|
|
|
invoke-direct {p1}, Lcom/airbnb/lottie/c/b/l;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/a/b/l;->hg:Lcom/airbnb/lottie/c/b/l;
|
|
|
|
new-instance p1, Landroid/graphics/Path;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Path;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/airbnb/lottie/a/b/l;->hh:Landroid/graphics/Path;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final synthetic a(Lcom/airbnb/lottie/g/a;F)Ljava/lang/Object;
|
|
.locals 12
|
|
|
|
iget-object v0, p1, Lcom/airbnb/lottie/g/a;->ms:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/airbnb/lottie/c/b/l;
|
|
|
|
iget-object p1, p1, Lcom/airbnb/lottie/g/a;->mt:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lcom/airbnb/lottie/c/b/l;
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/a/b/l;->hg:Lcom/airbnb/lottie/c/b/l;
|
|
|
|
iget-object v2, v1, Lcom/airbnb/lottie/c/b/l;->jy:Landroid/graphics/PointF;
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
new-instance v2, Landroid/graphics/PointF;
|
|
|
|
invoke-direct {v2}, Landroid/graphics/PointF;-><init>()V
|
|
|
|
iput-object v2, v1, Lcom/airbnb/lottie/c/b/l;->jy:Landroid/graphics/PointF;
|
|
|
|
:cond_0
|
|
iget-boolean v2, v0, Lcom/airbnb/lottie/c/b/l;->w:Z
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
iget-boolean v2, p1, Lcom/airbnb/lottie/c/b/l;->w:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
const/4 v2, 0x1
|
|
|
|
:goto_1
|
|
iput-boolean v2, v1, Lcom/airbnb/lottie/c/b/l;->w:Z
|
|
|
|
iget-object v2, v0, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
iget-object v4, p1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
if-eq v2, v4, :cond_3
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, "Curves must have the same number of control points. Shape 1: "
|
|
|
|
invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v4, v0, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, "\tShape 2: "
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v4, p1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Lcom/airbnb/lottie/f/d;->w(Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
iget-object v2, v0, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
iget-object v4, p1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v2, v4}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v2
|
|
|
|
iget-object v4, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
if-ge v4, v2, :cond_4
|
|
|
|
iget-object v4, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
:goto_2
|
|
if-ge v4, v2, :cond_5
|
|
|
|
iget-object v5, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
new-instance v6, Lcom/airbnb/lottie/c/a;
|
|
|
|
invoke-direct {v6}, Lcom/airbnb/lottie/c/a;-><init>()V
|
|
|
|
invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
iget-object v4, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
if-le v4, v2, :cond_5
|
|
|
|
iget-object v4, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v4, v3
|
|
|
|
:goto_3
|
|
if-lt v4, v2, :cond_5
|
|
|
|
iget-object v5, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
iget-object v6, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
|
|
|
move-result v6
|
|
|
|
sub-int/2addr v6, v3
|
|
|
|
invoke-interface {v5, v6}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v4, v4, -0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
iget-object v2, v0, Lcom/airbnb/lottie/c/b/l;->jy:Landroid/graphics/PointF;
|
|
|
|
iget-object v4, p1, Lcom/airbnb/lottie/c/b/l;->jy:Landroid/graphics/PointF;
|
|
|
|
iget v5, v2, Landroid/graphics/PointF;->x:F
|
|
|
|
iget v6, v4, Landroid/graphics/PointF;->x:F
|
|
|
|
invoke-static {v5, v6, p2}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result v5
|
|
|
|
iget v2, v2, Landroid/graphics/PointF;->y:F
|
|
|
|
iget v4, v4, Landroid/graphics/PointF;->y:F
|
|
|
|
invoke-static {v2, v4, p2}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result v2
|
|
|
|
iget-object v4, v1, Lcom/airbnb/lottie/c/b/l;->jy:Landroid/graphics/PointF;
|
|
|
|
if-nez v4, :cond_6
|
|
|
|
new-instance v4, Landroid/graphics/PointF;
|
|
|
|
invoke-direct {v4}, Landroid/graphics/PointF;-><init>()V
|
|
|
|
iput-object v4, v1, Lcom/airbnb/lottie/c/b/l;->jy:Landroid/graphics/PointF;
|
|
|
|
:cond_6
|
|
iget-object v4, v1, Lcom/airbnb/lottie/c/b/l;->jy:Landroid/graphics/PointF;
|
|
|
|
invoke-virtual {v4, v5, v2}, Landroid/graphics/PointF;->set(FF)V
|
|
|
|
iget-object v2, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
:goto_4
|
|
if-ltz v2, :cond_7
|
|
|
|
iget-object v3, v0, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/airbnb/lottie/c/a;
|
|
|
|
iget-object v4, p1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/airbnb/lottie/c/a;
|
|
|
|
iget-object v5, v3, Lcom/airbnb/lottie/c/a;->hJ:Landroid/graphics/PointF;
|
|
|
|
iget-object v6, v3, Lcom/airbnb/lottie/c/a;->hK:Landroid/graphics/PointF;
|
|
|
|
iget-object v3, v3, Lcom/airbnb/lottie/c/a;->hL:Landroid/graphics/PointF;
|
|
|
|
iget-object v7, v4, Lcom/airbnb/lottie/c/a;->hJ:Landroid/graphics/PointF;
|
|
|
|
iget-object v8, v4, Lcom/airbnb/lottie/c/a;->hK:Landroid/graphics/PointF;
|
|
|
|
iget-object v4, v4, Lcom/airbnb/lottie/c/a;->hL:Landroid/graphics/PointF;
|
|
|
|
iget-object v9, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v9, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Lcom/airbnb/lottie/c/a;
|
|
|
|
iget v10, v5, Landroid/graphics/PointF;->x:F
|
|
|
|
iget v11, v7, Landroid/graphics/PointF;->x:F
|
|
|
|
invoke-static {v10, v11, p2}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result v10
|
|
|
|
iget v5, v5, Landroid/graphics/PointF;->y:F
|
|
|
|
iget v7, v7, Landroid/graphics/PointF;->y:F
|
|
|
|
invoke-static {v5, v7, p2}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result v5
|
|
|
|
iget-object v7, v9, Lcom/airbnb/lottie/c/a;->hJ:Landroid/graphics/PointF;
|
|
|
|
invoke-virtual {v7, v10, v5}, Landroid/graphics/PointF;->set(FF)V
|
|
|
|
iget-object v5, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v5, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/airbnb/lottie/c/a;
|
|
|
|
iget v7, v6, Landroid/graphics/PointF;->x:F
|
|
|
|
iget v9, v8, Landroid/graphics/PointF;->x:F
|
|
|
|
invoke-static {v7, v9, p2}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result v7
|
|
|
|
iget v6, v6, Landroid/graphics/PointF;->y:F
|
|
|
|
iget v8, v8, Landroid/graphics/PointF;->y:F
|
|
|
|
invoke-static {v6, v8, p2}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result v6
|
|
|
|
iget-object v5, v5, Lcom/airbnb/lottie/c/a;->hK:Landroid/graphics/PointF;
|
|
|
|
invoke-virtual {v5, v7, v6}, Landroid/graphics/PointF;->set(FF)V
|
|
|
|
iget-object v5, v1, Lcom/airbnb/lottie/c/b/l;->jx:Ljava/util/List;
|
|
|
|
invoke-interface {v5, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/airbnb/lottie/c/a;
|
|
|
|
iget v6, v3, Landroid/graphics/PointF;->x:F
|
|
|
|
iget v7, v4, Landroid/graphics/PointF;->x:F
|
|
|
|
invoke-static {v6, v7, p2}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result v6
|
|
|
|
iget v3, v3, Landroid/graphics/PointF;->y:F
|
|
|
|
iget v4, v4, Landroid/graphics/PointF;->y:F
|
|
|
|
invoke-static {v3, v4, p2}, Lcom/airbnb/lottie/f/g;->lerp(FFF)F
|
|
|
|
move-result v3
|
|
|
|
iget-object v4, v5, Lcom/airbnb/lottie/c/a;->hL:Landroid/graphics/PointF;
|
|
|
|
invoke-virtual {v4, v6, v3}, Landroid/graphics/PointF;->set(FF)V
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
iget-object p1, p0, Lcom/airbnb/lottie/a/b/l;->hg:Lcom/airbnb/lottie/c/b/l;
|
|
|
|
iget-object p2, p0, Lcom/airbnb/lottie/a/b/l;->hh:Landroid/graphics/Path;
|
|
|
|
invoke-static {p1, p2}, Lcom/airbnb/lottie/f/g;->a(Lcom/airbnb/lottie/c/b/l;Landroid/graphics/Path;)V
|
|
|
|
iget-object p1, p0, Lcom/airbnb/lottie/a/b/l;->hh:Landroid/graphics/Path;
|
|
|
|
return-object p1
|
|
.end method
|