263 lines
5.4 KiB
Smali
263 lines
5.4 KiB
Smali
|
.class public final Lcom/airbnb/lottie/c;
|
||
|
.super Ljava/lang/Object;
|
||
|
|
||
|
|
||
|
# 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
|
||
|
|
||
|
.field private static final fD:Ljava/util/Set;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Set<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private static fE:Z
|
||
|
|
||
|
.field private static fF:[Ljava/lang/String;
|
||
|
|
||
|
.field private static fG:[J
|
||
|
|
||
|
.field private static fH:I
|
||
|
|
||
|
.field private static fI:I
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Ljava/util/HashSet;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
||
|
|
||
|
sput-object v0, Lcom/airbnb/lottie/c;->fD:Ljava/util/Set;
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
sput-boolean v0, Lcom/airbnb/lottie/c;->fE:Z
|
||
|
|
||
|
sput v0, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
sput v0, Lcom/airbnb/lottie/c;->fI:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static beginSection(Ljava/lang/String;)V
|
||
|
.locals 4
|
||
|
|
||
|
sget-boolean v0, Lcom/airbnb/lottie/c;->fE:Z
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
sget v0, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
const/16 v1, 0x14
|
||
|
|
||
|
if-ne v0, v1, :cond_1
|
||
|
|
||
|
sget p0, Lcom/airbnb/lottie/c;->fI:I
|
||
|
|
||
|
add-int/lit8 p0, p0, 0x1
|
||
|
|
||
|
sput p0, Lcom/airbnb/lottie/c;->fI:I
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
sget-object v0, Lcom/airbnb/lottie/c;->fF:[Ljava/lang/String;
|
||
|
|
||
|
sget v1, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
aput-object p0, v0, v1
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/c;->fG:[J
|
||
|
|
||
|
sget v1, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
aput-wide v2, v0, v1
|
||
|
|
||
|
invoke-static {p0}, Landroidx/core/os/TraceCompat;->beginSection(Ljava/lang/String;)V
|
||
|
|
||
|
sget p0, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
add-int/lit8 p0, p0, 0x1
|
||
|
|
||
|
sput p0, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
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
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/c;->fD:Ljava/util/Set;
|
||
|
|
||
|
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
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/c;->fD:Ljava/util/Set;
|
||
|
|
||
|
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
|
||
|
|
||
|
sget v0, Lcom/airbnb/lottie/c;->fI:I
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-lez v0, :cond_0
|
||
|
|
||
|
sget p0, Lcom/airbnb/lottie/c;->fI:I
|
||
|
|
||
|
add-int/lit8 p0, p0, -0x1
|
||
|
|
||
|
sput p0, Lcom/airbnb/lottie/c;->fI:I
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:cond_0
|
||
|
sget-boolean v0, Lcom/airbnb/lottie/c;->fE:Z
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:cond_1
|
||
|
sget v0, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
add-int/lit8 v0, v0, -0x1
|
||
|
|
||
|
sput v0, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
const/4 v1, -0x1
|
||
|
|
||
|
if-eq v0, v1, :cond_3
|
||
|
|
||
|
sget-object v0, Lcom/airbnb/lottie/c;->fF:[Ljava/lang/String;
|
||
|
|
||
|
sget v1, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
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
|
||
|
|
||
|
sget-object p0, Lcom/airbnb/lottie/c;->fG:[J
|
||
|
|
||
|
sget v2, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
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;
|
||
|
|
||
|
sget-object p0, Lcom/airbnb/lottie/c;->fF:[Ljava/lang/String;
|
||
|
|
||
|
sget v2, Lcom/airbnb/lottie/c;->fH:I
|
||
|
|
||
|
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
|