a7417af2d873df5cf79c64e790b3bd64666aac5d |
|
01-Jul-2015 |
Neil Fuller <nfuller@google.com> |
Use System.nanoTime() for timeouts and durations System.currentTimeMillis() is affected by abrupt system clock changes (which happen due to network time changes, etc.). System.nanoTime() is the recommended alternative. Bug: 4367611 Change-Id: I27fb855bb4330da6856520819c9fc355f9a46aa2
|
383b6c74eb7088c545841357e482c4fd6218cb9d |
|
11-Sep-2013 |
Elliott Hughes <enh@google.com> |
Add API to get a time zone's localized exemplar location from CLDR. Bug: 8145760 Bug: 10179879 Change-Id: Idafa81402c8d89cc2756ab1d57c0f8b1b3401df7
|
3020db601855fda8e33c870510204750b2386f3d |
|
27-Aug-2013 |
Elliott Hughes <enh@google.com> |
Reduce the upper bound on TimeZoneNames memory usage. The cache had mistakenly been sized based on the number of time zones, despite the fact that the keys are locales. We now have a lot of locales, but the cache was still large enough to hold all of them, which wasn't really the intent. I pulled the number 5 out of my ass. I've also removed the "one big intern table" and now just do per-locale deduplication. That avoids another potentially very large leak in an ill-behaved program. Also handle OOME in the native code better. Change-Id: I9a07ad210469f064acde80f7d10ffb4b3a8f6443
|
554f25600a5335131f085eca41820614f3a29cf9 |
|
07-Jun-2013 |
Elliott Hughes <enh@google.com> |
Fix zone.tab parsing. Not every zone.tab line has a comment. Bug: 9327819 (cherry picked from commit b2181542090a8ff8801331e6ad8f9afcb62da8b3) Change-Id: I36d48321e91ed18d1434bda8c33a395349bf5608
|
9762df2945b43139d36171bbca2af57cd581c269 |
|
07-Jun-2013 |
Elliott Hughes <enh@google.com> |
Fix zone.tab parsing. Not every zone.tab line has a comment. Bug: 9327819 (cherry picked from commit b2181542090a8ff8801331e6ad8f9afcb62da8b3) Change-Id: I36d48321e91ed18d1434bda8c33a395349bf5608
|
b2181542090a8ff8801331e6ad8f9afcb62da8b3 |
|
07-Jun-2013 |
Elliott Hughes <enh@google.com> |
Fix zone.tab parsing. Not every zone.tab line has a comment. Bug: 9327819 Change-Id: I32811c2da34755e2a15334f8701523505e1398b3
|
995caee51334a4f1a1429e29680ea079c900c37a |
|
25-Apr-2013 |
Elliott Hughes <enh@google.com> |
Cope with a corrupt tzdata update. We need to fall back to the next choice on error. Rewrite the code to be testable and add some tests. Add an internal GMT-only fallback in case all our sources of tzdata are bad. Also make time zone detection on the host more useful. Bug: 8373554 Change-Id: I9f91b844a61f07f34b268535e6d24aa0c301bf8d
|
dad6760aedf4c6b29b47dea6352d88fc3df9b2e5 |
|
15-Mar-2013 |
Elliott Hughes <enh@google.com> |
Return Olson ids from TimeZoneNames.forLocale in zone.tab order. Bug: 8391426 Change-Id: I7b1335a8d8e0c804d68c85b18b1c4891ec269c1d
|
ac7cf58962995825464af08ae6fa5e006c94f3fa |
|
27-Feb-2013 |
Elliott Hughes <enh@google.com> |
Switch to using icu4c 50's TimeZoneNames API. This takes us down from ~330ms/locale on prime to ~70ms/locale. This also fixes a bug in DateFormatSymbols.getZoneStrings and adds a test so we don't regress. Change-Id: I13663a659666c0a7d87a299235b75fa4e9fef69d
|