apkfuckery/com.discord/smali_classes2/r0/l/a/q0$a.smali
2020-07-08 16:44:49 +00:00

280 lines
5.6 KiB
Smali

.class public final Lr0/l/a/q0$a;
.super Lrx/Subscriber;
.source "OperatorBufferWithTime.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lr0/l/a/q0;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"TT;>;"
}
.end annotation
# instance fields
.field public final d:Lrx/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"-",
"Ljava/util/List<",
"TT;>;>;"
}
.end annotation
.end field
.field public final e:Lrx/Scheduler$Worker;
.field public f:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"TT;>;"
}
.end annotation
.end field
.field public g:Z
.field public final synthetic h:Lr0/l/a/q0;
# direct methods
.method public constructor <init>(Lr0/l/a/q0;Lrx/Subscriber;Lrx/Scheduler$Worker;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-",
"Ljava/util/List<",
"TT;>;>;",
"Lrx/Scheduler$Worker;",
")V"
}
.end annotation
iput-object p1, p0, Lr0/l/a/q0$a;->h:Lr0/l/a/q0;
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
iput-object p2, p0, Lr0/l/a/q0$a;->d:Lrx/Subscriber;
iput-object p3, p0, Lr0/l/a/q0$a;->e:Lrx/Scheduler$Worker;
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Lr0/l/a/q0$a;->f:Ljava/util/List;
return-void
.end method
# virtual methods
.method public onCompleted()V
.locals 2
:try_start_0
iget-object v0, p0, Lr0/l/a/q0$a;->e:Lrx/Scheduler$Worker;
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
monitor-enter p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
iget-boolean v0, p0, Lr0/l/a/q0$a;->g:Z
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lr0/l/a/q0$a;->g:Z
iget-object v0, p0, Lr0/l/a/q0$a;->f:Ljava/util/List;
const/4 v1, 0x0
iput-object v1, p0, Lr0/l/a/q0$a;->f:Ljava/util/List;
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
iget-object v1, p0, Lr0/l/a/q0$a;->d:Lrx/Subscriber;
invoke-interface {v1, v0}, Lr0/g;->onNext(Ljava/lang/Object;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
iget-object v0, p0, Lr0/l/a/q0$a;->d:Lrx/Subscriber;
invoke-interface {v0}, Lr0/g;->onCompleted()V
invoke-virtual {p0}, Lrx/Subscriber;->unsubscribe()V
return-void
:catchall_0
move-exception v0
:try_start_3
monitor-exit p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:try_start_4
throw v0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
:catchall_1
move-exception v0
iget-object v1, p0, Lr0/l/a/q0$a;->d:Lrx/Subscriber;
invoke-static {v0}, Lj0/i/u;->a0(Ljava/lang/Throwable;)V
invoke-interface {v1, v0}, Lr0/g;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 1
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lr0/l/a/q0$a;->g:Z
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lr0/l/a/q0$a;->g:Z
const/4 v0, 0x0
iput-object v0, p0, Lr0/l/a/q0$a;->f:Ljava/util/List;
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object v0, p0, Lr0/l/a/q0$a;->d:Lrx/Subscriber;
invoke-interface {v0, p1}, Lr0/g;->onError(Ljava/lang/Throwable;)V
invoke-virtual {p0}, Lrx/Subscriber;->unsubscribe()V
return-void
:catchall_0
move-exception p1
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public onNext(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lr0/l/a/q0$a;->g:Z
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
iget-object v0, p0, Lr0/l/a/q0$a;->f:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
iget-object p1, p0, Lr0/l/a/q0$a;->f:Ljava/util/List;
invoke-interface {p1}, Ljava/util/List;->size()I
move-result p1
iget-object v0, p0, Lr0/l/a/q0$a;->h:Lr0/l/a/q0;
iget v0, v0, Lr0/l/a/q0;->g:I
if-ne p1, v0, :cond_1
iget-object p1, p0, Lr0/l/a/q0$a;->f:Ljava/util/List;
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lr0/l/a/q0$a;->f:Ljava/util/List;
goto :goto_0
:cond_1
const/4 p1, 0x0
:goto_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz p1, :cond_2
iget-object v0, p0, Lr0/l/a/q0$a;->d:Lrx/Subscriber;
invoke-interface {v0, p1}, Lr0/g;->onNext(Ljava/lang/Object;)V
:cond_2
return-void
:catchall_0
move-exception p1
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method