CompoundButtonCompat.smali 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. .class public final Landroid/support/v4/widget/CompoundButtonCompat;
  2. .super Ljava/lang/Object;
  3. .source "CompoundButtonCompat.java"
  4. # annotations
  5. .annotation system Ldalvik/annotation/MemberClasses;
  6. value = {
  7. Landroid/support/v4/widget/CompoundButtonCompat$Api23CompoundButtonImpl;,
  8. Landroid/support/v4/widget/CompoundButtonCompat$LollipopCompoundButtonImpl;,
  9. Landroid/support/v4/widget/CompoundButtonCompat$BaseCompoundButtonCompat;,
  10. Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  11. }
  12. .end annotation
  13. # static fields
  14. .field private static final IMPL:Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  15. # direct methods
  16. .method static constructor <clinit>()V
  17. .locals 2
  18. .prologue
  19. .line 39
  20. sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
  21. .line 40
  22. .local v0, "sdk":I
  23. const/16 v1, 0x17
  24. if-lt v0, v1, :cond_0
  25. .line 41
  26. new-instance v1, Landroid/support/v4/widget/CompoundButtonCompat$Api23CompoundButtonImpl;
  27. invoke-direct {v1}, Landroid/support/v4/widget/CompoundButtonCompat$Api23CompoundButtonImpl;-><init>()V
  28. sput-object v1, Landroid/support/v4/widget/CompoundButtonCompat;->IMPL:Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  29. .line 47
  30. :goto_0
  31. return-void
  32. .line 42
  33. :cond_0
  34. const/16 v1, 0x15
  35. if-lt v0, v1, :cond_1
  36. .line 43
  37. new-instance v1, Landroid/support/v4/widget/CompoundButtonCompat$LollipopCompoundButtonImpl;
  38. invoke-direct {v1}, Landroid/support/v4/widget/CompoundButtonCompat$LollipopCompoundButtonImpl;-><init>()V
  39. sput-object v1, Landroid/support/v4/widget/CompoundButtonCompat;->IMPL:Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  40. goto :goto_0
  41. .line 45
  42. :cond_1
  43. new-instance v1, Landroid/support/v4/widget/CompoundButtonCompat$BaseCompoundButtonCompat;
  44. invoke-direct {v1}, Landroid/support/v4/widget/CompoundButtonCompat$BaseCompoundButtonCompat;-><init>()V
  45. sput-object v1, Landroid/support/v4/widget/CompoundButtonCompat;->IMPL:Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  46. goto :goto_0
  47. .end method
  48. .method private constructor <init>()V
  49. .locals 0
  50. .prologue
  51. .line 113
  52. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  53. return-void
  54. .end method
  55. .method public static getButtonDrawable(Landroid/widget/CompoundButton;)Landroid/graphics/drawable/Drawable;
  56. .locals 1
  57. .param p0, "button" # Landroid/widget/CompoundButton;
  58. .annotation build Landroid/support/annotation/NonNull;
  59. .end annotation
  60. .end param
  61. .annotation build Landroid/support/annotation/Nullable;
  62. .end annotation
  63. .prologue
  64. .line 174
  65. sget-object v0, Landroid/support/v4/widget/CompoundButtonCompat;->IMPL:Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  66. invoke-interface {v0, p0}, Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;->getButtonDrawable(Landroid/widget/CompoundButton;)Landroid/graphics/drawable/Drawable;
  67. move-result-object v0
  68. return-object v0
  69. .end method
  70. .method public static getButtonTintList(Landroid/widget/CompoundButton;)Landroid/content/res/ColorStateList;
  71. .locals 1
  72. .param p0, "button" # Landroid/widget/CompoundButton;
  73. .annotation build Landroid/support/annotation/NonNull;
  74. .end annotation
  75. .end param
  76. .annotation build Landroid/support/annotation/Nullable;
  77. .end annotation
  78. .prologue
  79. .line 138
  80. sget-object v0, Landroid/support/v4/widget/CompoundButtonCompat;->IMPL:Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  81. invoke-interface {v0, p0}, Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;->getButtonTintList(Landroid/widget/CompoundButton;)Landroid/content/res/ColorStateList;
  82. move-result-object v0
  83. return-object v0
  84. .end method
  85. .method public static getButtonTintMode(Landroid/widget/CompoundButton;)Landroid/graphics/PorterDuff$Mode;
  86. .locals 1
  87. .param p0, "button" # Landroid/widget/CompoundButton;
  88. .annotation build Landroid/support/annotation/NonNull;
  89. .end annotation
  90. .end param
  91. .annotation build Landroid/support/annotation/Nullable;
  92. .end annotation
  93. .prologue
  94. .line 164
  95. sget-object v0, Landroid/support/v4/widget/CompoundButtonCompat;->IMPL:Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  96. invoke-interface {v0, p0}, Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;->getButtonTintMode(Landroid/widget/CompoundButton;)Landroid/graphics/PorterDuff$Mode;
  97. move-result-object v0
  98. return-object v0
  99. .end method
  100. .method public static setButtonTintList(Landroid/widget/CompoundButton;Landroid/content/res/ColorStateList;)V
  101. .locals 1
  102. .param p0, "button" # Landroid/widget/CompoundButton;
  103. .annotation build Landroid/support/annotation/NonNull;
  104. .end annotation
  105. .end param
  106. .param p1, "tint" # Landroid/content/res/ColorStateList;
  107. .annotation build Landroid/support/annotation/Nullable;
  108. .end annotation
  109. .end param
  110. .prologue
  111. .line 128
  112. sget-object v0, Landroid/support/v4/widget/CompoundButtonCompat;->IMPL:Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  113. invoke-interface {v0, p0, p1}, Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;->setButtonTintList(Landroid/widget/CompoundButton;Landroid/content/res/ColorStateList;)V
  114. .line 129
  115. return-void
  116. .end method
  117. .method public static setButtonTintMode(Landroid/widget/CompoundButton;Landroid/graphics/PorterDuff$Mode;)V
  118. .locals 1
  119. .param p0, "button" # Landroid/widget/CompoundButton;
  120. .annotation build Landroid/support/annotation/NonNull;
  121. .end annotation
  122. .end param
  123. .param p1, "tintMode" # Landroid/graphics/PorterDuff$Mode;
  124. .annotation build Landroid/support/annotation/Nullable;
  125. .end annotation
  126. .end param
  127. .prologue
  128. .line 154
  129. sget-object v0, Landroid/support/v4/widget/CompoundButtonCompat;->IMPL:Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;
  130. invoke-interface {v0, p0, p1}, Landroid/support/v4/widget/CompoundButtonCompat$CompoundButtonCompatImpl;->setButtonTintMode(Landroid/widget/CompoundButton;Landroid/graphics/PorterDuff$Mode;)V
  131. .line 155
  132. return-void
  133. .end method