/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatterBuilder.java | 65 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 285 builder.appendFraction(MINUTE_OF_HOUR, -1, 9, false); in test_appendFraction_4arg_minTooSmall() 290 builder.appendFraction(MINUTE_OF_HOUR, 10, 9, false); in test_appendFraction_4arg_minTooBig() 295 builder.appendFraction(MINUTE_OF_HOUR, 0, -1, false); in test_appendFraction_4arg_maxTooSmall() 300 builder.appendFraction(MINUTE_OF_HOUR, 1, 10, false); in test_appendFraction_4arg_maxTooBig() 305 builder.appendFraction(MINUTE_OF_HOUR, 9, 3, false); in test_appendFraction_4arg_maxWidthMinWidth() 1114 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOUR, 2).appendLit… in test_adjacent_strict_firstFixedWidth() 1120 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 30L); in test_adjacent_strict_firstFixedWidth() 1126 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, 2).appendLitera… in test_adjacent_strict_firstVariableWidth_success() 1132 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 9L); in test_adjacent_strict_firstVariableWidth_success() [all …]
|
D | TCKDateTimeParseResolver.java | 85 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 176 {YEAR, 2012, MINUTE_OF_HOUR, 5}, in data_resolveTwoNoChange() 185 {MONTH_OF_YEAR, 5, MINUTE_OF_HOUR, 5}, in data_resolveTwoNoChange() 218 {MINUTE_OF_HOUR, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange() 404 {HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime() 417 {CLOCK_HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime() 418 {CLOCK_HOUR_OF_DAY, 24, MINUTE_OF_HOUR, 6, LocalTime.of(0, 6)}, in data_resolveTwoToTime() 433 {MINUTE_OF_DAY, 650, MINUTE_OF_HOUR, 50, LocalTime.of(10, 50)}, in data_resolveTwoToTime() 441 {SECOND_OF_DAY, 3600 + 650, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime() 449 … {MILLI_OF_DAY, (3600 + 650) * 1000L + 2, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50, 2_000_000)}, in data_resolveTwoToTime() [all …]
|
D | TCKDateTimeFormatters.java | 67 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 1300 test.fieldValues.put(MINUTE_OF_HOUR, (long) min); in createTime() 1328 test.fieldValues.put(MINUTE_OF_HOUR, (long) min); in createDateTime() 1357 mock.fields.put(MINUTE_OF_HOUR, (long) min); in buildAccessor() 1440 fields.put(MINUTE_OF_HOUR, (long) dt.getMinute()); in setFields()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 77 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 132 {MINUTE_OF_HOUR, MINUTES, HOURS}, in data_fieldUnit() 177 {MINUTE_OF_HOUR, false, true}, in data_fieldBased() 215 {MINUTE_OF_HOUR, LocalTime.of(5, 4, 3, 200), true, 4}, in data_fieldAndAccessor() 216 {MINUTE_OF_HOUR, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 4}, in data_fieldAndAccessor() 232 {MINUTE_OF_HOUR, LocalDate.of(2000, 2, 29), false, -1}, in data_fieldAndAccessor()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 76 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 418 updateCheckConflict(NANO_OF_DAY, MINUTE_OF_HOUR, (nod / 60_000_000_000L) % 60); in resolveTimeFields() 444 updateCheckConflict(SECOND_OF_DAY, MINUTE_OF_HOUR, (sod / 60) % 60); in resolveTimeFields() 453 updateCheckConflict(MINUTE_OF_DAY, MINUTE_OF_HOUR, mod % 60); in resolveTimeFields() 484 Long mohObj = fieldValues.get(MINUTE_OF_HOUR); in resolveTimeFields() 493 if (fieldValues.containsKey(HOUR_OF_DAY) && fieldValues.containsKey(MINUTE_OF_HOUR) && in resolveTimeFields() 496 long moh = fieldValues.remove(MINUTE_OF_HOUR); in resolveTimeFields() 530 !fieldValues.containsKey(MINUTE_OF_HOUR) && in resolveTimeLenient() 552 Long moh = fieldValues.get(MINUTE_OF_HOUR); in resolveTimeLenient() 577 fieldValues.remove(MINUTE_OF_HOUR); in resolveTimeLenient() [all …]
|
D | DateTimeFormatter.java | 68 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 846 .appendValue(MINUTE_OF_HOUR, 2) 1306 .appendValue(MINUTE_OF_HOUR, 2)
|
D | DateTimeFormatterBuilder.java | 73 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 2107 FIELD_MAP.put('m', ChronoField.MINUTE_OF_HOUR); // SDF, LDML 3564 .appendValue(MINUTE_OF_HOUR, 2).appendLiteral(':') in parse() 3580 int min = newContext.getParsed(MINUTE_OF_HOUR).intValue(); in parse()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 77 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 128 {MINUTE_OF_HOUR}, in data_fieldBased()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 72 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 178 MINUTE_OF_HOUR, in validFields() 600 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MINUTE_OF_HOUR), true); in test_isSupported_TemporalField() 655 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); in test_get_TemporalField() 671 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30); in test_getLong_TemporalField() 838 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_nanoOfSecond() 862 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_microOfSecond() 887 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_milliOfSecond() 911 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_secondOfMinute() 932 LocalTime test = TEST_12_30_40_987654321.with(MINUTE_OF_HOUR, i); in test_with_longTemporalField_minuteOfHour() [all …]
|
D | TCKOffsetTime.java | 72 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 166 MINUTE_OF_HOUR, in validFields() 522 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MINUTE_OF_HOUR), true); 577 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); 590 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30); 773 …assertEquals(test.with(ChronoField.MINUTE_OF_HOUR, 50), OffsetTime.of(12, 50, 40, 987654321, OFFSE…
|
D | TCKDayOfWeek.java | 176 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
|
D | TCKOffsetDateTime.java | 83 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 184 MINUTE_OF_HOUR, in validFields() 532 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MINUTE_OF_HOUR), true); 593 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); 612 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30);
|
D | TCKZonedDateTime.java | 83 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 190 MINUTE_OF_HOUR, in validFields() 868 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.MINUTE_OF_HOUR), true); 929 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); 948 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30); 1319 …PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withEarlierOffsetAtOverlap(), MINUTE_OF_HOUR, 20, 1321 …T_PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withLaterOffsetAtOverlap(), MINUTE_OF_HOUR, 20,
|
D | TCKMonth.java | 168 assertEquals(Month.AUGUST.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
|
D | TCKLocalDateTime.java | 81 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 192 MINUTE_OF_HOUR, in validFields() 924 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.MINUTE_OF_HOUR), true); 985 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); 1002 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30);
|
D | TCKMonthDay.java | 390 assertEquals(TEST_07_15.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestChronoField.java | 91 fieldMap.put(ChronoField.MINUTE_OF_HOUR, "minute"); in initClass() 117 {ChronoField.MINUTE_OF_HOUR}, in data_localeDisplayNames()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 66 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 296 MINUTE_OF_HOUR.checkValidValue(minute); in of() 317 MINUTE_OF_HOUR.checkValidValue(minute); in of() 336 MINUTE_OF_HOUR.checkValidValue(minute); in of() 689 case MINUTE_OF_HOUR: return minute; in get0() 863 case MINUTE_OF_HOUR: return withMinute((int) newValue); in with() 907 MINUTE_OF_HOUR.checkValidValue(minute); in withMinute()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeFormatterBuilder.java | 66 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 309 builder.appendFraction(MINUTE_OF_HOUR, 1, 9, false); in test_appendFraction_4arg() 326 builder.appendFraction(MINUTE_OF_HOUR, -1, 9, false); in test_appendFraction_4arg_minTooSmall() 331 builder.appendFraction(MINUTE_OF_HOUR, 10, 9, false); in test_appendFraction_4arg_minTooBig() 336 builder.appendFraction(MINUTE_OF_HOUR, 0, -1, false); in test_appendFraction_4arg_maxTooSmall() 341 builder.appendFraction(MINUTE_OF_HOUR, 1, 10, false); in test_appendFraction_4arg_maxTooBig() 346 builder.appendFraction(MINUTE_OF_HOUR, 9, 3, false); in test_appendFraction_4arg_maxWidthMinWidth()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Chronology.java | 65 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 743 MINUTE_OF_HOUR.checkValidValue(minute); in epochSecond()
|
D | IsoChronology.java | 67 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 298 MINUTE_OF_HOUR.checkValidValue(minute); in epochSecond()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 259 MINUTE_OF_HOUR("MinuteOfHour", MINUTES, HOURS, ValueRange.of(0, 59), "minute"), enumConstant 668 case MINUTE_OF_HOUR: in getIcuFieldNumber()
|
/libcore/luni/src/test/java/libcore/java/time/format/ |
D | DateTimeFormatterTest.java | 115 assertEquals(59, accessor.getLong(ChronoField.MINUTE_OF_HOUR)); in test_format_locale_my_MM()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 114 ChronoField.MINUTE_OF_HOUR, in test_with_TemporalField_long_invalidField()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseChronologyTest.java | 108 assertEquals(false, date.isSupported(ChronoField.MINUTE_OF_HOUR)); in test_JapaneseDate_isSupported_TemporalField()
|