ForwardingTimeout.smali 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .class public Lokio/ForwardingTimeout;
  2. .super Lokio/Timeout;
  3. .source ""
  4. # instance fields
  5. .field private delegate:Lokio/Timeout;
  6. # direct methods
  7. .method public constructor <init>(Lokio/Timeout;)V
  8. .locals 1
  9. invoke-direct {p0}, Lokio/Timeout;-><init>()V
  10. if-eqz p1, :cond_0
  11. iput-object p1, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  12. return-void
  13. :cond_0
  14. new-instance p1, Ljava/lang/IllegalArgumentException;
  15. const-string v0, "delegate == null"
  16. invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  17. throw p1
  18. .end method
  19. # virtual methods
  20. .method public clearDeadline()Lokio/Timeout;
  21. .locals 1
  22. iget-object v0, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  23. invoke-virtual {v0}, Lokio/Timeout;->clearDeadline()Lokio/Timeout;
  24. move-result-object v0
  25. return-object v0
  26. .end method
  27. .method public clearTimeout()Lokio/Timeout;
  28. .locals 1
  29. iget-object v0, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  30. invoke-virtual {v0}, Lokio/Timeout;->clearTimeout()Lokio/Timeout;
  31. move-result-object v0
  32. return-object v0
  33. .end method
  34. .method public deadlineNanoTime()J
  35. .locals 2
  36. iget-object v0, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  37. invoke-virtual {v0}, Lokio/Timeout;->deadlineNanoTime()J
  38. move-result-wide v0
  39. return-wide v0
  40. .end method
  41. .method public deadlineNanoTime(J)Lokio/Timeout;
  42. .locals 1
  43. iget-object v0, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  44. invoke-virtual {v0, p1, p2}, Lokio/Timeout;->deadlineNanoTime(J)Lokio/Timeout;
  45. move-result-object p1
  46. return-object p1
  47. .end method
  48. .method public final delegate()Lokio/Timeout;
  49. .locals 1
  50. iget-object v0, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  51. return-object v0
  52. .end method
  53. .method public hasDeadline()Z
  54. .locals 1
  55. iget-object v0, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  56. invoke-virtual {v0}, Lokio/Timeout;->hasDeadline()Z
  57. move-result v0
  58. return v0
  59. .end method
  60. .method public final setDelegate(Lokio/Timeout;)Lokio/ForwardingTimeout;
  61. .locals 1
  62. if-eqz p1, :cond_0
  63. iput-object p1, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  64. return-object p0
  65. :cond_0
  66. new-instance p1, Ljava/lang/IllegalArgumentException;
  67. const-string v0, "delegate == null"
  68. invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
  69. throw p1
  70. .end method
  71. .method public throwIfReached()V
  72. .locals 1
  73. .annotation system Ldalvik/annotation/Throws;
  74. value = {
  75. Ljava/io/IOException;
  76. }
  77. .end annotation
  78. iget-object v0, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  79. invoke-virtual {v0}, Lokio/Timeout;->throwIfReached()V
  80. return-void
  81. .end method
  82. .method public timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
  83. .locals 1
  84. iget-object v0, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  85. invoke-virtual {v0, p1, p2, p3}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
  86. move-result-object p1
  87. return-object p1
  88. .end method
  89. .method public timeoutNanos()J
  90. .locals 2
  91. iget-object v0, p0, Lokio/ForwardingTimeout;->delegate:Lokio/Timeout;
  92. invoke-virtual {v0}, Lokio/Timeout;->timeoutNanos()J
  93. move-result-wide v0
  94. return-wide v0
  95. .end method