|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| apex/com.android.geotz/ | | 14-Jan-2024 | - | 292 | 217 |
| app/ | | 14-Jan-2024 | - | 281 | 166 |
| common/ | | 15-Dec-2024 | - | 703 | 429 |
| data_pipeline/ | | 14-Jan-2024 | - | 824,560 | 822,701 |
| geotz_lookup/ | | 14-Jan-2024 | - | 491 | 279 |
| locationtzprovider/ | | 15-Dec-2024 | - | 4,040 | 2,486 |
| output_data/ | | 14-Jan-2024 | - | 582 | 463 |
| s2storage/ | | 15-Dec-2024 | - | 6,298 | 3,805 |
| tzbb_data/ | | 14-Jan-2024 | - | 1,139 | 905 |
| tzs2storage/ | | 15-Dec-2024 | - | 5,484 | 3,355 |
| validation/geonames/ | | 14-Jan-2024 | - | 8,610 | 8,316 |
| OWNERS | D | 14-Jan-2024 | 257 | 6 | 5 |
| PREUPLOAD.cfg | D | 14-Jan-2024 | 195 | 10 | 7 |
| README.md | D | 15-Dec-2024 | 2.2 KiB | 65 | 48 |
| download-tzbb-files.sh | D | 14-Jan-2024 | 2.9 KiB | 118 | 75 |
| run-data-pipeline.sh | D | 14-Jan-2024 | 7.9 KiB | 283 | 206 |
README.md
1This directory contains code, tools and data for the AOSP reference location
2time zone provider. Location time zone providers are used for location-based
3time zone detection on Android. See Android's
4android.service.timezone.TimeZoneProviderService class for more details.
5
6Directory structure
7===================
8
9`apex`
10 - Files associated with a proposed mainline module APEX to hold the AOSP
11 reference location time zone provider.
12
13`common`
14 - Utility code shared between several subdirectories.
15
16`data_pipeline`
17 - Code for a host sample / reference data generation pipeline. See
18 `run-data-pipeline.sh` below.
19
20`geotz_lookup`
21 - A high-level API for performing time zone ID lookups for a location using
22 the `tzs2.dat` file. Supports host and device usage.
23
24`locationtzprovider`
25 - A reference location time zone provider that uses AOSP APIs to obtain
26 location and the `geotz_lookup` APIs to obtain the time zone IDs to pass to
27 the platform.
28
29`output_data`
30 - Holds the `tzs2.dat` file generated by `run-data-pipeline.sh` along with
31 the associated license files.
32
33`s2storage`
34 - Generic file reading / writing code and tools to support `tzs2.dat`
35 generation on host, and the file's use on host and device. See
36 `s2storage/README.md` for details.
37
38`tzs2storage`
39 - TZ-specific file reading / writing code and tools to support `tzs2.dat`
40 generation on host, and the file's use on host and device. See
41 `tzs2storage/README.md` for details.
42
43`tzbb_data`
44 - Data / licenses from the external
45 [timezone-boundary-builder](https://github.com/evansiroky/timezone-boundary-builder)
46 project. Used as input for the reference data generation pipeline.
47
48`validation`
49 - Tooling to help validate the `tzs2.dat` file against other data sources.
50
51
52Data file update tools
53======================
54
55`download-tzbb-files.sh`
56 - Used to refresh the data in `tzbb_data/` from the
57 [timezone-boundary-builder](https://github.com/evansiroky/timezone-boundary-builder)
58 project.
59
60`run-data-pipeline.sh`
61 - Runs the `data_pipeline` data generation pipeline. It takes data from
62 `tzbb_data/`, processes it, and puts the resulting `tzs2.dat` file in
63 `output_data/`.
64
65