/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | MessageFormatTest.java | 59 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 …]
|
D | ChoiceFormatTest.java | 190 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()
|
D | NumberFormatTest.java | 130 "#,##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()
|
D | DateFormatTest.java | 211 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()
|
D | SimpleDateFormatTest.java | 60 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()
|
D | DecimalFormatTest.java | 893 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/ |
D | OldNumberFormatTest.java | 33 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()
|
D | NumberFormatTest.java | 73 String patternNI = ((DecimalFormat) numberFormat).toPattern(); in test_getIntegerInstance_ar() 76 String patternII = ((DecimalFormat) integerFormat).toPattern(); in test_getIntegerInstance_ar()
|
D | OldDateFormatTest.java | 357 String formatPattern = ((SimpleDateFormat) format).toPattern(); in test_parseLString()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | LocaleData.java | 395 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/ |
D | DefaultProxySelector.java | 283 nprop.pattern = toPattern(nphosts); in select() 383 static Pattern toPattern(String mask) { in toPattern() method in DefaultProxySelector
|
/libcore/ojluni/src/main/java/java/text/ |
D | MessageFormat.java | 522 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()
|
D | ChoiceFormat.java | 262 public String toPattern() { in toPattern() method in ChoiceFormat
|
D | DecimalFormat.java | 3181 public String toPattern() { in toPattern() method in DecimalFormat 3184 return icuDecimalFormat.toPattern(); in toPattern()
|
D | SimpleDateFormat.java | 2806 public String toPattern() { in toPattern() method 2983 String numberPattern = ((DecimalFormat)numberFormat).toPattern(); in checkNegativeNumberExpression()
|