/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKJapaneseChronology.java | 903 … JapaneseDate date = JapaneseChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() 907 … JapaneseDate date = JapaneseChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() 911 JapaneseChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() 985 … JapaneseDate date = JapaneseChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_yd_smart() 990 JapaneseChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_yd_smart() 1076 {ResolverStyle.SMART, JapaneseEra.HEISEI, 0, 1, 1, null}, in data_resolve_eymd() 1077 … {ResolverStyle.SMART, JapaneseEra.HEISEI, 1, 1, 1, date(1989, 1, 1)}, // SHOWA, not HEISEI in data_resolve_eymd() 1078 … {ResolverStyle.SMART, JapaneseEra.HEISEI, 1, 1, 7, date(1989, 1, 7)}, // SHOWA, not HEISEI in data_resolve_eymd() 1079 {ResolverStyle.SMART, JapaneseEra.HEISEI, 1, 1, 8, date(1989, 1, 8)}, in data_resolve_eymd() 1080 {ResolverStyle.SMART, JapaneseEra.HEISEI, 1, 12, 31, date(1989, 12, 31)}, in data_resolve_eymd() [all …]
|
D | TCKIsoChronology.java | 285 {ResolverStyle.SMART, -1, null, null, null, null}, in data_resolve_yearOfEra() 289 {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, in data_resolve_yearOfEra() 293 {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, in data_resolve_yearOfEra() 297 {ResolverStyle.SMART, 2, null, null, null, null}, in data_resolve_yearOfEra() 302 {ResolverStyle.SMART, -1, 2012, null, null, null}, in data_resolve_yearOfEra() 306 {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, in data_resolve_yearOfEra() 310 {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, in data_resolve_yearOfEra() 314 {ResolverStyle.SMART, 2, 2012, null, null, null}, in data_resolve_yearOfEra() 319 {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, in data_resolve_yearOfEra() 323 {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, in data_resolve_yearOfEra() [all …]
|
D | TCKThaiBuddhistChronology.java | 536 {ResolverStyle.SMART, -1, null, null, null, null}, in data_resolve_yearOfEra() 540 {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, in data_resolve_yearOfEra() 544 {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, in data_resolve_yearOfEra() 548 {ResolverStyle.SMART, 2, null, null, null, null}, in data_resolve_yearOfEra() 553 {ResolverStyle.SMART, -1, 2012, null, null, null}, in data_resolve_yearOfEra() 557 {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, in data_resolve_yearOfEra() 561 {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, in data_resolve_yearOfEra() 565 {ResolverStyle.SMART, 2, 2012, null, null, null}, in data_resolve_yearOfEra() 570 {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, in data_resolve_yearOfEra() 574 {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, in data_resolve_yearOfEra() [all …]
|
D | TCKMinguoChronology.java | 560 {ResolverStyle.SMART, -1, null, null, null, null}, in data_resolve_yearOfEra() 564 {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0}, in data_resolve_yearOfEra() 568 {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1}, in data_resolve_yearOfEra() 572 {ResolverStyle.SMART, 2, null, null, null, null}, in data_resolve_yearOfEra() 577 {ResolverStyle.SMART, -1, 2012, null, null, null}, in data_resolve_yearOfEra() 581 {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011}, in data_resolve_yearOfEra() 585 {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012}, in data_resolve_yearOfEra() 589 {ResolverStyle.SMART, 2, 2012, null, null, null}, in data_resolve_yearOfEra() 594 {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012}, in data_resolve_yearOfEra() 598 {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null}, in data_resolve_yearOfEra() [all …]
|
D | TCKHijrahChronology.java | 397 … HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() 401 … HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() 405 … HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_ymd_smart() 499 … HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_yd_smart() 504 … HijrahDate date = HijrahChronology.INSTANCE.resolveDate(fieldValues, ResolverStyle.SMART); in test_resolve_yd_smart()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 63 import static java.time.format.ResolverStyle.SMART; 563 {ResolverStyle.SMART, 14, 59, 60, 123456789, null, null}, in data_resolveFourToTime() 567 {ResolverStyle.SMART, 23, 59, 60, 123456789, null, null}, in data_resolveFourToTime() 571 {ResolverStyle.SMART, 24, 0, 0, 0, LocalTime.of(0, 0, 0, 0), Period.ofDays(1)}, in data_resolveFourToTime() 575 {ResolverStyle.SMART, 24, 1, 0, 0, null, null}, in data_resolveFourToTime() 579 {ResolverStyle.SMART, 25, 0, 0, 0, null, null}, in data_resolveFourToTime() 583 {ResolverStyle.SMART, 49, 2, 3, 4, null, null}, in data_resolveFourToTime() 587 {ResolverStyle.SMART, -1, 2, 3, 4, null, null}, in data_resolveFourToTime() 591 {ResolverStyle.SMART, -6, 2, 3, 4, null, null}, in data_resolveFourToTime() 595 {ResolverStyle.SMART, 25, 61, 61, 1_123456789, null, null}, in data_resolveFourToTime() [all …]
|
D | TCKResolverStyle.java | 96 {"2000/02/30", ResolverStyle.SMART, null, 2000, 2, 29}, in data_resolverStyle() 100 {"2000/02/30 CE", ResolverStyle.SMART, null, 2000, 2, 29}, in data_resolverStyle()
|
D | TCKDateTimeFormatters.java | 178 …quals(DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).getResolverStyle(), ResolverStyle.SMART); in test_ofLocalizedDate_basics() 185 …quals(DateTimeFormatter.ofLocalizedTime(FormatStyle.FULL).getResolverStyle(), ResolverStyle.SMART); in test_ofLocalizedTime_basics() 192 …s(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL).getResolverStyle(), ResolverStyle.SMART); in test_ofLocalizedDateTime1_basics() 199 …ofLocalizedDateTime(FormatStyle.FULL, FormatStyle.MEDIUM).getResolverStyle(), ResolverStyle.SMART); in test_ofLocalizedDateTime2_basics() 1274 assertEquals(DateTimeFormatter.RFC_1123_DATE_TIME.getResolverStyle(), ResolverStyle.SMART); in test_rfc1123_basics()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | ResolverStyle.java | 103 SMART, enumConstant
|
D | DateTimeFormatter.java | 589 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedDate() 617 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedTime() 645 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedDateTime() 675 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedDateTime() 1264 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE);
|
D | Parsed.java | 373 … if (resolverStyle == ResolverStyle.STRICT || (resolverStyle == ResolverStyle.SMART && ch != 0)) { in resolveTimeFields() 381 … if (resolverStyle == ResolverStyle.STRICT || (resolverStyle == ResolverStyle.SMART && ch != 0)) { in resolveTimeFields() 549 … if (resolverStyle == ResolverStyle.SMART && hod == 24 && mohVal == 0 && som == 0 && nosVal == 0) { in resolveTime()
|
D | DateTimeFormatterBuilder.java | 2057 return toFormatter(locale, ResolverStyle.SMART, null); in toFormatter()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKIsoFields.java | 168 .toFormatter().withResolverStyle(ResolverStyle.SMART); in test_parse_quarters_SMART() 224 .toFormatter().withResolverStyle(ResolverStyle.SMART); in test_parse_parseLenientQuarter_SMART() 367 .toFormatter().withResolverStyle(ResolverStyle.SMART); in test_parse_weeks_SMART() 416 .toFormatter().withResolverStyle(ResolverStyle.SMART); in test_parse_parseLenientWeek_SMART()
|
D | TCKJulianFields.java | 153 .toFormatter().withResolverStyle(ResolverStyle.SMART); in test_samples_parse_SMART()
|
D | TCKWeekFields.java | 60 import static java.time.format.ResolverStyle.SMART; 389 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(SMART); in test_parse_resolve_localizedWom()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | IsoChronology.java | 552 if (resolverStyle == ResolverStyle.SMART) { // previous valid in resolveYMD()
|
D | JapaneseChronology.java | 483 if (resolverStyle == ResolverStyle.SMART) { // previous valid in resolveYMD()
|
D | AbstractChronology.java | 561 if (resolverStyle == ResolverStyle.SMART) { // previous valid in resolveYMD()
|