2022-06-10 21:38:30 +09:00

191 lines
5.4 KiB
Smali

.class public final Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;
.super Lai/o0$c;
.source "SchedulerWhen.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "c"
.end annotation
# instance fields
.field public final a:Ljava/util/concurrent/atomic/AtomicBoolean;
.field public final b:Lio/reactivex/rxjava3/processors/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/processors/a<",
"Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$ScheduledAction;",
">;"
}
.end annotation
.end field
.field public final c:Lai/o0$c;
# direct methods
.method public constructor <init>(Lio/reactivex/rxjava3/processors/a;Lai/o0$c;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"actionProcessor",
"actualWorker"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/processors/a<",
"Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$ScheduledAction;",
">;",
"Lai/o0$c;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Lai/o0$c;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;->b:Lio/reactivex/rxjava3/processors/a;
.line 3
iput-object p2, p0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;->c:Lai/o0$c;
.line 4
new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
iput-object p1, p0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
return-void
.end method
# virtual methods
.method public b(Ljava/lang/Runnable;)Lio/reactivex/rxjava3/disposables/c;
.locals 1
.param p1 # Ljava/lang/Runnable;
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x10
}
names = {
"action"
}
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$ImmediateAction;
invoke-direct {v0, p1}, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$ImmediateAction;-><init>(Ljava/lang/Runnable;)V
.line 2
iget-object p1, p0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;->b:Lio/reactivex/rxjava3/processors/a;
invoke-interface {p1, v0}, Lok/d;->onNext(Ljava/lang/Object;)V
return-object v0
.end method
.method public c(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/reactivex/rxjava3/disposables/c;
.locals 1
.param p1 # Ljava/lang/Runnable;
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.end param
.param p4 # Ljava/util/concurrent/TimeUnit;
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x10,
0x10,
0x10
}
names = {
"action",
"delayTime",
"unit"
}
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$DelayedAction;
invoke-direct {v0, p1, p2, p3, p4}, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$DelayedAction;-><init>(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)V
.line 2
iget-object p1, p0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;->b:Lio/reactivex/rxjava3/processors/a;
invoke-interface {p1, v0}, Lok/d;->onNext(Ljava/lang/Object;)V
return-object v0
.end method
.method public dispose()V
.locals 3
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;->a: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
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;->b:Lio/reactivex/rxjava3/processors/a;
invoke-interface {v0}, Lok/d;->onComplete()V
.line 3
iget-object v0, p0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;->c:Lai/o0$c;
invoke-interface {v0}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
:cond_0
return-void
.end method
.method public isDisposed()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/internal/schedulers/SchedulerWhen$c;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
move-result v0
return v0
.end method