Home
last modified time | relevance | path

Searched refs:toPattern (Results 1 – 17 of 17) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java59 assertTrue("Not equal: " + format.toPattern(), format.equals(read)); in checkSerialization()
61 fail("Format: " + format.toPattern() in checkSerialization()
64 fail("Format: " + format.toPattern() in checkSerialization()
398 assertEquals("Found formats", "nothing", format.toPattern()); in test_applyPatternLjava_lang_String()
402 assertEquals("Wrong pattern", "{0}", format.toPattern()); in test_applyPatternLjava_lang_String()
407 assertEquals("Wrong time pattern", "{0,time}", format.toPattern()); in test_applyPatternLjava_lang_String()
412 "{0,time,short}", format.toPattern()); in test_applyPatternLjava_lang_String()
417 "{0,time}", format.toPattern()); in test_applyPatternLjava_lang_String()
422 "{0,time,long}", format.toPattern()); in test_applyPatternLjava_lang_String()
430 "{0,time,full}", format.toPattern()); in test_applyPatternLjava_lang_String()
[all …]
DChoiceFormatTest.java188 String ptrn = f.toPattern(); in test_applyPatternLjava_lang_String()
411 assertEquals("", cf.toPattern()); in test_toPattern()
415 cf.toPattern()); in test_toPattern()
418 String ptrn = mf.toPattern(); in test_toPattern()
422 String pattern = f1.toPattern(); in test_toPattern()
432 ptrn = cf.toPattern(); in test_toPattern()
DNumberFormatTest.java130 "#,##0", format.toPattern()); in test_getIntegerInstance()
157 "#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
177 "#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
DDateFormatTest.java206 assertTrue("Wrong default", f2.toPattern().equals( in testDateTime()
207 date.toPattern() + " " + time.toPattern())); in testDateTime()
255 assertTrue("Wrong default", f2.toPattern().equals( in testDateTimeLocale()
256 date.toPattern() + " " + time.toPattern())); in testDateTimeLocale()
DSimpleDateFormatTest.java66 assertEquals("Wrong pattern", "yyyy", f2.toPattern()); in test_ConstructorLjava_lang_String()
95 assertEquals("Wrong pattern", "y'y'yy", f2.toPattern()); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
117 assertEquals("Wrong pattern", "'yyyy' MM yy", f2.toPattern()); in test_ConstructorLjava_lang_StringLjava_util_Locale()
138 assertEquals(pattern, f2.toPattern()); in test_applyLocalizedPatternLjava_lang_String()
166 assertEquals("Wrong pattern", "GyMdkHmsSEDFwWahKz", f2.toPattern()); in test_applyPatternLjava_lang_String()
771 assertEquals("Wrong pattern: " + pattern, pattern, f.toPattern()); in test_toPattern()
775 assertTrue("Wrong pattern: " + pattern, f.toPattern().equals(pattern)); in test_toPattern()
779 pattern = f.toPattern(); in test_toPattern()
780 assertTrue("Wrong pattern: " + pattern, f.toPattern().equals(pattern)); in test_toPattern()
785 assertEquals(f2.toPattern(), f2.toLocalizedPattern()); in test_toLocalizedPattern()
DDecimalFormatTest.java872 assertEquals("Wrong pattern 1", "#0.#", format.toPattern()); in test_applyPattern()
874 assertEquals("Wrong pattern 2", "#0.", format.toPattern()); in test_applyPattern()
876 assertEquals("Wrong pattern 3", "#", format.toPattern()); in test_applyPattern()
878 assertEquals("Wrong pattern 4", "#.0", format.toPattern()); in test_applyPattern()
931 String result = decFormat.toPattern(); in test_applyPattern_icu2GroupingSizes()
969 assertEquals("Wrong pattern 1", "#0.#", format.toPattern()); in test_toPattern()
971 assertEquals("Wrong pattern 2", "#0.", format.toPattern()); in test_toPattern()
973 assertEquals("Wrong pattern 3", "#", format.toPattern()); in test_toPattern()
975 assertEquals("Wrong pattern 4", "#.0", format.toPattern()); in test_toPattern()
2564 Assert.assertEquals(format.toPattern() + ": " + value, expected, in format()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldNumberFormatTest.java33 assertEquals("#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
43 assertEquals("#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
52 assertEquals("#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
342 "#,##0.###", ((DecimalFormat) format).toPattern()); in test_getInstance()
357 assertEquals("#,##0.###", ((DecimalFormat) format).toPattern()); in test_getInstanceLjava_util_Locale()
380 "#,##0.###", ((DecimalFormat) format).toPattern()); in test_getNumberInstance()
394 assertEquals("#,##0.###", ((DecimalFormat) format).toPattern()); in test_getNumberInstanceLjava_util_Locale()
417 "#,##0%", ((DecimalFormat) format).toPattern()); in test_getPercentInstance()
432 assertEquals("#,##0\u00a0%", ((DecimalFormat) format).toPattern()); in test_getPercentInstanceLjava_util_Locale()
DNumberFormatTest.java70 assertEquals("#,##0.###", ((DecimalFormat) numberFormat).toPattern()); in test_getIntegerInstance_ar()
72 assertEquals("#,##0", ((DecimalFormat) integerFormat).toPattern()); in test_getIntegerInstance_ar()
DOldDateFormatTest.java351 String formatPattern = ((SimpleDateFormat) format).toPattern(); in test_parseLString()
/libcore/luni/src/main/java/java/text/
DMessageFormat.java1077 .toPattern(), new DecimalFormatSymbols(locale)); in setLocale()
1084 .toPattern(), locale); in setLocale()
1104 return ((DecimalFormat) format).toPattern(); in decodeDecimalFormat()
1135 return ((SimpleDateFormat) format).toPattern(); in decodeSimpleDateFormat()
1145 public String toPattern() { in toPattern() method in MessageFormat
1155 pattern = ((ChoiceFormat) format).toPattern(); in toPattern()
DDecimalFormat.java1065 public String toPattern() { in toPattern() method in DecimalFormat
1066 return ndf.toPattern(); in toPattern()
DChoiceFormat.java450 public String toPattern() { in toPattern() method in ChoiceFormat
DSimpleDateFormat.java1334 public String toPattern() { in toPattern() method
/libcore/luni/src/main/java/libcore/icu/
DNativeDecimalFormat.java232 return obj.toPattern().equals(this.toPattern()) && in equals()
248 return getClass().getName() + "[\"" + toPattern() + "\"" + in toString()
391 public String toPattern() { in toPattern() method in NativeDecimalFormat
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp390 pattern = fmt->toPattern(pattern.remove()); in setNumberPatterns()
394 pattern = fmt->toPattern(pattern.remove()); in setNumberPatterns()
398 pattern = fmt->toPattern(pattern.remove()); in setNumberPatterns()
Dlibcore_icu_NativeDecimalFormat.cpp219 fmt->toPattern(pattern); in NativeDecimalFormat_toPatternImpl()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest3.java1349 assertTrue(MSG_TEST_FAILED + objToSave, MESSAGE.toPattern().equals( in test_18_116_writeObject()
1350 ((java.text.MessageFormat) objLoaded).toPattern())); in test_18_116_writeObject()