Home
last modified time | relevance | path

Searched refs:formatted (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/test/java/text/Format/NumberFormat/
DBigDecimalFormat.java100 StringBuffer formatted = new StringBuffer(1000); field in BigDecimalFormat
115 formatted.setLength(0); in test_Format_in_NumberFormat_BigDecimal()
117 nf.format(new BigDecimal(from), formatted, new FieldPosition(0)); in test_Format_in_NumberFormat_BigDecimal()
118 checkFormat(from, formatted, from, ((DecimalFormat)nf).getMultiplier()); in test_Format_in_NumberFormat_BigDecimal()
126 formatted.setLength(0); in test_Format_in_NumberFormat_BigDecimal()
128 nf.format(new BigDecimal(from), formatted, fp); in test_Format_in_NumberFormat_BigDecimal()
129 checkFormat(from, formatted, from, ((DecimalFormat)nf).getMultiplier()); in test_Format_in_NumberFormat_BigDecimal()
138 formatted.setLength(0); in test_Format_in_NumberFormat_BigDecimal()
141 nf.format(new BigDecimal(from), formatted, fp); in test_Format_in_NumberFormat_BigDecimal()
142 checkFormat(from, formatted, to, ((DecimalFormat)nf).getMultiplier()); in test_Format_in_NumberFormat_BigDecimal()
[all …]
/libcore/ojluni/src/main/java/java/net/
DInetSocketAddress.java106 String formatted; in toString() local
109 formatted = hostname + "/<unresolved>"; in toString()
111 formatted = addr.toString(); in toString()
113 int i = formatted.lastIndexOf("/"); in toString()
114 formatted = formatted.substring(0, i + 1) in toString()
115 + "[" + formatted.substring(i + 1) + "]"; in toString()
118 return formatted + ":" + port; in toString()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestUnicodeExtension.java860 String formatted = dtf.format(ZDT); in test_localizedBy()
861 assertEquals(formatted, formatExpected); in test_localizedBy()
862 assertEquals(dtf.parse(formatted, ZonedDateTime::from), in test_localizedBy()
883 String formatted = dtf.format(ZDT); in test_withLocale() local
885 assertEquals(formatted, formatExpected, locale.toString()); in test_withLocale()
886 assertEquals(dtf.parse(formatted, ZonedDateTime::from), in test_withLocale()
910 String formatted = dtf.format(ZDT); in test_ofPattern() local
911 assertEquals(formatted, formatExpected); in test_ofPattern()
912 assertEquals(dtf.parse(formatted, ZonedDateTime::from), in test_ofPattern()
924 String formatted = dtf.format(ZDT); in test_toFormatter() local
[all …]
/libcore/ojluni/src/main/java/java/text/
DDontCareFieldPosition.java38 public void formatted(Format.Field attr, Object value, int start,
41 public void formatted(int fieldID, Format.Field attr, Object value,
DCharacterIteratorFieldDelegate.java56 public void formatted(Format.Field attr, Object value, int start, int end, in formatted() method in CharacterIteratorFieldDelegate
95 public void formatted(int fieldID, Format.Field attr, Object value, in formatted() method in CharacterIteratorFieldDelegate
97 formatted(attr, value, start, end, buffer); in formatted()
DFormat.java393 public void formatted(Format.Field attr, Object value, int start, in formatted() method
407 public void formatted(int fieldID, Format.Field attr, Object value, in formatted() method
DFieldPosition.java296 public void formatted(Format.Field attr, Object value, int start, in formatted() method in FieldPosition.Delegate
305 public void formatted(int fieldID, Format.Field attr, Object value, in formatted() method in FieldPosition.Delegate
DSimpleDateFormat.java1605 delegate.formatted(fieldID, f, f, beginOffset, buffer.length(), buffer); in subFormat()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java152 String formatted = f.format(date); in test_date_print() local
153 assertEquals(formatted, text); in test_date_print()
205 String formatted = f.format(time); in test_time_print() local
208 formatted = formatted.replace('\u202f', ' '); in test_time_print()
210 assertEquals(formatted, text); in test_time_print()
/libcore/ojluni/src/test/java/lang/String/
DFormatted.java44 "Test this %s".formatted("and that"), in testFormatted()
/libcore/luni/src/test/java/libcore/java/text/
DDateFormatTest.java116 String formatted = df.format(new Date(1672610148000L)); in assertFormat_forBug266731719() local
117 assertEquals("Jan 1, 2023 9:55:48 PM", formatted); in assertFormat_forBug266731719()
DSimpleDateFormatTest.java415 String formatted = sdf.format(d); in testParseArabic() local
416 assertEquals("٢٠١٢-٠٨-٢٩ ١٠:٠٢:٤٥", formatted); in testParseArabic()
420 Date d2 = sdf.parse(formatted); in testParseArabic()
/libcore/ojluni/src/test/java/util/Random/
DRandomExponentialTest.java59 .formatted(errCount, SAMPLES, errSample)); in main()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DChoiceFormatTest.java444 String formatted = format.format(0); in testEscapedPatternWithConsecutiveQuotes() local
445 assertEquals("12'3'4''.", formatted); in testEscapedPatternWithConsecutiveQuotes()
448 formatted = format.format(0); in testEscapedPatternWithConsecutiveQuotes()
449 assertEquals("12'3''4''.", formatted); in testEscapedPatternWithConsecutiveQuotes()
/libcore/ojluni/src/test/java/text/Format/MessageFormat/
DMessageRegression.java439 String formatted = prefix + "YES"; in Test4118592() local
442 Object[] objs = mf.parse(formatted, new ParsePosition(0)); in Test4118592()
444 log(" \"" + formatted + "\" parsed as "); in Test4118592()
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jar ... (java.lang.String) String message String formatted public static void failNotSame (java.lang.String ...
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DString.annotated.java202 @libcore.util.NonNull public java.lang.String formatted(java.lang.@libcore.util.Nullable Object @li… in formatted() method in String
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java570 … throw new DateTimeException("Conflict found: Resolved time %02d:%02d".formatted(hod, mohVal) + in resolveTimeLenient()
DDateTimeFormatterBuilder.java5477 return "DayPeriod(%02d:%02d".formatted(from / 60, from % 60) + in toString()
5478 (from == to ? ")" : "-%02d:%02d)".formatted(to / 60, to % 60)); in toString()
/libcore/ojluni/src/main/java/java/lang/
DString.java4088 public String formatted(Object... args) {
/libcore/api/
Dcurrent.txt4136 method @NonNull public String formatted(@NonNull java.lang.Object...);