apkfuckery/com.discord/smali/com/airbnb/lottie/m.smali

166 lines
3.7 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/airbnb/lottie/m;
.super Ljava/lang/Object;
.source "PerformanceTracker.java"
# instance fields
.field enabled:Z
2019-10-07 23:23:22 +00:00
.field private final fB:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
2019-10-07 23:23:22 +00:00
.field private final fC:Ljava/util/Map;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Lcom/airbnb/lottie/f/f;",
">;"
}
.end annotation
.end field
2019-10-07 23:23:22 +00:00
.field private final fD:Ljava/util/Comparator;
2019-07-24 11:27:29 +00:00
.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
2019-10-07 23:23:22 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/m;->fB:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
2019-10-07 23:23:22 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/m;->fC:Ljava/util/Map;
2019-07-24 11:27:29 +00:00
new-instance v0, Lcom/airbnb/lottie/m$1;
invoke-direct {v0, p0}, Lcom/airbnb/lottie/m$1;-><init>(Lcom/airbnb/lottie/m;)V
2019-10-07 23:23:22 +00:00
iput-object v0, p0, Lcom/airbnb/lottie/m;->fD:Ljava/util/Comparator;
2019-07-24 11:27:29 +00:00
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
2019-10-07 23:23:22 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/m;->fC:Ljava/util/Map;
2019-07-24 11:27:29 +00:00
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
2019-10-07 23:23:22 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/m;->fC:Ljava/util/Map;
2019-07-24 11:27:29 +00:00
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_1
2019-10-07 23:23:22 +00:00
iget v1, v0, Lcom/airbnb/lottie/f/f;->mi:F
2019-07-24 11:27:29 +00:00
add-float/2addr v1, p2
2019-10-07 23:23:22 +00:00
iput v1, v0, Lcom/airbnb/lottie/f/f;->mi:F
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
iget p2, v0, Lcom/airbnb/lottie/f/f;->mj:I
2019-07-24 11:27:29 +00:00
add-int/lit8 p2, p2, 0x1
2019-10-07 23:23:22 +00:00
iput p2, v0, Lcom/airbnb/lottie/f/f;->mj:I
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
iget p2, v0, Lcom/airbnb/lottie/f/f;->mj:I
2019-07-24 11:27:29 +00:00
const v1, 0x7fffffff
if-ne p2, v1, :cond_2
2019-10-07 23:23:22 +00:00
iget p2, v0, Lcom/airbnb/lottie/f/f;->mi:F
2019-07-24 11:27:29 +00:00
const/high16 v1, 0x40000000 # 2.0f
div-float/2addr p2, v1
2019-10-07 23:23:22 +00:00
iput p2, v0, Lcom/airbnb/lottie/f/f;->mi:F
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
iget p2, v0, Lcom/airbnb/lottie/f/f;->mj:I
2019-07-24 11:27:29 +00:00
div-int/lit8 p2, p2, 0x2
2019-10-07 23:23:22 +00:00
iput p2, v0, Lcom/airbnb/lottie/f/f;->mj:I
2019-07-24 11:27:29 +00:00
: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
2019-10-07 23:23:22 +00:00
iget-object p1, p0, Lcom/airbnb/lottie/m;->fB:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
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