2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lcom/airbnb/lottie/c;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "L.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static DBG:Z = false
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
.field private static final fA:Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
.field private static fB:Z
|
|
|
|
|
|
|
|
.field private static fC:[Ljava/lang/String;
|
|
|
|
|
|
|
|
.field private static fD:[J
|
|
|
|
|
|
|
|
.field private static fE:I
|
|
|
|
|
|
|
|
.field private static fF:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sput-object v0, Lcom/airbnb/lottie/c;->fA:Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sput-boolean v0, Lcom/airbnb/lottie/c;->fB:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sput v0, Lcom/airbnb/lottie/c;->fE:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sput v0, Lcom/airbnb/lottie/c;->fF:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static beginSection(Ljava/lang/String;)V
|
|
|
|
.locals 4
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget-boolean v0, Lcom/airbnb/lottie/c;->fB:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-21 02:16:48 +00:00
|
|
|
sget v0, Lcom/airbnb/lottie/c;->fE:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/16 v1, 0x14
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget p0, Lcom/airbnb/lottie/c;->fF:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sput p0, Lcom/airbnb/lottie/c;->fF:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
2019-02-21 02:16:48 +00:00
|
|
|
sget-object v1, Lcom/airbnb/lottie/c;->fC:[Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
aput-object p0, v1, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget-object v1, Lcom/airbnb/lottie/c;->fD:[J
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
aput-wide v2, v1, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0}, Landroidx/core/os/TraceCompat;->beginSection(Ljava/lang/String;)V
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget p0, Lcom/airbnb/lottie/c;->fE:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sput p0, Lcom/airbnb/lottie/c;->fE:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static q(Ljava/lang/String;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-boolean v0, Lcom/airbnb/lottie/c;->DBG:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const-string v0, "LOTTIE"
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static r(Ljava/lang/String;)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget-object v0, Lcom/airbnb/lottie/c;->fA:Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-interface {v0, p0}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v0, "LOTTIE"
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget-object v0, Lcom/airbnb/lottie/c;->fA:Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-interface {v0, p0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static s(Ljava/lang/String;)F
|
|
|
|
.locals 4
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget v0, Lcom/airbnb/lottie/c;->fF:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
add-int/lit8 v0, v0, -0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sput v0, Lcom/airbnb/lottie/c;->fF:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-21 02:16:48 +00:00
|
|
|
sget-boolean v0, Lcom/airbnb/lottie/c;->fB:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_1
|
2019-02-21 02:16:48 +00:00
|
|
|
sget v0, Lcom/airbnb/lottie/c;->fE:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sput v0, Lcom/airbnb/lottie/c;->fE:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, -0x1
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget-object v0, Lcom/airbnb/lottie/c;->fC:[Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget v1, Lcom/airbnb/lottie/c;->fE:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-static {}, Landroidx/core/os/TraceCompat;->endSection()V
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget-object p0, Lcom/airbnb/lottie/c;->fD:[J
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget v2, Lcom/airbnb/lottie/c;->fE:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
aget-wide v2, p0, v2
|
|
|
|
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
|
|
|
|
long-to-float p0, v0
|
|
|
|
|
|
|
|
const v0, 0x49742400 # 1000000.0f
|
|
|
|
|
|
|
|
div-float/2addr p0, v0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v2, "Unbalanced trace call "
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p0, ". Expected "
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget-object p0, Lcom/airbnb/lottie/c;->fC:[Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-21 02:16:48 +00:00
|
|
|
sget v2, Lcom/airbnb/lottie/c;->fE:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
aget-object p0, p0, v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p0, "."
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "Can\'t end trace section. There are none."
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|