.class public Lio/reactivex/rxjava3/subscribers/TestSubscriber; .super Lio/reactivex/rxjava3/observers/a; .source "TestSubscriber.java" # interfaces .implements Lai/r; .implements Lok/e; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lio/reactivex/rxjava3/subscribers/TestSubscriber$EmptySubscriber; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Lio/reactivex/rxjava3/observers/a<", "TT;", "Lio/reactivex/rxjava3/subscribers/TestSubscriber<", "TT;>;>;", "Lai/r<", "TT;>;", "Lok/e;" } .end annotation # instance fields .field public final i:Lok/d; .annotation system Ldalvik/annotation/Signature; value = { "Lok/d<", "-TT;>;" } .end annotation .end field .field public volatile j:Z .field public final k:Ljava/util/concurrent/atomic/AtomicReference; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/concurrent/atomic/AtomicReference<", "Lok/e;", ">;" } .end annotation .end field .field public final l:Ljava/util/concurrent/atomic/AtomicLong; # direct methods .method public constructor ()V .locals 3 .line 1 sget-object v0, Lio/reactivex/rxjava3/subscribers/TestSubscriber$EmptySubscriber;->INSTANCE:Lio/reactivex/rxjava3/subscribers/TestSubscriber$EmptySubscriber; const-wide v1, 0x7fffffffffffffffL invoke-direct {p0, v0, v1, v2}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->(Lok/d;J)V return-void .end method .method public constructor (J)V .locals 1 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "initialRequest" } .end annotation .line 2 sget-object v0, Lio/reactivex/rxjava3/subscribers/TestSubscriber$EmptySubscriber;->INSTANCE:Lio/reactivex/rxjava3/subscribers/TestSubscriber$EmptySubscriber; invoke-direct {p0, v0, p1, p2}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->(Lok/d;J)V return-void .end method .method public constructor (Lok/d;)V .locals 2 .param p1 # Lok/d; .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "downstream" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lok/d<", "-TT;>;)V" } .end annotation const-wide v0, 0x7fffffffffffffffL .line 3 invoke-direct {p0, p1, v0, v1}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->(Lok/d;J)V return-void .end method .method public constructor (Lok/d;J)V .locals 2 .param p1 # Lok/d; .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0, 0x0 } names = { "actual", "initialRequest" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lok/d<", "-TT;>;J)V" } .end annotation .line 4 invoke-direct {p0}, Lio/reactivex/rxjava3/observers/a;->()V const-wide/16 v0, 0x0 cmp-long v0, p2, v0 if-ltz v0, :cond_0 .line 5 iput-object p1, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->i:Lok/d; .line 6 new-instance p1, Ljava/util/concurrent/atomic/AtomicReference; invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicReference;->()V iput-object p1, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; .line 7 new-instance p1, Ljava/util/concurrent/atomic/AtomicLong; invoke-direct {p1, p2, p3}, Ljava/util/concurrent/atomic/AtomicLong;->(J)V iput-object p1, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->l:Ljava/util/concurrent/atomic/AtomicLong; return-void .line 8 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "Negative initial request not allowed" invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public static L()Lio/reactivex/rxjava3/subscribers/TestSubscriber; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lio/reactivex/rxjava3/subscribers/TestSubscriber<", "TT;>;" } .end annotation .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .line 1 new-instance v0, Lio/reactivex/rxjava3/subscribers/TestSubscriber; invoke-direct {v0}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->()V return-object v0 .end method .method public static M(J)Lio/reactivex/rxjava3/subscribers/TestSubscriber; .locals 1 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "initialRequested" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(J)", "Lio/reactivex/rxjava3/subscribers/TestSubscriber<", "TT;>;" } .end annotation .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .line 1 new-instance v0, Lio/reactivex/rxjava3/subscribers/TestSubscriber; invoke-direct {v0, p0, p1}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->(J)V return-object v0 .end method .method public static N(Lok/d;)Lio/reactivex/rxjava3/subscribers/TestSubscriber; .locals 1 .param p0 # Lok/d; .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "delegate" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lok/d<", "-TT;>;)", "Lio/reactivex/rxjava3/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 new-instance v0, Lio/reactivex/rxjava3/subscribers/TestSubscriber; invoke-direct {v0, p0}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->(Lok/d;)V return-object v0 .end method # virtual methods .method public final K()Lio/reactivex/rxjava3/subscribers/TestSubscriber; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lio/reactivex/rxjava3/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 if-eqz v0, :cond_0 return-object p0 :cond_0 const-string v0, "Not subscribed!" .line 2 invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/observers/a;->G(Ljava/lang/String;)Ljava/lang/AssertionError; move-result-object v0 throw v0 .end method .method public final O()Z .locals 1 .line 1 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 if-eqz 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 P()Z .locals 1 .line 1 iget-boolean v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->j:Z return v0 .end method .method public Q()V .locals 0 return-void .end method .method public final R(J)Lio/reactivex/rxjava3/subscribers/TestSubscriber; .locals 0 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "n" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(J)", "Lio/reactivex/rxjava3/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 invoke-virtual {p0, p1, p2}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->request(J)V return-object p0 .end method .method public final cancel()V .locals 1 .line 1 iget-boolean v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->j:Z if-nez v0, :cond_0 const/4 v0, 0x1 .line 2 iput-boolean v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->j:Z .line 3 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; invoke-static {v0}, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->cancel(Ljava/util/concurrent/atomic/AtomicReference;)Z :cond_0 return-void .end method .method public final dispose()V .locals 0 .line 1 invoke-virtual {p0}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->cancel()V return-void .end method .method public final isDisposed()Z .locals 1 .line 1 iget-boolean v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->j:Z return v0 .end method .method public onComplete()V .locals 4 .line 1 iget-boolean v0, p0, Lio/reactivex/rxjava3/observers/a;->f:Z if-nez v0, :cond_0 const/4 v0, 0x1 .line 2 iput-boolean v0, p0, Lio/reactivex/rxjava3/observers/a;->f:Z .line 3 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 if-nez v0, :cond_0 .line 4 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->c:Ljava/util/List; new-instance v1, Ljava/lang/IllegalStateException; const-string v2, "onSubscribe not called in proper order" invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 5 :cond_0 :try_start_0 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 iput-object v0, p0, Lio/reactivex/rxjava3/observers/a;->e:Ljava/lang/Thread; .line 6 iget-wide v0, p0, Lio/reactivex/rxjava3/observers/a;->d:J const-wide/16 v2, 0x1 add-long/2addr v0, v2 iput-wide v0, p0, Lio/reactivex/rxjava3/observers/a;->d:J .line 7 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->i:Lok/d; invoke-interface {v0}, Lok/d;->onComplete()V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 8 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->a:Ljava/util/concurrent/CountDownLatch; invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V return-void :catchall_0 move-exception v0 iget-object v1, p0, Lio/reactivex/rxjava3/observers/a;->a:Ljava/util/concurrent/CountDownLatch; invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->countDown()V .line 9 throw v0 .end method .method public onError(Ljava/lang/Throwable;)V .locals 3 .param p1 # Ljava/lang/Throwable; .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "t" } .end annotation .line 1 iget-boolean v0, p0, Lio/reactivex/rxjava3/observers/a;->f:Z if-nez v0, :cond_0 const/4 v0, 0x1 .line 2 iput-boolean v0, p0, Lio/reactivex/rxjava3/observers/a;->f:Z .line 3 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 if-nez v0, :cond_0 .line 4 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->c:Ljava/util/List; new-instance v1, Ljava/lang/IllegalStateException; const-string v2, "onSubscribe not called in proper order" invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 5 :cond_0 :try_start_0 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 iput-object v0, p0, Lio/reactivex/rxjava3/observers/a;->e:Ljava/lang/Thread; if-nez p1, :cond_1 .line 6 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->c:Ljava/util/List; new-instance v1, Ljava/lang/NullPointerException; const-string v2, "onError received a null Throwable" invoke-direct {v1, v2}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z goto :goto_0 .line 7 :cond_1 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->c:Ljava/util/List; invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 8 :goto_0 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->i:Lok/d; invoke-interface {v0, p1}, Lok/d;->onError(Ljava/lang/Throwable;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 9 iget-object p1, p0, Lio/reactivex/rxjava3/observers/a;->a:Ljava/util/concurrent/CountDownLatch; invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->countDown()V return-void :catchall_0 move-exception p1 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->a:Ljava/util/concurrent/CountDownLatch; invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V .line 10 throw p1 .end method .method public onNext(Ljava/lang/Object;)V .locals 3 .param p1 # Ljava/lang/Object; .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "t" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation .line 1 iget-boolean v0, p0, Lio/reactivex/rxjava3/observers/a;->f:Z if-nez v0, :cond_0 const/4 v0, 0x1 .line 2 iput-boolean v0, p0, Lio/reactivex/rxjava3/observers/a;->f:Z .line 3 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 if-nez v0, :cond_0 .line 4 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->c:Ljava/util/List; new-instance v1, Ljava/lang/IllegalStateException; const-string v2, "onSubscribe not called in proper order" invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 5 :cond_0 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 iput-object v0, p0, Lio/reactivex/rxjava3/observers/a;->e:Ljava/lang/Thread; .line 6 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->b:Ljava/util/List; invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z if-nez p1, :cond_1 .line 7 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->c:Ljava/util/List; new-instance v1, Ljava/lang/NullPointerException; const-string v2, "onNext received a null value" invoke-direct {v1, v2}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 8 :cond_1 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->i:Lok/d; invoke-interface {v0, p1}, Lok/d;->onNext(Ljava/lang/Object;)V return-void .end method .method public onSubscribe(Lok/e;)V .locals 5 .param p1 # Lok/e; .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "s" } .end annotation .line 1 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 iput-object v0, p0, Lio/reactivex/rxjava3/observers/a;->e:Ljava/lang/Thread; if-nez p1, :cond_0 .line 2 iget-object p1, p0, Lio/reactivex/rxjava3/observers/a;->c:Ljava/util/List; new-instance v0, Ljava/lang/NullPointerException; const-string v1, "onSubscribe received a null Subscription" invoke-direct {v0, v1}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-void .line 3 :cond_0 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; const/4 v1, 0x0 invoke-virtual {v0, v1, p1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_2 .line 4 invoke-interface {p1}, Lok/e;->cancel()V .line 5 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 sget-object v1, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper; if-eq v0, v1, :cond_1 .line 6 iget-object v0, p0, Lio/reactivex/rxjava3/observers/a;->c:Ljava/util/List; new-instance v1, Ljava/lang/IllegalStateException; new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V const-string v3, "onSubscribe received multiple subscriptions: " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v1, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z :cond_1 return-void .line 7 :cond_2 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->i:Lok/d; invoke-interface {v0, p1}, Lok/d;->onSubscribe(Lok/e;)V .line 8 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->l:Ljava/util/concurrent/atomic/AtomicLong; const-wide/16 v1, 0x0 invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicLong;->getAndSet(J)J move-result-wide v3 cmp-long v0, v3, v1 if-eqz v0, :cond_3 .line 9 invoke-interface {p1, v3, v4}, Lok/e;->request(J)V .line 10 :cond_3 invoke-virtual {p0}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->Q()V return-void .end method .method public final request(J)V .locals 2 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "n" } .end annotation .line 1 iget-object v0, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->k:Ljava/util/concurrent/atomic/AtomicReference; iget-object v1, p0, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->l:Ljava/util/concurrent/atomic/AtomicLong; invoke-static {v0, v1, p1, p2}, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->deferredRequest(Ljava/util/concurrent/atomic/AtomicReference;Ljava/util/concurrent/atomic/AtomicLong;J)V return-void .end method .method public bridge synthetic t()Lio/reactivex/rxjava3/observers/a; .locals 1 .line 1 invoke-virtual {p0}, Lio/reactivex/rxjava3/subscribers/TestSubscriber;->K()Lio/reactivex/rxjava3/subscribers/TestSubscriber; move-result-object v0 return-object v0 .end method