/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 63 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 122 {AMPM_OF_DAY}, in data_fieldBased()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeTextProvider.java | 62 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 177 {AMPM_OF_DAY, 0, TextStyle.SHORT, enUS, "AM"}, in data_text() 178 {AMPM_OF_DAY, 1, TextStyle.SHORT, enUS, "PM"}, in data_text()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestChronoField.java | 87 fieldMap.put(ChronoField.AMPM_OF_DAY, "dayperiod"); in initClass() 115 {ChronoField.AMPM_OF_DAY}, in data_localeDisplayNames()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 69 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 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() 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() 408 {AMPM_OF_DAY, 0, HOUR_OF_DAY, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime() 409 {AMPM_OF_DAY, 1, HOUR_OF_DAY, 17, LocalTime.of(17, 0)}, in data_resolveTwoToTime() 410 {AMPM_OF_DAY, 0, CLOCK_HOUR_OF_DAY, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime() 411 {AMPM_OF_DAY, 1, CLOCK_HOUR_OF_DAY, 17, LocalTime.of(17, 0)}, in data_resolveTwoToTime() 420 {CLOCK_HOUR_OF_DAY, 8, AMPM_OF_DAY, 0, LocalTime.of(8, 0)}, in data_resolveTwoToTime() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 64 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 386 if (fieldValues.containsKey(AMPM_OF_DAY) && fieldValues.containsKey(HOUR_OF_AMPM)) { in resolveTimeFields() 387 long ap = fieldValues.remove(AMPM_OF_DAY); in resolveTimeFields() 390 … updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, Math.addExact(Math.multiplyExact(ap, 12), hap)); in resolveTimeFields() 392 AMPM_OF_DAY.checkValidValue(ap); in resolveTimeFields() 394 updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, ap * 12 + hap); in resolveTimeFields()
|
D | DateTimeTextProvider.java | 68 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 193 } else if (field == AMPM_OF_DAY) { in getText() 262 case AMPM_OF_DAY: in getTextIterator() 411 if (field == AMPM_OF_DAY) { in createStore()
|
D | DateTimeFormatterBuilder.java | 1852 FIELD_MAP.put('a', ChronoField.AMPM_OF_DAY); // SDF, LDML
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 329 AMPM_OF_DAY("AmPmOfDay", HALF_DAYS, DAYS, ValueRange.of(0, 1), "dayperiod"), enumConstant 640 case AMPM_OF_DAY: in getIcuFieldNumber()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 62 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 182 AMPM_OF_DAY, in validFields() 578 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.AMPM_OF_DAY), true); in test_isSupported_TemporalField() 636 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); in test_get_TemporalField() 652 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1); in test_getLong_TemporalField() 931 assertEquals(test.get(AMPM_OF_DAY), TEST_12_30_40_987654321.get(AMPM_OF_DAY)); in test_with_longTemporalField_hourOfAmPm() 945 assertEquals(test.get(AMPM_OF_DAY), TEST_12_30_40_987654321.get(AMPM_OF_DAY)); in test_with_longTemporalField_clockHourOfAmPm() 983 LocalTime test = TEST_12_30_40_987654321.with(AMPM_OF_DAY, i); in test_with_longTemporalField_amPmOfDay() 984 assertEquals(test.get(AMPM_OF_DAY), i); in test_with_longTemporalField_amPmOfDay() 1040 {AMPM_OF_DAY, time(0, 0, 0, 0), AMPM_OF_DAY.range().getMinimum() - 1}, in data_withTemporalField_outOfRange() [all …]
|
D | TCKOffsetTime.java | 62 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 175 AMPM_OF_DAY, in validFields() 536 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.AMPM_OF_DAY), true); 589 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); 602 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1); 785 …assertEquals(test.with(ChronoField.AMPM_OF_DAY, 0), OffsetTime.of(0, 30, 40, 987654321, OFFSET_PON…
|
D | TCKDayOfWeek.java | 182 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKOffsetDateTime.java | 67 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 194 AMPM_OF_DAY, in validFields() 553 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.AMPM_OF_DAY), true); 612 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); 631 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1);
|
D | TCKMonth.java | 174 assertEquals(Month.AUGUST.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKZonedDateTime.java | 67 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 196 AMPM_OF_DAY, in validFields() 879 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.AMPM_OF_DAY), true); 938 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); 957 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1);
|
D | TCKLocalDateTime.java | 66 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 199 AMPM_OF_DAY, in validFields() 936 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.AMPM_OF_DAY), true); 995 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); 1012 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1);
|
D | TCKMonthDay.java | 396 assertEquals(TEST_07_15.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKLocalDate.java | 624 assertEquals(TEST_2007_07_15.isSupported(ChronoField.AMPM_OF_DAY), false); 878 TEST_2007_07_15.with(ChronoField.AMPM_OF_DAY, 1);
|
D | TCKYear.java | 350 assertEquals(TEST_2008.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
|
D | TCKYearMonth.java | 415 assertEquals(TEST_2008_06.isSupported(ChronoField.AMPM_OF_DAY), false); in test_isSupported_TemporalField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 63 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 171 {AMPM_OF_DAY, false, true}, in data_fieldBased()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 99 ChronoField.AMPM_OF_DAY, in test_with_TemporalField_long_invalidField()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 89 assertEquals(false, date.isSupported(ChronoField.AMPM_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 671 case AMPM_OF_DAY: return hour / 12; in get0() 846 case AMPM_OF_DAY: return plusHours((newValue - (hour / 12)) * 12); in with()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Formatter.java | 4227 String s = ampm[t.get(ChronoField.AMPM_OF_DAY)];
|