diff options
author | Neil Fuller <nfuller@google.com> | 2017-10-19 17:09:49 +0100 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2017-10-27 15:09:13 +0100 |
commit | 7ffead46fefe9ff2aae85977aff2e3c7089a2cee (patch) | |
tree | 6ae4d7febd2c150765135e09d6cc43417d8cc9be /annotations/generate_annotated_java_files.py | |
parent | 58e96b621a6d730259db5c45b92dce0e6a3edf65 (diff) |
Make use of the default time zone for a country
This change adds code to expose the country default
time zone ID added in previous changes. This change
makes the attribute mandatory.
There have been some structural changes in
TimeZoneFinder to delay creation of TimeZone objects
when not needed and to enable lookups with ISO codes
that are not lower-case. There's a lot of code that
currently assumes lower-case lookups but making it
work when the codes are upper case (as used in
Locale and by zone.tab) should do no harm.
Tests have been added to TimeZoneFinderTest for the
new behavior.
Additional tests have been added to ICUTest to confirm
that ICU offers a superset of time zone IDs over the
Android ZoneInfoDB IDs (which backs java.util.TimeZone).
Note: Bug 30277331 means Asia/Hanoi is an issue for ICU
but that ID is a known issue and unlikely to be used
in practice.
Test: Booted device
Test: CTS: run cts -m CtsLibcoreTestCases -t libcore.icu.ICUTest
Test: CTS: run cts -m CtsLibcoreTestCases -t libcore.util.TimeZoneFinderTest
Bug: 30277331
Bug: 65575839
Bug: 34266809
Change-Id: I5210df5fa8e25acdfc819a42b03feccbce60750d
Merged-In: I5210df5fa8e25acdfc819a42b03feccbce60750d
(cherry picked from commit 0971904c040c2816681a87e29abc1167f992f28c)
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions