Home
last modified time | relevance | path

Searched refs:CLOCK_HOUR_OF_AMPM (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoFieldSerialization.java64 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
125 {CLOCK_HOUR_OF_AMPM}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java65 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
174 {CLOCK_HOUR_OF_AMPM, false, true}, in data_fieldBased()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java70 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
247 {CLOCK_HOUR_OF_AMPM, 8, HOUR_OF_AMPM, 8L, null, null}, in data_resolveOneToField()
248 {CLOCK_HOUR_OF_AMPM, 12, HOUR_OF_AMPM, 0L, null, null}, in data_resolveOneToField()
406 {AMPM_OF_DAY, 0, CLOCK_HOUR_OF_AMPM, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime()
407 {AMPM_OF_DAY, 1, CLOCK_HOUR_OF_AMPM, 5, LocalTime.of(17, 0)}, in data_resolveTwoToTime()
418 {CLOCK_HOUR_OF_DAY, 8, CLOCK_HOUR_OF_AMPM, 8, LocalTime.of(8, 0)}, in data_resolveTwoToTime()
419 {CLOCK_HOUR_OF_DAY, 20, CLOCK_HOUR_OF_AMPM, 8, LocalTime.of(20, 0)}, in data_resolveTwoToTime()
428 {MINUTE_OF_DAY, 650, CLOCK_HOUR_OF_AMPM, 10, LocalTime.of(10, 50)}, in data_resolveTwoToTime()
834 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(CLOCK_HOUR_OF_AMPM).toFormatter(); in test_resolveClockHourOfAmPm()
840 assertEquals(accessor.isSupported(CLOCK_HOUR_OF_AMPM), false); in test_resolveClockHourOfAmPm()
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java100 ChronoField.CLOCK_HOUR_OF_AMPM, in test_with_TemporalField_long_invalidField()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java63 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
180 CLOCK_HOUR_OF_AMPM, in validFields()
609 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true); in test_isSupported_TemporalField()
668 assertEquals(test.get(ChronoField.CLOCK_HOUR_OF_AMPM), 12); in test_get_TemporalField()
684 assertEquals(test.getLong(ChronoField.CLOCK_HOUR_OF_AMPM), 12); in test_getLong_TemporalField()
977 LocalTime test = TEST_12_30_40_987654321.with(CLOCK_HOUR_OF_AMPM, i); in test_with_longTemporalField_clockHourOfAmPm()
978 assertEquals(test.get(CLOCK_HOUR_OF_AMPM), i); in test_with_longTemporalField_clockHourOfAmPm()
1065 {CLOCK_HOUR_OF_AMPM, time(0, 0, 0, 0), CLOCK_HOUR_OF_AMPM.range().getMinimum() - 1}, in data_withTemporalField_outOfRange()
1066 {CLOCK_HOUR_OF_AMPM, time(0, 0, 0, 0), CLOCK_HOUR_OF_AMPM.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
DTCKDayOfWeek.java179 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKMonth.java171 assertEquals(Month.AUGUST.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKOffsetTime.java63 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
171 CLOCK_HOUR_OF_AMPM, in validFields()
533 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true);
DTCKOffsetDateTime.java68 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
190 CLOCK_HOUR_OF_AMPM, in validFields()
550 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true);
DTCKZonedDateTime.java68 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
192 CLOCK_HOUR_OF_AMPM, in validFields()
876 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true);
DTCKLocalDateTime.java67 import static java.time.temporal.ChronoField.CLOCK_HOUR_OF_AMPM;
195 CLOCK_HOUR_OF_AMPM, in validFields()
933 …assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), true);
DTCKYear.java347 assertEquals(TEST_2008.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKYearMonth.java412 assertEquals(TEST_2008_06.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
DTCKLocalDate.java621 assertEquals(TEST_2007_07_15.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false);
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseChronologyTest.java93 assertEquals(false, date.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM)); in test_JapaneseDate_isSupported_TemporalField()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java287 CLOCK_HOUR_OF_AMPM("ClockHourOfAmPm", HOURS, HALF_DAYS, ValueRange.of(1, 12)), enumConstant
/libcore/ojluni/src/main/java/java/time/
DLocalTime.java691 case CLOCK_HOUR_OF_AMPM: int ham = hour % 12; return (ham % 12 == 0 ? 12 : ham); in get0()
866 … case CLOCK_HOUR_OF_AMPM: return plusHours((newValue == 12 ? 0 : newValue) - (hour % 12)); in with()