Home
last modified time | relevance | path

Searched refs:getTimeInstance (Results 1 – 7 of 7) 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()
228 DateFormat.getTimeInstance(), in test_setFormats$Ljava_text_Format()
230 DateFormat.getTimeInstance(), in test_setFormats$Ljava_text_Format()
323 .getTimeInstance())); in test_ConstructorLjava_lang_String()
340 buffer.append(DateFormat.getTimeInstance().format(date)); in test_ConstructorLjava_lang_String()
[all …]
DDateFormatTest.java204 SimpleDateFormat time = (SimpleDateFormat) DateFormat.getTimeInstance( in testDateTime()
253 SimpleDateFormat time = (SimpleDateFormat) DateFormat.getTimeInstance( in testDateTimeLocale()
325 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getTimeInstance(); in test_getTimeInstance()
327 assertTrue("Wrong default", f2.equals(DateFormat.getTimeInstance( in test_getTimeInstance()
340 .getTimeInstance(DateFormat.SHORT); in test_getTimeInstanceI()
342 assertTrue("Wrong default1", f2.equals(DateFormat.getTimeInstance( in test_getTimeInstanceI()
349 f2 = (SimpleDateFormat) DateFormat.getTimeInstance(DateFormat.MEDIUM); in test_getTimeInstanceI()
351 assertTrue("Wrong default2", f2.equals(DateFormat.getTimeInstance( in test_getTimeInstanceI()
358 f2 = (SimpleDateFormat) DateFormat.getTimeInstance(DateFormat.LONG); in test_getTimeInstanceI()
360 assertTrue("Wrong default3", f2.equals(DateFormat.getTimeInstance( in test_getTimeInstanceI()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java32 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeNewDateFormatTimeInstance()
38 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeClonedDateFormatTimeInstance()
45 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT); in timeReusedDateFormatTimeInstance()
/libcore/luni/src/main/java/java/text/
DDateFormat.java494 public static final DateFormat getTimeInstance() { in getTimeInstance() method in DateFormat
495 return getTimeInstance(DEFAULT); in getTimeInstance()
510 public static final DateFormat getTimeInstance(int style) { in getTimeInstance() method in DateFormat
512 return getTimeInstance(style, Locale.getDefault()); in getTimeInstance()
529 public static final DateFormat getTimeInstance(int style, Locale locale) { in getTimeInstance() method in DateFormat
DMessageFormat.java979 .getTimeInstance(DateFormat.DEFAULT, locale); in parseVariable()
1003 .getTimeInstance(dateStyle, locale); in parseVariable()
1110 if (format.equals(DateFormat.getTimeInstance(DateFormat.DEFAULT, locale))) { in decodeSimpleDateFormat()
1115 } else if (format.equals(DateFormat.getTimeInstance(DateFormat.SHORT, in decodeSimpleDateFormat()
1121 } else if (format.equals(DateFormat.getTimeInstance(DateFormat.LONG, in decodeSimpleDateFormat()
1127 } else if (format.equals(DateFormat.getTimeInstance(DateFormat.FULL, in decodeSimpleDateFormat()
/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java75 .equals(DateFormat.getTimeInstance())); in test_equalsLjava_lang_Object()
306 format = DateFormat.getTimeInstance(DateFormat.DEFAULT, Locale.US); in test_parseLString()
DSimpleDateFormatTest.java377 SimpleDateFormat.getTimeInstance(DateFormat.SHORT, null); in test_nullLocales()