apkfuckery/com.discord/smali/com/airbnb/lottie/f.smali

1406 lines
32 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Lcom/airbnb/lottie/f;
.super Landroid/graphics/drawable/Drawable;
# interfaces
.implements Landroid/graphics/drawable/Animatable;
.implements Landroid/graphics/drawable/Drawable$Callback;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/airbnb/lottie/f$a;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "f"
# instance fields
.field private alpha:I
.field public fT:Lcom/airbnb/lottie/d;
.field fW:Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field gA:Z
.field final gq:Lcom/airbnb/lottie/f/c;
.field private final gr:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field final gs:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lcom/airbnb/lottie/f$a;",
">;"
}
.end annotation
.end field
.field gt:Lcom/airbnb/lottie/b/b;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field gu:Lcom/airbnb/lottie/b;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public gv:Lcom/airbnb/lottie/b/a;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public gw:Lcom/airbnb/lottie/a;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public gx:Lcom/airbnb/lottie/n;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public gy:Z
.field private gz:Lcom/airbnb/lottie/c/c/b;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field private final matrix:Landroid/graphics/Matrix;
.field scale:F
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V
new-instance v0, Landroid/graphics/Matrix;
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
new-instance v0, Lcom/airbnb/lottie/f/c;
invoke-direct {v0}, Lcom/airbnb/lottie/f/c;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
const/high16 v0, 0x3f800000 # 1.0f
iput v0, p0, Lcom/airbnb/lottie/f;->scale:F
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/f;->gr:Ljava/util/Set;
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
const/16 v0, 0xff
iput v0, p0, Lcom/airbnb/lottie/f;->alpha:I
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
new-instance v1, Lcom/airbnb/lottie/f$1;
invoke-direct {v1, p0}, Lcom/airbnb/lottie/f$1;-><init>(Lcom/airbnb/lottie/f;)V
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/c;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
return-void
.end method
.method static synthetic a(Lcom/airbnb/lottie/f;)Lcom/airbnb/lottie/c/c/b;
.locals 0
iget-object p0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
return-object p0
.end method
.method private a(Lcom/airbnb/lottie/c/e;)Ljava/util/List;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/c/e;",
")",
"Ljava/util/List<",
"Lcom/airbnb/lottie/c/e;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
if-nez v0, :cond_0
const-string p1, "LOTTIE"
const-string v0, "Cannot resolve KeyPath. Composition is not set yet."
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object p1
return-object p1
:cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iget-object v1, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
new-instance v2, Lcom/airbnb/lottie/c/e;
const/4 v3, 0x0
new-array v4, v3, [Ljava/lang/String;
invoke-direct {v2, v4}, Lcom/airbnb/lottie/c/e;-><init>([Ljava/lang/String;)V
invoke-virtual {v1, p1, v3, v0, v2}, Lcom/airbnb/lottie/c/c/b;->a(Lcom/airbnb/lottie/c/e;ILjava/util/List;Lcom/airbnb/lottie/c/e;)V
return-object v0
.end method
.method private aS()V
.locals 4
new-instance v0, Lcom/airbnb/lottie/c/c/b;
iget-object v1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
invoke-static {v1}, Lcom/airbnb/lottie/e/q;->b(Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/c/d;
move-result-object v1
iget-object v2, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v2, v2, Lcom/airbnb/lottie/d;->ge:Ljava/util/List;
iget-object v3, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
invoke-direct {v0, p0, v1, v2, v3}, Lcom/airbnb/lottie/c/c/b;-><init>(Lcom/airbnb/lottie/f;Lcom/airbnb/lottie/c/c/d;Ljava/util/List;Lcom/airbnb/lottie/d;)V
iput-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
return-void
.end method
.method private aV()V
.locals 3
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-nez v0, :cond_0
return-void
:cond_0
iget v0, p0, Lcom/airbnb/lottie/f;->scale:F
iget-object v1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v1, v1, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
invoke-virtual {v1}, Landroid/graphics/Rect;->width()I
move-result v1
int-to-float v1, v1
mul-float v1, v1, v0
float-to-int v1, v1
iget-object v2, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v2, v2, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
invoke-virtual {v2}, Landroid/graphics/Rect;->height()I
move-result v2
int-to-float v2, v2
mul-float v2, v2, v0
float-to-int v0, v2
const/4 v2, 0x0
invoke-virtual {p0, v2, v2, v1, v0}, Lcom/airbnb/lottie/f;->setBounds(IIII)V
return-void
.end method
.method static synthetic b(Lcom/airbnb/lottie/f;)Lcom/airbnb/lottie/f/c;
.locals 0
iget-object p0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
return-object p0
.end method
# virtual methods
.method public final a(Lcom/airbnb/lottie/c/e;Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/airbnb/lottie/c/e;",
"TT;",
"Lcom/airbnb/lottie/g/c<",
"TT;>;)V"
}
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
new-instance v1, Lcom/airbnb/lottie/f$4;
invoke-direct {v1, p0, p1, p2, p3}, Lcom/airbnb/lottie/f$4;-><init>(Lcom/airbnb/lottie/f;Lcom/airbnb/lottie/c/e;Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
iget-object v0, p1, Lcom/airbnb/lottie/c/e;->jA:Lcom/airbnb/lottie/c/f;
const/4 v1, 0x0
const/4 v2, 0x1
if-eqz v0, :cond_1
iget-object p1, p1, Lcom/airbnb/lottie/c/e;->jA:Lcom/airbnb/lottie/c/f;
invoke-interface {p1, p2, p3}, Lcom/airbnb/lottie/c/f;->a(Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
goto :goto_1
:cond_1
invoke-direct {p0, p1}, Lcom/airbnb/lottie/f;->a(Lcom/airbnb/lottie/c/e;)Ljava/util/List;
move-result-object p1
const/4 v0, 0x0
:goto_0
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v3
if-ge v0, v3, :cond_2
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/airbnb/lottie/c/e;
iget-object v3, v3, Lcom/airbnb/lottie/c/e;->jA:Lcom/airbnb/lottie/c/f;
invoke-interface {v3, p2, p3}, Lcom/airbnb/lottie/c/f;->a(Ljava/lang/Object;Lcom/airbnb/lottie/g/c;)V
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_2
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
move-result p1
if-nez p1, :cond_3
goto :goto_1
:cond_3
const/4 v2, 0x0
:goto_1
if-eqz v2, :cond_4
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->invalidateSelf()V
sget-object p1, Lcom/airbnb/lottie/i;->hk:Ljava/lang/Float;
if-ne p2, p1, :cond_4
iget-object p1, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {p1}, Lcom/airbnb/lottie/f/c;->by()F
move-result p1
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setProgress(F)V
:cond_4
return-void
.end method
.method public final a(Lcom/airbnb/lottie/d;)Z
.locals 5
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
const/4 v1, 0x0
if-ne v0, p1, :cond_0
return v1
:cond_0
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->aT()V
iput-object p1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
invoke-direct {p0}, Lcom/airbnb/lottie/f;->aS()V
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
iget-object v2, v0, Lcom/airbnb/lottie/f/c;->fT:Lcom/airbnb/lottie/d;
const/4 v3, 0x1
if-nez v2, :cond_1
const/4 v1, 0x1
:cond_1
iput-object p1, v0, Lcom/airbnb/lottie/f/c;->fT:Lcom/airbnb/lottie/d;
if-eqz v1, :cond_2
iget v1, v0, Lcom/airbnb/lottie/f/c;->mK:F
iget v2, p1, Lcom/airbnb/lottie/d;->gg:F
invoke-static {v1, v2}, Ljava/lang/Math;->max(FF)F
move-result v1
float-to-int v1, v1
iget v2, v0, Lcom/airbnb/lottie/f/c;->mL:F
iget v4, p1, Lcom/airbnb/lottie/d;->gh:F
invoke-static {v2, v4}, Ljava/lang/Math;->min(FF)F
move-result v2
:goto_0
float-to-int v2, v2
invoke-virtual {v0, v1, v2}, Lcom/airbnb/lottie/f/c;->a(II)V
goto :goto_1
:cond_2
iget v1, p1, Lcom/airbnb/lottie/d;->gg:F
float-to-int v1, v1
iget v2, p1, Lcom/airbnb/lottie/d;->gh:F
goto :goto_0
:goto_1
iget v1, v0, Lcom/airbnb/lottie/f/c;->mJ:F
float-to-int v1, v1
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/c;->setFrame(I)V
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v1
iput-wide v1, v0, Lcom/airbnb/lottie/f/c;->mI:J
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->getAnimatedFraction()F
move-result v0
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/f;->setProgress(F)V
iget v0, p0, Lcom/airbnb/lottie/f;->scale:F
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/f;->setScale(F)V
invoke-direct {p0}, Lcom/airbnb/lottie/f;->aV()V
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/airbnb/lottie/f$a;
invoke-interface {v1}, Lcom/airbnb/lottie/f$a;->aW()V
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
goto :goto_2
:cond_3
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gA:Z
invoke-virtual {p1, v0}, Lcom/airbnb/lottie/d;->setPerformanceTrackingEnabled(Z)V
return v3
.end method
.method public final aL()V
.locals 2
.annotation build Landroidx/annotation/MainThread;
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
new-instance v1, Lcom/airbnb/lottie/f$5;
invoke-direct {v1, p0}, Lcom/airbnb/lottie/f$5;-><init>(Lcom/airbnb/lottie/f;)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->aL()V
return-void
.end method
.method public final aR()V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
invoke-virtual {v0}, Lcom/airbnb/lottie/b/b;->aR()V
:cond_0
return-void
.end method
.method public final aT()V
.locals 1
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->aR()V
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->isRunning()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->cancel()V
:cond_0
const/4 v0, 0x0
iput-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iput-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
iput-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->aT()V
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->invalidateSelf()V
return-void
.end method
.method public final aU()Z
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/f;->gx:Lcom/airbnb/lottie/n;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v0, v0, Lcom/airbnb/lottie/d;->gc:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v0}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v0
if-lez v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public draw(Landroid/graphics/Canvas;)V
.locals 8
.param p1 # Landroid/graphics/Canvas;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const-string v0, "Drawable#draw"
invoke-static {v0}, Lcom/airbnb/lottie/c;->beginSection(Ljava/lang/String;)V
iget-object v0, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
if-nez v0, :cond_0
return-void
:cond_0
iget v0, p0, Lcom/airbnb/lottie/f;->scale:F
invoke-virtual {p1}, Landroid/graphics/Canvas;->getWidth()I
move-result v1
int-to-float v1, v1
iget-object v2, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v2, v2, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
invoke-virtual {v2}, Landroid/graphics/Rect;->width()I
move-result v2
int-to-float v2, v2
div-float/2addr v1, v2
invoke-virtual {p1}, Landroid/graphics/Canvas;->getHeight()I
move-result v2
int-to-float v2, v2
iget-object v3, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v3, v3, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
invoke-virtual {v3}, Landroid/graphics/Rect;->height()I
move-result v3
int-to-float v3, v3
div-float/2addr v2, v3
invoke-static {v1, v2}, Ljava/lang/Math;->min(FF)F
move-result v1
const/high16 v2, 0x3f800000 # 1.0f
cmpl-float v3, v0, v1
if-lez v3, :cond_1
iget v0, p0, Lcom/airbnb/lottie/f;->scale:F
div-float/2addr v0, v1
goto :goto_0
:cond_1
move v1, v0
const/high16 v0, 0x3f800000 # 1.0f
:goto_0
cmpl-float v3, v0, v2
if-lez v3, :cond_2
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
iget-object v3, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v3, v3, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
invoke-virtual {v3}, Landroid/graphics/Rect;->width()I
move-result v3
int-to-float v3, v3
const/high16 v4, 0x40000000 # 2.0f
div-float/2addr v3, v4
iget-object v5, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v5, v5, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
invoke-virtual {v5}, Landroid/graphics/Rect;->height()I
move-result v5
int-to-float v5, v5
div-float/2addr v5, v4
mul-float v4, v3, v1
mul-float v6, v5, v1
iget v7, p0, Lcom/airbnb/lottie/f;->scale:F
mul-float v7, v7, v3
sub-float/2addr v7, v4
iget v3, p0, Lcom/airbnb/lottie/f;->scale:F
mul-float v3, v3, v5
sub-float/2addr v3, v6
invoke-virtual {p1, v7, v3}, Landroid/graphics/Canvas;->translate(FF)V
invoke-virtual {p1, v0, v0, v4, v6}, Landroid/graphics/Canvas;->scale(FFFF)V
:cond_2
iget-object v3, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
invoke-virtual {v3}, Landroid/graphics/Matrix;->reset()V
iget-object v3, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
invoke-virtual {v3, v1, v1}, Landroid/graphics/Matrix;->preScale(FF)Z
iget-object v1, p0, Lcom/airbnb/lottie/f;->gz:Lcom/airbnb/lottie/c/c/b;
iget-object v3, p0, Lcom/airbnb/lottie/f;->matrix:Landroid/graphics/Matrix;
iget v4, p0, Lcom/airbnb/lottie/f;->alpha:I
invoke-virtual {v1, p1, v3, v4}, Lcom/airbnb/lottie/c/c/b;->a(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V
const-string v1, "Drawable#draw"
invoke-static {v1}, Lcom/airbnb/lottie/c;->s(Ljava/lang/String;)F
cmpl-float v0, v0, v2
if-lez v0, :cond_3
invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V
:cond_3
return-void
.end method
.method public getAlpha()I
.locals 1
iget v0, p0, Lcom/airbnb/lottie/f;->alpha:I
return v0
.end method
.method public getIntrinsicHeight()I
.locals 2
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-nez v0, :cond_0
const/4 v0, -0x1
return v0
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v0, v0, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
invoke-virtual {v0}, Landroid/graphics/Rect;->height()I
move-result v0
int-to-float v0, v0
iget v1, p0, Lcom/airbnb/lottie/f;->scale:F
mul-float v0, v0, v1
float-to-int v0, v0
return v0
.end method
.method public getIntrinsicWidth()I
.locals 2
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-nez v0, :cond_0
const/4 v0, -0x1
return v0
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v0, v0, Lcom/airbnb/lottie/d;->gf:Landroid/graphics/Rect;
invoke-virtual {v0}, Landroid/graphics/Rect;->width()I
move-result v0
int-to-float v0, v0
iget v1, p0, Lcom/airbnb/lottie/f;->scale:F
mul-float v0, v0, v1
float-to-int v0, v0
return v0
.end method
.method public getOpacity()I
.locals 1
const/4 v0, -0x3
return v0
.end method
.method public invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
.locals 0
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object p1
if-nez p1, :cond_0
return-void
:cond_0
invoke-interface {p1, p0}, Landroid/graphics/drawable/Drawable$Callback;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public invalidateSelf()V
.locals 1
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object v0
if-eqz v0, :cond_0
invoke-interface {v0, p0}, Landroid/graphics/drawable/Drawable$Callback;->invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_0
return-void
.end method
.method public isRunning()Z
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->isRunning()Z
move-result v0
return v0
.end method
.method public final j(Z)V
.locals 2
iget-boolean v0, p0, Lcom/airbnb/lottie/f;->gy:Z
if-ne v0, p1, :cond_0
return-void
:cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x13
if-ge v0, v1, :cond_1
sget-object p1, Lcom/airbnb/lottie/f;->TAG:Ljava/lang/String;
const-string v0, "Merge paths are not supported pre-Kit Kat."
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
:cond_1
iput-boolean p1, p0, Lcom/airbnb/lottie/f;->gy:Z
iget-object p1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-eqz p1, :cond_2
invoke-direct {p0}, Lcom/airbnb/lottie/f;->aS()V
:cond_2
return-void
.end method
.method public scheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;J)V
.locals 0
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/Runnable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object p1
if-nez p1, :cond_0
return-void
:cond_0
invoke-interface {p1, p0, p2, p3, p4}, Landroid/graphics/drawable/Drawable$Callback;->scheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;J)V
return-void
.end method
.method public setAlpha(I)V
.locals 0
.param p1 # I
.annotation build Landroidx/annotation/IntRange;
from = 0x0L
to = 0xffL
.end annotation
.end param
iput p1, p0, Lcom/airbnb/lottie/f;->alpha:I
return-void
.end method
.method public setColorFilter(Landroid/graphics/ColorFilter;)V
.locals 1
.param p1 # Landroid/graphics/ColorFilter;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
const-string p1, "LOTTIE"
const-string v0, "Use addColorFilter instead."
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
.end method
.method public final setFrame(I)V
.locals 2
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
new-instance v1, Lcom/airbnb/lottie/f$2;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$2;-><init>(Lcom/airbnb/lottie/f;I)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/c;->setFrame(I)V
return-void
.end method
.method public final setMaxFrame(I)V
.locals 2
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
new-instance v1, Lcom/airbnb/lottie/f$8;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$8;-><init>(Lcom/airbnb/lottie/f;I)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/c;->setMaxFrame(I)V
return-void
.end method
.method public final setMaxProgress(F)V
.locals 2
.param p1 # F
.annotation build Landroidx/annotation/FloatRange;
from = 0.0
to = 1.0
.end annotation
.end param
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
new-instance v1, Lcom/airbnb/lottie/f$9;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$9;-><init>(Lcom/airbnb/lottie/f;F)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget v0, v0, Lcom/airbnb/lottie/d;->gg:F
iget-object v1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget v1, v1, Lcom/airbnb/lottie/d;->gh:F
sub-float/2addr v1, v0
mul-float p1, p1, v1
add-float/2addr v0, p1
float-to-int p1, v0
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setMaxFrame(I)V
return-void
.end method
.method public final setMinFrame(I)V
.locals 2
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
new-instance v1, Lcom/airbnb/lottie/f$6;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$6;-><init>(Lcom/airbnb/lottie/f;I)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/c;->setMinFrame(I)V
return-void
.end method
.method public final setMinProgress(F)V
.locals 2
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
new-instance v1, Lcom/airbnb/lottie/f$7;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$7;-><init>(Lcom/airbnb/lottie/f;F)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget v0, v0, Lcom/airbnb/lottie/d;->gg:F
iget-object v1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget v1, v1, Lcom/airbnb/lottie/d;->gh:F
sub-float/2addr v1, v0
mul-float p1, p1, v1
add-float/2addr v0, p1
float-to-int p1, v0
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setMinFrame(I)V
return-void
.end method
.method public final setProgress(F)V
.locals 2
.param p1 # F
.annotation build Landroidx/annotation/FloatRange;
from = 0.0
to = 1.0
.end annotation
.end param
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
new-instance v1, Lcom/airbnb/lottie/f$3;
invoke-direct {v1, p0, p1}, Lcom/airbnb/lottie/f$3;-><init>(Lcom/airbnb/lottie/f;F)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget v0, v0, Lcom/airbnb/lottie/d;->gg:F
iget-object v1, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget v1, v1, Lcom/airbnb/lottie/d;->gh:F
sub-float/2addr v1, v0
mul-float p1, p1, v1
add-float/2addr v0, p1
float-to-int p1, v0
invoke-virtual {p0, p1}, Lcom/airbnb/lottie/f;->setFrame(I)V
return-void
.end method
.method public final setRepeatCount(I)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/f/c;->setRepeatCount(I)V
return-void
.end method
.method public final setScale(F)V
.locals 0
iput p1, p0, Lcom/airbnb/lottie/f;->scale:F
invoke-direct {p0}, Lcom/airbnb/lottie/f;->aV()V
return-void
.end method
.method public start()V
.locals 0
.annotation build Landroidx/annotation/MainThread;
.end annotation
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->aL()V
return-void
.end method
.method public stop()V
.locals 2
.annotation build Landroidx/annotation/MainThread;
.end annotation
iget-object v0, p0, Lcom/airbnb/lottie/f;->gs:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
iget-object v0, p0, Lcom/airbnb/lottie/f;->gq:Lcom/airbnb/lottie/f/c;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/c;->l(Z)V
invoke-virtual {v0}, Lcom/airbnb/lottie/f/c;->bA()Z
move-result v1
invoke-virtual {v0, v1}, Lcom/airbnb/lottie/f/c;->k(Z)V
return-void
.end method
.method public final u(Ljava/lang/String;)Landroid/graphics/Bitmap;
.locals 6
.annotation build Landroidx/annotation/Nullable;
.end annotation
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_0
move-object v0, v1
goto :goto_2
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
if-eqz v0, :cond_5
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object v2
if-eqz v2, :cond_1
instance-of v3, v2, Landroid/view/View;
if-eqz v3, :cond_1
check-cast v2, Landroid/view/View;
invoke-virtual {v2}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v2
goto :goto_0
:cond_1
move-object v2, v1
:goto_0
if-nez v2, :cond_2
iget-object v3, v0, Lcom/airbnb/lottie/b/b;->context:Landroid/content/Context;
if-eqz v3, :cond_3
:cond_2
iget-object v0, v0, Lcom/airbnb/lottie/b/b;->context:Landroid/content/Context;
invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_4
:cond_3
const/4 v0, 0x1
goto :goto_1
:cond_4
const/4 v0, 0x0
:goto_1
if-nez v0, :cond_5
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
invoke-virtual {v0}, Lcom/airbnb/lottie/b/b;->aR()V
iput-object v1, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
:cond_5
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
if-nez v0, :cond_6
new-instance v0, Lcom/airbnb/lottie/b/b;
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object v2
iget-object v3, p0, Lcom/airbnb/lottie/f;->fW:Ljava/lang/String;
iget-object v4, p0, Lcom/airbnb/lottie/f;->gu:Lcom/airbnb/lottie/b;
iget-object v5, p0, Lcom/airbnb/lottie/f;->fT:Lcom/airbnb/lottie/d;
iget-object v5, v5, Lcom/airbnb/lottie/d;->ga:Ljava/util/Map;
invoke-direct {v0, v2, v3, v4, v5}, Lcom/airbnb/lottie/b/b;-><init>(Landroid/graphics/drawable/Drawable$Callback;Ljava/lang/String;Lcom/airbnb/lottie/b;Ljava/util/Map;)V
iput-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
:cond_6
iget-object v0, p0, Lcom/airbnb/lottie/f;->gt:Lcom/airbnb/lottie/b/b;
:goto_2
if-eqz v0, :cond_7
invoke-virtual {v0, p1}, Lcom/airbnb/lottie/b/b;->v(Ljava/lang/String;)Landroid/graphics/Bitmap;
move-result-object p1
return-object p1
:cond_7
return-object v1
.end method
.method public unscheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;)V
.locals 0
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/Runnable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-virtual {p0}, Lcom/airbnb/lottie/f;->getCallback()Landroid/graphics/drawable/Drawable$Callback;
move-result-object p1
if-nez p1, :cond_0
return-void
:cond_0
invoke-interface {p1, p0, p2}, Landroid/graphics/drawable/Drawable$Callback;->unscheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;)V
return-void
.end method