AsyncTimeout$2.smali 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. .class Lokio/AsyncTimeout$2;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # interfaces
  5. .implements Lokio/Source;
  6. # annotations
  7. .annotation system Ldalvik/annotation/EnclosingMethod;
  8. value = Lokio/AsyncTimeout;->source(Lokio/Source;)Lokio/Source;
  9. .end annotation
  10. .annotation system Ldalvik/annotation/InnerClass;
  11. accessFlags = 0x0
  12. name = null
  13. .end annotation
  14. # instance fields
  15. .field final synthetic this$0:Lokio/AsyncTimeout;
  16. .field final synthetic val$source:Lokio/Source;
  17. # direct methods
  18. .method constructor <init>(Lokio/AsyncTimeout;Lokio/Source;)V
  19. .locals 0
  20. iput-object p1, p0, Lokio/AsyncTimeout$2;->this$0:Lokio/AsyncTimeout;
  21. iput-object p2, p0, Lokio/AsyncTimeout$2;->val$source:Lokio/Source;
  22. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  23. return-void
  24. .end method
  25. # virtual methods
  26. .method public close()V
  27. .locals 3
  28. .annotation system Ldalvik/annotation/Throws;
  29. value = {
  30. Ljava/io/IOException;
  31. }
  32. .end annotation
  33. :try_start_0
  34. iget-object v0, p0, Lokio/AsyncTimeout$2;->val$source:Lokio/Source;
  35. invoke-interface {v0}, Lokio/Source;->close()V
  36. :try_end_0
  37. .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
  38. .catchall {:try_start_0 .. :try_end_0} :catchall_0
  39. const/4 v0, 0x1
  40. iget-object v1, p0, Lokio/AsyncTimeout$2;->this$0:Lokio/AsyncTimeout;
  41. invoke-virtual {v1, v0}, Lokio/AsyncTimeout;->exit(Z)V
  42. return-void
  43. :catchall_0
  44. move-exception v0
  45. goto :goto_0
  46. :catch_0
  47. move-exception v0
  48. :try_start_1
  49. iget-object v1, p0, Lokio/AsyncTimeout$2;->this$0:Lokio/AsyncTimeout;
  50. invoke-virtual {v1, v0}, Lokio/AsyncTimeout;->exit(Ljava/io/IOException;)Ljava/io/IOException;
  51. move-result-object v0
  52. throw v0
  53. :try_end_1
  54. .catchall {:try_start_1 .. :try_end_1} :catchall_0
  55. :goto_0
  56. iget-object v1, p0, Lokio/AsyncTimeout$2;->this$0:Lokio/AsyncTimeout;
  57. const/4 v2, 0x0
  58. invoke-virtual {v1, v2}, Lokio/AsyncTimeout;->exit(Z)V
  59. throw v0
  60. .end method
  61. .method public read(Lokio/Buffer;J)J
  62. .locals 1
  63. .annotation system Ldalvik/annotation/Throws;
  64. value = {
  65. Ljava/io/IOException;
  66. }
  67. .end annotation
  68. iget-object v0, p0, Lokio/AsyncTimeout$2;->this$0:Lokio/AsyncTimeout;
  69. invoke-virtual {v0}, Lokio/AsyncTimeout;->enter()V
  70. :try_start_0
  71. iget-object v0, p0, Lokio/AsyncTimeout$2;->val$source:Lokio/Source;
  72. invoke-interface {v0, p1, p2, p3}, Lokio/Source;->read(Lokio/Buffer;J)J
  73. move-result-wide p1
  74. :try_end_0
  75. .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
  76. .catchall {:try_start_0 .. :try_end_0} :catchall_0
  77. const/4 p3, 0x1
  78. iget-object v0, p0, Lokio/AsyncTimeout$2;->this$0:Lokio/AsyncTimeout;
  79. invoke-virtual {v0, p3}, Lokio/AsyncTimeout;->exit(Z)V
  80. return-wide p1
  81. :catchall_0
  82. move-exception p1
  83. goto :goto_0
  84. :catch_0
  85. move-exception p1
  86. :try_start_1
  87. iget-object p2, p0, Lokio/AsyncTimeout$2;->this$0:Lokio/AsyncTimeout;
  88. invoke-virtual {p2, p1}, Lokio/AsyncTimeout;->exit(Ljava/io/IOException;)Ljava/io/IOException;
  89. move-result-object p1
  90. throw p1
  91. :try_end_1
  92. .catchall {:try_start_1 .. :try_end_1} :catchall_0
  93. :goto_0
  94. iget-object p2, p0, Lokio/AsyncTimeout$2;->this$0:Lokio/AsyncTimeout;
  95. const/4 p3, 0x0
  96. invoke-virtual {p2, p3}, Lokio/AsyncTimeout;->exit(Z)V
  97. throw p1
  98. .end method
  99. .method public timeout()Lokio/Timeout;
  100. .locals 1
  101. iget-object v0, p0, Lokio/AsyncTimeout$2;->this$0:Lokio/AsyncTimeout;
  102. return-object v0
  103. .end method
  104. .method public toString()Ljava/lang/String;
  105. .locals 2
  106. new-instance v0, Ljava/lang/StringBuilder;
  107. invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
  108. const-string v1, "AsyncTimeout.source("
  109. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  110. iget-object v1, p0, Lokio/AsyncTimeout$2;->val$source:Lokio/Source;
  111. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  112. const-string v1, ")"
  113. invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  114. invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  115. move-result-object v0
  116. return-object v0
  117. .end method