/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | AbstractDateTimeTest.java | 66 import java.time.temporal.TemporalAccessor; 83 protected abstract List<TemporalAccessor> samples(); in samples() 102 for (TemporalAccessor sample : samples()) { in basicTest_isSupported_TemporalField_supported() 111 for (TemporalAccessor sample : samples()) { in basicTest_isSupported_TemporalField_unsupported() 120 for (TemporalAccessor sample : samples()) { in basicTest_isSupported_TemporalField_null() 130 for (TemporalAccessor sample : samples()) { in basicTest_range_TemporalField_supported() 139 for (TemporalAccessor sample : samples()) { in basicTest_range_TemporalField_unsupported() 153 for (TemporalAccessor sample : samples()) { in basicTest_range_TemporalField_null() 168 for (TemporalAccessor sample : samples()) { in basicTest_get_TemporalField_supported() 186 for (TemporalAccessor sample : samples()) { in basicTest_get_TemporalField_unsupported() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneOffsetParser.java | 68 import java.time.temporal.TemporalAccessor; 100 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("Z", pos); in test_parse_exactMatch_UTC() 107 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("ZOTHER", pos); in test_parse_startStringMatch_UTC() 114 … TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("OTHERZOTHER", pos); in test_parse_midStringMatch_UTC() 121 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("OTHERZ", pos); in test_parse_endStringMatch_UTC() 129 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("", pos); in test_parse_exactMatch_UTC_EmptyUTC() 136 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("OTHER", pos); in test_parse_startStringMatch_UTC_EmptyUTC() 143 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("OTHEROTHER", pos); in test_parse_midStringMatch_UTC_EmptyUTC() 150 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("OTHER", pos); in test_parse_endStringMatch_UTC_EmptyUTC() 234 TemporalAccessor parsed = getFormatter(pattern, "Z").parseUnresolved(parse, pos); in test_parse_exactMatch() [all …]
|
D | TestDateTimeParsing.java | 83 import java.time.temporal.TemporalAccessor; 153 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_ZDT() 159 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_LDT() 165 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_Instant() 171 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_supported() 192 TemporalAccessor actual = formatter.parse(text); in test_parse_instantNoZone_ZDT() 198 TemporalAccessor actual = formatter.parse(text); in test_parse_instantNoZone_LDT() 204 TemporalAccessor actual = formatter.parse(text); in test_parse_instantNoZone_Instant() 210 TemporalAccessor actual = formatter.parse(text); in test_parse_instantNoZone_supported()
|
D | TestDateTimeFormatter.java | 90 import java.time.temporal.TemporalAccessor; 149 …private void assertGoodErrorDate(Function<TemporalAccessor, Object> function, String expectedText)… in assertGoodErrorDate() argument 151 TemporalAccessor temporal = f.parse("2010-06-30"); in assertGoodErrorDate() 164 …private void assertGoodErrorTime(Function<TemporalAccessor, Object> function, String expectedText)… in assertGoodErrorTime() argument 166 TemporalAccessor temporal = f.parse("11:30:56"); in assertGoodErrorTime() 182 TemporalAccessor temporal = f.parse("11:30:56"); in test_parsed_toString_resolvedTime() 190 TemporalAccessor temporal = f.parse("2010-06-30"); in test_parsed_toString_resolvedDate() 198 TemporalAccessor temporal = f.parse("2010-06-30 11:30:56"); in test_parsed_toString_resolvedDateTime()
|
D | TestFractionPrinterParser.java | 72 import java.time.temporal.TemporalAccessor; 249 …TemporalAccessor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(r… in test_reverseParse() 257 …TemporalAccessor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, false).parseUnresolved(… in test_reverseParse_noDecimalPoint() 267 …TemporalAccessor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(r… in test_reverseParse_followedByNonDigit() 285 …TemporalAccessor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved("… in test_reverseParse_preceededByNonDigit() 301 …TemporalAccessor parsed = getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, true).parseUnresolved… in test_reverseParse_seconds() 306 private void assertParsed(TemporalAccessor parsed, TemporalField field, Long value) { in assertParsed() 332 … TemporalAccessor parsed = getFormatter(field, min, max, decimalPoint).parseUnresolved(text, ppos); in test_parse_nothing()
|
D | TestReducedParser.java | 84 import java.time.temporal.TemporalAccessor; 132 TemporalAccessor parsed = getFormatter0(DAY_OF_YEAR, 3, 10).parseUnresolved("456", pos); in test_parse_fieldRangeIgnored() 189 … TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos); in test_parseAllStrict() 203 … TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos); in test_parseAllLenient() 276 …TemporalAccessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(inpu… in test_parseStrict() 291 …TemporalAccessor parsed = getFormatterBaseDate(field, minWidth, maxWidth, baseValue).parseUnresolv… in test_parseStrict_baseDate() 309 …TemporalAccessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(inpu… in test_parseLenient() 324 …TemporalAccessor parsed = getFormatterBaseDate(field, minWidth, maxWidth, baseValue).parseUnresolv… in test_parseLenient_baseDate() 334 private void assertParsed(TemporalAccessor parsed, TemporalField field, Long value) { in assertParsed() 374 TemporalAccessor parsed = dtf.parseUnresolved(input, ppos); in test_parseAdjacent() [all …]
|
D | AbstractTestPrinterParser.java | 71 import java.time.temporal.TemporalAccessor; 86 protected TemporalAccessor dta; 148 protected static final TemporalAccessor EMPTY_DTA = new TemporalAccessor() {
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalField.java | 201 boolean isSupportedBy(TemporalAccessor temporal); in isSupportedBy() 234 ValueRange rangeRefinedBy(TemporalAccessor temporal); in rangeRefinedBy() 263 long getFrom(TemporalAccessor temporal); in getFrom() 374 default TemporalAccessor resolve( in resolve() 376 TemporalAccessor partialTemporal, in resolve()
|
D | TemporalQueries.java | 346 public ZoneId queryFrom(TemporalAccessor temporal) { 361 public Chronology queryFrom(TemporalAccessor temporal) { 377 public TemporalUnit queryFrom(TemporalAccessor temporal) { 393 public ZoneOffset queryFrom(TemporalAccessor temporal) { 411 public ZoneId queryFrom(TemporalAccessor temporal) { 427 public LocalDate queryFrom(TemporalAccessor temporal) { 445 public LocalTime queryFrom(TemporalAccessor temporal) {
|
D | IsoFields.java | 311 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() 316 public ValueRange rangeRefinedBy(TemporalAccessor temporal) { in rangeRefinedBy() 332 public long getFrom(TemporalAccessor temporal) { in getFrom() 351 …Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyl… in resolve() 400 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() 404 public long getFrom(TemporalAccessor temporal) { in getFrom() 411 public ValueRange rangeRefinedBy(TemporalAccessor temporal) { in rangeRefinedBy() 464 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() 468 public ValueRange rangeRefinedBy(TemporalAccessor temporal) { in rangeRefinedBy() 475 public long getFrom(TemporalAccessor temporal) { in getFrom() [all …]
|
D | JulianFields.java | 267 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() 272 public ValueRange rangeRefinedBy(TemporalAccessor temporal) { in rangeRefinedBy() 280 public long getFrom(TemporalAccessor temporal) { in getFrom() 296 …Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyl… in resolve()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | EraTest.java | 32 import java.time.temporal.TemporalAccessor; 81 TemporalAccessor getFromArgument = null; 109 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() 114 public ValueRange rangeRefinedBy(TemporalAccessor temporal) { in rangeRefinedBy() 119 public long getFrom(TemporalAccessor temporal) { in getFrom() 132 public void assertGetFromWasCalledWith(TemporalAccessor temporal) { in assertGetFromWasCalledWith()
|
/libcore/ojluni/src/main/java/java/time/ |
D | DayOfWeek.java | 71 import java.time.temporal.TemporalAccessor; 109 public enum DayOfWeek implements TemporalAccessor, TemporalAdjuster { 187 public static DayOfWeek from(TemporalAccessor temporal) { in from() 285 return TemporalAccessor.super.range(field); in range() 318 return TemporalAccessor.super.get(field); in get() 410 return TemporalAccessor.super.query(query); in query()
|
D | Month.java | 73 import java.time.temporal.TemporalAccessor; 106 public enum Month implements TemporalAccessor, TemporalAdjuster { 211 public static Month from(TemporalAccessor temporal) { in from() 312 return TemporalAccessor.super.range(field); in range() 345 return TemporalAccessor.super.get(field); in get() 569 return TemporalAccessor.super.query(query); in query()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | MockFieldNoValue.java | 67 import java.time.temporal.TemporalAccessor; 106 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() 111 public ValueRange rangeRefinedBy(TemporalAccessor temporal) { in rangeRefinedBy() 116 public long getFrom(TemporalAccessor temporal) { in getFrom()
|
D | TestDateTimeBuilderCombinations.java | 80 import java.time.temporal.TemporalAccessor; 111 TemporalAccessor test = new TemporalAccessor() { in test_derive() 149 TemporalAccessor parsed = dtfb.toFormatter().parse(str); in test_derive() 188 TemporalAccessor test = new TemporalAccessor() { in test_normalized() 203 TemporalAccessor temporal = f.parse(str); in test_normalized()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Era.java | 73 import java.time.temporal.TemporalAccessor; 104 public interface Era extends TemporalAccessor, TemporalAdjuster { 179 return TemporalAccessor.super.range(field); in range() 212 return TemporalAccessor.super.get(field); in get() 272 return TemporalAccessor.super.query(query); in query()
|
D | Chronology.java | 79 import java.time.temporal.TemporalAccessor; 182 static Chronology from(TemporalAccessor temporal) { in from() 452 ChronoLocalDate date(TemporalAccessor temporal); in date() 475 … default ChronoLocalDateTime<? extends ChronoLocalDate> localDateTime(TemporalAccessor temporal) { in localDateTime() 507 … default ChronoZonedDateTime<? extends ChronoLocalDate> zonedDateTime(TemporalAccessor temporal) { in zonedDateTime() 646 TemporalAccessor temporal = new TemporalAccessor() { in getDisplayName() 661 return TemporalAccessor.super.query(query); in getDisplayName()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKPadPrinterParser.java | 70 import java.time.temporal.TemporalAccessor; 132 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseStrict() 173 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseLenient() 188 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--HELLO-", pos); in test_parse_decoratedStartsWithPad() 197 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--2", pos); in test_parse_decoratedStartsWithPad_number() 208 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos); in test_parse_decoratedEmpty_strict() 217 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos); in test_parse_decoratedEmpty_lenient()
|
D | TCKDateTimeParseResolver.java | 121 import java.time.temporal.TemporalAccessor; 159 TemporalAccessor accessor = f.parse(str); in test_resolveOneNoChange() 197 TemporalAccessor accessor = f.parse(str); in test_resolveTwoNoChange() 229 TemporalAccessor accessor = f.parse(str); in test_resolveThreeNoChange() 264 TemporalAccessor accessor = f.parse(str); in test_resolveOneToField() 290 TemporalAccessor accessor = f.parse(str); in test_resolveOneToDate() 315 TemporalAccessor accessor = f.parse(str); in test_resolveOneToTime() 346 TemporalAccessor accessor = f.parse(str); in test_resolveTwoToField() 394 TemporalAccessor accessor = f.parse(str); in test_resolveTwoToDate() 481 TemporalAccessor accessor = f.parse(str); in test_resolveTwoToTime() [all …]
|
D | TCKChronoPrinterParser.java | 70 import java.time.temporal.TemporalAccessor; 123 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseValid_caseSensitive() 132 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseSensitive_lowercaseRejected() 141 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseInsensitive() 161 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseInvalid()
|
D | TCKDateTimeFormatter.java | 99 import java.time.temporal.TemporalAccessor; 228 TemporalAccessor parsed = f.parse("2012"); in test_resolverFields_emptyList() 236 TemporalAccessor parsed = f.parse("2012"); in test_resolverFields_listOfOneMatching() 244 TemporalAccessor parsed = f.parse("2012"); in test_resolverFields_listOfOneNotMatching() 253 TemporalAccessor parsed = f.parse("2012"); in test_resolverFields_listOfOneNull() 355 …Zone_withChronology(Chronology overrideChrono, ZoneId overrideZone, TemporalAccessor temporal, Str… in test_format_withZone_withChronology() 379 TemporalAccessor temporal = new TemporalAccessor() { in test_format_withChronology_nonChronoFieldMapLink() 417 test.format((TemporalAccessor) null); in test_format_TemporalAccessor_null() 440 test.formatTo((TemporalAccessor) null, buf); in test_print_TemporalAppendable_nullTemporal() 455 TemporalAccessor result = test.parse("ONE30"); in test_parse_CharSequence() [all …]
|
D | TCKLocalizedFieldParser.java | 70 import java.time.temporal.TemporalAccessor; 129 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textField() 161 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textLocalDate() 198 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_WeekBasedYear() 228 TemporalAccessor parsed = df.parseUnresolved(text, ppos); in test_adjacentValuePatterns1() 251 TemporalAccessor parsed = df.parseUnresolved(text, ppos); in test_adjacentValuePatterns2() 264 TemporalAccessor parsed = df.parseUnresolved(text, ppos); in test_adjacentValuePatterns3()
|
D | TCKDateTimeFormatters.java | 95 import java.time.temporal.TemporalAccessor; 121 DateTimeFormatter.ISO_DATE.format((TemporalAccessor) null); in test_format_nullTemporalAccessor() 229 … TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId); in test_print_isoLocalDate() 323 … TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId); in test_print_isoOffsetDate() 381 … TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId); in test_print_isoDate() 453 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoLocalTime() 523 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoOffsetTime() 593 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoTime() 674 … TemporalAccessor test = buildAccessor(year, month, day, hour, min, sec, nano, offsetId, zoneId); in test_print_isoLocalDateTime() 753 … TemporalAccessor test = buildAccessor(year, month, day, hour, min, sec, nano, offsetId, zoneId); in test_print_isoOffsetDateTime() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 76 import java.time.temporal.TemporalAccessor; 101 private TemporalAccessor temporal; 117 DateTimePrintContext(TemporalAccessor temporal, DateTimeFormatter formatter) { in DateTimePrintContext() 123 …private static TemporalAccessor adjust(final TemporalAccessor temporal, DateTimeFormatter formatte… in adjust() 185 return new TemporalAccessor() { in adjust() 237 TemporalAccessor getTemporal() {
|