HalfSerializer.smali 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. .class public final Lio/reactivex/internal/util/HalfSerializer;
  2. .super Ljava/lang/Object;
  3. .source "HalfSerializer.java"
  4. # direct methods
  5. .method private constructor <init>()V
  6. .locals 2
  7. .line 29
  8. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  9. .line 30
  10. new-instance v0, Ljava/lang/IllegalStateException;
  11. const-string v1, "No instances!"
  12. invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
  13. throw v0
  14. .end method
  15. .method public static onComplete(Lio/reactivex/Observer;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
  16. .locals 0
  17. .annotation system Ldalvik/annotation/Signature;
  18. value = {
  19. "(",
  20. "Lio/reactivex/Observer<",
  21. "*>;",
  22. "Ljava/util/concurrent/atomic/AtomicInteger;",
  23. "Lio/reactivex/internal/util/AtomicThrowable;",
  24. ")V"
  25. }
  26. .end annotation
  27. .line 148
  28. invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
  29. move-result p1
  30. if-nez p1, :cond_1
  31. .line 149
  32. invoke-virtual {p2}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
  33. move-result-object p1
  34. if-eqz p1, :cond_0
  35. .line 151
  36. invoke-interface {p0, p1}, Lio/reactivex/Observer;->onError(Ljava/lang/Throwable;)V
  37. goto :goto_0
  38. .line 153
  39. :cond_0
  40. invoke-interface {p0}, Lio/reactivex/Observer;->onComplete()V
  41. :cond_1
  42. :goto_0
  43. return-void
  44. .end method
  45. .method public static onComplete(Lorg/reactivestreams/Subscriber;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
  46. .locals 0
  47. .annotation system Ldalvik/annotation/Signature;
  48. value = {
  49. "(",
  50. "Lorg/reactivestreams/Subscriber<",
  51. "*>;",
  52. "Ljava/util/concurrent/atomic/AtomicInteger;",
  53. "Lio/reactivex/internal/util/AtomicThrowable;",
  54. ")V"
  55. }
  56. .end annotation
  57. .line 86
  58. invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
  59. move-result p1
  60. if-nez p1, :cond_1
  61. .line 87
  62. invoke-virtual {p2}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
  63. move-result-object p1
  64. if-eqz p1, :cond_0
  65. .line 89
  66. invoke-interface {p0, p1}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
  67. goto :goto_0
  68. .line 91
  69. :cond_0
  70. invoke-interface {p0}, Lorg/reactivestreams/Subscriber;->onComplete()V
  71. :cond_1
  72. :goto_0
  73. return-void
  74. .end method
  75. .method public static onError(Lio/reactivex/Observer;Ljava/lang/Throwable;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
  76. .locals 1
  77. .annotation system Ldalvik/annotation/Signature;
  78. value = {
  79. "(",
  80. "Lio/reactivex/Observer<",
  81. "*>;",
  82. "Ljava/lang/Throwable;",
  83. "Ljava/util/concurrent/atomic/AtomicInteger;",
  84. "Lio/reactivex/internal/util/AtomicThrowable;",
  85. ")V"
  86. }
  87. .end annotation
  88. .line 131
  89. invoke-virtual {p3, p1}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
  90. move-result v0
  91. if-eqz v0, :cond_0
  92. .line 132
  93. invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
  94. move-result p1
  95. if-nez p1, :cond_1
  96. .line 133
  97. invoke-virtual {p3}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
  98. move-result-object p1
  99. invoke-interface {p0, p1}, Lio/reactivex/Observer;->onError(Ljava/lang/Throwable;)V
  100. goto :goto_0
  101. .line 136
  102. :cond_0
  103. invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  104. :cond_1
  105. :goto_0
  106. return-void
  107. .end method
  108. .method public static onError(Lorg/reactivestreams/Subscriber;Ljava/lang/Throwable;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
  109. .locals 1
  110. .annotation system Ldalvik/annotation/Signature;
  111. value = {
  112. "(",
  113. "Lorg/reactivestreams/Subscriber<",
  114. "*>;",
  115. "Ljava/lang/Throwable;",
  116. "Ljava/util/concurrent/atomic/AtomicInteger;",
  117. "Lio/reactivex/internal/util/AtomicThrowable;",
  118. ")V"
  119. }
  120. .end annotation
  121. .line 68
  122. invoke-virtual {p3, p1}, Lio/reactivex/internal/util/AtomicThrowable;->addThrowable(Ljava/lang/Throwable;)Z
  123. move-result v0
  124. if-eqz v0, :cond_0
  125. .line 69
  126. invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
  127. move-result p1
  128. if-nez p1, :cond_1
  129. .line 70
  130. invoke-virtual {p3}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
  131. move-result-object p1
  132. invoke-interface {p0, p1}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
  133. goto :goto_0
  134. .line 73
  135. :cond_0
  136. invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
  137. :cond_1
  138. :goto_0
  139. return-void
  140. .end method
  141. .method public static onNext(Lio/reactivex/Observer;Ljava/lang/Object;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
  142. .locals 2
  143. .annotation system Ldalvik/annotation/Signature;
  144. value = {
  145. "<T:",
  146. "Ljava/lang/Object;",
  147. ">(",
  148. "Lio/reactivex/Observer<",
  149. "-TT;>;TT;",
  150. "Ljava/util/concurrent/atomic/AtomicInteger;",
  151. "Lio/reactivex/internal/util/AtomicThrowable;",
  152. ")V"
  153. }
  154. .end annotation
  155. .line 107
  156. invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
  157. move-result v0
  158. if-nez v0, :cond_1
  159. const/4 v0, 0x0
  160. const/4 v1, 0x1
  161. invoke-virtual {p2, v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
  162. move-result v0
  163. if-eqz v0, :cond_1
  164. .line 108
  165. invoke-interface {p0, p1}, Lio/reactivex/Observer;->onNext(Ljava/lang/Object;)V
  166. .line 109
  167. invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
  168. move-result p1
  169. if-eqz p1, :cond_1
  170. .line 110
  171. invoke-virtual {p3}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
  172. move-result-object p1
  173. if-eqz p1, :cond_0
  174. .line 112
  175. invoke-interface {p0, p1}, Lio/reactivex/Observer;->onError(Ljava/lang/Throwable;)V
  176. goto :goto_0
  177. .line 114
  178. :cond_0
  179. invoke-interface {p0}, Lio/reactivex/Observer;->onComplete()V
  180. :cond_1
  181. :goto_0
  182. return-void
  183. .end method
  184. .method public static onNext(Lorg/reactivestreams/Subscriber;Ljava/lang/Object;Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/util/AtomicThrowable;)V
  185. .locals 2
  186. .annotation system Ldalvik/annotation/Signature;
  187. value = {
  188. "<T:",
  189. "Ljava/lang/Object;",
  190. ">(",
  191. "Lorg/reactivestreams/Subscriber<",
  192. "-TT;>;TT;",
  193. "Ljava/util/concurrent/atomic/AtomicInteger;",
  194. "Lio/reactivex/internal/util/AtomicThrowable;",
  195. ")V"
  196. }
  197. .end annotation
  198. .line 44
  199. invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
  200. move-result v0
  201. if-nez v0, :cond_1
  202. const/4 v0, 0x0
  203. const/4 v1, 0x1
  204. invoke-virtual {p2, v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
  205. move-result v0
  206. if-eqz v0, :cond_1
  207. .line 45
  208. invoke-interface {p0, p1}, Lorg/reactivestreams/Subscriber;->onNext(Ljava/lang/Object;)V
  209. .line 46
  210. invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
  211. move-result p1
  212. if-eqz p1, :cond_1
  213. .line 47
  214. invoke-virtual {p3}, Lio/reactivex/internal/util/AtomicThrowable;->terminate()Ljava/lang/Throwable;
  215. move-result-object p1
  216. if-eqz p1, :cond_0
  217. .line 49
  218. invoke-interface {p0, p1}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
  219. goto :goto_0
  220. .line 51
  221. :cond_0
  222. invoke-interface {p0}, Lorg/reactivestreams/Subscriber;->onComplete()V
  223. :cond_1
  224. :goto_0
  225. return-void
  226. .end method