CipherSuite$1.smali 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. .class final Lokhttp3/CipherSuite$1;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # interfaces
  5. .implements Ljava/util/Comparator;
  6. # annotations
  7. .annotation system Ldalvik/annotation/EnclosingClass;
  8. value = Lokhttp3/CipherSuite;
  9. .end annotation
  10. .annotation system Ldalvik/annotation/InnerClass;
  11. accessFlags = 0x0
  12. name = null
  13. .end annotation
  14. .annotation system Ldalvik/annotation/Signature;
  15. value = {
  16. "Ljava/lang/Object;",
  17. "Ljava/util/Comparator<",
  18. "Ljava/lang/String;",
  19. ">;"
  20. }
  21. .end annotation
  22. # direct methods
  23. .method constructor <init>()V
  24. .locals 0
  25. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  26. return-void
  27. .end method
  28. # virtual methods
  29. .method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
  30. .locals 0
  31. check-cast p1, Ljava/lang/String;
  32. check-cast p2, Ljava/lang/String;
  33. invoke-virtual {p0, p1, p2}, Lokhttp3/CipherSuite$1;->compare(Ljava/lang/String;Ljava/lang/String;)I
  34. move-result p1
  35. return p1
  36. .end method
  37. .method public compare(Ljava/lang/String;Ljava/lang/String;)I
  38. .locals 6
  39. invoke-virtual {p1}, Ljava/lang/String;->length()I
  40. move-result v0
  41. invoke-virtual {p2}, Ljava/lang/String;->length()I
  42. move-result v1
  43. invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
  44. move-result v0
  45. const/4 v1, 0x4
  46. :goto_0
  47. const/4 v2, -0x1
  48. const/4 v3, 0x1
  49. if-ge v1, v0, :cond_2
  50. invoke-virtual {p1, v1}, Ljava/lang/String;->charAt(I)C
  51. move-result v4
  52. invoke-virtual {p2, v1}, Ljava/lang/String;->charAt(I)C
  53. move-result v5
  54. if-eq v4, v5, :cond_1
  55. if-ge v4, v5, :cond_0
  56. goto :goto_1
  57. :cond_0
  58. const/4 v2, 0x1
  59. :goto_1
  60. return v2
  61. :cond_1
  62. add-int/lit8 v1, v1, 0x1
  63. goto :goto_0
  64. :cond_2
  65. invoke-virtual {p1}, Ljava/lang/String;->length()I
  66. move-result p1
  67. invoke-virtual {p2}, Ljava/lang/String;->length()I
  68. move-result p2
  69. if-eq p1, p2, :cond_4
  70. if-ge p1, p2, :cond_3
  71. goto :goto_2
  72. :cond_3
  73. const/4 v2, 0x1
  74. :goto_2
  75. return v2
  76. :cond_4
  77. const/4 p1, 0x0
  78. return p1
  79. .end method