Rabbit-R1/android (non root)/smali/smali_classes2/com/airbnb/lottie/LottieComposition$Factory.smali
2024-05-21 17:08:36 -04:00

276 lines
9.1 KiB
Smali

.class public Lcom/airbnb/lottie/LottieComposition$Factory;
.super Ljava/lang/Object;
.source "LottieComposition.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/airbnb/lottie/LottieComposition;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Factory"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 257
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static fromAssetFileName(Landroid/content/Context;Ljava/lang/String;Lcom/airbnb/lottie/OnCompositionLoadedListener;)Lcom/airbnb/lottie/Cancellable;
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 266
new-instance v0, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;
const/4 v1, 0x0
invoke-direct {v0, p2, v1}, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;-><init>(Lcom/airbnb/lottie/OnCompositionLoadedListener;Lcom/airbnb/lottie/LottieComposition$1;)V
.line 267
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromAsset(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
move-result-object p0
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieTask;->addListener(Lcom/airbnb/lottie/LottieListener;)Lcom/airbnb/lottie/LottieTask;
return-object v0
.end method
.method public static fromFileSync(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/LottieComposition;
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 322
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromAssetSync(Landroid/content/Context;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
move-result-object p0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/airbnb/lottie/LottieComposition;
return-object p0
.end method
.method public static fromInputStream(Ljava/io/InputStream;Lcom/airbnb/lottie/OnCompositionLoadedListener;)Lcom/airbnb/lottie/Cancellable;
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 288
new-instance v0, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;
const/4 v1, 0x0
invoke-direct {v0, p1, v1}, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;-><init>(Lcom/airbnb/lottie/OnCompositionLoadedListener;Lcom/airbnb/lottie/LottieComposition$1;)V
.line 289
invoke-static {p0, v1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStream(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
move-result-object p0
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieTask;->addListener(Lcom/airbnb/lottie/LottieListener;)Lcom/airbnb/lottie/LottieTask;
return-object v0
.end method
.method public static fromInputStreamSync(Ljava/io/InputStream;)Lcom/airbnb/lottie/LottieComposition;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 v0, 0x0
.line 332
invoke-static {p0, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
move-result-object p0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/airbnb/lottie/LottieComposition;
return-object p0
.end method
.method public static fromInputStreamSync(Ljava/io/InputStream;Z)Lcom/airbnb/lottie/LottieComposition;
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
if-eqz p1, :cond_0
const-string p1, "Lottie now auto-closes input stream!"
.line 345
invoke-static {p1}, Lcom/airbnb/lottie/utils/Logger;->warning(Ljava/lang/String;)V
:cond_0
const/4 p1, 0x0
.line 347
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonInputStreamSync(Ljava/io/InputStream;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
move-result-object p0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/airbnb/lottie/LottieComposition;
return-object p0
.end method
.method public static fromJsonReader(Lcom/airbnb/lottie/parser/moshi/JsonReader;Lcom/airbnb/lottie/OnCompositionLoadedListener;)Lcom/airbnb/lottie/Cancellable;
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 310
new-instance v0, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;
const/4 v1, 0x0
invoke-direct {v0, p1, v1}, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;-><init>(Lcom/airbnb/lottie/OnCompositionLoadedListener;Lcom/airbnb/lottie/LottieComposition$1;)V
.line 311
invoke-static {p0, v1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonReader(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
move-result-object p0
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieTask;->addListener(Lcom/airbnb/lottie/LottieListener;)Lcom/airbnb/lottie/LottieTask;
return-object v0
.end method
.method public static fromJsonString(Ljava/lang/String;Lcom/airbnb/lottie/OnCompositionLoadedListener;)Lcom/airbnb/lottie/Cancellable;
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 299
new-instance v0, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;
const/4 v1, 0x0
invoke-direct {v0, p1, v1}, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;-><init>(Lcom/airbnb/lottie/OnCompositionLoadedListener;Lcom/airbnb/lottie/LottieComposition$1;)V
.line 300
invoke-static {p0, v1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonString(Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieTask;
move-result-object p0
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieTask;->addListener(Lcom/airbnb/lottie/LottieListener;)Lcom/airbnb/lottie/LottieTask;
return-object v0
.end method
.method public static fromJsonSync(Landroid/content/res/Resources;Lorg/json/JSONObject;)Lcom/airbnb/lottie/LottieComposition;
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 p0, 0x0
.line 358
invoke-static {p1, p0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonSync(Lorg/json/JSONObject;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
move-result-object p0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/airbnb/lottie/LottieComposition;
return-object p0
.end method
.method public static fromJsonSync(Lcom/airbnb/lottie/parser/moshi/JsonReader;)Lcom/airbnb/lottie/LottieComposition;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 v0, 0x0
.line 378
invoke-static {p0, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonReaderSync(Lcom/airbnb/lottie/parser/moshi/JsonReader;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
move-result-object p0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/airbnb/lottie/LottieComposition;
return-object p0
.end method
.method public static fromJsonSync(Ljava/lang/String;)Lcom/airbnb/lottie/LottieComposition;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 v0, 0x0
.line 368
invoke-static {p0, v0}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromJsonStringSync(Ljava/lang/String;Ljava/lang/String;)Lcom/airbnb/lottie/LottieResult;
move-result-object p0
invoke-virtual {p0}, Lcom/airbnb/lottie/LottieResult;->getValue()Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/airbnb/lottie/LottieComposition;
return-object p0
.end method
.method public static fromRawFile(Landroid/content/Context;ILcom/airbnb/lottie/OnCompositionLoadedListener;)Lcom/airbnb/lottie/Cancellable;
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 277
new-instance v0, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;
const/4 v1, 0x0
invoke-direct {v0, p2, v1}, Lcom/airbnb/lottie/LottieComposition$Factory$ListenerAdapter;-><init>(Lcom/airbnb/lottie/OnCompositionLoadedListener;Lcom/airbnb/lottie/LottieComposition$1;)V
.line 278
invoke-static {p0, p1}, Lcom/airbnb/lottie/LottieCompositionFactory;->fromRawRes(Landroid/content/Context;I)Lcom/airbnb/lottie/LottieTask;
move-result-object p0
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/LottieTask;->addListener(Lcom/airbnb/lottie/LottieListener;)Lcom/airbnb/lottie/LottieTask;
return-object v0
.end method