Home
last modified time | relevance | path

Searched refs:AM_PM (Results 1 – 24 of 24) 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.java64 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, in t_format_with_FieldPosition()
108 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.java604 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.java91 1, gc.get(Calendar.AM_PM)); in test_ConstructorIIIII()
120 1, gc.get(Calendar.AM_PM)); in test_ConstructorIIIIII()
246 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/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java250 public static final java.text.DateFormat.Field AM_PM; field in DateFormat.Field
253 AM_PM = null;
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java176 public static final java.text.DateFormat.Field AM_PM; field in DateFormat.Field
177 static { AM_PM = null; }
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java1031 public final static Field AM_PM = new field in DateFormat.Field
1032 Field("am pm", Calendar.AM_PM);
DSimpleDateFormat.java1146 Calendar.AM_PM,
1159 Calendar.AM_PM,
1160 Calendar.AM_PM
1212 Field.AM_PM,
1225 Field.AM_PM,
1226 Field.AM_PM
2466 if ((index = matchString(text, start, Calendar.AM_PM, in subParse()
/libcore/ojluni/src/main/java/java/util/
DCalendar.java498 public final static int AM_PM = 9; field in Calendar
1010 final static int AM_PM_MASK = (1 << AM_PM);
2246 case AM_PM: in getFieldStrings()
2535 int hourStamp = aggregateStamp(stamp[HOUR], stamp[AM_PM]); in selectFields()
2540 bestStamp = Math.max(stamp[HOUR], stamp[AM_PM]); in selectFields()
2549 if (stamp[AM_PM] != UNSET) { in selectFields()
DGregorianCalendar.java712 this.internalSet(AM_PM, PM); in GregorianCalendar()
1045 case AM_PM:
1186 case AM_PM: in roll()
1219 assert (internalGet(AM_PM) == PM); in roll()
1229 internalSet(AM_PM, hourOfDay / 12); in roll()
2457 internalSet(AM_PM, hours / 12); // Assume AM == 0 in computeFields()
2466 internalSet(AM_PM, AM); in computeFields()
2703 if (isFieldSet(fieldMask, AM_PM)) { in computeTime()
2704 timeOfDay += 12 * internalGet(AM_PM); in computeTime()
DJapaneseImperialCalendar.java479 case AM_PM: in add()
576 case AM_PM: in roll()
608 assert (internalGet(AM_PM) == PM); in roll()
618 internalSet(AM_PM, hourOfDay / 12); in roll()
1669 internalSet(AM_PM, hours / 12); // Assume AM == 0 in computeFields()
1678 internalSet(AM_PM, AM); in computeFields()
1898 if (isFieldSet(fieldMask, AM_PM)) { in computeTime()
1899 timeOfDay += 12 * internalGet(AM_PM); in computeTime()
DFormatter.java3995 case DateTime.AM_PM: { // 'p' (am or pm)
4002 String s = ampm[t.get(Calendar.AM_PM)];
4125 print(tsb, t, DateTime.AM_PM, l);
4220 case DateTime.AM_PM: { // 'p' (am or pm)
4358 print(tsb, t, DateTime.AM_PM, l);
4718 static final char AM_PM = 'p'; // (am or pm)
4766 case AM_PM:
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeTextProvider.java195 fieldIndex = Calendar.AM_PM; in getText()
264 fieldIndex = Calendar.AM_PM; in getTextIterator()
419 "gregory", Calendar.AM_PM, textStyle.toCalendarStyle(), locale); in createStore()
/libcore/ojluni/annotations/sdk/nullability/java/text/
DDateFormat.annotated.java171 @libcore.util.NonNull public static final java.text.DateFormat.Field AM_PM; field in DateFormat.Field
172 static { AM_PM = null; }
/libcore/ojluni/src/main/java/sun/util/locale/provider/
DCalendarDataUtility.java285 case Calendar.AM_PM: in getNames()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCalendar.annotated.java166 public static final int AM_PM = 9; // 0x9 field in Calendar
/libcore/luni/src/test/java/libcore/java/util/
DCalendarTest.java103 calendar.add(Calendar.AM_PM, 2); in testAddTwoHalfDaysOverDstForwardAdds23HoursAt0100()
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java411 public static final int AM_PM = 9; // 0x9 field in Calendar
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java1712 objToSave = new DateFormat.Field[] { DateFormat.Field.AM_PM, in test_writeObject_DateFormat_Field()
/libcore/api/
Dcurrent.txt10277 field @NonNull public static final java.text.DateFormat.Field AM_PM;
12517 field public static final int AM_PM = 9; // 0x9