2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/airbnb/lottie/f/g;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "MiscUtils.java"
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-07-27 00:12:07 +00:00
|
|
|
.field private static nX:Landroid/graphics/PointF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
sput-object v0, Lcom/airbnb/lottie/f/g;->nX:Landroid/graphics/PointF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(DDD)D
|
|
|
|
.locals 0
|
|
|
|
.param p4 # D
|
|
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
|
|
from = 0.0
|
|
|
|
to = 1.0
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
|
|
|
sub-double/2addr p2, p0
|
|
|
|
|
|
|
|
mul-double p4, p4, p2
|
|
|
|
|
|
|
|
add-double/2addr p0, p4
|
|
|
|
|
|
|
|
return-wide p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Landroid/graphics/PointF;Landroid/graphics/PointF;)Landroid/graphics/PointF;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
new-instance v0, Landroid/graphics/PointF;
|
|
|
|
|
|
|
|
iget v1, p0, Landroid/graphics/PointF;->x:F
|
|
|
|
|
|
|
|
iget v2, p1, Landroid/graphics/PointF;->x:F
|
|
|
|
|
|
|
|
add-float/2addr v1, v2
|
|
|
|
|
|
|
|
iget p0, p0, Landroid/graphics/PointF;->y:F
|
|
|
|
|
|
|
|
iget p1, p1, Landroid/graphics/PointF;->y:F
|
|
|
|
|
|
|
|
add-float/2addr p0, p1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, p0}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Lcom/airbnb/lottie/c/b/l;Landroid/graphics/Path;)V
|
|
|
|
.locals 11
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Path;->reset()V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v0, p0, Lcom/airbnb/lottie/c/b/l;->lf:Landroid/graphics/PointF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v1, v0, Landroid/graphics/PointF;->x:F
|
|
|
|
|
|
|
|
iget v2, v0, Landroid/graphics/PointF;->y:F
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
sget-object v1, Lcom/airbnb/lottie/f/g;->nX:Landroid/graphics/PointF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v2, v0, Landroid/graphics/PointF;->x:F
|
|
|
|
|
|
|
|
iget v0, v0, Landroid/graphics/PointF;->y:F
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v0}, Landroid/graphics/PointF;->set(FF)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/c/b/l;->le:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/c/b/l;->le:Ljava/util/List;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lcom/airbnb/lottie/c/a;
|
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v2, v1, Lcom/airbnb/lottie/c/a;->jv:Landroid/graphics/PointF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v3, v1, Lcom/airbnb/lottie/c/a;->jw:Landroid/graphics/PointF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
iget-object v1, v1, Lcom/airbnb/lottie/c/a;->jx:Landroid/graphics/PointF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-27 00:12:07 +00:00
|
|
|
sget-object v4, Lcom/airbnb/lottie/f/g;->nX:Landroid/graphics/PointF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4}, Landroid/graphics/PointF;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Landroid/graphics/PointF;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
|
|
|
|
iget v2, v1, Landroid/graphics/PointF;->x:F
|
|
|
|
|
|
|
|
iget v3, v1, Landroid/graphics/PointF;->y:F
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2, v3}, Landroid/graphics/Path;->lineTo(FF)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget v5, v2, Landroid/graphics/PointF;->x:F
|
|
|
|
|
|
|
|
iget v6, v2, Landroid/graphics/PointF;->y:F
|
|
|
|
|
|
|
|
iget v7, v3, Landroid/graphics/PointF;->x:F
|
|
|
|
|
|
|
|
iget v8, v3, Landroid/graphics/PointF;->y:F
|
|
|
|
|
|
|
|
iget v9, v1, Landroid/graphics/PointF;->x:F
|
|
|
|
|
|
|
|
iget v10, v1, Landroid/graphics/PointF;->y:F
|
|
|
|
|
|
|
|
move-object v4, p1
|
|
|
|
|
|
|
|
invoke-virtual/range {v4 .. v10}, Landroid/graphics/Path;->cubicTo(FFFFFF)V
|
|
|
|
|
|
|
|
:goto_1
|
2019-07-27 00:12:07 +00:00
|
|
|
sget-object v2, Lcom/airbnb/lottie/f/g;->nX:Landroid/graphics/PointF;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v3, v1, Landroid/graphics/PointF;->x:F
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/graphics/PointF;->y:F
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3, v1}, Landroid/graphics/PointF;->set(FF)V
|
|
|
|
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-boolean p0, p0, Lcom/airbnb/lottie/c/b/l;->closed:Z
|
|
|
|
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Path;->close()V
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Lcom/airbnb/lottie/c/e;ILjava/util/List;Lcom/airbnb/lottie/c/e;Lcom/airbnb/lottie/a/a/k;)V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/airbnb/lottie/c/e;",
|
|
|
|
"I",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/airbnb/lottie/c/e;",
|
|
|
|
">;",
|
|
|
|
"Lcom/airbnb/lottie/c/e;",
|
|
|
|
"Lcom/airbnb/lottie/a/a/k;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-interface {p4}, Lcom/airbnb/lottie/a/a/k;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/airbnb/lottie/c/e;->c(Ljava/lang/String;I)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p4}, Lcom/airbnb/lottie/a/a/k;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-virtual {p3, p0}, Lcom/airbnb/lottie/c/e;->w(Ljava/lang/String;)Lcom/airbnb/lottie/c/e;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p4}, Lcom/airbnb/lottie/c/e;->a(Lcom/airbnb/lottie/c/f;)Lcom/airbnb/lottie/c/e;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-interface {p2, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(FFF)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
cmpl-float p1, p0, p1
|
|
|
|
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
|
|
|
|
cmpg-float p0, p0, p2
|
|
|
|
|
|
|
|
if-gtz p0, :cond_0
|
|
|
|
|
|
|
|
const/4 p0, 0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static b(FF)I
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
float-to-int p0, p0
|
|
|
|
|
|
|
|
float-to-int p1, p1
|
|
|
|
|
|
|
|
div-int v0, p0, p1
|
|
|
|
|
|
|
|
xor-int v1, p0, p1
|
|
|
|
|
|
|
|
if-ltz v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
rem-int v2, p0, p1
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
mul-int p1, p1, v0
|
|
|
|
|
|
|
|
sub-int/2addr p0, p1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static clamp(FFF)F
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-static {p2, p0}, Ljava/lang/Math;->min(FF)F
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
invoke-static {p1, p0}, Ljava/lang/Math;->max(FF)F
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static lerp(FFF)F
|
|
|
|
.locals 0
|
|
|
|
.param p2 # F
|
|
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
|
|
from = 0.0
|
|
|
|
to = 1.0
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
|
|
|
sub-float/2addr p1, p0
|
|
|
|
|
|
|
|
mul-float p2, p2, p1
|
|
|
|
|
|
|
|
add-float/2addr p0, p2
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static lerp(IIF)I
|
|
|
|
.locals 1
|
|
|
|
.param p2 # F
|
|
|
|
.annotation build Landroidx/annotation/FloatRange;
|
|
|
|
from = 0.0
|
|
|
|
to = 1.0
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
|
|
|
int-to-float v0, p0
|
|
|
|
|
|
|
|
sub-int/2addr p1, p0
|
|
|
|
|
|
|
|
int-to-float p0, p1
|
|
|
|
|
|
|
|
mul-float p2, p2, p0
|
|
|
|
|
|
|
|
add-float/2addr v0, p2
|
|
|
|
|
|
|
|
float-to-int p0, v0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static o(I)I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/16 v0, 0xff
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|