193 lines
3.9 KiB
Smali
193 lines
3.9 KiB
Smali
.class public final Lcom/airbnb/lottie/c;
|
|
.super Ljava/lang/Object;
|
|
.source "L.java"
|
|
|
|
|
|
# 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 fl:Z = false
|
|
|
|
.field private static fm:[Ljava/lang/String;
|
|
|
|
.field private static fn:[J
|
|
|
|
.field private static fo:I
|
|
|
|
.field private static fp:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static beginSection(Ljava/lang/String;)V
|
|
.locals 4
|
|
|
|
sget-boolean v0, Lcom/airbnb/lottie/c;->fl:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
sget v0, Lcom/airbnb/lottie/c;->fo:I
|
|
|
|
const/16 v1, 0x14
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
sget p0, Lcom/airbnb/lottie/c;->fp:I
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
sput p0, Lcom/airbnb/lottie/c;->fp:I
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
sget-object v1, Lcom/airbnb/lottie/c;->fm:[Ljava/lang/String;
|
|
|
|
aput-object p0, v1, v0
|
|
|
|
sget-object v1, Lcom/airbnb/lottie/c;->fn:[J
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v2
|
|
|
|
aput-wide v2, v1, v0
|
|
|
|
invoke-static {p0}, Landroidx/core/os/TraceCompat;->beginSection(Ljava/lang/String;)V
|
|
|
|
sget p0, Lcom/airbnb/lottie/c;->fo:I
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
sput p0, Lcom/airbnb/lottie/c;->fo:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static q(Ljava/lang/String;)F
|
|
.locals 4
|
|
|
|
sget v0, Lcom/airbnb/lottie/c;->fp:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
sput v0, Lcom/airbnb/lottie/c;->fp:I
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
sget-boolean v0, Lcom/airbnb/lottie/c;->fl:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
sget v0, Lcom/airbnb/lottie/c;->fo:I
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
sput v0, Lcom/airbnb/lottie/c;->fo:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
sget-object v0, Lcom/airbnb/lottie/c;->fm:[Ljava/lang/String;
|
|
|
|
sget v1, Lcom/airbnb/lottie/c;->fo: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;->fn:[J
|
|
|
|
sget v2, Lcom/airbnb/lottie/c;->fo: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;->fm:[Ljava/lang/String;
|
|
|
|
sget v2, Lcom/airbnb/lottie/c;->fo: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
|