apkfuckery/com.discord/smali/com/airbnb/lottie/l.smali
2019-10-23 06:50:18 +02:00

496 lines
11 KiB
Smali

.class public final Lcom/airbnb/lottie/l;
.super Ljava/lang/Object;
.source "LottieTask.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/airbnb/lottie/l$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# static fields
.field public static fx:Ljava/util/concurrent/Executor;
# instance fields
.field private volatile fA:Lcom/airbnb/lottie/k;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/airbnb/lottie/k<",
"TT;>;"
}
.end annotation
.end field
.field private final fy:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/airbnb/lottie/h<",
"TT;>;>;"
}
.end annotation
.end field
.field private final fz:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/airbnb/lottie/h<",
"Ljava/lang/Throwable;",
">;>;"
}
.end annotation
.end field
.field private final handler:Landroid/os/Handler;
# direct methods
.method static constructor <clinit>()V
.locals 1
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
move-result-object v0
sput-object v0, Lcom/airbnb/lottie/l;->fx:Ljava/util/concurrent/Executor;
return-void
.end method
.method public constructor <init>(Ljava/util/concurrent/Callable;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lcom/airbnb/lottie/k<",
"TT;>;>;)V"
}
.end annotation
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Lcom/airbnb/lottie/l;-><init>(Ljava/util/concurrent/Callable;B)V
return-void
.end method
.method private constructor <init>(Ljava/util/concurrent/Callable;B)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lcom/airbnb/lottie/k<",
"TT;>;>;B)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance p2, Ljava/util/LinkedHashSet;
const/4 v0, 0x1
invoke-direct {p2, v0}, Ljava/util/LinkedHashSet;-><init>(I)V
iput-object p2, p0, Lcom/airbnb/lottie/l;->fy:Ljava/util/Set;
new-instance p2, Ljava/util/LinkedHashSet;
invoke-direct {p2, v0}, Ljava/util/LinkedHashSet;-><init>(I)V
iput-object p2, p0, Lcom/airbnb/lottie/l;->fz:Ljava/util/Set;
new-instance p2, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-direct {p2, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object p2, p0, Lcom/airbnb/lottie/l;->handler:Landroid/os/Handler;
const/4 p2, 0x0
iput-object p2, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
sget-object p2, Lcom/airbnb/lottie/l;->fx:Ljava/util/concurrent/Executor;
new-instance v0, Lcom/airbnb/lottie/l$a;
invoke-direct {v0, p0, p1}, Lcom/airbnb/lottie/l$a;-><init>(Lcom/airbnb/lottie/l;Ljava/util/concurrent/Callable;)V
invoke-interface {p2, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method static synthetic a(Lcom/airbnb/lottie/l;)Lcom/airbnb/lottie/k;
.locals 0
iget-object p0, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
return-object p0
.end method
.method static synthetic a(Lcom/airbnb/lottie/l;Lcom/airbnb/lottie/k;)V
.locals 1
iget-object v0, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
if-nez v0, :cond_0
iput-object p1, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
iget-object p1, p0, Lcom/airbnb/lottie/l;->handler:Landroid/os/Handler;
new-instance v0, Lcom/airbnb/lottie/l$1;
invoke-direct {v0, p0}, Lcom/airbnb/lottie/l$1;-><init>(Lcom/airbnb/lottie/l;)V
invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
return-void
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "A task may only be set once."
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method static synthetic a(Lcom/airbnb/lottie/l;Ljava/lang/Object;)V
.locals 0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/l;->i(Ljava/lang/Object;)V
return-void
.end method
.method static synthetic a(Lcom/airbnb/lottie/l;Ljava/lang/Throwable;)V
.locals 0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/l;->a(Ljava/lang/Throwable;)V
return-void
.end method
.method private declared-synchronized a(Ljava/lang/Throwable;)V
.locals 2
monitor-enter p0
:try_start_0
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lcom/airbnb/lottie/l;->fz:Ljava/util/Set;
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-eqz v1, :cond_0
const-string v0, "Lottie encountered an error but no failure listener was added:"
invoke-static {v0, p1}, Lcom/airbnb/lottie/f/d;->b(Ljava/lang/String;Ljava/lang/Throwable;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:cond_0
:try_start_1
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/airbnb/lottie/h;
invoke-interface {v1, p1}, Lcom/airbnb/lottie/h;->h(Ljava/lang/Object;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:cond_1
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
goto :goto_2
:goto_1
throw p1
:goto_2
goto :goto_1
.end method
.method private declared-synchronized i(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
monitor-enter p0
:try_start_0
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lcom/airbnb/lottie/l;->fy:Ljava/util/Set;
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/airbnb/lottie/h;
invoke-interface {v1, p1}, Lcom/airbnb/lottie/h;->h(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:cond_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
goto :goto_2
:goto_1
throw p1
:goto_2
goto :goto_1
.end method
# virtual methods
.method public final declared-synchronized a(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/h<",
"TT;>;)",
"Lcom/airbnb/lottie/l<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
iget-object v0, v0, Lcom/airbnb/lottie/k;->value:Ljava/lang/Object;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
iget-object v0, v0, Lcom/airbnb/lottie/k;->value:Ljava/lang/Object;
invoke-interface {p1, v0}, Lcom/airbnb/lottie/h;->h(Ljava/lang/Object;)V
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fy:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized b(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/h<",
"TT;>;)",
"Lcom/airbnb/lottie/l<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fy:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized c(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/h<",
"Ljava/lang/Throwable;",
">;)",
"Lcom/airbnb/lottie/l<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
iget-object v0, v0, Lcom/airbnb/lottie/k;->exception:Ljava/lang/Throwable;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fA:Lcom/airbnb/lottie/k;
iget-object v0, v0, Lcom/airbnb/lottie/k;->exception:Ljava/lang/Throwable;
invoke-interface {p1, v0}, Lcom/airbnb/lottie/h;->h(Ljava/lang/Object;)V
:cond_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fz:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized d(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/h<",
"Ljava/lang/Throwable;",
">;)",
"Lcom/airbnb/lottie/l<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/airbnb/lottie/l;->fz:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method