apkfuckery/com.discord/smali/com/airbnb/lottie/l.smali
2019-03-26 20:13:28 +01:00

165 lines
3.7 KiB
Smali

.class public final Lcom/airbnb/lottie/l;
.super Ljava/lang/Object;
.source "PerformanceTracker.java"
# instance fields
.field enabled:Z
.field private final hq:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private final hr:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Lcom/airbnb/lottie/f/d;",
">;"
}
.end annotation
.end field
.field private final hs: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/l;->enabled:Z
new-instance v0, Landroidx/collection/ArraySet;
invoke-direct {v0}, Landroidx/collection/ArraySet;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/l;->hq:Ljava/util/Set;
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/airbnb/lottie/l;->hr:Ljava/util/Map;
new-instance v0, Lcom/airbnb/lottie/l$1;
invoke-direct {v0, p0}, Lcom/airbnb/lottie/l$1;-><init>(Lcom/airbnb/lottie/l;)V
iput-object v0, p0, Lcom/airbnb/lottie/l;->hs: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/l;->enabled:Z
if-nez v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->hr: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/d;
if-nez v0, :cond_1
new-instance v0, Lcom/airbnb/lottie/f/d;
invoke-direct {v0}, Lcom/airbnb/lottie/f/d;-><init>()V
iget-object v1, p0, Lcom/airbnb/lottie/l;->hr: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/d;->mI:F
add-float/2addr v1, p2
iput v1, v0, Lcom/airbnb/lottie/f/d;->mI:F
iget p2, v0, Lcom/airbnb/lottie/f/d;->mJ:I
add-int/lit8 p2, p2, 0x1
iput p2, v0, Lcom/airbnb/lottie/f/d;->mJ:I
iget p2, v0, Lcom/airbnb/lottie/f/d;->mJ:I
const v1, 0x7fffffff
if-ne p2, v1, :cond_2
iget p2, v0, Lcom/airbnb/lottie/f/d;->mI:F
const/high16 v1, 0x40000000 # 2.0f
div-float/2addr p2, v1
iput p2, v0, Lcom/airbnb/lottie/f/d;->mI:F
iget p2, v0, Lcom/airbnb/lottie/f/d;->mJ:I
div-int/lit8 p2, p2, 0x2
iput p2, v0, Lcom/airbnb/lottie/f/d;->mJ: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/l;->hq: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