/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestFractionPrinterParser.java | 84 …private DateTimeFormatter getFormatter(TemporalField field, int minWidth, int maxWidth, boolean de… in getFormatter() argument 85 …return builder.appendFraction(field, minWidth, maxWidth, decimalPoint).toFormatter(locale).withDec… in getFormatter() 180 …public void test_print_nanos(int minWidth, int maxWidth, int value, String result) throws Exceptio… in test_print_nanos() argument 181 …getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).formatTo(new MockFieldValue(NANO_OF_SECOND… in test_print_nanos() 189 …public void test_print_nanos_noDecimalPoint(int minWidth, int maxWidth, int value, String result) … in test_print_nanos_noDecimalPoint() argument 190 …getFormatter(NANO_OF_SECOND, minWidth, maxWidth, false).formatTo(new MockFieldValue(NANO_OF_SECON… in test_print_nanos_noDecimalPoint() 222 …public void test_print_seconds(int minWidth, int maxWidth, int value, String result) throws Except… in test_print_seconds() argument 223 …getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, true).formatTo(new MockFieldValue(SECOND_OF_MIN… in test_print_seconds() 231 …public void test_print_seconds_noDecimalPoint(int minWidth, int maxWidth, int value, String result… in test_print_seconds_noDecimalPoint() argument 232 …getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, false).formatTo(new MockFieldValue(SECOND_OF_MI… in test_print_seconds_noDecimalPoint() [all …]
|
D | TestReducedPrinter.java | 87 …private DateTimeFormatter getFormatter0(TemporalField field, int minWidth, int maxWidth, int baseV… in getFormatter0() argument 88 …return builder.appendValueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDe… in getFormatter0() 91 …private DateTimeFormatter getFormatterBaseDate(TemporalField field, int minWidth, int maxWidth, in… in getFormatterBaseDate() argument 92 …return builder.appendValueReduced(field, minWidth, maxWidth, LocalDate.of(baseValue, 1, 1)).toForm… in getFormatterBaseDate() 179 …public void test_pivot(int minWidth, int maxWidth, int baseValue, int value, String result) throws… in test_pivot() argument 181 … getFormatter0(YEAR, minWidth, maxWidth, baseValue).formatTo(new MockFieldValue(YEAR, value), buf); in test_pivot() 196 …public void test_pivot_baseDate(int minWidth, int maxWidth, int baseValue, int value, String resul… in test_pivot_baseDate() argument 198 …getFormatterBaseDate(YEAR, minWidth, maxWidth, baseValue).formatTo(new MockFieldValue(YEAR, value)… in test_pivot_baseDate()
|
D | TestReducedParser.java | 103 …private DateTimeFormatter getFormatter0(TemporalField field, int minWidth, int maxWidth, int baseV… in getFormatter0() argument 104 …return builder.appendValueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDe… in getFormatter0() 107 …private DateTimeFormatter getFormatterBaseDate(TemporalField field, int minWidth, int maxWidth, in… in getFormatterBaseDate() argument 108 …return builder.appendValueReduced(field, minWidth, maxWidth, LocalDate.of(baseValue, 1, 1)).toForm… in getFormatterBaseDate() 272 …public void test_parseStrict(TemporalField field, int minWidth, int maxWidth, int baseValue, Strin… in test_parseStrict() argument 276 …TemporalAccessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(inpu… in test_parseStrict() 287 …public void test_parseStrict_baseDate(TemporalField field, int minWidth, int maxWidth, int baseVal… in test_parseStrict_baseDate() argument 291 …TemporalAccessor parsed = getFormatterBaseDate(field, minWidth, maxWidth, baseValue).parseUnresolv… in test_parseStrict_baseDate() 305 …public void test_parseLenient(TemporalField field, int minWidth, int maxWidth, int baseValue, Stri… in test_parseLenient() argument 309 …TemporalAccessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(inpu… in test_parseLenient() [all …]
|
D | AbstractTestPrinterParser.java | 136 …protected DateTimeFormatter getFormatter(TemporalField field, int minWidth, int maxWidth, SignStyl… in getFormatter() argument 137 …return builder.appendValue(field, minWidth, maxWidth, signStyle).toFormatter(locale).withDecimalSt… in getFormatter()
|
D | TestNumberParser.java | 167 …public void test_parse_fresh(int minWidth, int maxWidth, SignStyle signStyle, int subsequentWidth,… in test_parse_fresh() argument 169 DateTimeFormatter dtf = getFormatter(DAY_OF_MONTH, minWidth, maxWidth, signStyle); in test_parse_fresh() 187 …public void test_parse_textField(int minWidth, int maxWidth, SignStyle signStyle, int subsequentWi… in test_parse_textField() argument 189 DateTimeFormatter dtf = getFormatter(DAY_OF_WEEK, minWidth, maxWidth, signStyle); in test_parse_textField()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 498 TemporalField field, int minWidth, int maxWidth, SignStyle signStyle) { in appendValue() argument 499 if (minWidth == maxWidth && signStyle == SignStyle.NOT_NEGATIVE) { in appendValue() 500 return appendValue(field, maxWidth); in appendValue() 507 if (maxWidth < 1 || maxWidth > 19) { in appendValue() 508 …w IllegalArgumentException("The maximum width must be from 1 to 19 inclusive but was " + maxWidth); in appendValue() 510 if (maxWidth < minWidth) { in appendValue() 512 maxWidth + " < " + minWidth); in appendValue() 514 NumberPrinterParser pp = new NumberPrinterParser(field, minWidth, maxWidth, signStyle); in appendValue() 559 int width, int maxWidth, int baseValue) { in appendValueReduced() argument 561 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, baseValue, null); in appendValueReduced() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | R.java | 1889 public static final int maxWidth = 0; field in R
|