SocketPolicy.smali 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. .class public final enum Lokhttp3/mockwebserver/SocketPolicy;
  2. .super Ljava/lang/Enum;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/Signature;
  6. value = {
  7. "Ljava/lang/Enum<",
  8. "Lokhttp3/mockwebserver/SocketPolicy;",
  9. ">;"
  10. }
  11. .end annotation
  12. # static fields
  13. .field private static final synthetic $VALUES:[Lokhttp3/mockwebserver/SocketPolicy;
  14. .field public static final enum DISCONNECT_AFTER_REQUEST:Lokhttp3/mockwebserver/SocketPolicy;
  15. .field public static final enum DISCONNECT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  16. .field public static final enum DISCONNECT_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
  17. .field public static final enum DISCONNECT_DURING_REQUEST_BODY:Lokhttp3/mockwebserver/SocketPolicy;
  18. .field public static final enum DISCONNECT_DURING_RESPONSE_BODY:Lokhttp3/mockwebserver/SocketPolicy;
  19. .field public static final enum EXPECT_CONTINUE:Lokhttp3/mockwebserver/SocketPolicy;
  20. .field public static final enum FAIL_HANDSHAKE:Lokhttp3/mockwebserver/SocketPolicy;
  21. .field public static final enum KEEP_OPEN:Lokhttp3/mockwebserver/SocketPolicy;
  22. .field public static final enum NO_RESPONSE:Lokhttp3/mockwebserver/SocketPolicy;
  23. .field public static final enum RESET_STREAM_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
  24. .field public static final enum SHUTDOWN_INPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  25. .field public static final enum SHUTDOWN_OUTPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  26. .field public static final enum UPGRADE_TO_SSL_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  27. # direct methods
  28. .method static constructor <clinit>()V
  29. .locals 15
  30. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  31. const/4 v1, 0x0
  32. const-string v2, "KEEP_OPEN"
  33. invoke-direct {v0, v2, v1}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  34. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->KEEP_OPEN:Lokhttp3/mockwebserver/SocketPolicy;
  35. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  36. const/4 v2, 0x1
  37. const-string v3, "DISCONNECT_AT_END"
  38. invoke-direct {v0, v3, v2}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  39. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  40. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  41. const/4 v3, 0x2
  42. const-string v4, "UPGRADE_TO_SSL_AT_END"
  43. invoke-direct {v0, v4, v3}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  44. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->UPGRADE_TO_SSL_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  45. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  46. const/4 v4, 0x3
  47. const-string v5, "DISCONNECT_AT_START"
  48. invoke-direct {v0, v5, v4}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  49. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
  50. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  51. const/4 v5, 0x4
  52. const-string v6, "DISCONNECT_AFTER_REQUEST"
  53. invoke-direct {v0, v6, v5}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  54. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AFTER_REQUEST:Lokhttp3/mockwebserver/SocketPolicy;
  55. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  56. const/4 v6, 0x5
  57. const-string v7, "DISCONNECT_DURING_REQUEST_BODY"
  58. invoke-direct {v0, v7, v6}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  59. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_DURING_REQUEST_BODY:Lokhttp3/mockwebserver/SocketPolicy;
  60. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  61. const/4 v7, 0x6
  62. const-string v8, "DISCONNECT_DURING_RESPONSE_BODY"
  63. invoke-direct {v0, v8, v7}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  64. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_DURING_RESPONSE_BODY:Lokhttp3/mockwebserver/SocketPolicy;
  65. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  66. const/4 v8, 0x7
  67. const-string v9, "FAIL_HANDSHAKE"
  68. invoke-direct {v0, v9, v8}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  69. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->FAIL_HANDSHAKE:Lokhttp3/mockwebserver/SocketPolicy;
  70. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  71. const/16 v9, 0x8
  72. const-string v10, "SHUTDOWN_INPUT_AT_END"
  73. invoke-direct {v0, v10, v9}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  74. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->SHUTDOWN_INPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  75. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  76. const/16 v10, 0x9
  77. const-string v11, "SHUTDOWN_OUTPUT_AT_END"
  78. invoke-direct {v0, v11, v10}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  79. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->SHUTDOWN_OUTPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  80. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  81. const/16 v11, 0xa
  82. const-string v12, "NO_RESPONSE"
  83. invoke-direct {v0, v12, v11}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  84. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->NO_RESPONSE:Lokhttp3/mockwebserver/SocketPolicy;
  85. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  86. const/16 v12, 0xb
  87. const-string v13, "RESET_STREAM_AT_START"
  88. invoke-direct {v0, v13, v12}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  89. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->RESET_STREAM_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
  90. new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
  91. const/16 v13, 0xc
  92. const-string v14, "EXPECT_CONTINUE"
  93. invoke-direct {v0, v14, v13}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
  94. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->EXPECT_CONTINUE:Lokhttp3/mockwebserver/SocketPolicy;
  95. const/16 v0, 0xd
  96. new-array v0, v0, [Lokhttp3/mockwebserver/SocketPolicy;
  97. sget-object v14, Lokhttp3/mockwebserver/SocketPolicy;->KEEP_OPEN:Lokhttp3/mockwebserver/SocketPolicy;
  98. aput-object v14, v0, v1
  99. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  100. aput-object v1, v0, v2
  101. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->UPGRADE_TO_SSL_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  102. aput-object v1, v0, v3
  103. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
  104. aput-object v1, v0, v4
  105. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AFTER_REQUEST:Lokhttp3/mockwebserver/SocketPolicy;
  106. aput-object v1, v0, v5
  107. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_DURING_REQUEST_BODY:Lokhttp3/mockwebserver/SocketPolicy;
  108. aput-object v1, v0, v6
  109. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_DURING_RESPONSE_BODY:Lokhttp3/mockwebserver/SocketPolicy;
  110. aput-object v1, v0, v7
  111. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->FAIL_HANDSHAKE:Lokhttp3/mockwebserver/SocketPolicy;
  112. aput-object v1, v0, v8
  113. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->SHUTDOWN_INPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  114. aput-object v1, v0, v9
  115. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->SHUTDOWN_OUTPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
  116. aput-object v1, v0, v10
  117. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->NO_RESPONSE:Lokhttp3/mockwebserver/SocketPolicy;
  118. aput-object v1, v0, v11
  119. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->RESET_STREAM_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
  120. aput-object v1, v0, v12
  121. sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->EXPECT_CONTINUE:Lokhttp3/mockwebserver/SocketPolicy;
  122. aput-object v1, v0, v13
  123. sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->$VALUES:[Lokhttp3/mockwebserver/SocketPolicy;
  124. return-void
  125. .end method
  126. .method private constructor <init>(Ljava/lang/String;I)V
  127. .locals 0
  128. .annotation system Ldalvik/annotation/Signature;
  129. value = {
  130. "()V"
  131. }
  132. .end annotation
  133. invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
  134. return-void
  135. .end method
  136. .method public static valueOf(Ljava/lang/String;)Lokhttp3/mockwebserver/SocketPolicy;
  137. .locals 1
  138. const-class v0, Lokhttp3/mockwebserver/SocketPolicy;
  139. invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
  140. move-result-object p0
  141. check-cast p0, Lokhttp3/mockwebserver/SocketPolicy;
  142. return-object p0
  143. .end method
  144. .method public static values()[Lokhttp3/mockwebserver/SocketPolicy;
  145. .locals 1
  146. sget-object v0, Lokhttp3/mockwebserver/SocketPolicy;->$VALUES:[Lokhttp3/mockwebserver/SocketPolicy;
  147. invoke-virtual {v0}, [Lokhttp3/mockwebserver/SocketPolicy;->clone()Ljava/lang/Object;
  148. move-result-object v0
  149. check-cast v0, [Lokhttp3/mockwebserver/SocketPolicy;
  150. return-object v0
  151. .end method