apkfuckery/com.discord/smali/e/d/a/n.smali

471 lines
9.9 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Le/d/a/n;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "LottieTask.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-12-06 03:29:40 +00:00
Le/d/a/n$a;
2019-07-24 11:27:29 +00:00
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static e:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final a:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-06 03:29:40 +00:00
"Ljava/util/Set<",
"Le/d/a/h<",
"TT;>;>;"
2019-07-24 11:27:29 +00:00
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final b:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
2019-12-06 03:29:40 +00:00
"Le/d/a/h<",
"Ljava/lang/Throwable;",
">;>;"
2019-07-24 11:27:29 +00:00
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final c:Landroid/os/Handler;
.field public volatile d:Le/d/a/l;
.annotation build Landroidx/annotation/Nullable;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-06 03:29:40 +00:00
"Le/d/a/l<",
"TT;>;"
2019-07-24 11:27:29 +00:00
}
.end annotation
.end field
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-07-24 11:27:29 +00:00
.locals 1
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
move-result-object v0
2019-12-06 03:29:40 +00:00
sput-object v0, Le/d/a/n;->e:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>(Ljava/util/concurrent/Callable;)V
2019-12-06 03:29:40 +00:00
.locals 2
.annotation build Landroidx/annotation/RestrictTo;
2019-07-24 11:27:29 +00:00
value = {
2019-12-06 03:29:40 +00:00
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
2019-07-24 11:27:29 +00:00
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
2019-12-06 03:29:40 +00:00
"Le/d/a/l<",
"TT;>;>;)V"
2019-07-24 11:27:29 +00:00
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-06 03:29:40 +00:00
new-instance v0, Ljava/util/LinkedHashSet;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-object v0, p0, Le/d/a/n;->a:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v0, Ljava/util/LinkedHashSet;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-object v0, p0, Le/d/a/n;->b:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v0, Landroid/os/Handler;
2019-07-24 11:27:29 +00:00
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-object v0, p0, Le/d/a/n;->c:Landroid/os/Handler;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-object v0, p0, Le/d/a/n;->d:Le/d/a/l;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Le/d/a/n;->e:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v1, Le/d/a/n$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v1, p0, p1}, Le/d/a/n$a;-><init>(Le/d/a/n;Ljava/util/concurrent/Callable;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static synthetic a(Le/d/a/n;Le/d/a/l;)V
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1}, Le/d/a/n;->a(Le/d/a/l;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
return-void
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
# virtual methods
.method public declared-synchronized a(Le/d/a/h;)Le/d/a/n;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Le/d/a/h<",
"Ljava/lang/Throwable;",
">;)",
"Le/d/a/n<",
"TT;>;"
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
monitor-enter p0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:try_start_0
iget-object v0, p0, Le/d/a/n;->d:Le/d/a/l;
if-eqz v0, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->d:Le/d/a/l;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, v0, Le/d/a/l;->b:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->d:Le/d/a/l;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, v0, Le/d/a/l;->b:Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v0}, Le/d/a/h;->a(Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->b:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
monitor-exit p0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
return-object p0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:catchall_0
move-exception p1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
monitor-exit p0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final a(Le/d/a/l;)V
.locals 1
.param p1 # Le/d/a/l;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Le/d/a/l<",
"TT;>;)V"
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->d:Le/d/a/l;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Le/d/a/n;->d:Le/d/a/l;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object p1, p0, Le/d/a/n;->c:Landroid/os/Handler;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v0, Le/d/a/m;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, p0}, Le/d/a/m;-><init>(Le/d/a/n;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
return-void
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v0, "A task may only be set once."
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw p1
.end method
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.method public final declared-synchronized a(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
monitor-enter p0
:try_start_0
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Le/d/a/n;->a:Ljava/util/Set;
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
2019-12-06 03:29:40 +00:00
check-cast v1, Le/d/a/h;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v1, p1}, Le/d/a/h;->a(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-07-24 11:27:29 +00:00
goto :goto_0
2019-12-06 03:29:40 +00:00
:cond_0
2019-07-24 11:27:29 +00:00
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public final declared-synchronized a(Ljava/lang/Throwable;)V
2019-07-24 11:27:29 +00:00
.locals 2
monitor-enter p0
:try_start_0
new-instance v0, Ljava/util/ArrayList;
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Le/d/a/n;->b:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
2019-12-06 03:29:40 +00:00
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}, Le/d/a/x/c;->a(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
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_1
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
2019-12-06 03:29:40 +00:00
check-cast v1, Le/d/a/h;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v1, p1}, Le/d/a/h;->a(Ljava/lang/Object;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2019-07-24 11:27:29 +00:00
goto :goto_0
2019-12-06 03:29:40 +00:00
:cond_1
2019-07-24 11:27:29 +00:00
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public declared-synchronized b(Le/d/a/h;)Le/d/a/n;
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-12-06 03:29:40 +00:00
"Le/d/a/h<",
2019-07-24 11:27:29 +00:00
"TT;>;)",
2019-12-06 03:29:40 +00:00
"Le/d/a/n<",
2019-07-24 11:27:29 +00:00
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->d:Le/d/a/l;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->d:Le/d/a/l;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, v0, Le/d/a/l;->a:Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->d:Le/d/a/l;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, v0, Le/d/a/l;->a:Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v0}, Le/d/a/h;->a(Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->a:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
.method public declared-synchronized c(Le/d/a/h;)Le/d/a/n;
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-12-06 03:29:40 +00:00
"Le/d/a/h<",
2019-07-24 11:27:29 +00:00
"Ljava/lang/Throwable;",
">;)",
2019-12-06 03:29:40 +00:00
"Le/d/a/n<",
2019-07-24 11:27:29 +00:00
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->b:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
: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
2019-12-06 03:29:40 +00:00
.method public declared-synchronized d(Le/d/a/h;)Le/d/a/n;
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-12-06 03:29:40 +00:00
"Le/d/a/h<",
"TT;>;)",
"Le/d/a/n<",
2019-07-24 11:27:29 +00:00
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Le/d/a/n;->a:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
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