2f3a132e2413165ceef9473bc07ec1b72570bc40 |
|
25-Sep-2017 |
Joachim Sauer <jsauer@google.com> |
Improve change comments in CalendarDataUtility. Improve Android-changed/-removed/-added comments in CalendarDataUtility. Also added a Android-note at the beginning explaining that this file is heavily modified. Moved around method to keep modified upstream methods in the same order and without putting Android added private helper methods between them. Bug: 35910877 Test: m Change-Id: I8a24fe97d4e8a0f870a785f2970ccdf5dc54a470
|
dc4414b90a99639a0701c321472e29200b7ae0a0 |
|
24-Nov-2016 |
Joachim Sauer <jsauer@google.com> |
Improve CalendarDataUtils. Support ALL_STYLES which is used for parsing when no specific style is required. Don't return a Map for fields where names are ambiguous (mostly happens when the style is NARROW). Allow getDisplayName() to be used with ALL_STYLES as an alias to SHORT. Modify CalendarTest to allow getDisplayNames with ALL_STYLES to return more values than SHORT and LONG together (due to narrow styles). Bug: 28832222 Test: artrun testng-time.xml Test: CtsLibcoreTestCases Change-Id: Iebde1c442380e7359af8dc369906092861b845cf
|
6d2e8daa2d5adefa2a324de7f88c13244cbbcbaf |
|
13-Jan-2017 |
Joachim Sauer <jsauer@google.com> |
Fix era names. Buddhist, Islamic and Japanese chronologies used the wrong era names, since the java.time RI assumed a certain set of pre-processing to happen on the eras (such as removing all "non-modern" eras from the Japanese calendar), whereas ICU provides the CLDR data as-is. Bug: 28832222 Test: artrun testng-time.xml Change-Id: I428168d711a1ee173b16183ef88457dd5d97f367
|
cdfa30915ec579510ea4db8e34739d61d905e83c |
|
21-Nov-2016 |
Joachim Sauer <jsauer@google.com> |
Support looking up field value names. Implement CalendarDataUtility.retrieve[JavaTime]FieldName[s] by delegating to the ICU DateFormatSymbols class. Bug: 28832222 Test: artrun testng-time.xml Test: CtsLibcoreTestCases (2 expected failures wrt. Calendar.getDisplayName()) Change-Id: I5ad860ba145d4c11960ebd0fab4c86886fef2418
|
d7928577b0cc656c1c6da16bfe281541fdd435ee |
|
13-Oct-2016 |
Joachim Sauer <jsauer@google.com> |
Make java.time compile. This involves several mostly unrelated changes that nontheless don't make sense to apply individually: - Merge changes from OpenJDK8u60 to j.u.Calendar, j.u.GregorianCalendar, j.u.TimeZone, sun.util.calendar.BaseCalendar and CalendarSystem. These depend on changes in java.time, so they weren't done earlier and some java.time classes depend on them. - Replace name lookups with ICU resource lookups where a direct replacement exist. - Stub out name lookups where the ICU equivalent is non-trivial (will be added in later commit) Bug: 28832222 Test: CtsLibcoreTestCases (2 failures due to Calendar.getDisplayName() being unimplemented) Change-Id: I77ed768b01ab0701c807145466e0f1d5d217a6d5
|
c9dd3385ea6f927052783f42fb1282fb093e636e |
|
01-Sep-2016 |
Joachim Sauer <jsauer@google.com> |
Initial import of java.time. This is a verbatim copy of the classes in java.time from the jdk8u60 branch of the OpenJDK. They are not yet part of the build and wouldn't compile yet (no local modifications whatsoever). Bug: 28832222 Test: Not build, not tested. Change-Id: I8bb148cb1095b08af895c4abffed9f22b107c218
|