Home
last modified time | relevance | path

Searched refs:getDateInstance (Results 1 – 15 of 15) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDateFormatTest.java81 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getDateInstance(); in test_getDateInstance()
83 assertTrue("Wrong default", f2.equals(DateFormat.getDateInstance( in test_getDateInstance()
98 .getDateInstance(DateFormat.SHORT); in test_getDateInstanceI()
100 assertTrue("Wrong default1", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI()
107 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.MEDIUM); in test_getDateInstanceI()
109 assertTrue("Wrong default2", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI()
116 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.LONG); in test_getDateInstanceI()
118 assertTrue("Wrong default3", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI()
125 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.FULL); in test_getDateInstanceI()
127 assertTrue("Wrong default4", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI()
[all …]
DMessageFormatTest.java142 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 …]
DSupport_SimpleDateFormat.java54 …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/luni/src/test/java/libcore/highmemorytest/java/text/
DDateFormatTest.java61 assertNonEmpty(DateFormat.getDateInstance(formatStyle, locale).format(TEST_DATE)); in test_format_allLocales()
80 assertSupportedSymbols(DateFormat.getDateInstance(formatStyle, locale), locale); in test_toPattern_allLocales()
/libcore/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java89 public static final java.text.DateFormat getDateInstance() { in getDateInstance() method in DateFormat
93 public static final java.text.DateFormat getDateInstance(int style) { in getDateInstance() method in DateFormat
97 public static final java.text.DateFormat getDateInstance(int style, java.util.Locale aLocale) { in getDateInstance() method in DateFormat
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java72 public static final java.text.DateFormat getDateInstance() { throw new RuntimeException("Stub!"); } in getDateInstance() method in DateFormat
74 public static final java.text.DateFormat getDateInstance(int style) { throw new RuntimeException("S… in getDateInstance() method in DateFormat
76 public static final java.text.DateFormat getDateInstance(int style, java.util.Locale aLocale) { thr… in getDateInstance() method in DateFormat
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java500 public final static DateFormat getDateInstance() in getDateInstance() method in DateFormat
517 public final static DateFormat getDateInstance(int style) in getDateInstance() method in DateFormat
530 public final static DateFormat getDateInstance(int style, in getDateInstance() method in DateFormat
DMessageFormat.java554 DateFormat df = DateFormat.getDateInstance(DATE_TIME_MODIFIERS[index], in toPattern()
1503 newFormat = DateFormat.getDateInstance(DATE_TIME_MODIFIERS[mod], in makeFormat()
/libcore/ojluni/annotations/sdk/nullability/java/text/
DDateFormat.annotated.java72 @libcore.util.NonNull public static final java.text.DateFormat getDateInstance() { throw new Runtim… in getDateInstance() method in DateFormat
74 @libcore.util.NonNull public static final java.text.DateFormat getDateInstance(int style) { throw n… in getDateInstance() method in DateFormat
76 @libcore.util.NonNull public static final java.text.DateFormat getDateInstance(int style, @libcore.… in getDateInstance() method in DateFormat
/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java157 .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()
DSimpleDateFormatTest.java445 SimpleDateFormat.getDateInstance(DateFormat.SHORT, null); in test_nullLocales()
462 DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, new Locale("sl")); in test_sl_dates()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java145 DateFormat old = DateFormat.getDateInstance(dateStyleOld, locale); in test_date_print()
157 DateFormat old = DateFormat.getDateInstance(dateStyleOld, locale); in test_date_parse()
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpDirEntry.java329 … + user + " / " + group + ") {" + size + "} " + java.text.DateFormat.getDateInstance().format(last… in toString()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java109 private DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, java.util.Locale.US);
/libcore/api/
Dcurrent.txt10226 method @NonNull public static final java.text.DateFormat getDateInstance();
10227 method @NonNull public static final java.text.DateFormat getDateInstance(int);
10228 …method @NonNull public static final java.text.DateFormat getDateInstance(int, @NonNull java.util.L…