Guest User

Untitled

a guest
May 29th, 2017
137
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .class public Lcom/zidoo/rtk/hdmi/tool/Util;
  2. .super Ljava/lang/Object;
  3. .source "Util.java"
  4.  
  5.  
  6. # direct methods
  7. .method public constructor <init>()V
  8. .locals 0
  9.  
  10. .prologue
  11. .line 8
  12. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  13.  
  14. return-void
  15. .end method
  16.  
  17. .method public static currentTime(IIIIII)J
  18. .locals 7
  19. .parameter "year"
  20. .parameter "month"
  21. .parameter "day"
  22. .parameter "h"
  23. .parameter "min"
  24. .parameter "s"
  25.  
  26. .prologue
  27. .line 10
  28. invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
  29.  
  30. move-result-object v0
  31.  
  32. .line 11
  33. .local v0, startCalendar:Ljava/util/Calendar;
  34. const/16 v1, 0xe
  35.  
  36. const/4 v2, 0x0
  37.  
  38. invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->set(II)V
  39.  
  40. move v1, p0
  41.  
  42. move v2, p1
  43.  
  44. move v3, p2
  45.  
  46. move v4, p3
  47.  
  48. move v5, p4
  49.  
  50. move v6, p5
  51.  
  52. .line 12
  53. invoke-virtual/range {v0 .. v6}, Ljava/util/Calendar;->set(IIIIII)V
  54.  
  55. .line 13
  56. invoke-virtual {v0}, Ljava/util/Calendar;->getTimeInMillis()J
  57.  
  58. move-result-wide v2
  59.  
  60. return-wide v2
  61. .end method
  62.  
  63. .method public static isHdcp()Z
  64. .locals 4
  65.  
  66. .prologue
  67. .line 20
  68. :try_start_0
  69. const-string v2, "/sys/class/switch/rx_hdcp/state"
  70.  
  71. invoke-static {v2}, Lcom/zidoo/custom/cpu/RunTimeTool;->getRunTimeStr(Ljava/lang/String;)Ljava/lang/String;
  72.  
  73. move-result-object v1
  74.  
  75. .line 21
  76. .local v1, state:Ljava/lang/String;
  77. new-instance v2, Ljava/lang/StringBuilder;
  78.  
  79. const-string v3, "isHdcp state = "
  80.  
  81. invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
  82.  
  83. invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  84.  
  85. move-result-object v2
  86.  
  87. invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  88.  
  89. move-result-object v2
  90.  
  91. invoke-static {v2}, Lcom/zidoo/custom/log/MyLog;->v(Ljava/lang/String;)V
  92.  
  93. .line 22
  94. invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;
  95.  
  96. move-result-object v2
  97.  
  98. const-string v3, "1"
  99.  
  100. invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
  101. :try_end_0
  102. .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
  103.  
  104. move-result v2
  105.  
  106. if-eqz v2, :cond_0
  107.  
  108. .line 23
  109. const/4 v2, 0x1
  110.  
  111. .line 28
  112. :goto_0
  113. return v2
  114.  
  115. .line 25
  116. :catch_0
  117. move-exception v0
  118.  
  119. .line 26
  120. .local v0, e:Ljava/lang/Exception;
  121. invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
  122.  
  123. .line 28
  124. .end local v0 #e:Ljava/lang/Exception;
  125. :cond_0
  126. const/4 v2, 0x0
  127.  
  128. goto :goto_0
  129. .end method
RAW Paste Data