Http2Connection$6.smali 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. .class Lokhttp3/internal/http2/Http2Connection$6;
  2. .super Lokhttp3/internal/NamedRunnable;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lokhttp3/internal/http2/Http2Connection;->pushDataLater(ILokio/BufferedSource;IZ)V
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x0
  10. name = null
  11. .end annotation
  12. # instance fields
  13. .field final synthetic this$0:Lokhttp3/internal/http2/Http2Connection;
  14. .field final synthetic val$buffer:Lokio/Buffer;
  15. .field final synthetic val$byteCount:I
  16. .field final synthetic val$inFinished:Z
  17. .field final synthetic val$streamId:I
  18. # direct methods
  19. .method varargs constructor <init>(Lokhttp3/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;ILokio/Buffer;IZ)V
  20. .locals 0
  21. iput-object p1, p0, Lokhttp3/internal/http2/Http2Connection$6;->this$0:Lokhttp3/internal/http2/Http2Connection;
  22. iput p4, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$streamId:I
  23. iput-object p5, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$buffer:Lokio/Buffer;
  24. iput p6, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$byteCount:I
  25. iput-boolean p7, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$inFinished:Z
  26. invoke-direct {p0, p2, p3}, Lokhttp3/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
  27. return-void
  28. .end method
  29. # virtual methods
  30. .method public execute()V
  31. .locals 5
  32. :try_start_0
  33. iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$6;->this$0:Lokhttp3/internal/http2/Http2Connection;
  34. iget-object v0, v0, Lokhttp3/internal/http2/Http2Connection;->pushObserver:Lokhttp3/internal/http2/PushObserver;
  35. iget v1, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$streamId:I
  36. iget-object v2, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$buffer:Lokio/Buffer;
  37. iget v3, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$byteCount:I
  38. iget-boolean v4, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$inFinished:Z
  39. invoke-interface {v0, v1, v2, v3, v4}, Lokhttp3/internal/http2/PushObserver;->onData(ILokio/BufferedSource;IZ)Z
  40. move-result v0
  41. if-eqz v0, :cond_0
  42. iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$6;->this$0:Lokhttp3/internal/http2/Http2Connection;
  43. iget-object v1, v1, Lokhttp3/internal/http2/Http2Connection;->writer:Lokhttp3/internal/http2/Http2Writer;
  44. iget v2, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$streamId:I
  45. sget-object v3, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
  46. invoke-virtual {v1, v2, v3}, Lokhttp3/internal/http2/Http2Writer;->rstStream(ILokhttp3/internal/http2/ErrorCode;)V
  47. :cond_0
  48. if-nez v0, :cond_1
  49. iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$inFinished:Z
  50. if-eqz v0, :cond_2
  51. :cond_1
  52. iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$6;->this$0:Lokhttp3/internal/http2/Http2Connection;
  53. monitor-enter v0
  54. :try_end_0
  55. .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
  56. :try_start_1
  57. iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$6;->this$0:Lokhttp3/internal/http2/Http2Connection;
  58. iget-object v1, v1, Lokhttp3/internal/http2/Http2Connection;->currentPushRequests:Ljava/util/Set;
  59. iget v2, p0, Lokhttp3/internal/http2/Http2Connection$6;->val$streamId:I
  60. invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
  61. move-result-object v2
  62. invoke-interface {v1, v2}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
  63. monitor-exit v0
  64. goto :goto_0
  65. :catchall_0
  66. move-exception v1
  67. monitor-exit v0
  68. :try_end_1
  69. .catchall {:try_start_1 .. :try_end_1} :catchall_0
  70. :try_start_2
  71. throw v1
  72. :try_end_2
  73. .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
  74. :catch_0
  75. :cond_2
  76. :goto_0
  77. return-void
  78. .end method