Commit Graph

16 Commits

Author SHA1 Message Date
Victor Chang
f61ae810c6 Move libcore.timezone to the i18n module - Final part
Bug: 141747409
Test: atest CtsLibcoreTestCases  CtsLibcoreTestCases
Change-Id: Id3c9a56dcf86b6f5ec81d09d12e432fc97f178c0
2020-06-30 14:30:46 +01:00
Victor Chang
2ea241f6ee Use new package name for ZoneInfo and libcore.timezone
Bug: 141747409
Test: None
Merged-In: Id99a345ec024179295063c3644f72c062cb50554
Change-Id: Id99a345ec024179295063c3644f72c062cb50554
2020-06-30 13:53:47 +01:00
Neil Fuller
18ad0ea8ff Merge "Sync android.timezone / libcore.timezone" 2020-03-09 12:46:52 +00:00
Neil Fuller
06795ef740 Reduce log size from CountryTimeZones
ICU's TimeZone.toString() prints out too much information. Only the ID
is useful.

Bug: 149014708
Test: build only
Change-Id: I7d633f7946f82696e13dbc39749b6f9f44f83fa3
2020-03-09 10:11:36 +00:00
Neil Fuller
e2c60dc6ab Sync android.timezone / libcore.timezone
Track changes in libcore/

Bug: 148086409
Test: treehugger
Change-Id: I0aadc51e58eb5cc4ffca938429d5f31c0bc77edb
2020-03-06 20:10:03 +00:00
Neil Fuller
b2d0306a00 Avoid a @Nullable Boolean
To avoid a @Nullable Boolean one method has been split into two. After
some changes in the last release this also removes an optional parameter
from the two new methods as it is now always null.

Bug: 148450671
Test: treehugger
Change-Id: I83be9647943c16ae30af4f8d032db428af1ad5fc
2020-02-05 17:13:31 +00:00
Neil Fuller
4222b7bec8 Remove System APIs not required for R
Test: treehugger
Bug: 148842434
Merged-In: If022a726a058a90cb5446d220628c76800da8e96
Change-Id: If022a726a058a90cb5446d220628c76800da8e96
2020-02-04 21:21:34 +00:00
Neil Fuller
f4e1ac840c Merge "More API council tidy up" 2020-02-04 11:35:11 +00:00
Neil Fuller
8e0e0e8535 Merge "Tidy up libcore.timezone APIs" 2020-01-30 11:25:35 +00:00
Neil Fuller
98ab83c37d Merge "Tidy up module-lib API and locks" 2020-01-29 14:10:18 +00:00
Neil Fuller
45a0c412e9 More API council tidy up
Behavioral change to remove the possibility of null from getTimeZone().
The rest are naming and documentation improvements.

Bug: 148450671
Test: treehugger
Change-Id: I412046ce343e76463bf27d8dc5fea46adfd85b0d
2020-01-28 18:11:32 +00:00
Neil Fuller
4720cf0309 Tidy up libcore.timezone APIs
Tidy up the libcore.timezone APIs to make them as close as possible to
android.timezone. In future, these classes should be repackages to be
the actual android.timezone classes, so the APIs need to be in sync.

Bug: 148086409
Test: treehugger
Change-Id: Ia520abcf00e691f4a1b5549dafec44b76075e31a
2020-01-28 15:26:45 +00:00
Neil Fuller
6a0664d702 Tidy up module-lib API and locks
Fixing various nits.

Test: treehugger
Change-Id: I636d1b9ef084be58ea07caa0a04ba70de18a030b
2020-01-28 15:24:15 +00:00
Neil Fuller
f14b18e153 Rename ZoneInfoDB -> ZoneInfoDb
Rename ZoneInfoDB -> ZoneInfoDb to conform with coding standards.

Bug: 148086409
Test: treehugger
Change-Id: I2a5eca6bd013d3ca2ba93aabf36745f8873fc6fb
2020-01-28 13:49:48 +00:00
Neil Fuller
2551c033df Add new module-lib APIs for MTS testing
Several android.timezone classes have already been exposed for the
telephony module work, so these tests provide coverage for those.
Additional APIs have been exposed for MTS testing, i.e. to provide
greater confidence that the tzdata module data is correct / is
being read correctly.

Also, small changes to existing code to make them consistent with new
classes. Small docs improvements.

Bug: 147884233
Test: see system/timezone change
Change-Id: I047b29f17a41993f859947a6d6c3685896fe4cb6
2020-01-21 17:17:31 +00:00
Neil Fuller
f7346ecb1f System API proxies for the telephony module
Introduce classes that exist to give the telephony module something
stable to call for in-process utilities: libcore cannot directly expose
System APIs today and the package names are internal. The APIs are the
subset of internal libcore.timezone APIs used by telephony code
currently.

Bug: 139091367
Test: See associated frameworks/opt/telephony commit
Merged-In: I6109aef77171346ecb103c190526b7b9b81012b2
Change-Id: I6109aef77171346ecb103c190526b7b9b81012b2
(cherry picked from commit 944aeffa85)
2020-01-15 09:48:36 +00:00