summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2018-01-05 18:29:46 +0000
committerNeil Fuller <nfuller@google.com>2018-01-07 16:10:02 +0000
commitc0c6663e57fbebf0de3df5eaf90a9df5b72cefc6 (patch)
tree2ec5a90562794e26c30454d3cee62c20723bf6b7 /include/ScopedJavaUnicodeString.h
parent5e8552d92dde536d58f2db9260cbd206be1bb525 (diff)
Add a hasUtcZone() for telephony tz detection
Telephony code currently contains a static list of countries known to use UTC at some point in the year. This method will be used instead. Not only does it use latest data but it can check based on a time signal, making the response more correct. This approach is probably more memory hungry than the telephony code but it is only used under certain circumstances. If speed or memory usage becomes a problem it can be improved by including hint data in tzlookup.xml to record whether a country ever uses UTC, which can be statically generated and make the check only iterate through zones for countries that sometimes use UTC and avoid the expensive cases like US, RU, CA, BR - countries that never use UTC and have a lot of zones. Test: vogar luni/src/test/java/libcore/libcore/util/CountryTimeZonesTest.java Bug: 37494871 Change-Id: I5a3b876ccc3f2915c2a5b69fe026e368102382c5
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions