summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2018-02-09 08:54:01 +0000
committerNeil Fuller <nfuller@google.com>2018-02-09 12:42:27 +0000
commitd2b3c137fcf8d9726267f1bd83f213aae37df709 (patch)
treeec361e41487446825bd9e59c2f0525f4b1cee8b4 /annotations/generate_annotated_java_files.py
parent0692a133e3895e44eb828ca1298e057bed7ed731 (diff)
Add method to retrieve a list of country iso codes
This commit adds a method to retrieve a list of country ISO codes known to have time zones. Effectively the list of inhabited, known country codes based on the content of the tzlookup.xml file. The intended use for this method is for a new time zone picker so that it can retrieve Olson IDs via the methods on the CountryTimeZones object. The use of the Android tzlookup.xml file instead of 3rd party libs / data directly also means that Android can easily add extra metadata to tzlookup.xml in future to support different usecases for the country list, country -> time zone mapping and time zone metadata. Test: vogar libcore/luni/src/test/java/libcore/libcore/util/TimeZoneFinderTest.java Bug: 72144448 Bug: 72142943 Change-Id: I58fe128c96fd37d54825e77e6a5d4f3822e5e922
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions