Home
last modified time | relevance | path

Searched refs:getTimeInstance (Results 1 – 9 of 9) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java116 f1.setFormat(0, DateFormat.getTimeInstance()); in test_setFormatILjava_text_Format()
117 f1.setFormat(1, DateFormat.getTimeInstance()); in test_setFormatILjava_text_Format()
121 f1.setFormat(5, DateFormat.getTimeInstance()); in test_setFormatILjava_text_Format()
127 DateFormat.getTimeInstance(), in test_setFormatILjava_text_Format()
128 DateFormat.getTimeInstance(), in test_setFormatILjava_text_Format()
132 DateFormat.getTimeInstance() in test_setFormatILjava_text_Format()
231 DateFormat.getTimeInstance(), in test_setFormats$Ljava_text_Format()
233 DateFormat.getTimeInstance(), in test_setFormats$Ljava_text_Format()
326 .getTimeInstance())); in test_ConstructorLjava_lang_String()
343 buffer.append(DateFormat.getTimeInstance().format(date)); in test_ConstructorLjava_lang_String()
[all …]
DDateFormatTest.java203 SimpleDateFormat time = (SimpleDateFormat) DateFormat.getTimeInstance( in testDateTime()
250 SimpleDateFormat time = (SimpleDateFormat) DateFormat.getTimeInstance( in testDateTimeLocale()
322 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getTimeInstance(); in test_getTimeInstance()
324 assertTrue("Wrong default", f2.equals(DateFormat.getTimeInstance( in test_getTimeInstance()
337 .getTimeInstance(DateFormat.SHORT); in test_getTimeInstanceI()
339 assertTrue("Wrong default1", f2.equals(DateFormat.getTimeInstance( in test_getTimeInstanceI()
346 f2 = (SimpleDateFormat) DateFormat.getTimeInstance(DateFormat.MEDIUM); in test_getTimeInstanceI()
348 assertTrue("Wrong default2", f2.equals(DateFormat.getTimeInstance( in test_getTimeInstanceI()
355 f2 = (SimpleDateFormat) DateFormat.getTimeInstance(DateFormat.LONG); in test_getTimeInstanceI()
357 assertTrue("Wrong default3", f2.equals(DateFormat.getTimeInstance( in test_getTimeInstanceI()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java34 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeNewDateFormatTimeInstance()
40 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeClonedDateFormatTimeInstance()
47 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeReusedDateFormatTimeInstance()
/libcore/luni/src/test/java/libcore/java/text/
DDateFormatTest.java53 DateFormat format = DateFormat.getTimeInstance(style, locale); in checkTimePattern()
DOldDateFormatTest.java75 .equals(DateFormat.getTimeInstance())); in test_equalsLjava_lang_Object()
312 format = DateFormat.getTimeInstance(DateFormat.DEFAULT, Locale.US); in test_parseLString()
DSimpleDateFormatTest.java431 SimpleDateFormat.getTimeInstance(DateFormat.SHORT, null); in test_nullLocales()
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java454 public final static DateFormat getTimeInstance() in getTimeInstance() method in DateFormat
471 public final static DateFormat getTimeInstance(int style) in getTimeInstance() method in DateFormat
484 public final static DateFormat getTimeInstance(int style, in getTimeInstance() method in DateFormat
DMessageFormat.java560 df = DateFormat.getTimeInstance(DATE_TIME_MODIFIERS[index], in toPattern()
1503 newFormat = DateFormat.getTimeInstance(DATE_TIME_MODIFIERS[mod], in makeFormat()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java182 DateFormat old = DateFormat.getTimeInstance(timeStyleOld, locale); in test_time_print()
194 DateFormat old = DateFormat.getTimeInstance(timeStyleOld, locale); in test_time_parse()