Searched refs:getDateInstance (Results 1 – 10 of 10) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DateFormatTest.java | 75 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getDateInstance(); in test_getDateInstance() 77 assertTrue("Wrong default", f2.equals(DateFormat.getDateInstance( in test_getDateInstance() 92 .getDateInstance(DateFormat.SHORT); in test_getDateInstanceI() 94 assertTrue("Wrong default1", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() 101 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.MEDIUM); in test_getDateInstanceI() 103 assertTrue("Wrong default2", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() 110 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.LONG); in test_getDateInstanceI() 112 assertTrue("Wrong default3", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() 119 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.FULL); in test_getDateInstanceI() 121 assertTrue("Wrong default4", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() [all …]
|
D | MessageFormatTest.java | 142 f1.setFormat(-1, DateFormat.getDateInstance()); in test_setFormatILjava_text_Format() 147 f1.setFormat(f1.getFormats().length, DateFormat.getDateInstance()); in test_setFormatILjava_text_Format() 312 assertEquals(format.getFormats()[0], DateFormat.getDateInstance(DateFormat.DEFAULT, mk)); in test_ConstructorLjava_lang_StringLjava_util_Locale() 328 .getDateInstance())); in test_ConstructorLjava_lang_String() 345 buffer.append(DateFormat.getDateInstance().format(date)); in test_ConstructorLjava_lang_String() 438 .equals(DateFormat.getDateInstance())); in test_applyPatternLjava_lang_String() 442 .equals(DateFormat.getDateInstance(DateFormat.SHORT))); in test_applyPatternLjava_lang_String() 447 .equals(DateFormat.getDateInstance(DateFormat.MEDIUM))); in test_applyPatternLjava_lang_String() 452 .equals(DateFormat.getDateInstance(DateFormat.LONG))); in test_applyPatternLjava_lang_String() 457 .equals(DateFormat.getDateInstance(DateFormat.FULL))); in test_applyPatternLjava_lang_String() [all …]
|
D | Support_SimpleDateFormat.java | 54 …SimpleDateFormat format = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.DEFAULT, Locale… in t_format_with_FieldPosition() 138 …SimpleDateFormat format = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.DEFAULT, Locale… in t_formatToCharacterIterator()
|
/libcore/ojluni/src/main/java/java/text/spi/ |
D | DateFormatProvider.java | 86 public abstract DateFormat getDateInstance(int style, Locale locale); in getDateInstance() method in DateFormatProvider
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 481 public final static DateFormat getDateInstance() in getDateInstance() method in DateFormat 493 public final static DateFormat getDateInstance(int style) in getDateInstance() method in DateFormat 506 public final static DateFormat getDateInstance(int style, in getDateInstance() method in DateFormat 1031 return dateFormatProvider.getDateInstance(dateStyle, locale); in getObject()
|
D | MessageFormat.java | 554 DateFormat df = DateFormat.getDateInstance(DATE_TIME_MODIFIERS[index], in toPattern() 1491 newFormat = DateFormat.getDateInstance(DATE_TIME_MODIFIERS[mod], in makeFormat()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldDateFormatTest.java | 157 .hashCode() != DateFormat.getDateInstance().hashCode()); in test_hashCode() 256 format = DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.US); in test_parseLString() 284 format = DateFormat.getDateInstance(DateFormat.LONG, Locale.US); in test_parseLString() 298 format = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.US); in test_parseLString()
|
D | SimpleDateFormatTest.java | 393 SimpleDateFormat.getDateInstance(DateFormat.SHORT, null); in test_nullLocales() 410 DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, new Locale("sl")); in test_sl_dates()
|
/libcore/ojluni/src/main/java/sun/net/ftp/ |
D | FtpDirEntry.java | 329 … + user + " / " + group + ") {" + size + "} " + java.text.DateFormat.getDateInstance().format(last… in toString()
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | FtpClient.java | 110 private DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, java.util.Locale.US);
|