165 lines
3.7 KiB
Smali
165 lines
3.7 KiB
Smali
.class public final Lcom/airbnb/lottie/m;
|
|
.super Ljava/lang/Object;
|
|
.source "PerformanceTracker.java"
|
|
|
|
|
|
# instance fields
|
|
.field enabled:Z
|
|
|
|
.field private final hj:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final hk:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/airbnb/lottie/f/f;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final hl:Ljava/util/Comparator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Comparator<",
|
|
"Landroidx/core/util/Pair<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Float;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/airbnb/lottie/m;->enabled:Z
|
|
|
|
new-instance v0, Landroidx/collection/ArraySet;
|
|
|
|
invoke-direct {v0}, Landroidx/collection/ArraySet;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/m;->hj:Ljava/util/Set;
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/m;->hk:Ljava/util/Map;
|
|
|
|
new-instance v0, Lcom/airbnb/lottie/m$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/airbnb/lottie/m$1;-><init>(Lcom/airbnb/lottie/m;)V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/m;->hl:Ljava/util/Comparator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/String;F)V
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lcom/airbnb/lottie/m;->enabled:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/m;->hk:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/airbnb/lottie/f/f;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
new-instance v0, Lcom/airbnb/lottie/f/f;
|
|
|
|
invoke-direct {v0}, Lcom/airbnb/lottie/f/f;-><init>()V
|
|
|
|
iget-object v1, p0, Lcom/airbnb/lottie/m;->hk:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_1
|
|
iget v1, v0, Lcom/airbnb/lottie/f/f;->nU:F
|
|
|
|
add-float/2addr v1, p2
|
|
|
|
iput v1, v0, Lcom/airbnb/lottie/f/f;->nU:F
|
|
|
|
iget p2, v0, Lcom/airbnb/lottie/f/f;->nV:I
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
iput p2, v0, Lcom/airbnb/lottie/f/f;->nV:I
|
|
|
|
iget p2, v0, Lcom/airbnb/lottie/f/f;->nV:I
|
|
|
|
const v1, 0x7fffffff
|
|
|
|
if-ne p2, v1, :cond_2
|
|
|
|
iget p2, v0, Lcom/airbnb/lottie/f/f;->nU:F
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr p2, v1
|
|
|
|
iput p2, v0, Lcom/airbnb/lottie/f/f;->nU:F
|
|
|
|
iget p2, v0, Lcom/airbnb/lottie/f/f;->nV:I
|
|
|
|
div-int/lit8 p2, p2, 0x2
|
|
|
|
iput p2, v0, Lcom/airbnb/lottie/f/f;->nV:I
|
|
|
|
:cond_2
|
|
const-string p2, "__container"
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
iget-object p1, p0, Lcom/airbnb/lottie/m;->hj:Ljava/util/Set;
|
|
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|