117 lines
2.7 KiB
Smali
117 lines
2.7 KiB
Smali
.class public final Lcom/airbnb/lottie/c/g;
|
|
.super Ljava/lang/Object;
|
|
.source "LottieCompositionCache.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final jw:Lcom/airbnb/lottie/c/g;
|
|
|
|
|
|
# instance fields
|
|
.field private final jx:Landroidx/collection/LruCache;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/collection/LruCache<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/airbnb/lottie/d;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/airbnb/lottie/c/g;
|
|
|
|
invoke-direct {v0}, Lcom/airbnb/lottie/c/g;-><init>()V
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/c/g;->jw:Lcom/airbnb/lottie/c/g;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>()V
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Landroidx/collection/LruCache;
|
|
|
|
const/high16 v1, 0xa00000
|
|
|
|
invoke-direct {v0, v1}, Landroidx/collection/LruCache;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lcom/airbnb/lottie/c/g;->jx:Landroidx/collection/LruCache;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static bk()Lcom/airbnb/lottie/c/g;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/airbnb/lottie/c/g;->jw:Lcom/airbnb/lottie/c/g;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/String;Lcom/airbnb/lottie/d;)V
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/c/g;->jx:Landroidx/collection/LruCache;
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/collection/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final x(Ljava/lang/String;)Lcom/airbnb/lottie/d;
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/airbnb/lottie/c/g;->jx:Landroidx/collection/LruCache;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/collection/LruCache;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/airbnb/lottie/d;
|
|
|
|
return-object p1
|
|
.end method
|