apkfuckery/com.discord/smali/f/d/a/p.smali

277 lines
6.1 KiB
Smali
Raw Normal View History

2020-11-21 21:10:53 +00:00
.class public Lf/d/a/p;
2020-11-12 02:11:44 +00:00
.super Ljava/lang/Object;
2020-11-21 21:10:53 +00:00
.source "LottieTask.java"
2020-11-12 02:11:44 +00:00
# annotations
2020-11-21 21:10:53 +00:00
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/d/a/p$a;
}
.end annotation
2020-11-12 02:11:44 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-21 21:10:53 +00:00
"<T:",
2020-11-12 02:11:44 +00:00
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
2020-11-21 21:10:53 +00:00
# static fields
.field public static e:Ljava/util/concurrent/Executor;
2020-11-12 02:11:44 +00:00
# instance fields
2020-11-21 21:10:53 +00:00
.field public final a:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lf/d/a/j<",
"TT;>;>;"
}
2020-11-12 02:11:44 +00:00
.end annotation
2020-11-21 21:10:53 +00:00
.end field
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public final b:Ljava/util/Set;
2020-11-12 02:11:44 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-21 21:10:53 +00:00
"Ljava/util/Set<",
"Lf/d/a/j<",
"Ljava/lang/Throwable;",
">;>;"
2020-11-12 02:11:44 +00:00
}
.end annotation
.end field
2020-11-21 21:10:53 +00:00
.field public final c:Landroid/os/Handler;
.field public volatile d:Lf/d/a/n;
2020-11-12 02:11:44 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
2020-11-21 21:10:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/d/a/n<",
"TT;>;"
}
.end annotation
2020-11-12 02:11:44 +00:00
.end field
# direct methods
2020-11-21 21:10:53 +00:00
.method public static constructor <clinit>()V
.locals 1
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
move-result-object v0
sput-object v0, Lf/d/a/p;->e:Ljava/util/concurrent/Executor;
return-void
.end method
.method public constructor <init>(Ljava/util/concurrent/Callable;)V
.locals 2
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
2020-11-12 02:11:44 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-21 21:10:53 +00:00
"(",
"Ljava/util/concurrent/Callable<",
"Lf/d/a/n<",
"TT;>;>;)V"
2020-11-12 02:11:44 +00:00
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-11-21 21:10:53 +00:00
new-instance v0, Ljava/util/LinkedHashSet;
const/4 v1, 0x1
2020-11-14 02:19:59 +00:00
2020-11-21 21:10:53 +00:00
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
2020-11-14 02:19:59 +00:00
2020-11-21 21:10:53 +00:00
iput-object v0, p0, Lf/d/a/p;->a:Ljava/util/Set;
2020-11-14 02:19:59 +00:00
2020-11-21 21:10:53 +00:00
new-instance v0, Ljava/util/LinkedHashSet;
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
invoke-direct {v0, v1}, Ljava/util/LinkedHashSet;-><init>(I)V
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
iput-object v0, p0, Lf/d/a/p;->b:Ljava/util/Set;
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
new-instance v0, Landroid/os/Handler;
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
move-result-object v1
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object v0, p0, Lf/d/a/p;->c:Landroid/os/Handler;
const/4 v0, 0x0
iput-object v0, p0, Lf/d/a/p;->d:Lf/d/a/n;
sget-object v0, Lf/d/a/p;->e:Ljava/util/concurrent/Executor;
new-instance v1, Lf/d/a/p$a;
invoke-direct {v1, p0, p1}, Lf/d/a/p$a;-><init>(Lf/d/a/p;Ljava/util/concurrent/Callable;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
2020-11-12 02:11:44 +00:00
return-void
.end method
# virtual methods
2020-11-21 21:10:53 +00:00
.method public declared-synchronized a(Lf/d/a/j;)Lf/d/a/p;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/d/a/j<",
"Ljava/lang/Throwable;",
">;)",
"Lf/d/a/p<",
"TT;>;"
}
.end annotation
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
monitor-enter p0
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
:try_start_0
iget-object v0, p0, Lf/d/a/p;->d:Lf/d/a/n;
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
if-eqz v0, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v0, p0, Lf/d/a/p;->d:Lf/d/a/n;
iget-object v0, v0, Lf/d/a/n;->b:Ljava/lang/Throwable;
if-eqz v0, :cond_0
iget-object v0, p0, Lf/d/a/p;->d:Lf/d/a/n;
iget-object v0, v0, Lf/d/a/n;->b:Ljava/lang/Throwable;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
invoke-interface {p1, v0}, Lf/d/a/j;->a(Ljava/lang/Object;)V
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
:cond_0
iget-object v0, p0, Lf/d/a/p;->b:Ljava/util/Set;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +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
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
monitor-exit p0
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
return-object p0
2020-11-14 02:19:59 +00:00
2020-11-21 21:10:53 +00:00
:catchall_0
move-exception p1
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
monitor-exit p0
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
throw p1
.end method
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.method public declared-synchronized b(Lf/d/a/j;)Lf/d/a/p;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/d/a/j<",
"TT;>;)",
"Lf/d/a/p<",
"TT;>;"
}
.end annotation
monitor-enter p0
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
:try_start_0
iget-object v0, p0, Lf/d/a/p;->d:Lf/d/a/n;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
if-eqz v0, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v0, p0, Lf/d/a/p;->d:Lf/d/a/n;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v0, v0, Lf/d/a/n;->a:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
if-eqz v0, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v0, p0, Lf/d/a/p;->d:Lf/d/a/n;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v0, v0, Lf/d/a/n;->a:Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
invoke-interface {p1, v0}, Lf/d/a/j;->a(Ljava/lang/Object;)V
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
:cond_0
iget-object v0, p0, Lf/d/a/p;->a:Ljava/util/Set;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +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
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
monitor-exit p0
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
return-object p0
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
:catchall_0
move-exception p1
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
monitor-exit p0
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
throw p1
2020-11-16 22:05:17 +00:00
.end method
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.method public final c(Lf/d/a/n;)V
.locals 1
.param p1 # Lf/d/a/n;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/d/a/n<",
"TT;>;)V"
}
.end annotation
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object v0, p0, Lf/d/a/p;->d:Lf/d/a/n;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
if-nez v0, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iput-object p1, p0, Lf/d/a/p;->d:Lf/d/a/n;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
iget-object p1, p0, Lf/d/a/p;->c:Landroid/os/Handler;
2020-11-14 02:19:59 +00:00
2020-11-21 21:10:53 +00:00
new-instance v0, Lf/d/a/o;
2020-11-16 01:00:50 +00:00
2020-11-21 21:10:53 +00:00
invoke-direct {v0, p0}, Lf/d/a/o;-><init>(Lf/d/a/p;)V
invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
return-void
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
const-string v0, "A task may only be set once."
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
throw p1
2020-11-12 02:11:44 +00:00
.end method