.class public Lio/reactivex/subscribers/TestSubscriber; .super Lio/reactivex/observers/BaseTestConsumer; .source "TestSubscriber.java" # interfaces .implements Lkh/o; .implements Lok/e; .implements Lio/reactivex/disposables/b; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lio/reactivex/subscribers/TestSubscriber$EmptySubscriber; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Lio/reactivex/observers/BaseTestConsumer<", "TT;", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;>;", "Lkh/o<", "TT;>;", "Lok/e;", "Lio/reactivex/disposables/b;" } .end annotation # instance fields .field public final k:Lok/d; .annotation system Ldalvik/annotation/Signature; value = { "Lok/d<", "-TT;>;" } .end annotation .end field .field public k0:Lrh/l; .annotation system Ldalvik/annotation/Signature; value = { "Lrh/l<", "TT;>;" } .end annotation .end field .field public volatile l:Z .field public final p: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 u:Ljava/util/concurrent/atomic/AtomicLong; # direct methods .method public constructor ()V .locals 3 .line 1 sget-object v0, Lio/reactivex/subscribers/TestSubscriber$EmptySubscriber;->INSTANCE:Lio/reactivex/subscribers/TestSubscriber$EmptySubscriber; const-wide v1, 0x7fffffffffffffffL invoke-direct {p0, v0, v1, v2}, Lio/reactivex/subscribers/TestSubscriber;->(Lok/d;J)V return-void .end method .method public constructor (J)V .locals 1 .line 2 sget-object v0, Lio/reactivex/subscribers/TestSubscriber$EmptySubscriber;->INSTANCE:Lio/reactivex/subscribers/TestSubscriber$EmptySubscriber; invoke-direct {p0, v0, p1, p2}, Lio/reactivex/subscribers/TestSubscriber;->(Lok/d;J)V return-void .end method .method public constructor (Lok/d;)V .locals 2 .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/subscribers/TestSubscriber;->(Lok/d;J)V return-void .end method .method public constructor (Lok/d;J)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lok/d<", "-TT;>;J)V" } .end annotation .line 4 invoke-direct {p0}, Lio/reactivex/observers/BaseTestConsumer;->()V const-wide/16 v0, 0x0 cmp-long v0, p2, v0 if-ltz v0, :cond_0 .line 5 iput-object p1, p0, Lio/reactivex/subscribers/TestSubscriber;->k: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/subscribers/TestSubscriber;->p: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/subscribers/TestSubscriber;->u: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 h0()Lio/reactivex/subscribers/TestSubscriber; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 new-instance v0, Lio/reactivex/subscribers/TestSubscriber; invoke-direct {v0}, Lio/reactivex/subscribers/TestSubscriber;->()V return-object v0 .end method .method public static i0(J)Lio/reactivex/subscribers/TestSubscriber; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(J)", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 new-instance v0, Lio/reactivex/subscribers/TestSubscriber; invoke-direct {v0, p0, p1}, Lio/reactivex/subscribers/TestSubscriber;->(J)V return-object v0 .end method .method public static j0(Lok/d;)Lio/reactivex/subscribers/TestSubscriber; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lok/d<", "-TT;>;)", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 new-instance v0, Lio/reactivex/subscribers/TestSubscriber; invoke-direct {v0, p0}, Lio/reactivex/subscribers/TestSubscriber;->(Lok/d;)V return-object v0 .end method .method public static k0(I)Ljava/lang/String; .locals 2 if-eqz p0, :cond_2 const/4 v0, 0x1 if-eq p0, v0, :cond_1 const/4 v0, 0x2 if-eq p0, v0, :cond_0 const-string v0, "Unknown(" const-string v1, ")" .line 1 invoke-static {v0, p0, v1}, Landroidx/camera/core/impl/utils/f;->a(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String; move-result-object p0 return-object p0 :cond_0 const-string p0, "ASYNC" return-object p0 :cond_1 const-string p0, "SYNC" return-object p0 :cond_2 const-string p0, "NONE" return-object p0 .end method # virtual methods .method public final b0()Lio/reactivex/subscribers/TestSubscriber; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->k0:Lrh/l; if-eqz v0, :cond_0 return-object p0 .line 2 :cond_0 new-instance v0, Ljava/lang/AssertionError; const-string v1, "Upstream is not fuseable." invoke-direct {v0, v1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v0 .end method .method public final c0(I)Lio/reactivex/subscribers/TestSubscriber; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(I)", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 iget v0, p0, Lio/reactivex/observers/BaseTestConsumer;->h:I if-eq v0, p1, :cond_1 .line 2 iget-object v1, p0, Lio/reactivex/subscribers/TestSubscriber;->k0:Lrh/l; if-eqz v1, :cond_0 .line 3 new-instance v1, Ljava/lang/AssertionError; const-string v2, "Fusion mode different. Expected: " invoke-static {v2}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-static {p1}, Lio/reactivex/subscribers/TestSubscriber;->k0(I)Ljava/lang/String; move-result-object p1 invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p1, ", actual: " invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 4 invoke-static {v0}, Lio/reactivex/subscribers/TestSubscriber;->k0(I)Ljava/lang/String; move-result-object p1 invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v1, p1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v1 :cond_0 const-string p1, "Upstream is not fuseable" .line 5 invoke-virtual {p0, p1}, Lio/reactivex/observers/BaseTestConsumer;->S(Ljava/lang/String;)Ljava/lang/AssertionError; move-result-object p1 throw p1 :cond_1 return-object p0 .end method .method public final cancel()V .locals 1 .line 1 iget-boolean v0, p0, Lio/reactivex/subscribers/TestSubscriber;->l:Z if-nez v0, :cond_0 const/4 v0, 0x1 .line 2 iput-boolean v0, p0, Lio/reactivex/subscribers/TestSubscriber;->l:Z .line 3 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->p:Ljava/util/concurrent/atomic/AtomicReference; invoke-static {v0}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->cancel(Ljava/util/concurrent/atomic/AtomicReference;)Z :cond_0 return-void .end method .method public final d0()Lio/reactivex/subscribers/TestSubscriber; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->k0:Lrh/l; if-nez v0, :cond_0 return-object p0 .line 2 :cond_0 new-instance v0, Ljava/lang/AssertionError; const-string v1, "Upstream is fuseable." invoke-direct {v0, v1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v0 .end method .method public final dispose()V .locals 0 .line 1 invoke-virtual {p0}, Lio/reactivex/subscribers/TestSubscriber;->cancel()V return-void .end method .method public final e0()Lio/reactivex/subscribers/TestSubscriber; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->p: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_1 .line 2 iget-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->c:Ljava/util/List; invoke-interface {v0}, Ljava/util/List;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 return-object p0 :cond_0 const-string v0, "Not subscribed but errors found" .line 3 invoke-virtual {p0, v0}, Lio/reactivex/observers/BaseTestConsumer;->S(Ljava/lang/String;)Ljava/lang/AssertionError; move-result-object v0 throw v0 :cond_1 const-string v0, "Subscribed!" .line 4 invoke-virtual {p0, v0}, Lio/reactivex/observers/BaseTestConsumer;->S(Ljava/lang/String;)Ljava/lang/AssertionError; move-result-object v0 throw v0 .end method .method public final f0(Lph/g;)Lio/reactivex/subscribers/TestSubscriber; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lph/g<", "-", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;>;)", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 :try_start_0 invoke-interface {p1, p0}, Lph/g;->accept(Ljava/lang/Object;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object p0 :catchall_0 move-exception p1 .line 2 invoke-static {p1}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; move-result-object p1 throw p1 .end method .method public final g0()Lio/reactivex/subscribers/TestSubscriber; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->p: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/observers/BaseTestConsumer;->S(Ljava/lang/String;)Ljava/lang/AssertionError; move-result-object v0 throw v0 .end method .method public final isDisposed()Z .locals 1 .line 1 iget-boolean v0, p0, Lio/reactivex/subscribers/TestSubscriber;->l:Z return v0 .end method .method public final l0()Z .locals 1 .line 1 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->p: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 m0()Z .locals 1 .line 1 iget-boolean v0, p0, Lio/reactivex/subscribers/TestSubscriber;->l:Z return v0 .end method .method public n0()V .locals 0 return-void .end method .method public final o0(J)Lio/reactivex/subscribers/TestSubscriber; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(J)", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 invoke-virtual {p0, p1, p2}, Lio/reactivex/subscribers/TestSubscriber;->request(J)V return-object p0 .end method .method public onComplete()V .locals 4 .line 1 iget-boolean v0, p0, Lio/reactivex/observers/BaseTestConsumer;->f:Z if-nez v0, :cond_0 const/4 v0, 0x1 .line 2 iput-boolean v0, p0, Lio/reactivex/observers/BaseTestConsumer;->f:Z .line 3 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->p: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/observers/BaseTestConsumer;->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/observers/BaseTestConsumer;->e:Ljava/lang/Thread; .line 6 iget-wide v0, p0, Lio/reactivex/observers/BaseTestConsumer;->d:J const-wide/16 v2, 0x1 add-long/2addr v0, v2 iput-wide v0, p0, Lio/reactivex/observers/BaseTestConsumer;->d:J .line 7 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->k: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/observers/BaseTestConsumer;->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/observers/BaseTestConsumer;->a:Ljava/util/concurrent/CountDownLatch; invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->countDown()V throw v0 .end method .method public onError(Ljava/lang/Throwable;)V .locals 3 .line 1 iget-boolean v0, p0, Lio/reactivex/observers/BaseTestConsumer;->f:Z if-nez v0, :cond_0 const/4 v0, 0x1 .line 2 iput-boolean v0, p0, Lio/reactivex/observers/BaseTestConsumer;->f:Z .line 3 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->p: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/observers/BaseTestConsumer;->c:Ljava/util/List; new-instance v1, Ljava/lang/NullPointerException; const-string v2, "onSubscribe not called in proper order" invoke-direct {v1, v2}, Ljava/lang/NullPointerException;->(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/observers/BaseTestConsumer;->e:Ljava/lang/Thread; .line 6 iget-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->c: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/observers/BaseTestConsumer;->c:Ljava/util/List; new-instance v1, Ljava/lang/IllegalStateException; const-string v2, "onError received a null Throwable" invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;->(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/subscribers/TestSubscriber;->k: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/observers/BaseTestConsumer;->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/observers/BaseTestConsumer;->a:Ljava/util/concurrent/CountDownLatch; invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V throw p1 .end method .method public onNext(Ljava/lang/Object;)V .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation .line 1 iget-boolean v0, p0, Lio/reactivex/observers/BaseTestConsumer;->f:Z if-nez v0, :cond_0 const/4 v0, 0x1 .line 2 iput-boolean v0, p0, Lio/reactivex/observers/BaseTestConsumer;->f:Z .line 3 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->p: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/observers/BaseTestConsumer;->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/observers/BaseTestConsumer;->e:Ljava/lang/Thread; .line 6 iget v0, p0, Lio/reactivex/observers/BaseTestConsumer;->h:I const/4 v1, 0x2 if-ne v0, v1, :cond_2 .line 7 :goto_0 :try_start_0 iget-object p1, p0, Lio/reactivex/subscribers/TestSubscriber;->k0:Lrh/l; invoke-interface {p1}, Lrh/o;->poll()Ljava/lang/Object; move-result-object p1 if-eqz p1, :cond_1 .line 8 iget-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->b:Ljava/util/List; invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception p1 .line 9 iget-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->c:Ljava/util/List; invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 10 iget-object p1, p0, Lio/reactivex/subscribers/TestSubscriber;->k0:Lrh/l; invoke-interface {p1}, Lok/e;->cancel()V :cond_1 return-void .line 11 :cond_2 iget-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->b:Ljava/util/List; invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z if-nez p1, :cond_3 .line 12 iget-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->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 13 :cond_3 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->k: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 .line 1 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 iput-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->e:Ljava/lang/Thread; if-nez p1, :cond_0 .line 2 iget-object p1, p0, Lio/reactivex/observers/BaseTestConsumer;->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/subscribers/TestSubscriber;->p: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/subscribers/TestSubscriber;->p: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/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper; if-eq v0, v1, :cond_1 .line 6 iget-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->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 v0, p0, Lio/reactivex/observers/BaseTestConsumer;->g:I if-eqz v0, :cond_4 .line 8 instance-of v1, p1, Lrh/l; if-eqz v1, :cond_4 .line 9 move-object v1, p1 check-cast v1, Lrh/l; iput-object v1, p0, Lio/reactivex/subscribers/TestSubscriber;->k0:Lrh/l; .line 10 invoke-interface {v1, v0}, Lrh/k;->requestFusion(I)I move-result v0 .line 11 iput v0, p0, Lio/reactivex/observers/BaseTestConsumer;->h:I const/4 v1, 0x1 if-ne v0, v1, :cond_4 .line 12 iput-boolean v1, p0, Lio/reactivex/observers/BaseTestConsumer;->f:Z .line 13 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object p1 iput-object p1, p0, Lio/reactivex/observers/BaseTestConsumer;->e:Ljava/lang/Thread; .line 14 :goto_0 :try_start_0 iget-object p1, p0, Lio/reactivex/subscribers/TestSubscriber;->k0:Lrh/l; invoke-interface {p1}, Lrh/o;->poll()Ljava/lang/Object; move-result-object p1 if-eqz p1, :cond_3 .line 15 iget-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->b:Ljava/util/List; invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z goto :goto_0 .line 16 :cond_3 iget-wide v0, p0, Lio/reactivex/observers/BaseTestConsumer;->d:J const-wide/16 v2, 0x1 add-long/2addr v0, v2 iput-wide v0, p0, Lio/reactivex/observers/BaseTestConsumer;->d:J :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_1 :catchall_0 move-exception p1 .line 17 iget-object v0, p0, Lio/reactivex/observers/BaseTestConsumer;->c:Ljava/util/List; invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z :goto_1 return-void .line 18 :cond_4 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->k:Lok/d; invoke-interface {v0, p1}, Lok/d;->onSubscribe(Lok/e;)V .line 19 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->u: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_5 .line 20 invoke-interface {p1, v3, v4}, Lok/e;->request(J)V .line 21 :cond_5 invoke-virtual {p0}, Lio/reactivex/subscribers/TestSubscriber;->n0()V return-void .end method .method public bridge synthetic p()Lio/reactivex/observers/BaseTestConsumer; .locals 1 .line 1 invoke-virtual {p0}, Lio/reactivex/subscribers/TestSubscriber;->e0()Lio/reactivex/subscribers/TestSubscriber; move-result-object v0 return-object v0 .end method .method public final p0(I)Lio/reactivex/subscribers/TestSubscriber; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(I)", "Lio/reactivex/subscribers/TestSubscriber<", "TT;>;" } .end annotation .line 1 iput p1, p0, Lio/reactivex/observers/BaseTestConsumer;->g:I return-object p0 .end method .method public final request(J)V .locals 2 .line 1 iget-object v0, p0, Lio/reactivex/subscribers/TestSubscriber;->p:Ljava/util/concurrent/atomic/AtomicReference; iget-object v1, p0, Lio/reactivex/subscribers/TestSubscriber;->u:Ljava/util/concurrent/atomic/AtomicLong; invoke-static {v0, v1, p1, p2}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->deferredRequest(Ljava/util/concurrent/atomic/AtomicReference;Ljava/util/concurrent/atomic/AtomicLong;J)V return-void .end method .method public bridge synthetic s()Lio/reactivex/observers/BaseTestConsumer; .locals 1 .line 1 invoke-virtual {p0}, Lio/reactivex/subscribers/TestSubscriber;->g0()Lio/reactivex/subscribers/TestSubscriber; move-result-object v0 return-object v0 .end method