• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

apex/com.android.geotz/14-Jan-2024-292217

app/14-Jan-2024-281166

common/15-Dec-2024-703429

data_pipeline/14-Jan-2024-824,560822,701

geotz_lookup/14-Jan-2024-491279

locationtzprovider/15-Dec-2024-4,0402,486

output_data/14-Jan-2024-582463

s2storage/15-Dec-2024-6,2983,805

tzbb_data/14-Jan-2024-1,139905

tzs2storage/15-Dec-2024-5,4843,355

validation/geonames/14-Jan-2024-8,6108,316

OWNERSD14-Jan-2024257 65

PREUPLOAD.cfgD14-Jan-2024195 107

README.mdD15-Dec-20242.2 KiB6548

download-tzbb-files.shD14-Jan-20242.9 KiB11875

run-data-pipeline.shD14-Jan-20247.9 KiB283206

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