Home
last modified time | relevance | path

Searched refs:YEAR_FIELD (Results 1 – 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSimpleDateFormatTest.java271 assertFormat(" y", cal, " 1999", DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
272 assertFormat(" yy", cal, " 99", DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
274 DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
276 DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
278 DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
279 assertFormat(" yyy", cal, " 1999", DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
280 assertFormat(" yyyy", cal, " 1999", DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
281 assertFormat(" yyyyy", cal, " 01999", DateFormat.YEAR_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
/libcore/luni/src/main/java/java/text/
DDateFormat.java122 public static final int YEAR_FIELD = 1; field in DateFormat
DSimpleDateFormat.java582 case YEAR_FIELD: in append()
860 case YEAR_FIELD: in parse()
/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java111 FieldPosition fp = new FieldPosition(DateFormat.YEAR_FIELD); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()