History log of /system/timezone/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/ErrorsTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8c74627148c0c6a399b104a31a75d15980ad64f2 15-Mar-2018 Neil Fuller <nfuller@google.com> Refactoring to support an upcoming change

Making various changes to support a large
upcoming commit.

Most of the changes are in TzLookupGenerator
to split up a large method that is only
going to get larger.

Bug: 72142943
Test: Ran unit tests (see tzlookup_generator/README.android)
Test: Ran update-tzdata.py, tzlookup.xml had not changed
Merged-In: Ia10992c8f83eee9d619f77e4a18ecf8612f2e384
Change-Id: Ia10992c8f83eee9d619f77e4a18ecf8612f2e384
(cherry picked from commit 5b1ab665792824c4ea75bf6584d42dca206c803c)
/system/timezone/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/ErrorsTest.java
2f3a32b91c23523450c3d1abde303447e9a6d17b 11-Oct-2017 Neil Fuller <nfuller@google.com> Generate the tzlookup.xml file from a proto file

This commit adds a platform developer command-line
tool to generate the tzlookup.xml from a human-readable
.proto file rather than just copying the .xml file
around.

The only files that influence on-device behavior
are those in system/timezone/output_data.

The new countryzones.txt is a translation of the
old tzlookup.xml with more structure and some
additional data. A few offsets were found to be
incorrect by the new validation code and these have
been corrected (this information was previously found
in comments in tzlookup.xml and was never actually used
on device).

During generation the tzlookup_generator can validate
the input against IANA and ICU data and do some
defaulting which should help avoid the data becoming
out of date.

This change introduces a country-level attribute to the
tzlookup.xml for the "country default" time zone, which is
there to help address bug 34266809 in a follow-up
change.

This change also moves the zone_compactor tool to
being built with the Android build system for consistency.

The change updates the update-tzdata.py script to use the
new tool.

The updated output_data files from running the tool are
included in this commit.

The new tool has tests instructions for execution are
in README.android.

Bug: 34266809
Bug: 65575839
Test: Booted device
Test: See included host tests.
Change-Id: Ic96af7987c61690faebbc80907209f9e1cc1e976
/system/timezone/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/ErrorsTest.java