/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 64 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/ |
D | TCKChronoField.java | 65 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/ |
D | TCKDateTimeParseResolver.java | 70 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/ |
D | YearMonthTest.java | 100 ChronoField.CLOCK_HOUR_OF_AMPM, in test_with_TemporalField_long_invalidField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 63 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()
|
D | TCKDayOfWeek.java | 179 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
|
D | TCKMonth.java | 171 assertEquals(Month.AUGUST.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
|
D | TCKOffsetTime.java | 63 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);
|
D | TCKOffsetDateTime.java | 68 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);
|
D | TCKZonedDateTime.java | 68 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);
|
D | TCKLocalDateTime.java | 67 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);
|
D | TCKYear.java | 347 assertEquals(TEST_2008.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
|
D | TCKYearMonth.java | 412 assertEquals(TEST_2008_06.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
|
D | TCKLocalDate.java | 621 assertEquals(TEST_2007_07_15.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM), false);
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 93 assertEquals(false, date.isSupported(ChronoField.CLOCK_HOUR_OF_AMPM)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 287 CLOCK_HOUR_OF_AMPM("ClockHourOfAmPm", HOURS, HALF_DAYS, ValueRange.of(1, 12)), enumConstant
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 691 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()
|