Home
last modified time | relevance | path

Searched refs:toPattern (Results 1 – 15 of 15) 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()
401 assertEquals("Found formats", "nothing", format.toPattern()); in test_applyPatternLjava_lang_String()
405 assertEquals("Wrong pattern", "{0}", format.toPattern()); in test_applyPatternLjava_lang_String()
410 assertEquals("Wrong time pattern", "{0,time}", format.toPattern()); in test_applyPatternLjava_lang_String()
415 "{0,time,short}", format.toPattern()); in test_applyPatternLjava_lang_String()
420 "{0,time}", format.toPattern()); in test_applyPatternLjava_lang_String()
425 "{0,time,long}", format.toPattern()); in test_applyPatternLjava_lang_String()
433 "{0,time,full}", format.toPattern()); in test_applyPatternLjava_lang_String()
[all …]
DChoiceFormatTest.java190 String ptrn = f.toPattern(); in test_applyPatternLjava_lang_String()
374 assertEquals("", cf.toPattern()); in test_toPattern()
378 cf.toPattern()); in test_toPattern()
381 String ptrn = mf.toPattern(); in test_toPattern()
385 String pattern = f1.toPattern(); in test_toPattern()
395 ptrn = cf.toPattern(); in test_toPattern()
438 fmt.toPattern()); in testToPatternWithInfinities()
DNumberFormatTest.java130 "#,##0", format.toPattern()); in test_getIntegerInstance()
157 "#,##0", format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
177 String variant = (format.toPattern().indexOf(';') > 0) ? "#,##0;-#,##0" : "#,##0"; in test_getIntegerInstanceLjava_util_Locale()
180 variant, format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
DDateFormatTest.java211 assertEquals(f2.toPattern(), date.toPattern() + " " + time.toPattern()); in testDateTime()
258 assertTrue("Wrong default", f2.toPattern().equals( in testDateTimeLocale()
259 date.toPattern() + " " + time.toPattern())); in testDateTimeLocale()
DSimpleDateFormatTest.java60 assertEquals("Wrong pattern", "yyyy", f2.toPattern()); in test_ConstructorLjava_lang_String()
89 assertEquals("Wrong pattern", "y'y'yy", f2.toPattern()); in test_ConstructorLjava_lang_StringLjava_text_DateFormatSymbols()
111 assertEquals("Wrong pattern", "'yyyy' MM yy", f2.toPattern()); in test_ConstructorLjava_lang_StringLjava_util_Locale()
132 assertEquals(pattern, f2.toPattern()); in test_applyLocalizedPatternLjava_lang_String()
160 assertEquals("Wrong pattern", "GyMdkHmsSEDFwWahKz", f2.toPattern()); in test_applyPatternLjava_lang_String()
877 assertEquals("Wrong pattern: " + pattern, pattern, f.toPattern()); in test_toPattern()
881 assertTrue("Wrong pattern: " + pattern, f.toPattern().equals(pattern)); in test_toPattern()
885 pattern = f.toPattern(); in test_toPattern()
886 assertTrue("Wrong pattern: " + pattern, f.toPattern().equals(pattern)); in test_toPattern()
891 assertEquals(f2.toPattern(), f2.toLocalizedPattern()); in test_toLocalizedPattern()
DDecimalFormatTest.java893 assertEquals("Wrong pattern 1", "0.#", format.toPattern()); in test_applyPattern()
895 assertEquals("Wrong pattern 2", "0.", format.toPattern()); in test_applyPattern()
897 assertEquals("Wrong pattern 3", "0", format.toPattern()); in test_applyPattern()
899 assertEquals("Wrong pattern 4", "#.0", format.toPattern()); in test_applyPattern()
955 String result = decFormat.toPattern(); in test_applyPattern_icu2GroupingSizes()
993 assertEquals("Wrong pattern 1", "0.#", format.toPattern()); in test_toPattern()
995 assertEquals("Wrong pattern 2", "0.", format.toPattern()); in test_toPattern()
997 assertEquals("Wrong pattern 3", "0", format.toPattern()); in test_toPattern()
999 assertEquals("Wrong pattern 4", "#.0", format.toPattern()); in test_toPattern()
2588 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 String variant = (format.toPattern().indexOf(';') > 0) ? "#,##0;-#,##0" : "#,##0"; in test_getIntegerInstanceLjava_util_Locale()
53 assertEquals(variant, format.toPattern()); in test_getIntegerInstanceLjava_util_Locale()
346 "#,##0.###", ((DecimalFormat) format).toPattern()); in test_getInstance()
361 assertEquals("#,##0.###", ((DecimalFormat) format).toPattern()); in test_getInstanceLjava_util_Locale()
384 "#,##0.###", ((DecimalFormat) format).toPattern()); in test_getNumberInstance()
398 assertEquals("#,##0.###", ((DecimalFormat) format).toPattern()); in test_getNumberInstanceLjava_util_Locale()
421 "#,##0%", ((DecimalFormat) format).toPattern()); in test_getPercentInstance()
436 assertEquals("#,##0\u00a0%", ((DecimalFormat) format).toPattern()); in test_getPercentInstanceLjava_util_Locale()
DNumberFormatTest.java73 String patternNI = ((DecimalFormat) numberFormat).toPattern(); in test_getIntegerInstance_ar()
76 String patternII = ((DecimalFormat) integerFormat).toPattern(); in test_getIntegerInstance_ar()
DOldDateFormatTest.java357 String formatPattern = ((SimpleDateFormat) format).toPattern(); in test_parseLString()
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java395 numberPattern = df.toPattern(); in initializeDecimalFormatData()
398 currencyPattern = df.toPattern(); in initializeDecimalFormatData()
401 percentPattern = df.toPattern(); in initializeDecimalFormatData()
/libcore/ojluni/src/main/java/sun/net/spi/
DDefaultProxySelector.java283 nprop.pattern = toPattern(nphosts); in select()
383 static Pattern toPattern(String mask) { in toPattern() method in DefaultProxySelector
/libcore/ojluni/src/main/java/java/text/
DMessageFormat.java522 public String toPattern() { in toPattern() method in MessageFormat
544 result.append(",number,").append(((DecimalFormat)fmt).toPattern()); in toPattern()
546 result.append(",choice,").append(((ChoiceFormat)fmt).toPattern()); in toPattern()
569 result.append(",date,").append(((SimpleDateFormat)fmt).toPattern()); in toPattern()
DChoiceFormat.java262 public String toPattern() { in toPattern() method in ChoiceFormat
DDecimalFormat.java3181 public String toPattern() { in toPattern() method in DecimalFormat
3184 return icuDecimalFormat.toPattern(); in toPattern()
DSimpleDateFormat.java2806 public String toPattern() { in toPattern() method
2983 String numberPattern = ((DecimalFormat)numberFormat).toPattern(); in checkNegativeNumberExpression()