346 lines
6.5 KiB
Smali
346 lines
6.5 KiB
Smali
.class public abstract Lsh/k;
|
|
.super Lsh/m;
|
|
.source "QueueDrainObserver.java"
|
|
|
|
# interfaces
|
|
.implements Lkh/g0;
|
|
.implements Lio/reactivex/internal/util/j;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"U:",
|
|
"Ljava/lang/Object;",
|
|
"V:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lsh/m;",
|
|
"Lkh/g0<",
|
|
"TT;>;",
|
|
"Lio/reactivex/internal/util/j<",
|
|
"TU;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final k1:Lkh/g0;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkh/g0<",
|
|
"-TV;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final l1:Lrh/n;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrh/n<",
|
|
"TU;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public volatile m1:Z
|
|
|
|
.field public volatile n1:Z
|
|
|
|
.field public o1:Ljava/lang/Throwable;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkh/g0;Lrh/n;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkh/g0<",
|
|
"-TV;>;",
|
|
"Lrh/n<",
|
|
"TU;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lsh/m;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lsh/k;->k1:Lkh/g0;
|
|
|
|
.line 3
|
|
iput-object p2, p0, Lsh/k;->l1:Lrh/n;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lsh/k;->m1:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final b(I)I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lsh/n;->K0:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final c()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lsh/n;->K0:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final d()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lsh/k;->n1:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final e()Ljava/lang/Throwable;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lsh/k;->o1:Ljava/lang/Throwable;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public f(Lkh/g0;Ljava/lang/Object;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkh/g0<",
|
|
"-TV;>;TU;)V"
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final g()Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lsh/n;->K0:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lsh/n;->K0:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0, v2, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v2
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public final h(Ljava/lang/Object;ZLio/reactivex/disposables/b;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TU;Z",
|
|
"Lio/reactivex/disposables/b;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lsh/k;->k1:Lkh/g0;
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lsh/k;->l1:Lrh/n;
|
|
|
|
.line 3
|
|
iget-object v2, p0, Lsh/n;->K0:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
iget-object v2, p0, Lsh/n;->K0:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
invoke-virtual {v2, v3, v4}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0, p1}, Lsh/k;->f(Lkh/g0;Ljava/lang/Object;)V
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Lsh/k;->b(I)I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-interface {v1, p1}, Lrh/o;->offer(Ljava/lang/Object;)Z
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Lsh/k;->c()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 8
|
|
:cond_1
|
|
invoke-static {v1, v0, p2, p3, p0}, Lio/reactivex/internal/util/n;->d(Lrh/n;Lkh/g0;ZLio/reactivex/disposables/b;Lio/reactivex/internal/util/j;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final i(Ljava/lang/Object;ZLio/reactivex/disposables/b;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TU;Z",
|
|
"Lio/reactivex/disposables/b;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lsh/k;->k1:Lkh/g0;
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lsh/k;->l1:Lrh/n;
|
|
|
|
.line 3
|
|
iget-object v2, p0, Lsh/n;->K0:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
iget-object v2, p0, Lsh/n;->K0:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
invoke-virtual {v2, v3, v4}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 4
|
|
invoke-interface {v1}, Lrh/o;->isEmpty()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v0, p1}, Lsh/k;->f(Lkh/g0;Ljava/lang/Object;)V
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p1}, Lsh/k;->b(I)I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 7
|
|
:cond_0
|
|
invoke-interface {v1, p1}, Lrh/o;->offer(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_1
|
|
invoke-interface {v1, p1}, Lrh/o;->offer(Ljava/lang/Object;)Z
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Lsh/k;->c()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 10
|
|
:cond_2
|
|
:goto_0
|
|
invoke-static {v1, v0, p2, p3, p0}, Lio/reactivex/internal/util/n;->d(Lrh/n;Lkh/g0;ZLio/reactivex/disposables/b;Lio/reactivex/internal/util/j;)V
|
|
|
|
return-void
|
|
.end method
|