summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScriptGL.java
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2019-11-26 13:07:09 +0000
committerNeil Fuller <nfuller@google.com>2019-12-10 19:15:38 +0000
commit312da9b9fcb6593c52d8782552a7d050675fe534 (patch)
treeb23e416263beb1774ce46f20fefdfb69c6d63e4a /rs/java/android/renderscript/RenderScriptGL.java
parentb8c3662e72ad8df90a0d857b33628df61679a940 (diff)
Handle multiple phoneIds in time detection
Android has dual sim devices, which means multiple "phone" time signals. NITZ is generally trusted and considered "good enough" in the absence of better signals, but it is provided by carriers and it's not unusual for the signals to be incorrect by minutes. We don't want the device system clock just flicking to the latest signal received. The changes to the SimpleTimeDetectorStrategy try to balance recency and provide some consistency / determinism. See comments in the code for details. The time zone detection works in a similar way, particularly with respect to choosing the lowest phoneId in the event of a tie. There will be a follow-up change to remove the word "Simple" from SimpleTimeDetectorStrategy as it no longer applies. Test: atest services/tests/servicestests/src/com/android/server/timedetector/SimpleTimeDetectorStrategyTest.java Test: atest android.app.timedetector Bug: 140712361 Change-Id: I228aff8709eabfcec910af22f7ab08fee32d566a
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptGL.java')
0 files changed, 0 insertions, 0 deletions