123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- .class public final Lio/reactivex/internal/util/HalfSerializer;
- .super Ljava/lang/Object;
- .source "HalfSerializer.java"
- # direct methods
- .method private constructor <init>()V
- .locals 2
- .line 29
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- .line 30
- new-instance v0, Ljava/lang/IllegalStateException;
- const-string v1, "No instances!"
- invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public static onComplete(Lio/reactivex/Observer;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
- .locals 0
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Lio/reactivex/Observer<",
- "*>;",
- "Ljava/util/concurrent/atomic/AtomicInteger;",
- "Lio/reactivex/internal/util/AtomicThrowable;",
- ")V"
- }
- .end annotation
- .line 148
- invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
- move-result p1
- if-nez p1, :cond_1
- .line 149
- invoke-virtual {p2}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
- move-result-object p1
- if-eqz p1, :cond_0
- .line 151
- invoke-interface {p0, p1}, Lio/reactivex/Observer;->onError(Ljava/lang/Throwable;)V
- goto :goto_0
- .line 153
- :cond_0
- invoke-interface {p0}, Lio/reactivex/Observer;->onComplete()V
- :cond_1
- :goto_0
- return-void
- .end method
- .method public static onComplete(Lorg/reactivestreams/Subscriber;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
- .locals 0
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Lorg/reactivestreams/Subscriber<",
- "*>;",
- "Ljava/util/concurrent/atomic/AtomicInteger;",
- "Lio/reactivex/internal/util/AtomicThrowable;",
- ")V"
- }
- .end annotation
- .line 86
- invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
- move-result p1
- if-nez p1, :cond_1
- .line 87
- invoke-virtual {p2}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
- move-result-object p1
- if-eqz p1, :cond_0
- .line 89
- invoke-interface {p0, p1}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
- goto :goto_0
- .line 91
- :cond_0
- invoke-interface {p0}, Lorg/reactivestreams/Subscriber;->onComplete()V
- :cond_1
- :goto_0
- return-void
- .end method
- .method public static onError(Lio/reactivex/Observer;Ljava/lang/Throwable;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
- .locals 1
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Lio/reactivex/Observer<",
- "*>;",
- "Ljava/lang/Throwable;",
- "Ljava/util/concurrent/atomic/AtomicInteger;",
- "Lio/reactivex/internal/util/AtomicThrowable;",
- ")V"
- }
- .end annotation
- .line 131
- invoke-virtual {p3, p1}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
- move-result v0
- if-eqz v0, :cond_0
- .line 132
- invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
- move-result p1
- if-nez p1, :cond_1
- .line 133
- invoke-virtual {p3}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
- move-result-object p1
- invoke-interface {p0, p1}, Lio/reactivex/Observer;->onError(Ljava/lang/Throwable;)V
- goto :goto_0
- .line 136
- :cond_0
- invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
- :cond_1
- :goto_0
- return-void
- .end method
- .method public static onError(Lorg/reactivestreams/Subscriber;Ljava/lang/Throwable;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
- .locals 1
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Lorg/reactivestreams/Subscriber<",
- "*>;",
- "Ljava/lang/Throwable;",
- "Ljava/util/concurrent/atomic/AtomicInteger;",
- "Lio/reactivex/internal/util/AtomicThrowable;",
- ")V"
- }
- .end annotation
- .line 68
- invoke-virtual {p3, p1}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
- move-result v0
- if-eqz v0, :cond_0
- .line 69
- invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
- move-result p1
- if-nez p1, :cond_1
- .line 70
- invoke-virtual {p3}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
- move-result-object p1
- invoke-interface {p0, p1}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
- goto :goto_0
- .line 73
- :cond_0
- invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
- :cond_1
- :goto_0
- return-void
- .end method
- .method public static onNext(Lio/reactivex/Observer;Ljava/lang/Object;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
- .locals 2
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "<T:",
- "Ljava/lang/Object;",
- ">(",
- "Lio/reactivex/Observer<",
- "-TT;>;TT;",
- "Ljava/util/concurrent/atomic/AtomicInteger;",
- "Lio/reactivex/internal/util/AtomicThrowable;",
- ")V"
- }
- .end annotation
- .line 107
- invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
- move-result v0
- if-nez v0, :cond_1
- const/4 v0, 0x0
- const/4 v1, 0x1
- invoke-virtual {p2, v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
- move-result v0
- if-eqz v0, :cond_1
- .line 108
- invoke-interface {p0, p1}, Lio/reactivex/Observer;->onNext(Ljava/lang/Object;)V
- .line 109
- invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
- move-result p1
- if-eqz p1, :cond_1
- .line 110
- invoke-virtual {p3}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
- move-result-object p1
- if-eqz p1, :cond_0
- .line 112
- invoke-interface {p0, p1}, Lio/reactivex/Observer;->onError(Ljava/lang/Throwable;)V
- goto :goto_0
- .line 114
- :cond_0
- invoke-interface {p0}, Lio/reactivex/Observer;->onComplete()V
- :cond_1
- :goto_0
- return-void
- .end method
- .method public static onNext(Lorg/reactivestreams/Subscriber;Ljava/lang/Object;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
- .locals 2
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "<T:",
- "Ljava/lang/Object;",
- ">(",
- "Lorg/reactivestreams/Subscriber<",
- "-TT;>;TT;",
- "Ljava/util/concurrent/atomic/AtomicInteger;",
- "Lio/reactivex/internal/util/AtomicThrowable;",
- ")V"
- }
- .end annotation
- .line 44
- invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
- move-result v0
- if-nez v0, :cond_1
- const/4 v0, 0x0
- const/4 v1, 0x1
- invoke-virtual {p2, v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
- move-result v0
- if-eqz v0, :cond_1
- .line 45
- invoke-interface {p0, p1}, Lorg/reactivestreams/Subscriber;->onNext(Ljava/lang/Object;)V
- .line 46
- invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
- move-result p1
- if-eqz p1, :cond_1
- .line 47
- invoke-virtual {p3}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
- move-result-object p1
- if-eqz p1, :cond_0
- .line 49
- invoke-interface {p0, p1}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
- goto :goto_0
- .line 51
- :cond_0
- invoke-interface {p0}, Lorg/reactivestreams/Subscriber;->onComplete()V
- :cond_1
- :goto_0
- return-void
- .end method
|