/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeTextProvider.java | 62 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 130 {AMPM_OF_DAY, 0, TextStyle.SHORT, enUS, "AM"}, in data_text() 131 {AMPM_OF_DAY, 1, TextStyle.SHORT, enUS, "PM"}, in data_text()
|
D | TestDateTimeParsing.java | 62 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 226 .appendText(AMPM_OF_DAY) in test_validateHourOfAmPm()
|
D | TestDateTimeTextProviderWithLocale.java | 69 import static java.time.temporal.ChronoField.AMPM_OF_DAY;
|
D | TestUnicodeExtension.java | 832 {Locale.US, ChronoField.AMPM_OF_DAY, "AM/PM"}, in getDisplayName() 835 {RG_GB, ChronoField.AMPM_OF_DAY, "AM/PM"}, in getDisplayName()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 65 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 401 if (fieldValues.containsKey(AMPM_OF_DAY) && fieldValues.containsKey(HOUR_OF_AMPM)) { in resolveTimeFields() 402 long ap = fieldValues.remove(AMPM_OF_DAY); in resolveTimeFields() 405 … updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, Math.addExact(Math.multiplyExact(ap, 12), hap)); in resolveTimeFields() 407 AMPM_OF_DAY.checkValidValue(ap); in resolveTimeFields() 409 updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, ap * 12 + hap); in resolveTimeFields() 538 } else if (fieldValues.containsKey(AMPM_OF_DAY)) { in resolveTimeLenient() 539 long ap = fieldValues.remove(AMPM_OF_DAY); in resolveTimeLenient() 543 AMPM_OF_DAY.checkValidValue(ap); in resolveTimeLenient()
|
D | DateTimeTextProvider.java | 67 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 197 } else if (field == AMPM_OF_DAY) { in getText() 266 case AMPM_OF_DAY: in getTextIterator() 445 if (field == AMPM_OF_DAY) { in createStore()
|
/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/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; 407 {AMPM_OF_DAY, 0, HOUR_OF_AMPM, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime() 408 {AMPM_OF_DAY, 1, HOUR_OF_AMPM, 5, LocalTime.of(17, 0)}, in data_resolveTwoToTime() 409 {AMPM_OF_DAY, 0, CLOCK_HOUR_OF_AMPM, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime() 410 {AMPM_OF_DAY, 1, CLOCK_HOUR_OF_AMPM, 5, LocalTime.of(17, 0)}, in data_resolveTwoToTime() 411 {AMPM_OF_DAY, 0, HOUR_OF_DAY, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime() 412 {AMPM_OF_DAY, 1, HOUR_OF_DAY, 17, LocalTime.of(17, 0)}, in data_resolveTwoToTime() 413 {AMPM_OF_DAY, 0, CLOCK_HOUR_OF_DAY, 5, LocalTime.of(5, 0)}, in data_resolveTwoToTime() 414 {AMPM_OF_DAY, 1, CLOCK_HOUR_OF_DAY, 17, LocalTime.of(17, 0)}, in data_resolveTwoToTime() 423 {CLOCK_HOUR_OF_DAY, 8, AMPM_OF_DAY, 0, LocalTime.of(8, 0)}, in data_resolveTwoToTime() [all …]
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 349 AMPM_OF_DAY("AmPmOfDay", HALF_DAYS, DAYS, ValueRange.of(0, 1), "dayperiod"), enumConstant 672 case AMPM_OF_DAY: in getIcuFieldNumber()
|
/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/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 62 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 184 AMPM_OF_DAY, in validFields() 606 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.AMPM_OF_DAY), true); in test_isSupported_TemporalField() 664 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); in test_get_TemporalField() 680 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1); in test_getLong_TemporalField() 959 assertEquals(test.get(AMPM_OF_DAY), TEST_12_30_40_987654321.get(AMPM_OF_DAY)); in test_with_longTemporalField_hourOfAmPm() 973 assertEquals(test.get(AMPM_OF_DAY), TEST_12_30_40_987654321.get(AMPM_OF_DAY)); in test_with_longTemporalField_clockHourOfAmPm() 1011 LocalTime test = TEST_12_30_40_987654321.with(AMPM_OF_DAY, i); in test_with_longTemporalField_amPmOfDay() 1012 assertEquals(test.get(AMPM_OF_DAY), i); in test_with_longTemporalField_amPmOfDay() 1068 {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; 172 AMPM_OF_DAY, in validFields() 528 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.AMPM_OF_DAY), true); 581 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); 594 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1); 777 …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; 190 AMPM_OF_DAY, in validFields() 538 assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.AMPM_OF_DAY), true); 597 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); 616 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() 874 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.AMPM_OF_DAY), true); 933 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); 952 assertEquals(test.getLong(ChronoField.AMPM_OF_DAY), 1);
|
D | TCKLocalDateTime.java | 66 import static java.time.temporal.ChronoField.AMPM_OF_DAY; 198 AMPM_OF_DAY, in validFields() 930 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.AMPM_OF_DAY), true); 989 assertEquals(test.get(ChronoField.AMPM_OF_DAY), 1); 1006 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 | 669 assertEquals(TEST_2007_07_15.isSupported(ChronoField.AMPM_OF_DAY), false); 923 TEST_2007_07_15.with(ChronoField.AMPM_OF_DAY, 1);
|
D | TCKYear.java | 374 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/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 | 92 assertEquals(false, date.isSupported(ChronoField.AMPM_OF_DAY)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 695 case AMPM_OF_DAY: return hour / 12; in get0() 869 case AMPM_OF_DAY: return plusHours((newValue - (hour / 12)) * 12); in with()
|