Add hint data for whether a country uses UTC
Most country codes do not use UTC and working that out on the fly on device is inefficient: some of the countries that don't use UTC have many zone that need to be loaded and checked (e.g. US, RU, CA, BR). This hint allows that to be side-stepped. Most of the zones that do use UTC only have a small number of time zones to check on device. The data will be used in a future commit to support telephony time zone detection usecases. For reference the country codes that use UTC ever are: aq, bf, ci, eh, es, fo, gb, gg, gh, gl, gm, gn, gw, ie, im, is, je, lr, ma, ml, mr, pt, sh, sl, sn, st, tg The list it will replace is hardcoded in telephony code (NitzStateMachine, originally ServiceStateTracker): bf, ci, eh, fo, gb, gh, gm, gn, gw, ie, lr, is, ma, ml, mr, pt, sl, sn, st, tg [Note the second list was supposed to be sorted but wasn't because of lr being in the wrong place so may not have been used in all cases]. All entries present in the old list are in the new list. The new entries reflect country codes that probably aren't used by phone networks or havea single time zone except for: es - Spain, because of the Canary Islands in Winter gl - Greenland, Ittoqqortoormiit and Ittoqqortoormiit The new data is inarguably correct but it's hard to tell how many users would be affected. The information is currently only used to detect the presence of bogus NITZ signals so it's possible that Spain / Greenland will not detect / correct for bogus NITZ after this data is used but might have done so before. Test: Ran TzLookupGeneratorTest Bug: 37494871 Change-Id: Ieef8e92a11cb8371c42a6d98925e62141c61e02f
Loading
Please sign in to comment