/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 70 import static java.time.temporal.ChronoField.HOUR_OF_AMPM; 126 {HOUR_OF_AMPM}, in data_fieldBased()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 67 import static java.time.temporal.ChronoField.HOUR_OF_AMPM; 384 updateCheckConflict(CLOCK_HOUR_OF_AMPM, HOUR_OF_AMPM, ch == 12 ? 0 : ch); in resolveTimeFields() 386 if (fieldValues.containsKey(AMPM_OF_DAY) && fieldValues.containsKey(HOUR_OF_AMPM)) { in resolveTimeFields() 388 long hap = fieldValues.remove(HOUR_OF_AMPM); in resolveTimeFields() 393 HOUR_OF_AMPM.checkValidValue(ap); in resolveTimeFields()
|
D | DateTimeFormatterBuilder.java | 1855 FIELD_MAP.put('K', ChronoField.HOUR_OF_AMPM); // SDF, LDML
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 71 import static java.time.temporal.ChronoField.HOUR_OF_AMPM; 175 {HOUR_OF_AMPM, false, true}, in data_fieldBased()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 65 import static java.time.temporal.ChronoField.HOUR_OF_AMPM; 179 HOUR_OF_AMPM, in validFields() 574 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.HOUR_OF_AMPM), true); in test_isSupported_TemporalField() 633 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0); in test_get_TemporalField() 649 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0); in test_getLong_TemporalField() 929 LocalTime test = TEST_12_30_40_987654321.with(HOUR_OF_AMPM, i); in test_with_longTemporalField_hourOfAmPm() 930 assertEquals(test.get(HOUR_OF_AMPM), i); in test_with_longTemporalField_hourOfAmPm() 985 assertEquals(test.get(HOUR_OF_AMPM), TEST_12_30_40_987654321.get(HOUR_OF_AMPM)); in test_with_longTemporalField_amPmOfDay() 1028 {HOUR_OF_AMPM, time(0, 0, 0, 0), HOUR_OF_AMPM.range().getMinimum() - 1}, in data_withTemporalField_outOfRange() 1029 {HOUR_OF_AMPM, time(0, 0, 0, 0), HOUR_OF_AMPM.range().getMaximum() + 1}, in data_withTemporalField_outOfRange()
|
D | TCKOffsetTime.java | 65 import static java.time.temporal.ChronoField.HOUR_OF_AMPM; 172 HOUR_OF_AMPM, in validFields() 532 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.HOUR_OF_AMPM), true); 588 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0); 601 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0); 784 …assertEquals(test.with(ChronoField.HOUR_OF_AMPM, 6), OffsetTime.of(18, 30, 40, 987654321, OFFSET_P…
|
D | TCKDayOfWeek.java | 178 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
|
D | TCKOffsetDateTime.java | 75 import static java.time.temporal.ChronoField.HOUR_OF_AMPM; 191 HOUR_OF_AMPM, in validFields() 549 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.HOUR_OF_AMPM), true); 611 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0); 630 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0);
|
D | TCKMonth.java | 170 assertEquals(Month.AUGUST.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
|
D | TCKZonedDateTime.java | 75 import static java.time.temporal.ChronoField.HOUR_OF_AMPM; 193 HOUR_OF_AMPM, in validFields() 875 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.HOUR_OF_AMPM), true); 937 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0); 956 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0);
|
D | TCKLocalDateTime.java | 74 import static java.time.temporal.ChronoField.HOUR_OF_AMPM; 196 HOUR_OF_AMPM, in validFields() 932 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.HOUR_OF_AMPM), true); 994 assertEquals(test.get(ChronoField.HOUR_OF_AMPM), 0); 1011 assertEquals(test.getLong(ChronoField.HOUR_OF_AMPM), 0);
|
D | TCKMonthDay.java | 392 assertEquals(TEST_07_15.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
|
D | TCKYear.java | 346 assertEquals(TEST_2008.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
|
D | TCKYearMonth.java | 411 assertEquals(TEST_2008_06.isSupported(ChronoField.HOUR_OF_AMPM), false); in test_isSupported_TemporalField()
|
D | TCKLocalDate.java | 620 assertEquals(TEST_2007_07_15.isSupported(ChronoField.HOUR_OF_AMPM), false);
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 106 ChronoField.HOUR_OF_AMPM, in test_with_TemporalField_long_invalidField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 77 import static java.time.temporal.ChronoField.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() 404 {AMPM_OF_DAY, 0, HOUR_OF_AMPM, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime() 405 {AMPM_OF_DAY, 1, HOUR_OF_AMPM, 5, LocalTime.of(17, 0)}, in data_resolveTwoToTime() 841 assertEquals(accessor.isSupported(HOUR_OF_AMPM), true); in test_resolveClockHourOfAmPm() 842 assertEquals(accessor.getLong(HOUR_OF_AMPM), expectedValue.longValue()); in test_resolveClockHourOfAmPm()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 97 assertEquals(false, date.isSupported(ChronoField.HOUR_OF_AMPM)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 273 HOUR_OF_AMPM("HourOfAmPm", HOURS, HALF_DAYS, ValueRange.of(0, 11)), enumConstant
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 667 case HOUR_OF_AMPM: return hour % 12; in get0() 842 case HOUR_OF_AMPM: return plusHours(newValue - (hour % 12)); in with()
|