summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2019-11-21 17:30:03 +0000
committerNeil Fuller <nfuller@google.com>2019-11-21 17:30:03 +0000
commit4b03c07cc70690aff6383fc4e8794b151c00b561 (patch)
tree76102641de8677891c53ad68cdc4d16b4b6be78e /rs/java/android/renderscript/RenderScript.java
parenta8ce56e23fb822913a4631690c9b51ffad6d360c (diff)
Remove dead code from SystemServer
Remove dead code from SystemServer that obstensively protects devices from negative (< 1970) system clock times, but does not. In reality, SystemServer calls SystemClock.setCurrentTimeMillis(), which calls through to the AlarmManager.setTime() binder call. When the code runs the system server hasn't started any services yet, so this would always fail. AlarmManager has similar protections in place that do work: if the device is earlier than a "build time", then the device's clock is forced forward. That provides the protection that the code being removed from SystemServer was trying to achieve. Test: Added logging to SystemClock to prove AlarmManager is null / manual debugging Change-Id: I87dca1062829bc1a10202804fa7ee31e0a6f03a3
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions