Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDataFormatFieldTest.java109 Calendar.AM_PM, Field.AM_PM.getCalendarField()); in test_getCalendarField()
134 Field.AM_PM, Field.ofCalendarField(Calendar.AM_PM)); in test_ofCalendarFieldI()
188 field = new MyField(null, Calendar.AM_PM); in test_readResolve()
DSupport_MessageFormat.java62 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, in t_format_with_FieldPosition()
103 v.add(new FieldContainer(27, 29, DateFormat.Field.AM_PM)); in getMessageVector1()
DSupport_SimpleDateFormat.java90 t_FormatWithField(15, format, date, null, Field.AM_PM, 143, 145); in t_format_with_FieldPosition()
119 t_FormatWithField(37, format, date, null, Field.AM_PM, 0, 0); in t_format_with_FieldPosition()
248 v.add(new FieldContainer(143, 145, Field.AM_PM)); in getDateVector4()
249 v.add(new FieldContainer(147, 149, Field.AM_PM)); in getDateVector4()
DFieldPositionTest.java102 FieldPosition fpos4 = new FieldPosition(DateFormat.Field.AM_PM, 1); in test_equalsLjava_lang_Object()
DMessageFormatTest.java601 format.format(objects, new StringBuffer(), new FieldPosition(DateFormat.Field.AM_PM)); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java367 cal.set(Calendar.AM_PM, Calendar.AM); in test_setII()
373 cal.set(Calendar.AM_PM, Calendar.PM); in test_setII()
374 assertEquals("AM_PM not changed", Calendar.PM, cal.get(Calendar.AM_PM)); in test_setII()
376 cal.set(Calendar.AM_PM, Calendar.AM); in test_setII()
378 Calendar.AM, cal.get(Calendar.AM_PM)); in test_setII()
381 cal.set(Calendar.AM_PM, Calendar.PM); in test_setII()
383 Calendar.PM, cal.get(Calendar.AM_PM)); in test_setII()
389 int oldValue = cal.get(Calendar.AM_PM); in test_setII()
391 cal.set(Calendar.AM_PM, newValue); in test_setII()
392 newValue = cal.get(Calendar.AM_PM); in test_setII()
[all …]
DGregorianCalendarTest.java75 1, gc.get(Calendar.AM_PM)); in test_ConstructorIIIII()
104 1, gc.get(Calendar.AM_PM)); in test_ConstructorIIIIII()
230 gc1.add(Calendar.AM_PM, 2); in test_addII()
/libcore/support/src/test/java/tests/support/
DSupport_MessageFormat.java61 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, in t_format_with_FieldPosition()
105 v.add(new FieldContainer(27, 29, DateFormat.Field.AM_PM)); in getMessageVector1()
/libcore/luni/src/main/java/java/util/
DGregorianCalendar.java423 case AM_PM: in add()
544 fields[AM_PM] = fields[HOUR_OF_DAY] > 11 ? 1 : 0; in fullFieldsCalc()
642 if (isSet[AM_PM] && fields[AM_PM] != AM && fields[AM_PM] != PM) { in computeTime()
666 hour = (fields[AM_PM] * 12) + fields[HOUR]; in computeTime()
1224 case AM_PM: in roll()
1233 } else if (field == AM_PM) { in roll()
DCalendar.java601 public static final int AM_PM = 9; field in Calendar
1125 if (field > MONTH && field < AM_PM) { in set()
1131 if (field == AM_PM) { in set()
1306 case AM_PM: in getDisplayNameArray()
DFormatter.java1941 result.append(localeData.amPm[calendar.get(Calendar.AM_PM)].toLowerCase(locale)); in appendT()
1950 result.append(localeData.amPm[calendar.get(Calendar.AM_PM)]); in appendT()
/libcore/luni/src/main/java/java/text/
DDateFormat.java772 public static final Field AM_PM = new Field("am pm", Calendar.AM_PM); field in DateFormat.Field
DSimpleDateFormat.java654 dateFormatField = Field.AM_PM; in append()
655 buffer.append(formatData.ampms[calendar.get(Calendar.AM_PM)]); in append()
928 return parseText(string, offset, formatData.ampms, Calendar.AM_PM); in parse()
/libcore/luni/src/test/java/libcore/java/util/
DCalendarTest.java100 calendar.add(Calendar.AM_PM, 2); in testAddTwoHalfDaysOverDstForwardAdds23HoursAt0100()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java1761 objToSave = new DateFormat.Field[] { DateFormat.Field.AM_PM, in test_writeObject_DateFormat_Field()