Changes of com.discord v1349
This commit is contained in:
parent
ee3363e6d6
commit
3f4974bc38
11672 changed files with 479129 additions and 478996 deletions
67
com.discord/smali_classes2/g0/l/c/a$a$a.smali
Normal file
67
com.discord/smali_classes2/g0/l/c/a$a$a.smali
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
.class public Lg0/l/c/a$a$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CachedThreadScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lg0/l/c/a$a;-><init>(Ljava/util/concurrent/ThreadFactory;JLjava/util/concurrent/TimeUnit;)V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic d:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/a$a;Ljava/util/concurrent/ThreadFactory;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/a$a$a;->d:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/a$a$a;->d:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
invoke-interface {v0, p1}, Ljava/util/concurrent/ThreadFactory;->newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v1, " (Evictor)"
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
96
com.discord/smali_classes2/g0/l/c/a$a$b.smali
Normal file
96
com.discord/smali_classes2/g0/l/c/a$a$b.smali
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
.class public Lg0/l/c/a$a$b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CachedThreadScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/Runnable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lg0/l/c/a$a;-><init>(Ljava/util/concurrent/ThreadFactory;JLjava/util/concurrent/TimeUnit;)V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic d:Lg0/l/c/a$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/a$a;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/a$a$b;->d:Lg0/l/c/a$a;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public run()V
|
||||
.locals 8
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/a$a$b;->d:Lg0/l/c/a$a;
|
||||
|
||||
iget-object v1, v0, Lg0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->isEmpty()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-nez v1, :cond_1
|
||||
|
||||
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
||||
|
||||
move-result-wide v1
|
||||
|
||||
iget-object v3, v0, Lg0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v3}, Ljava/util/concurrent/ConcurrentLinkedQueue;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-eqz v4, :cond_1
|
||||
|
||||
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
check-cast v4, Lg0/l/c/a$c;
|
||||
|
||||
iget-wide v5, v4, Lg0/l/c/a$c;->l:J
|
||||
|
||||
cmp-long v7, v5, v1
|
||||
|
||||
if-gtz v7, :cond_1
|
||||
|
||||
iget-object v5, v0, Lg0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v5, v4}, Ljava/util/concurrent/ConcurrentLinkedQueue;->remove(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v5
|
||||
|
||||
if-eqz v5, :cond_0
|
||||
|
||||
iget-object v5, v0, Lg0/l/c/a$a;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {v5, v4}, Lrx/subscriptions/CompositeSubscription;->c(Lrx/Subscription;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
return-void
|
||||
.end method
|
||||
163
com.discord/smali_classes2/g0/l/c/a$a.smali
Normal file
163
com.discord/smali_classes2/g0/l/c/a$a.smali
Normal file
|
|
@ -0,0 +1,163 @@
|
|||
.class public final Lg0/l/c/a$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CachedThreadScheduler.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/a;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
.field public final b:J
|
||||
|
||||
.field public final c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/ConcurrentLinkedQueue<",
|
||||
"Lg0/l/c/a$c;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public final d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
.field public final e:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
.field public final f:Ljava/util/concurrent/Future;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/Future<",
|
||||
"*>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/util/concurrent/ThreadFactory;JLjava/util/concurrent/TimeUnit;)V
|
||||
.locals 7
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/a$a;->a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
if-eqz p4, :cond_0
|
||||
|
||||
invoke-virtual {p4, p2, p3}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
||||
|
||||
move-result-wide p2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const-wide/16 p2, 0x0
|
||||
|
||||
:goto_0
|
||||
move-wide v4, p2
|
||||
|
||||
iput-wide v4, p0, Lg0/l/c/a$a;->b:J
|
||||
|
||||
new-instance p2, Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-direct {p2}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
new-instance p2, Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-direct {p2}, Lrx/subscriptions/CompositeSubscription;-><init>()V
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/a$a;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
if-eqz p4, :cond_1
|
||||
|
||||
const/4 p2, 0x1
|
||||
|
||||
new-instance p3, Lg0/l/c/a$a$a;
|
||||
|
||||
invoke-direct {p3, p0, p1}, Lg0/l/c/a$a$a;-><init>(Lg0/l/c/a$a;Ljava/util/concurrent/ThreadFactory;)V
|
||||
|
||||
invoke-static {p2, p3}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-static {p2}, Lg0/l/c/g;->g(Ljava/util/concurrent/ScheduledExecutorService;)Z
|
||||
|
||||
new-instance v1, Lg0/l/c/a$a$b;
|
||||
|
||||
invoke-direct {v1, p0}, Lg0/l/c/a$a$b;-><init>(Lg0/l/c/a$a;)V
|
||||
|
||||
sget-object v6, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
move-object v0, p2
|
||||
|
||||
move-wide v2, v4
|
||||
|
||||
invoke-interface/range {v0 .. v6}, Ljava/util/concurrent/ScheduledExecutorService;->scheduleWithFixedDelay(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
move-object p1, p2
|
||||
|
||||
:goto_1
|
||||
iput-object p2, p0, Lg0/l/c/a$a;->e:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/a$a;->f:Ljava/util/concurrent/Future;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()V
|
||||
.locals 2
|
||||
|
||||
:try_start_0
|
||||
iget-object v0, p0, Lg0/l/c/a$a;->f:Ljava/util/concurrent/Future;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-interface {v0, v1}, Ljava/util/concurrent/Future;->cancel(Z)Z
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/a$a;->e:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
invoke-interface {v0}, Ljava/util/concurrent/ScheduledExecutorService;->shutdownNow()Ljava/util/List;
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
:cond_1
|
||||
iget-object v0, p0, Lg0/l/c/a$a;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {v0}, Lrx/subscriptions/CompositeSubscription;->unsubscribe()V
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/a$a;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {v1}, Lrx/subscriptions/CompositeSubscription;->unsubscribe()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
60
com.discord/smali_classes2/g0/l/c/a$b$a.smali
Normal file
60
com.discord/smali_classes2/g0/l/c/a$b$a.smali
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
.class public Lg0/l/c/a$b$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CachedThreadScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action0;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lg0/l/c/a$b;->b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic d:Lrx/functions/Action0;
|
||||
|
||||
.field public final synthetic e:Lg0/l/c/a$b;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/a$b;Lrx/functions/Action0;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/a$b$a;->e:Lg0/l/c/a$b;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/a$b$a;->d:Lrx/functions/Action0;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/a$b$a;->e:Lg0/l/c/a$b;
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/a$b$a;->d:Lrx/functions/Action0;
|
||||
|
||||
invoke-interface {v0}, Lrx/functions/Action0;->call()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
219
com.discord/smali_classes2/g0/l/c/a$b.smali
Normal file
219
com.discord/smali_classes2/g0/l/c/a$b.smali
Normal file
|
|
@ -0,0 +1,219 @@
|
|||
.class public final Lg0/l/c/a$b;
|
||||
.super Lrx/Scheduler$Worker;
|
||||
.source "CachedThreadScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action0;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/a;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "b"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
.field public final e:Lg0/l/c/a$a;
|
||||
|
||||
.field public final f:Lg0/l/c/a$c;
|
||||
|
||||
.field public final g:Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/a$a;)V
|
||||
.locals 2
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler$Worker;-><init>()V
|
||||
|
||||
new-instance v0, Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-direct {v0}, Lrx/subscriptions/CompositeSubscription;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/a$b;->e:Lg0/l/c/a$a;
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/a$b;->g:Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
|
||||
iget-object v0, p1, Lg0/l/c/a$a;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
sget-object p1, Lg0/l/c/a;->e:Lg0/l/c/a$c;
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p1, Lg0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->isEmpty()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
iget-object v0, p1, Lg0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Lg0/l/c/a$c;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
new-instance v0, Lg0/l/c/a$c;
|
||||
|
||||
iget-object v1, p1, Lg0/l/c/a$a;->a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
invoke-direct {v0, v1}, Lg0/l/c/a$c;-><init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
|
||||
iget-object p1, p1, Lg0/l/c/a$a;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {p1, v0}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
||||
|
||||
:goto_0
|
||||
move-object p1, v0
|
||||
|
||||
:goto_1
|
||||
iput-object p1, p0, Lg0/l/c/a$b;->f:Lg0/l/c/a$c;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a(Lrx/functions/Action0;)Lrx/Subscription;
|
||||
.locals 3
|
||||
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-virtual {p0, p1, v0, v1, v2}, Lg0/l/c/a$b;->b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
sget-object p1, Lg0/r/c;->a:Lg0/r/c$a;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/a$b;->f:Lg0/l/c/a$c;
|
||||
|
||||
new-instance v1, Lg0/l/c/a$b$a;
|
||||
|
||||
invoke-direct {v1, p0, p1}, Lg0/l/c/a$b$a;-><init>(Lg0/l/c/a$b;Lrx/functions/Action0;)V
|
||||
|
||||
invoke-virtual {v0, v1, p2, p3, p4}, Lg0/l/c/g;->f(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lg0/l/c/j;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iget-object p2, p0, Lg0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {p2, p1}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
||||
|
||||
iget-object p2, p0, Lg0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-object p3, p1, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
new-instance p4, Lg0/l/c/j$c;
|
||||
|
||||
invoke-direct {p4, p1, p2}, Lg0/l/c/j$c;-><init>(Lg0/l/c/j;Lrx/subscriptions/CompositeSubscription;)V
|
||||
|
||||
invoke-virtual {p3, p4}, Lrx/internal/util/SubscriptionList;->a(Lrx/Subscription;)V
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public call()V
|
||||
.locals 6
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/a$b;->e:Lg0/l/c/a$a;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/a$b;->f:Lg0/l/c/a$c;
|
||||
|
||||
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
||||
|
||||
move-result-wide v2
|
||||
|
||||
iget-wide v4, v0, Lg0/l/c/a$a;->b:J
|
||||
|
||||
add-long/2addr v2, v4
|
||||
|
||||
iput-wide v2, v1, Lg0/l/c/a$c;->l:J
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->offer(Ljava/lang/Object;)Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/a$b;->g:Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/a$b;->f:Lg0/l/c/a$c;
|
||||
|
||||
invoke-virtual {v0, p0}, Lg0/l/c/g;->a(Lrx/functions/Action0;)Lrx/Subscription;
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {v0}, Lrx/subscriptions/CompositeSubscription;->unsubscribe()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
32
com.discord/smali_classes2/g0/l/c/a$c.smali
Normal file
32
com.discord/smali_classes2/g0/l/c/a$c.smali
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
.class public final Lg0/l/c/a$c;
|
||||
.super Lg0/l/c/g;
|
||||
.source "CachedThreadScheduler.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/a;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "c"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public l:J
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
.locals 2
|
||||
|
||||
invoke-direct {p0, p1}, Lg0/l/c/g;-><init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
iput-wide v0, p0, Lg0/l/c/a$c;->l:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
177
com.discord/smali_classes2/g0/l/c/a.smali
Normal file
177
com.discord/smali_classes2/g0/l/c/a.smali
Normal file
|
|
@ -0,0 +1,177 @@
|
|||
.class public final Lg0/l/c/a;
|
||||
.super Lrx/Scheduler;
|
||||
.source "CachedThreadScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lg0/l/c/k;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lg0/l/c/a$c;,
|
||||
Lg0/l/c/a$b;,
|
||||
Lg0/l/c/a$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final c:J
|
||||
|
||||
.field public static final d:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
.field public static final e:Lg0/l/c/a$c;
|
||||
|
||||
.field public static final f:Lg0/l/c/a$a;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
.field public final b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/atomic/AtomicReference<",
|
||||
"Lg0/l/c/a$a;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 4
|
||||
|
||||
sget-object v0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
sput-object v0, Lg0/l/c/a;->d:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
new-instance v0, Lg0/l/c/a$c;
|
||||
|
||||
sget-object v1, Lg0/l/e/i;->d:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
invoke-direct {v0, v1}, Lg0/l/c/a$c;-><init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
|
||||
sput-object v0, Lg0/l/c/a;->e:Lg0/l/c/a$c;
|
||||
|
||||
invoke-virtual {v0}, Lg0/l/c/g;->unsubscribe()V
|
||||
|
||||
new-instance v0, Lg0/l/c/a$a;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const-wide/16 v2, 0x0
|
||||
|
||||
invoke-direct {v0, v1, v2, v3, v1}, Lg0/l/c/a$a;-><init>(Ljava/util/concurrent/ThreadFactory;JLjava/util/concurrent/TimeUnit;)V
|
||||
|
||||
sput-object v0, Lg0/l/c/a;->f:Lg0/l/c/a$a;
|
||||
|
||||
invoke-virtual {v0}, Lg0/l/c/a$a;->a()V
|
||||
|
||||
const-string v0, "rx.io-scheduler.keepalive"
|
||||
|
||||
const/16 v1, 0x3c
|
||||
|
||||
invoke-static {v0, v1}, Ljava/lang/Integer;->getInteger(Ljava/lang/String;I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
||||
|
||||
move-result v0
|
||||
|
||||
int-to-long v0, v0
|
||||
|
||||
sput-wide v0, Lg0/l/c/a;->c:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
.locals 6
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/a;->a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
sget-object v1, Lg0/l/c/a;->f:Lg0/l/c/a$a;
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/a;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
new-instance v2, Lg0/l/c/a$a;
|
||||
|
||||
sget-wide v3, Lg0/l/c/a;->c:J
|
||||
|
||||
sget-object v5, Lg0/l/c/a;->d:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
invoke-direct {v2, p1, v3, v4, v5}, Lg0/l/c/a$a;-><init>(Ljava/util/concurrent/ThreadFactory;JLjava/util/concurrent/TimeUnit;)V
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-nez p1, :cond_0
|
||||
|
||||
invoke-virtual {v2}, Lg0/l/c/a$a;->a()V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()Lrx/Scheduler$Worker;
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Lg0/l/c/a$b;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/a;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Lg0/l/c/a$a;
|
||||
|
||||
invoke-direct {v0, v1}, Lg0/l/c/a$b;-><init>(Lg0/l/c/a$a;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public shutdown()V
|
||||
.locals 3
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/a;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Lg0/l/c/a$a;
|
||||
|
||||
sget-object v1, Lg0/l/c/a;->f:Lg0/l/c/a$a;
|
||||
|
||||
if-ne v0, v1, :cond_1
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
iget-object v2, p0, Lg0/l/c/a;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {v2, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
invoke-virtual {v0}, Lg0/l/c/a$a;->a()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
60
com.discord/smali_classes2/g0/l/c/b$a$a.smali
Normal file
60
com.discord/smali_classes2/g0/l/c/b$a$a.smali
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
.class public Lg0/l/c/b$a$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "EventLoopsScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action0;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lg0/l/c/b$a;->a(Lrx/functions/Action0;)Lrx/Subscription;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic d:Lrx/functions/Action0;
|
||||
|
||||
.field public final synthetic e:Lg0/l/c/b$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/b$a;Lrx/functions/Action0;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/b$a$a;->e:Lg0/l/c/b$a;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/b$a$a;->d:Lrx/functions/Action0;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/b$a$a;->e:Lg0/l/c/b$a;
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/b$a;->f:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/b$a$a;->d:Lrx/functions/Action0;
|
||||
|
||||
invoke-interface {v0}, Lrx/functions/Action0;->call()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
60
com.discord/smali_classes2/g0/l/c/b$a$b.smali
Normal file
60
com.discord/smali_classes2/g0/l/c/b$a$b.smali
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
.class public Lg0/l/c/b$a$b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "EventLoopsScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action0;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lg0/l/c/b$a;->b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic d:Lrx/functions/Action0;
|
||||
|
||||
.field public final synthetic e:Lg0/l/c/b$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/b$a;Lrx/functions/Action0;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/b$a$b;->e:Lg0/l/c/b$a;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/b$a$b;->d:Lrx/functions/Action0;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/b$a$b;->e:Lg0/l/c/b$a;
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/b$a;->f:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/b$a$b;->d:Lrx/functions/Action0;
|
||||
|
||||
invoke-interface {v0}, Lrx/functions/Action0;->call()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
194
com.discord/smali_classes2/g0/l/c/b$a.smali
Normal file
194
com.discord/smali_classes2/g0/l/c/b$a.smali
Normal file
|
|
@ -0,0 +1,194 @@
|
|||
.class public final Lg0/l/c/b$a;
|
||||
.super Lrx/Scheduler$Worker;
|
||||
.source "EventLoopsScheduler.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/b;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
.field public final e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
.field public final f:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
.field public final g:Lg0/l/c/b$c;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/b$c;)V
|
||||
.locals 5
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler$Worker;-><init>()V
|
||||
|
||||
new-instance v0, Lrx/internal/util/SubscriptionList;
|
||||
|
||||
invoke-direct {v0}, Lrx/internal/util/SubscriptionList;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/b$a;->d:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
new-instance v1, Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-direct {v1}, Lrx/subscriptions/CompositeSubscription;-><init>()V
|
||||
|
||||
iput-object v1, p0, Lg0/l/c/b$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
new-instance v2, Lrx/internal/util/SubscriptionList;
|
||||
|
||||
const/4 v3, 0x2
|
||||
|
||||
new-array v3, v3, [Lrx/Subscription;
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
aput-object v0, v3, v4
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
aput-object v1, v3, v0
|
||||
|
||||
invoke-direct {v2, v3}, Lrx/internal/util/SubscriptionList;-><init>([Lrx/Subscription;)V
|
||||
|
||||
iput-object v2, p0, Lg0/l/c/b$a;->f:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/b$a;->g:Lg0/l/c/b$c;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a(Lrx/functions/Action0;)Lrx/Subscription;
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/b$a;->f:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
sget-object p1, Lg0/r/c;->a:Lg0/r/c$a;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/b$a;->g:Lg0/l/c/b$c;
|
||||
|
||||
new-instance v1, Lg0/l/c/b$a$a;
|
||||
|
||||
invoke-direct {v1, p0, p1}, Lg0/l/c/b$a$a;-><init>(Lg0/l/c/b$a;Lrx/functions/Action0;)V
|
||||
|
||||
iget-object p1, p0, Lg0/l/c/b$a;->d:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-static {v1}, Lg0/o/l;->d(Lrx/functions/Action0;)Lrx/functions/Action0;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
new-instance v2, Lg0/l/c/j;
|
||||
|
||||
invoke-direct {v2, v1, p1}, Lg0/l/c/j;-><init>(Lrx/functions/Action0;Lrx/internal/util/SubscriptionList;)V
|
||||
|
||||
invoke-virtual {p1, v2}, Lrx/internal/util/SubscriptionList;->a(Lrx/Subscription;)V
|
||||
|
||||
iget-object p1, v0, Lg0/l/c/g;->d:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-interface {p1, v2}, Ljava/util/concurrent/ScheduledExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {v2, p1}, Lg0/l/c/j;->a(Ljava/util/concurrent/Future;)V
|
||||
|
||||
return-object v2
|
||||
.end method
|
||||
|
||||
.method public b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
.locals 5
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/b$a;->f:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
sget-object p1, Lg0/r/c;->a:Lg0/r/c$a;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/b$a;->g:Lg0/l/c/b$c;
|
||||
|
||||
new-instance v1, Lg0/l/c/b$a$b;
|
||||
|
||||
invoke-direct {v1, p0, p1}, Lg0/l/c/b$a$b;-><init>(Lg0/l/c/b$a;Lrx/functions/Action0;)V
|
||||
|
||||
iget-object p1, p0, Lg0/l/c/b$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-static {v1}, Lg0/o/l;->d(Lrx/functions/Action0;)Lrx/functions/Action0;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
new-instance v2, Lg0/l/c/j;
|
||||
|
||||
invoke-direct {v2, v1, p1}, Lg0/l/c/j;-><init>(Lrx/functions/Action0;Lrx/subscriptions/CompositeSubscription;)V
|
||||
|
||||
invoke-virtual {p1, v2}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
||||
|
||||
const-wide/16 v3, 0x0
|
||||
|
||||
cmp-long p1, p2, v3
|
||||
|
||||
if-gtz p1, :cond_1
|
||||
|
||||
iget-object p1, v0, Lg0/l/c/g;->d:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-interface {p1, v2}, Ljava/util/concurrent/ScheduledExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
iget-object p1, v0, Lg0/l/c/g;->d:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-interface {p1, v2, p2, p3, p4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {v2, p1}, Lg0/l/c/j;->a(Ljava/util/concurrent/Future;)V
|
||||
|
||||
return-object v2
|
||||
.end method
|
||||
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/b$a;->f:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/b$a;->f:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
invoke-virtual {v0}, Lrx/internal/util/SubscriptionList;->unsubscribe()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
91
com.discord/smali_classes2/g0/l/c/b$b.smali
Normal file
91
com.discord/smali_classes2/g0/l/c/b$b.smali
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
.class public final Lg0/l/c/b$b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "EventLoopsScheduler.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/b;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "b"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:I
|
||||
|
||||
.field public final b:[Lg0/l/c/b$c;
|
||||
|
||||
.field public c:J
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/util/concurrent/ThreadFactory;I)V
|
||||
.locals 3
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput p2, p0, Lg0/l/c/b$b;->a:I
|
||||
|
||||
new-array v0, p2, [Lg0/l/c/b$c;
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/b$b;->b:[Lg0/l/c/b$c;
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v0, p2, :cond_0
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/b$b;->b:[Lg0/l/c/b$c;
|
||||
|
||||
new-instance v2, Lg0/l/c/b$c;
|
||||
|
||||
invoke-direct {v2, p1}, Lg0/l/c/b$c;-><init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
|
||||
aput-object v2, v1, v0
|
||||
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()Lg0/l/c/b$c;
|
||||
.locals 6
|
||||
|
||||
iget v0, p0, Lg0/l/c/b$b;->a:I
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
sget-object v0, Lg0/l/c/b;->d:Lg0/l/c/b$c;
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
iget-object v1, p0, Lg0/l/c/b$b;->b:[Lg0/l/c/b$c;
|
||||
|
||||
iget-wide v2, p0, Lg0/l/c/b$b;->c:J
|
||||
|
||||
const-wide/16 v4, 0x1
|
||||
|
||||
add-long/2addr v4, v2
|
||||
|
||||
iput-wide v4, p0, Lg0/l/c/b$b;->c:J
|
||||
|
||||
int-to-long v4, v0
|
||||
|
||||
rem-long/2addr v2, v4
|
||||
|
||||
long-to-int v0, v2
|
||||
|
||||
aget-object v0, v1, v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
24
com.discord/smali_classes2/g0/l/c/b$c.smali
Normal file
24
com.discord/smali_classes2/g0/l/c/b$c.smali
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
.class public final Lg0/l/c/b$c;
|
||||
.super Lg0/l/c/g;
|
||||
.source "EventLoopsScheduler.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/b;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "c"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0, p1}, Lg0/l/c/g;-><init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
214
com.discord/smali_classes2/g0/l/c/b.smali
Normal file
214
com.discord/smali_classes2/g0/l/c/b.smali
Normal file
|
|
@ -0,0 +1,214 @@
|
|||
.class public final Lg0/l/c/b;
|
||||
.super Lrx/Scheduler;
|
||||
.source "EventLoopsScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lg0/l/c/k;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lg0/l/c/b$c;,
|
||||
Lg0/l/c/b$a;,
|
||||
Lg0/l/c/b$b;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final c:I
|
||||
|
||||
.field public static final d:Lg0/l/c/b$c;
|
||||
|
||||
.field public static final e:Lg0/l/c/b$b;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
.field public final b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/atomic/AtomicReference<",
|
||||
"Lg0/l/c/b$b;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 3
|
||||
|
||||
const-string v0, "rx.scheduler.max-computation-threads"
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-static {v0, v1}, Ljava/lang/Integer;->getInteger(Ljava/lang/String;I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-virtual {v2}, Ljava/lang/Runtime;->availableProcessors()I
|
||||
|
||||
move-result v2
|
||||
|
||||
if-lez v0, :cond_0
|
||||
|
||||
if-le v0, v2, :cond_1
|
||||
|
||||
:cond_0
|
||||
move v0, v2
|
||||
|
||||
:cond_1
|
||||
sput v0, Lg0/l/c/b;->c:I
|
||||
|
||||
new-instance v0, Lg0/l/c/b$c;
|
||||
|
||||
sget-object v2, Lg0/l/e/i;->d:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
invoke-direct {v0, v2}, Lg0/l/c/b$c;-><init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
|
||||
sput-object v0, Lg0/l/c/b;->d:Lg0/l/c/b$c;
|
||||
|
||||
invoke-virtual {v0}, Lg0/l/c/g;->unsubscribe()V
|
||||
|
||||
new-instance v0, Lg0/l/c/b$b;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-direct {v0, v2, v1}, Lg0/l/c/b$b;-><init>(Ljava/util/concurrent/ThreadFactory;I)V
|
||||
|
||||
sput-object v0, Lg0/l/c/b;->e:Lg0/l/c/b$b;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
.locals 4
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/b;->a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
sget-object v1, Lg0/l/c/b;->e:Lg0/l/c/b$b;
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/b;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
new-instance v2, Lg0/l/c/b$b;
|
||||
|
||||
sget v3, Lg0/l/c/b;->c:I
|
||||
|
||||
invoke-direct {v2, p1, v3}, Lg0/l/c/b$b;-><init>(Ljava/util/concurrent/ThreadFactory;I)V
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-nez p1, :cond_0
|
||||
|
||||
iget-object p1, v2, Lg0/l/c/b$b;->b:[Lg0/l/c/b$c;
|
||||
|
||||
array-length v0, p1
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v1, v0, :cond_0
|
||||
|
||||
aget-object v2, p1, v1
|
||||
|
||||
invoke-virtual {v2}, Lg0/l/c/g;->unsubscribe()V
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()Lrx/Scheduler$Worker;
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Lg0/l/c/b$a;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/b;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Lg0/l/c/b$b;
|
||||
|
||||
invoke-virtual {v1}, Lg0/l/c/b$b;->a()Lg0/l/c/b$c;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-direct {v0, v1}, Lg0/l/c/b$a;-><init>(Lg0/l/c/b$c;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public shutdown()V
|
||||
.locals 4
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/b;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Lg0/l/c/b$b;
|
||||
|
||||
sget-object v1, Lg0/l/c/b;->e:Lg0/l/c/b$b;
|
||||
|
||||
if-ne v0, v1, :cond_1
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
iget-object v2, p0, Lg0/l/c/b;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {v2, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/b$b;->b:[Lg0/l/c/b$c;
|
||||
|
||||
array-length v1, v0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v1, :cond_2
|
||||
|
||||
aget-object v3, v0, v2
|
||||
|
||||
invoke-virtual {v3}, Lg0/l/c/g;->unsubscribe()V
|
||||
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
return-void
|
||||
.end method
|
||||
53
com.discord/smali_classes2/g0/l/c/c$a$a.smali
Normal file
53
com.discord/smali_classes2/g0/l/c/c$a$a.smali
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
.class public Lg0/l/c/c$a$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ExecutorScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action0;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lg0/l/c/c$a;->b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic d:Lg0/r/b;
|
||||
|
||||
.field public final synthetic e:Lg0/l/c/c$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/c$a;Lg0/r/b;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/c$a$a;->e:Lg0/l/c/c$a;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/c$a$a;->d:Lg0/r/b;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call()V
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/c$a$a;->e:Lg0/l/c/c$a;
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/c$a$a;->d:Lg0/r/b;
|
||||
|
||||
invoke-virtual {v0, v1}, Lrx/subscriptions/CompositeSubscription;->c(Lrx/Subscription;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
93
com.discord/smali_classes2/g0/l/c/c$a$b.smali
Normal file
93
com.discord/smali_classes2/g0/l/c/c$a$b.smali
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
.class public Lg0/l/c/c$a$b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ExecutorScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action0;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lg0/l/c/c$a;->b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic d:Lg0/r/b;
|
||||
|
||||
.field public final synthetic e:Lrx/functions/Action0;
|
||||
|
||||
.field public final synthetic f:Lrx/Subscription;
|
||||
|
||||
.field public final synthetic g:Lg0/l/c/c$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/c$a;Lg0/r/b;Lrx/functions/Action0;Lrx/Subscription;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/c$a$b;->g:Lg0/l/c/c$a;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/c$a$b;->d:Lg0/r/b;
|
||||
|
||||
iput-object p3, p0, Lg0/l/c/c$a$b;->e:Lrx/functions/Action0;
|
||||
|
||||
iput-object p4, p0, Lg0/l/c/c$a$b;->f:Lrx/Subscription;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call()V
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/c$a$b;->d:Lg0/r/b;
|
||||
|
||||
invoke-virtual {v0}, Lg0/r/b;->isUnsubscribed()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/c$a$b;->g:Lg0/l/c/c$a;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/c$a$b;->e:Lrx/functions/Action0;
|
||||
|
||||
invoke-virtual {v0, v1}, Lg0/l/c/c$a;->a(Lrx/functions/Action0;)Lrx/Subscription;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/c$a$b;->d:Lg0/r/b;
|
||||
|
||||
invoke-virtual {v1, v0}, Lg0/r/b;->a(Lrx/Subscription;)V
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
const-class v2, Lg0/l/c/j;
|
||||
|
||||
if-ne v1, v2, :cond_1
|
||||
|
||||
check-cast v0, Lg0/l/c/j;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/c$a$b;->f:Lrx/Subscription;
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
invoke-virtual {v0, v1}, Lrx/internal/util/SubscriptionList;->a(Lrx/Subscription;)V
|
||||
|
||||
:cond_1
|
||||
return-void
|
||||
.end method
|
||||
349
com.discord/smali_classes2/g0/l/c/c$a.smali
Normal file
349
com.discord/smali_classes2/g0/l/c/c$a.smali
Normal file
|
|
@ -0,0 +1,349 @@
|
|||
.class public final Lg0/l/c/c$a;
|
||||
.super Lrx/Scheduler$Worker;
|
||||
.source "ExecutorScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/Runnable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/c;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Ljava/util/concurrent/Executor;
|
||||
|
||||
.field public final e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
.field public final f:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/ConcurrentLinkedQueue<",
|
||||
"Lg0/l/c/j;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public final g:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
.field public final h:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/util/concurrent/Executor;)V
|
||||
.locals 2
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler$Worker;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/c$a;->d:Ljava/util/concurrent/Executor;
|
||||
|
||||
new-instance p1, Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-direct {p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/c$a;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/c$a;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
new-instance p1, Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-direct {p1}, Lrx/subscriptions/CompositeSubscription;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
sget-object p1, Lg0/l/c/d;->d:Lg0/l/c/d;
|
||||
|
||||
iget-object p1, p1, Lg0/l/c/d;->a:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, [Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
sget-object v0, Lg0/l/c/d;->b:[Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
if-ne p1, v0, :cond_0
|
||||
|
||||
sget-object p1, Lg0/l/c/d;->c:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
sget v0, Lg0/l/c/d;->e:I
|
||||
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
array-length v1, p1
|
||||
|
||||
if-lt v0, v1, :cond_1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
:cond_1
|
||||
sput v0, Lg0/l/c/d;->e:I
|
||||
|
||||
aget-object p1, p1, v0
|
||||
|
||||
:goto_0
|
||||
iput-object p1, p0, Lg0/l/c/c$a;->h:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a(Lrx/functions/Action0;)Lrx/Subscription;
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
sget-object p1, Lg0/r/c;->a:Lg0/r/c$a;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_0
|
||||
invoke-static {p1}, Lg0/o/l;->d(Lrx/functions/Action0;)Lrx/functions/Action0;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance v0, Lg0/l/c/j;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-direct {v0, p1, v1}, Lg0/l/c/j;-><init>(Lrx/functions/Action0;Lrx/subscriptions/CompositeSubscription;)V
|
||||
|
||||
iget-object p1, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {p1, v0}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
||||
|
||||
iget-object p1, p0, Lg0/l/c/c$a;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->offer(Ljava/lang/Object;)Z
|
||||
|
||||
iget-object p1, p0, Lg0/l/c/c$a;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-nez p1, :cond_1
|
||||
|
||||
:try_start_0
|
||||
iget-object p1, p0, Lg0/l/c/c$a;->d:Ljava/util/concurrent/Executor;
|
||||
|
||||
invoke-interface {p1, p0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
||||
:try_end_0
|
||||
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
move-exception p1
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {v1, v0}, Lrx/subscriptions/CompositeSubscription;->c(Lrx/Subscription;)V
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
|
||||
|
||||
invoke-static {p1}, Lg0/o/l;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
.locals 5
|
||||
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
cmp-long v2, p2, v0
|
||||
|
||||
if-gtz v2, :cond_0
|
||||
|
||||
invoke-virtual {p0, p1}, Lg0/l/c/c$a;->a(Lrx/functions/Action0;)Lrx/Subscription;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
sget-object p1, Lg0/r/c;->a:Lg0/r/c$a;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_1
|
||||
invoke-static {p1}, Lg0/o/l;->d(Lrx/functions/Action0;)Lrx/functions/Action0;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance v0, Lg0/r/b;
|
||||
|
||||
invoke-direct {v0}, Lg0/r/b;-><init>()V
|
||||
|
||||
new-instance v1, Lg0/r/b;
|
||||
|
||||
invoke-direct {v1}, Lg0/r/b;-><init>()V
|
||||
|
||||
invoke-virtual {v1, v0}, Lg0/r/b;->a(Lrx/Subscription;)V
|
||||
|
||||
iget-object v2, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {v2, v1}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
||||
|
||||
new-instance v2, Lg0/l/c/c$a$a;
|
||||
|
||||
invoke-direct {v2, p0, v1}, Lg0/l/c/c$a$a;-><init>(Lg0/l/c/c$a;Lg0/r/b;)V
|
||||
|
||||
new-instance v3, Lg0/r/a;
|
||||
|
||||
invoke-direct {v3, v2}, Lg0/r/a;-><init>(Lrx/functions/Action0;)V
|
||||
|
||||
new-instance v2, Lg0/l/c/j;
|
||||
|
||||
new-instance v4, Lg0/l/c/c$a$b;
|
||||
|
||||
invoke-direct {v4, p0, v1, p1, v3}, Lg0/l/c/c$a$b;-><init>(Lg0/l/c/c$a;Lg0/r/b;Lrx/functions/Action0;Lrx/Subscription;)V
|
||||
|
||||
invoke-direct {v2, v4}, Lg0/l/c/j;-><init>(Lrx/functions/Action0;)V
|
||||
|
||||
invoke-virtual {v0, v2}, Lg0/r/b;->a(Lrx/Subscription;)V
|
||||
|
||||
:try_start_0
|
||||
iget-object p1, p0, Lg0/l/c/c$a;->h:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-interface {p1, v2, p2, p3, p4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {v2, p1}, Lg0/l/c/j;->a(Ljava/util/concurrent/Future;)V
|
||||
:try_end_0
|
||||
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
return-object v3
|
||||
|
||||
:catch_0
|
||||
move-exception p1
|
||||
|
||||
invoke-static {p1}, Lg0/o/l;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public run()V
|
||||
.locals 2
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->clear()V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Lg0/l/c/j;
|
||||
|
||||
if-nez v0, :cond_2
|
||||
|
||||
return-void
|
||||
|
||||
:cond_2
|
||||
iget-object v1, v0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v1, v1, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
if-nez v1, :cond_4
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-boolean v1, v1, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-nez v1, :cond_3
|
||||
|
||||
invoke-virtual {v0}, Lg0/l/c/j;->run()V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->clear()V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_4
|
||||
:goto_0
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->e:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
invoke-virtual {v0}, Lrx/subscriptions/CompositeSubscription;->unsubscribe()V
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/c$a;->f:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->clear()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
41
com.discord/smali_classes2/g0/l/c/c.smali
Normal file
41
com.discord/smali_classes2/g0/l/c/c.smali
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
.class public final Lg0/l/c/c;
|
||||
.super Lrx/Scheduler;
|
||||
.source "ExecutorScheduler.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lg0/l/c/c$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Ljava/util/concurrent/Executor;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/util/concurrent/Executor;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/c;->a:Ljava/util/concurrent/Executor;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()Lrx/Scheduler$Worker;
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Lg0/l/c/c$a;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/c;->a:Ljava/util/concurrent/Executor;
|
||||
|
||||
invoke-direct {v0, v1}, Lg0/l/c/c$a;-><init>(Ljava/util/concurrent/Executor;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
218
com.discord/smali_classes2/g0/l/c/d.smali
Normal file
218
com.discord/smali_classes2/g0/l/c/d.smali
Normal file
|
|
@ -0,0 +1,218 @@
|
|||
.class public final Lg0/l/c/d;
|
||||
.super Ljava/lang/Object;
|
||||
.source "GenericScheduledExecutorService.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lg0/l/c/k;
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final b:[Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
.field public static final c:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
.field public static final d:Lg0/l/c/d;
|
||||
|
||||
.field public static e:I
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/atomic/AtomicReference<",
|
||||
"[",
|
||||
"Ljava/util/concurrent/ScheduledExecutorService;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
new-array v1, v0, [Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
sput-object v1, Lg0/l/c/d;->b:[Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-static {v0}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(I)Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Lg0/l/c/d;->c:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-interface {v0}, Ljava/util/concurrent/ScheduledExecutorService;->shutdown()V
|
||||
|
||||
new-instance v0, Lg0/l/c/d;
|
||||
|
||||
invoke-direct {v0}, Lg0/l/c/d;-><init>()V
|
||||
|
||||
sput-object v0, Lg0/l/c/d;->d:Lg0/l/c/d;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 6
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
sget-object v1, Lg0/l/c/d;->b:[Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/d;->a:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x4
|
||||
|
||||
if-le v0, v1, :cond_0
|
||||
|
||||
div-int/lit8 v0, v0, 0x2
|
||||
|
||||
:cond_0
|
||||
const/16 v1, 0x8
|
||||
|
||||
if-le v0, v1, :cond_1
|
||||
|
||||
const/16 v0, 0x8
|
||||
|
||||
:cond_1
|
||||
new-array v1, v0, [Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v3, v0, :cond_2
|
||||
|
||||
sget-object v4, Lg0/l/c/e;->d:Lg0/l/e/i;
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
invoke-static {v5, v4}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
aput-object v4, v1, v3
|
||||
|
||||
add-int/lit8 v3, v3, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
iget-object v3, p0, Lg0/l/c/d;->a:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
sget-object v4, Lg0/l/c/d;->b:[Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-virtual {v3, v4, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v3
|
||||
|
||||
if-eqz v3, :cond_4
|
||||
|
||||
:goto_1
|
||||
if-ge v2, v0, :cond_5
|
||||
|
||||
aget-object v3, v1, v2
|
||||
|
||||
invoke-static {v3}, Lg0/l/c/g;->g(Ljava/util/concurrent/ScheduledExecutorService;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_3
|
||||
|
||||
instance-of v4, v3, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
||||
|
||||
if-eqz v4, :cond_3
|
||||
|
||||
check-cast v3, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
||||
|
||||
invoke-static {v3}, Lg0/l/c/g;->e(Ljava/util/concurrent/ScheduledThreadPoolExecutor;)V
|
||||
|
||||
:cond_3
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_4
|
||||
:goto_2
|
||||
if-ge v2, v0, :cond_5
|
||||
|
||||
aget-object v3, v1, v2
|
||||
|
||||
invoke-interface {v3}, Ljava/util/concurrent/ScheduledExecutorService;->shutdownNow()Ljava/util/List;
|
||||
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_5
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public shutdown()V
|
||||
.locals 5
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/d;->a:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, [Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
sget-object v1, Lg0/l/c/d;->b:[Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
if-ne v0, v1, :cond_1
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
iget-object v2, p0, Lg0/l/c/d;->a:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {v2, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
array-length v1, v0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v1, :cond_2
|
||||
|
||||
aget-object v3, v0, v2
|
||||
|
||||
sget-object v4, Lg0/l/c/g;->h:Ljava/util/concurrent/ConcurrentHashMap;
|
||||
|
||||
invoke-virtual {v4, v3}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-interface {v3}, Ljava/util/concurrent/ScheduledExecutorService;->shutdownNow()Ljava/util/List;
|
||||
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
return-void
|
||||
.end method
|
||||
69
com.discord/smali_classes2/g0/l/c/e.smali
Normal file
69
com.discord/smali_classes2/g0/l/c/e.smali
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
.class public final enum Lg0/l/c/e;
|
||||
.super Ljava/lang/Enum;
|
||||
.source "GenericScheduledExecutorServiceFactory.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Enum<",
|
||||
"Lg0/l/c/e;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final d:Lg0/l/e/i;
|
||||
|
||||
.field public static final synthetic e:[Lg0/l/c/e;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
new-array v0, v0, [Lg0/l/c/e;
|
||||
|
||||
sput-object v0, Lg0/l/c/e;->e:[Lg0/l/c/e;
|
||||
|
||||
new-instance v0, Lg0/l/e/i;
|
||||
|
||||
const-string v1, "RxScheduledExecutorPool-"
|
||||
|
||||
invoke-direct {v0, v1}, Lg0/l/e/i;-><init>(Ljava/lang/String;)V
|
||||
|
||||
sput-object v0, Lg0/l/c/e;->d:Lg0/l/e/i;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static valueOf(Ljava/lang/String;)Lg0/l/c/e;
|
||||
.locals 1
|
||||
|
||||
const-class v0, Lg0/l/c/e;
|
||||
|
||||
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
check-cast p0, Lg0/l/c/e;
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static values()[Lg0/l/c/e;
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lg0/l/c/e;->e:[Lg0/l/c/e;
|
||||
|
||||
invoke-virtual {v0}, [Lg0/l/c/e;->clone()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, [Lg0/l/c/e;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
33
com.discord/smali_classes2/g0/l/c/f.smali
Normal file
33
com.discord/smali_classes2/g0/l/c/f.smali
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
.class public final Lg0/l/c/f;
|
||||
.super Lrx/Scheduler;
|
||||
.source "NewThreadScheduler.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/f;->a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()Lrx/Scheduler$Worker;
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Lg0/l/c/g;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/f;->a:Ljava/util/concurrent/ThreadFactory;
|
||||
|
||||
invoke-direct {v0, v1}, Lg0/l/c/g;-><init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
84
com.discord/smali_classes2/g0/l/c/g$a.smali
Normal file
84
com.discord/smali_classes2/g0/l/c/g$a.smali
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
.class public final Lg0/l/c/g$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "NewThreadWorker.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/Runnable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lg0/l/c/g;->e(Ljava/util/concurrent/ScheduledThreadPoolExecutor;)V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public run()V
|
||||
.locals 3
|
||||
|
||||
:try_start_0
|
||||
sget-object v0, Lg0/l/c/g;->h:Ljava/util/concurrent/ConcurrentHashMap;
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Set;->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, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
||||
|
||||
invoke-virtual {v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->isShutdown()Z
|
||||
|
||||
move-result v2
|
||||
|
||||
if-nez v2, :cond_0
|
||||
|
||||
invoke-virtual {v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->purge()V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
invoke-static {v0}, Ly/a/g0;->P(Ljava/lang/Throwable;)V
|
||||
|
||||
invoke-static {v0}, Lg0/o/l;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
:cond_1
|
||||
return-void
|
||||
.end method
|
||||
472
com.discord/smali_classes2/g0/l/c/g.smali
Normal file
472
com.discord/smali_classes2/g0/l/c/g.smali
Normal file
|
|
@ -0,0 +1,472 @@
|
|||
.class public Lg0/l/c/g;
|
||||
.super Lrx/Scheduler$Worker;
|
||||
.source "NewThreadWorker.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Subscription;
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final f:Z
|
||||
|
||||
.field public static final g:I
|
||||
|
||||
.field public static final h:Ljava/util/concurrent/ConcurrentHashMap;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/ConcurrentHashMap<",
|
||||
"Ljava/util/concurrent/ScheduledThreadPoolExecutor;",
|
||||
"Ljava/util/concurrent/ScheduledThreadPoolExecutor;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public static final i:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/atomic/AtomicReference<",
|
||||
"Ljava/util/concurrent/ScheduledExecutorService;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public static volatile j:Ljava/lang/Object;
|
||||
|
||||
.field public static final k:Ljava/lang/Object;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
.field public volatile e:Z
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Ljava/lang/Object;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
sput-object v0, Lg0/l/c/g;->k:Ljava/lang/Object;
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
||||
|
||||
sput-object v0, Lg0/l/c/g;->h:Ljava/util/concurrent/ConcurrentHashMap;
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
||||
|
||||
sput-object v0, Lg0/l/c/g;->i:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
const-string v0, "rx.scheduler.jdk6.purge-frequency-millis"
|
||||
|
||||
const/16 v1, 0x3e8
|
||||
|
||||
invoke-static {v0, v1}, Ljava/lang/Integer;->getInteger(Ljava/lang/String;I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
||||
|
||||
move-result v0
|
||||
|
||||
sput v0, Lg0/l/c/g;->g:I
|
||||
|
||||
const-string v0, "rx.scheduler.jdk6.purge-force"
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Boolean;->getBoolean(Ljava/lang/String;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
sget v1, Lg0/l/e/g;->a:I
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
const/16 v0, 0x15
|
||||
|
||||
if-lt v1, v0, :cond_1
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
sput-boolean v0, Lg0/l/c/g;->f:Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Ljava/util/concurrent/ThreadFactory;)V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler$Worker;-><init>()V
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
invoke-static {v0, p1}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {p1}, Lg0/l/c/g;->g(Ljava/util/concurrent/ScheduledExecutorService;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
instance-of v0, p1, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
move-object v0, p1
|
||||
|
||||
check-cast v0, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
||||
|
||||
invoke-static {v0}, Lg0/l/c/g;->e(Ljava/util/concurrent/ScheduledThreadPoolExecutor;)V
|
||||
|
||||
:cond_0
|
||||
iput-object p1, p0, Lg0/l/c/g;->d:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static d(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/lang/reflect/Method;
|
||||
.locals 7
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/Class;->getMethods()[Ljava/lang/reflect/Method;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
array-length v0, p0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v0, :cond_1
|
||||
|
||||
aget-object v3, p0, v2
|
||||
|
||||
invoke-virtual {v3}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
const-string v5, "setRemoveOnCancelPolicy"
|
||||
|
||||
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-eqz v4, :cond_0
|
||||
|
||||
invoke-virtual {v3}, Ljava/lang/reflect/Method;->getParameterTypes()[Ljava/lang/Class;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
array-length v5, v4
|
||||
|
||||
const/4 v6, 0x1
|
||||
|
||||
if-ne v5, v6, :cond_0
|
||||
|
||||
aget-object v4, v4, v1
|
||||
|
||||
sget-object v5, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
||||
|
||||
if-ne v4, v5, :cond_0
|
||||
|
||||
return-object v3
|
||||
|
||||
:cond_0
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/4 p0, 0x0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static e(Ljava/util/concurrent/ScheduledThreadPoolExecutor;)V
|
||||
.locals 11
|
||||
|
||||
:goto_0
|
||||
sget-object v0, Lg0/l/c/g;->i:Ljava/util/concurrent/atomic/AtomicReference;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
const/4 v1, 0x1
|
||||
|
||||
new-instance v2, Lg0/l/e/i;
|
||||
|
||||
const-string v3, "RxSchedulerPurge-"
|
||||
|
||||
invoke-direct {v2, v3}, Lg0/l/e/i;-><init>(Ljava/lang/String;)V
|
||||
|
||||
invoke-static {v1, v2}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {v0, v1, v4}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
new-instance v5, Lg0/l/c/g$a;
|
||||
|
||||
invoke-direct {v5}, Lg0/l/c/g$a;-><init>()V
|
||||
|
||||
sget v0, Lg0/l/c/g;->g:I
|
||||
|
||||
int-to-long v6, v0
|
||||
|
||||
int-to-long v8, v0
|
||||
|
||||
sget-object v10, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
invoke-interface/range {v4 .. v10}, Ljava/util/concurrent/ScheduledExecutorService;->scheduleAtFixedRate(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
||||
|
||||
:goto_1
|
||||
sget-object v0, Lg0/l/c/g;->h:Ljava/util/concurrent/ConcurrentHashMap;
|
||||
|
||||
invoke-virtual {v0, p0, p0}, Ljava/util/concurrent/ConcurrentHashMap;->putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
return-void
|
||||
|
||||
:cond_1
|
||||
invoke-interface {v4}, Ljava/util/concurrent/ScheduledExecutorService;->shutdownNow()Ljava/util/List;
|
||||
|
||||
goto :goto_0
|
||||
.end method
|
||||
|
||||
.method public static g(Ljava/util/concurrent/ScheduledExecutorService;)Z
|
||||
.locals 5
|
||||
|
||||
sget-boolean v0, Lg0/l/c/g;->f:Z
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-eqz v0, :cond_4
|
||||
|
||||
instance-of v0, p0, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
||||
|
||||
if-eqz v0, :cond_3
|
||||
|
||||
sget-object v0, Lg0/l/c/g;->j:Ljava/lang/Object;
|
||||
|
||||
sget-object v2, Lg0/l/c/g;->k:Ljava/lang/Object;
|
||||
|
||||
if-ne v0, v2, :cond_0
|
||||
|
||||
return v1
|
||||
|
||||
:cond_0
|
||||
if-nez v0, :cond_2
|
||||
|
||||
invoke-static {p0}, Lg0/l/c/g;->d(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/lang/reflect/Method;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
move-object v2, v0
|
||||
|
||||
:cond_1
|
||||
sput-object v2, Lg0/l/c/g;->j:Ljava/lang/Object;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
check-cast v0, Ljava/lang/reflect/Method;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
invoke-static {p0}, Lg0/l/c/g;->d(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/lang/reflect/Method;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
:goto_0
|
||||
if-eqz v0, :cond_4
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
:try_start_0
|
||||
new-array v3, v2, [Ljava/lang/Object;
|
||||
|
||||
sget-object v4, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
||||
|
||||
aput-object v4, v3, v1
|
||||
|
||||
invoke-virtual {v0, p0, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
||||
:try_end_0
|
||||
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_2
|
||||
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
return v2
|
||||
|
||||
:catch_0
|
||||
move-exception p0
|
||||
|
||||
invoke-static {p0}, Lg0/o/l;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_1
|
||||
move-exception p0
|
||||
|
||||
invoke-static {p0}, Lg0/o/l;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_2
|
||||
move-exception p0
|
||||
|
||||
invoke-static {p0}, Lg0/o/l;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
:cond_4
|
||||
:goto_1
|
||||
return v1
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a(Lrx/functions/Action0;)Lrx/Subscription;
|
||||
.locals 3
|
||||
|
||||
iget-boolean v0, p0, Lg0/l/c/g;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
sget-object p1, Lg0/r/c;->a:Lg0/r/c$a;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-virtual {p0, p1, v0, v1, v2}, Lg0/l/c/g;->f(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lg0/l/c/j;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:goto_0
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
.locals 1
|
||||
|
||||
iget-boolean v0, p0, Lg0/l/c/g;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
sget-object p1, Lg0/r/c;->a:Lg0/r/c$a;
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {p0, p1, p2, p3, p4}, Lg0/l/c/g;->f(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lg0/l/c/j;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public f(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lg0/l/c/j;
|
||||
.locals 3
|
||||
|
||||
invoke-static {p1}, Lg0/o/l;->d(Lrx/functions/Action0;)Lrx/functions/Action0;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance v0, Lg0/l/c/j;
|
||||
|
||||
invoke-direct {v0, p1}, Lg0/l/c/j;-><init>(Lrx/functions/Action0;)V
|
||||
|
||||
const-wide/16 v1, 0x0
|
||||
|
||||
cmp-long p1, p2, v1
|
||||
|
||||
if-gtz p1, :cond_0
|
||||
|
||||
iget-object p1, p0, Lg0/l/c/g;->d:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-interface {p1, v0}, Ljava/util/concurrent/ScheduledExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iget-object p1, p0, Lg0/l/c/g;->d:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-interface {p1, v0, p2, p3, p4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {v0, p1}, Lg0/l/c/j;->a(Ljava/util/concurrent/Future;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-boolean v0, p0, Lg0/l/c/g;->e:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 2
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
iput-boolean v0, p0, Lg0/l/c/g;->e:Z
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/g;->d:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
invoke-interface {v0}, Ljava/util/concurrent/ScheduledExecutorService;->shutdownNow()Ljava/util/List;
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/g;->d:Ljava/util/concurrent/ScheduledExecutorService;
|
||||
|
||||
sget-object v1, Lg0/l/c/g;->h:Ljava/util/concurrent/ConcurrentHashMap;
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
177
com.discord/smali_classes2/g0/l/c/h.smali
Normal file
177
com.discord/smali_classes2/g0/l/c/h.smali
Normal file
|
|
@ -0,0 +1,177 @@
|
|||
.class public final Lg0/l/c/h;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SchedulePeriodicHelper.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action0;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public d:J
|
||||
|
||||
.field public e:J
|
||||
|
||||
.field public f:J
|
||||
|
||||
.field public final synthetic g:J
|
||||
|
||||
.field public final synthetic h:J
|
||||
|
||||
.field public final synthetic i:Lrx/functions/Action0;
|
||||
|
||||
.field public final synthetic j:Lg0/l/d/a;
|
||||
|
||||
.field public final synthetic k:Lg0/l/c/i$a;
|
||||
|
||||
.field public final synthetic l:Lrx/Scheduler$Worker;
|
||||
|
||||
.field public final synthetic m:J
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(JJLrx/functions/Action0;Lg0/l/d/a;Lg0/l/c/i$a;Lrx/Scheduler$Worker;J)V
|
||||
.locals 0
|
||||
|
||||
iput-wide p1, p0, Lg0/l/c/h;->g:J
|
||||
|
||||
iput-wide p3, p0, Lg0/l/c/h;->h:J
|
||||
|
||||
iput-object p5, p0, Lg0/l/c/h;->i:Lrx/functions/Action0;
|
||||
|
||||
iput-object p6, p0, Lg0/l/c/h;->j:Lg0/l/d/a;
|
||||
|
||||
iput-object p7, p0, Lg0/l/c/h;->k:Lg0/l/c/i$a;
|
||||
|
||||
iput-object p8, p0, Lg0/l/c/h;->l:Lrx/Scheduler$Worker;
|
||||
|
||||
iput-wide p9, p0, Lg0/l/c/h;->m:J
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-wide p1, p0, Lg0/l/c/h;->e:J
|
||||
|
||||
iput-wide p3, p0, Lg0/l/c/h;->f:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call()V
|
||||
.locals 11
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/h;->i:Lrx/functions/Action0;
|
||||
|
||||
invoke-interface {v0}, Lrx/functions/Action0;->call()V
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/h;->j:Lg0/l/d/a;
|
||||
|
||||
invoke-virtual {v0}, Lg0/l/d/a;->isUnsubscribed()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_3
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/h;->k:Lg0/l/c/i$a;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-interface {v0}, Lg0/l/c/i$a;->a()J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/h;->l:Lrx/Scheduler$Worker;
|
||||
|
||||
invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
||||
|
||||
move-result-wide v1
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
:goto_0
|
||||
sget-wide v2, Lg0/l/c/i;->a:J
|
||||
|
||||
add-long v4, v0, v2
|
||||
|
||||
iget-wide v6, p0, Lg0/l/c/h;->e:J
|
||||
|
||||
const-wide/16 v8, 0x1
|
||||
|
||||
cmp-long v10, v4, v6
|
||||
|
||||
if-ltz v10, :cond_2
|
||||
|
||||
iget-wide v4, p0, Lg0/l/c/h;->m:J
|
||||
|
||||
add-long/2addr v6, v4
|
||||
|
||||
add-long/2addr v6, v2
|
||||
|
||||
cmp-long v2, v0, v6
|
||||
|
||||
if-ltz v2, :cond_1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
iget-wide v2, p0, Lg0/l/c/h;->f:J
|
||||
|
||||
iget-wide v6, p0, Lg0/l/c/h;->d:J
|
||||
|
||||
add-long/2addr v6, v8
|
||||
|
||||
iput-wide v6, p0, Lg0/l/c/h;->d:J
|
||||
|
||||
mul-long v6, v6, v4
|
||||
|
||||
add-long/2addr v6, v2
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_2
|
||||
:goto_1
|
||||
iget-wide v2, p0, Lg0/l/c/h;->m:J
|
||||
|
||||
add-long v6, v0, v2
|
||||
|
||||
iget-wide v4, p0, Lg0/l/c/h;->d:J
|
||||
|
||||
add-long/2addr v4, v8
|
||||
|
||||
iput-wide v4, p0, Lg0/l/c/h;->d:J
|
||||
|
||||
mul-long v2, v2, v4
|
||||
|
||||
sub-long v2, v6, v2
|
||||
|
||||
iput-wide v2, p0, Lg0/l/c/h;->f:J
|
||||
|
||||
:goto_2
|
||||
iput-wide v0, p0, Lg0/l/c/h;->e:J
|
||||
|
||||
sub-long/2addr v6, v0
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/h;->j:Lg0/l/d/a;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/h;->l:Lrx/Scheduler$Worker;
|
||||
|
||||
sget-object v2, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
invoke-virtual {v1, p0, v6, v7, v2}, Lrx/Scheduler$Worker;->b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v0, v1}, Lg0/l/d/a;->a(Lrx/Subscription;)Z
|
||||
|
||||
:cond_3
|
||||
return-void
|
||||
.end method
|
||||
19
com.discord/smali_classes2/g0/l/c/i$a.smali
Normal file
19
com.discord/smali_classes2/g0/l/c/i$a.smali
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
.class public interface abstract Lg0/l/c/i$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SchedulePeriodicHelper.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/i;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x609
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract a()J
|
||||
.end method
|
||||
45
com.discord/smali_classes2/g0/l/c/i.smali
Normal file
45
com.discord/smali_classes2/g0/l/c/i.smali
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
.class public final Lg0/l/c/i;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SchedulePeriodicHelper.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lg0/l/c/i$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:J
|
||||
|
||||
.field public static final synthetic b:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 4
|
||||
|
||||
sget-object v0, Ljava/util/concurrent/TimeUnit;->MINUTES:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
const-string v1, "rx.scheduler.drift-tolerance"
|
||||
|
||||
const-wide/16 v2, 0xf
|
||||
|
||||
invoke-static {v1, v2, v3}, Ljava/lang/Long;->getLong(Ljava/lang/String;J)Ljava/lang/Long;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
|
||||
|
||||
move-result-wide v1
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
sput-wide v0, Lg0/l/c/i;->a:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
99
com.discord/smali_classes2/g0/l/c/j$a.smali
Normal file
99
com.discord/smali_classes2/g0/l/c/j$a.smali
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
.class public final Lg0/l/c/j$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ScheduledAction.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Subscription;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/j;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x11
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Ljava/util/concurrent/Future;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/Future<",
|
||||
"*>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public final synthetic e:Lg0/l/c/j;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/j;Ljava/util/concurrent/Future;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/concurrent/Future<",
|
||||
"*>;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/j$a;->e:Lg0/l/c/j;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/j$a;->d:Ljava/util/concurrent/Future;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j$a;->d:Ljava/util/concurrent/Future;
|
||||
|
||||
invoke-interface {v0}, Ljava/util/concurrent/Future;->isCancelled()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j$a;->e:Lg0/l/c/j;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j$a;->d:Ljava/util/concurrent/Future;
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-interface {v0, v1}, Ljava/util/concurrent/Future;->cancel(Z)Z
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lg0/l/c/j$a;->d:Ljava/util/concurrent/Future;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-interface {v0, v1}, Ljava/util/concurrent/Future;->cancel(Z)Z
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
125
com.discord/smali_classes2/g0/l/c/j$b.smali
Normal file
125
com.discord/smali_classes2/g0/l/c/j$b.smali
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
.class public final Lg0/l/c/j$b;
|
||||
.super Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
.source "ScheduledAction.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Subscription;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/j;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "b"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final serialVersionUID:J = 0x36e5888d681586eL
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final parent:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
.field public final s:Lg0/l/c/j;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/j;Lrx/internal/util/SubscriptionList;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/j$b;->s:Lg0/l/c/j;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/j$b;->parent:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j$b;->s:Lg0/l/c/j;
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 4
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j$b;->parent:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/j$b;->s:Lg0/l/c/j;
|
||||
|
||||
iget-boolean v2, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
if-nez v2, :cond_2
|
||||
|
||||
monitor-enter v0
|
||||
|
||||
:try_start_0
|
||||
iget-object v2, v0, Lrx/internal/util/SubscriptionList;->d:Ljava/util/List;
|
||||
|
||||
iget-boolean v3, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
if-nez v3, :cond_1
|
||||
|
||||
if-nez v2, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-interface {v2, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v2
|
||||
|
||||
monitor-exit v0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
if-eqz v2, :cond_2
|
||||
|
||||
invoke-virtual {v1}, Lg0/l/c/j;->unsubscribe()V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
:try_start_1
|
||||
monitor-exit v0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catchall_0
|
||||
move-exception v1
|
||||
|
||||
monitor-exit v0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
throw v1
|
||||
|
||||
:cond_2
|
||||
:goto_1
|
||||
return-void
|
||||
.end method
|
||||
78
com.discord/smali_classes2/g0/l/c/j$c.smali
Normal file
78
com.discord/smali_classes2/g0/l/c/j$c.smali
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
.class public final Lg0/l/c/j$c;
|
||||
.super Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
.source "ScheduledAction.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Subscription;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/j;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "c"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final serialVersionUID:J = 0x36e5888d681586eL
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final parent:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
.field public final s:Lg0/l/c/j;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/j;Lrx/subscriptions/CompositeSubscription;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/j$c;->s:Lg0/l/c/j;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/j$c;->parent:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j$c;->s:Lg0/l/c/j;
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 2
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j$c;->parent:Lrx/subscriptions/CompositeSubscription;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/j$c;->s:Lg0/l/c/j;
|
||||
|
||||
invoke-virtual {v0, v1}, Lrx/subscriptions/CompositeSubscription;->c(Lrx/Subscription;)V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
224
com.discord/smali_classes2/g0/l/c/j.smali
Normal file
224
com.discord/smali_classes2/g0/l/c/j.smali
Normal file
|
|
@ -0,0 +1,224 @@
|
|||
.class public final Lg0/l/c/j;
|
||||
.super Ljava/util/concurrent/atomic/AtomicReference;
|
||||
.source "ScheduledAction.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/Runnable;
|
||||
.implements Lrx/Subscription;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lg0/l/c/j$b;,
|
||||
Lg0/l/c/j$c;,
|
||||
Lg0/l/c/j$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/atomic/AtomicReference<",
|
||||
"Ljava/lang/Thread;",
|
||||
">;",
|
||||
"Ljava/lang/Runnable;",
|
||||
"Lrx/Subscription;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final serialVersionUID:J = -0x36fd4556f787c9b1L
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final action:Lrx/functions/Action0;
|
||||
|
||||
.field public final cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lrx/functions/Action0;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/j;->action:Lrx/functions/Action0;
|
||||
|
||||
new-instance p1, Lrx/internal/util/SubscriptionList;
|
||||
|
||||
invoke-direct {p1}, Lrx/internal/util/SubscriptionList;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Lrx/functions/Action0;Lrx/internal/util/SubscriptionList;)V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/j;->action:Lrx/functions/Action0;
|
||||
|
||||
new-instance p1, Lrx/internal/util/SubscriptionList;
|
||||
|
||||
new-instance v0, Lg0/l/c/j$b;
|
||||
|
||||
invoke-direct {v0, p0, p2}, Lg0/l/c/j$b;-><init>(Lg0/l/c/j;Lrx/internal/util/SubscriptionList;)V
|
||||
|
||||
invoke-direct {p1, v0}, Lrx/internal/util/SubscriptionList;-><init>(Lrx/Subscription;)V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Lrx/functions/Action0;Lrx/subscriptions/CompositeSubscription;)V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/j;->action:Lrx/functions/Action0;
|
||||
|
||||
new-instance p1, Lrx/internal/util/SubscriptionList;
|
||||
|
||||
new-instance v0, Lg0/l/c/j$c;
|
||||
|
||||
invoke-direct {v0, p0, p2}, Lg0/l/c/j$c;-><init>(Lg0/l/c/j;Lrx/subscriptions/CompositeSubscription;)V
|
||||
|
||||
invoke-direct {p1, v0}, Lrx/internal/util/SubscriptionList;-><init>(Lrx/Subscription;)V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a(Ljava/util/concurrent/Future;)V
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/concurrent/Future<",
|
||||
"*>;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
new-instance v1, Lg0/l/c/j$a;
|
||||
|
||||
invoke-direct {v1, p0, p1}, Lg0/l/c/j$a;-><init>(Lg0/l/c/j;Ljava/util/concurrent/Future;)V
|
||||
|
||||
invoke-virtual {v0, v1}, Lrx/internal/util/SubscriptionList;->a(Lrx/Subscription;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public run()V
|
||||
.locals 3
|
||||
|
||||
:try_start_0
|
||||
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j;->action:Lrx/functions/Action0;
|
||||
|
||||
invoke-interface {v0}, Lrx/functions/Action0;->call()V
|
||||
:try_end_0
|
||||
.catch Lrx/exceptions/OnErrorNotImplementedException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
:try_start_1
|
||||
new-instance v1, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v2, "Fatal Exception thrown on Scheduler.Worker thread."
|
||||
|
||||
invoke-direct {v1, v2, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
||||
|
||||
invoke-static {v1}, Lg0/o/l;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-interface {v2, v0, v1}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
move-exception v0
|
||||
|
||||
new-instance v1, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v2, "Exception thrown on Scheduler.Worker thread. Add `onError` handling."
|
||||
|
||||
invoke-direct {v1, v2, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
||||
|
||||
invoke-static {v1}, Lg0/o/l;->b(Ljava/lang/Throwable;)V
|
||||
|
||||
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-interface {v2, v0, v1}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {p0}, Lg0/l/c/j;->unsubscribe()V
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_1
|
||||
move-exception v0
|
||||
|
||||
invoke-virtual {p0}, Lg0/l/c/j;->unsubscribe()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/j;->cancel:Lrx/internal/util/SubscriptionList;
|
||||
|
||||
invoke-virtual {v0}, Lrx/internal/util/SubscriptionList;->unsubscribe()V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
8
com.discord/smali_classes2/g0/l/c/k.smali
Normal file
8
com.discord/smali_classes2/g0/l/c/k.smali
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
.class public interface abstract Lg0/l/c/k;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SchedulerLifecycle.java"
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract shutdown()V
|
||||
.end method
|
||||
106
com.discord/smali_classes2/g0/l/c/l.smali
Normal file
106
com.discord/smali_classes2/g0/l/c/l.smali
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
.class public Lg0/l/c/l;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SleepingAction.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action0;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Lrx/functions/Action0;
|
||||
|
||||
.field public final e:Lrx/Scheduler$Worker;
|
||||
|
||||
.field public final f:J
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lrx/functions/Action0;Lrx/Scheduler$Worker;J)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/l;->d:Lrx/functions/Action0;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/l;->e:Lrx/Scheduler$Worker;
|
||||
|
||||
iput-wide p3, p0, Lg0/l/c/l;->f:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call()V
|
||||
.locals 5
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/l;->e:Lrx/Scheduler$Worker;
|
||||
|
||||
invoke-interface {v0}, Lrx/Subscription;->isUnsubscribed()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
iget-wide v0, p0, Lg0/l/c/l;->f:J
|
||||
|
||||
iget-object v2, p0, Lg0/l/c/l;->e:Lrx/Scheduler$Worker;
|
||||
|
||||
invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
||||
|
||||
move-result-wide v2
|
||||
|
||||
sub-long/2addr v0, v2
|
||||
|
||||
const-wide/16 v2, 0x0
|
||||
|
||||
cmp-long v4, v0, v2
|
||||
|
||||
if-lez v4, :cond_1
|
||||
|
||||
:try_start_0
|
||||
invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
|
||||
:try_end_0
|
||||
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
move-exception v0
|
||||
|
||||
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
||||
|
||||
invoke-static {v0}, Ly/a/g0;->y(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
iget-object v0, p0, Lg0/l/c/l;->e:Lrx/Scheduler$Worker;
|
||||
|
||||
invoke-interface {v0}, Lrx/Subscription;->isUnsubscribed()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
return-void
|
||||
|
||||
:cond_2
|
||||
iget-object v0, p0, Lg0/l/c/l;->d:Lrx/functions/Action0;
|
||||
|
||||
invoke-interface {v0}, Lrx/functions/Action0;->call()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
53
com.discord/smali_classes2/g0/l/c/m$a$a.smali
Normal file
53
com.discord/smali_classes2/g0/l/c/m$a$a.smali
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
.class public Lg0/l/c/m$a$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TrampolineScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action0;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lg0/l/c/m$a;->d(Lrx/functions/Action0;J)Lrx/Subscription;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic d:Lg0/l/c/m$b;
|
||||
|
||||
.field public final synthetic e:Lg0/l/c/m$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lg0/l/c/m$a;Lg0/l/c/m$b;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/m$a$a;->e:Lg0/l/c/m$a;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/m$a$a;->d:Lg0/l/c/m$b;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call()V
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/m$a$a;->e:Lg0/l/c/m$a;
|
||||
|
||||
iget-object v0, v0, Lg0/l/c/m$a;->e:Ljava/util/concurrent/PriorityBlockingQueue;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/m$a$a;->d:Lg0/l/c/m$b;
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/util/concurrent/PriorityBlockingQueue;->remove(Ljava/lang/Object;)Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
211
com.discord/smali_classes2/g0/l/c/m$a.smali
Normal file
211
com.discord/smali_classes2/g0/l/c/m$a.smali
Normal file
|
|
@ -0,0 +1,211 @@
|
|||
.class public final Lg0/l/c/m$a;
|
||||
.super Lrx/Scheduler$Worker;
|
||||
.source "TrampolineScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Subscription;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/m;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
.field public final e:Ljava/util/concurrent/PriorityBlockingQueue;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/concurrent/PriorityBlockingQueue<",
|
||||
"Lg0/l/c/m$b;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public final f:Lg0/r/a;
|
||||
|
||||
.field public final g:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler$Worker;-><init>()V
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/m$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/PriorityBlockingQueue;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/concurrent/PriorityBlockingQueue;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/m$a;->e:Ljava/util/concurrent/PriorityBlockingQueue;
|
||||
|
||||
new-instance v0, Lg0/r/a;
|
||||
|
||||
invoke-direct {v0}, Lg0/r/a;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/m$a;->f:Lg0/r/a;
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lg0/l/c/m$a;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a(Lrx/functions/Action0;)Lrx/Subscription;
|
||||
.locals 2
|
||||
|
||||
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
invoke-virtual {p0, p1, v0, v1}, Lg0/l/c/m$a;->d(Lrx/functions/Action0;J)Lrx/Subscription;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
||||
.locals 2
|
||||
|
||||
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
invoke-virtual {p4, p2, p3}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
|
||||
|
||||
move-result-wide p2
|
||||
|
||||
add-long/2addr p2, v0
|
||||
|
||||
new-instance p4, Lg0/l/c/l;
|
||||
|
||||
invoke-direct {p4, p1, p0, p2, p3}, Lg0/l/c/l;-><init>(Lrx/functions/Action0;Lrx/Scheduler$Worker;J)V
|
||||
|
||||
invoke-virtual {p0, p4, p2, p3}, Lg0/l/c/m$a;->d(Lrx/functions/Action0;J)Lrx/Subscription;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public final d(Lrx/functions/Action0;J)Lrx/Subscription;
|
||||
.locals 2
|
||||
|
||||
sget-object v0, Lg0/r/c;->a:Lg0/r/c$a;
|
||||
|
||||
iget-object v1, p0, Lg0/l/c/m$a;->f:Lg0/r/a;
|
||||
|
||||
invoke-virtual {v1}, Lg0/r/a;->isUnsubscribed()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
new-instance v1, Lg0/l/c/m$b;
|
||||
|
||||
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
iget-object p3, p0, Lg0/l/c/m$a;->d:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
invoke-virtual {p3}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
|
||||
|
||||
move-result p3
|
||||
|
||||
invoke-direct {v1, p1, p2, p3}, Lg0/l/c/m$b;-><init>(Lrx/functions/Action0;Ljava/lang/Long;I)V
|
||||
|
||||
iget-object p1, p0, Lg0/l/c/m$a;->e:Ljava/util/concurrent/PriorityBlockingQueue;
|
||||
|
||||
invoke-virtual {p1, v1}, Ljava/util/concurrent/PriorityBlockingQueue;->add(Ljava/lang/Object;)Z
|
||||
|
||||
iget-object p1, p0, Lg0/l/c/m$a;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-nez p1, :cond_3
|
||||
|
||||
:cond_1
|
||||
iget-object p1, p0, Lg0/l/c/m$a;->e:Ljava/util/concurrent/PriorityBlockingQueue;
|
||||
|
||||
invoke-virtual {p1}, Ljava/util/concurrent/PriorityBlockingQueue;->poll()Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, Lg0/l/c/m$b;
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
iget-object p1, p1, Lg0/l/c/m$b;->d:Lrx/functions/Action0;
|
||||
|
||||
invoke-interface {p1}, Lrx/functions/Action0;->call()V
|
||||
|
||||
:cond_2
|
||||
iget-object p1, p0, Lg0/l/c/m$a;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
||||
|
||||
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-gtz p1, :cond_1
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_3
|
||||
new-instance p1, Lg0/l/c/m$a$a;
|
||||
|
||||
invoke-direct {p1, p0, v1}, Lg0/l/c/m$a$a;-><init>(Lg0/l/c/m$a;Lg0/l/c/m$b;)V
|
||||
|
||||
new-instance p2, Lg0/r/a;
|
||||
|
||||
invoke-direct {p2, p1}, Lg0/r/a;-><init>(Lrx/functions/Action0;)V
|
||||
|
||||
return-object p2
|
||||
.end method
|
||||
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/m$a;->f:Lg0/r/a;
|
||||
|
||||
invoke-virtual {v0}, Lg0/r/a;->isUnsubscribed()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/m$a;->f:Lg0/r/a;
|
||||
|
||||
invoke-virtual {v0}, Lg0/r/a;->unsubscribe()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
98
com.discord/smali_classes2/g0/l/c/m$b.smali
Normal file
98
com.discord/smali_classes2/g0/l/c/m$b.smali
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
.class public final Lg0/l/c/m$b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TrampolineScheduler.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/Comparable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lg0/l/c/m;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "b"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/lang/Comparable<",
|
||||
"Lg0/l/c/m$b;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Lrx/functions/Action0;
|
||||
|
||||
.field public final e:Ljava/lang/Long;
|
||||
|
||||
.field public final f:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lrx/functions/Action0;Ljava/lang/Long;I)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lg0/l/c/m$b;->d:Lrx/functions/Action0;
|
||||
|
||||
iput-object p2, p0, Lg0/l/c/m$b;->e:Ljava/lang/Long;
|
||||
|
||||
iput p3, p0, Lg0/l/c/m$b;->f:I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public compareTo(Ljava/lang/Object;)I
|
||||
.locals 2
|
||||
|
||||
check-cast p1, Lg0/l/c/m$b;
|
||||
|
||||
iget-object v0, p0, Lg0/l/c/m$b;->e:Ljava/lang/Long;
|
||||
|
||||
iget-object v1, p1, Lg0/l/c/m$b;->e:Ljava/lang/Long;
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/Long;->compareTo(Ljava/lang/Long;)I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_2
|
||||
|
||||
iget v0, p0, Lg0/l/c/m$b;->f:I
|
||||
|
||||
iget p1, p1, Lg0/l/c/m$b;->f:I
|
||||
|
||||
if-ge v0, p1, :cond_0
|
||||
|
||||
const/4 p1, -0x1
|
||||
|
||||
const/4 v0, -0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
if-ne v0, p1, :cond_1
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/4 p1, 0x1
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
:cond_2
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
50
com.discord/smali_classes2/g0/l/c/m.smali
Normal file
50
com.discord/smali_classes2/g0/l/c/m.smali
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
.class public final Lg0/l/c/m;
|
||||
.super Lrx/Scheduler;
|
||||
.source "TrampolineScheduler.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lg0/l/c/m$b;,
|
||||
Lg0/l/c/m$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:Lg0/l/c/m;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lg0/l/c/m;
|
||||
|
||||
invoke-direct {v0}, Lg0/l/c/m;-><init>()V
|
||||
|
||||
sput-object v0, Lg0/l/c/m;->a:Lg0/l/c/m;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lrx/Scheduler;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()Lrx/Scheduler$Worker;
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lg0/l/c/m$a;
|
||||
|
||||
invoke-direct {v0}, Lg0/l/c/m$a;-><init>()V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
Loading…
Add table
Add a link
Reference in a new issue