/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatterBuilder.java | 64 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 277 builder.appendFraction(MINUTE_OF_HOUR, -1, 9, false); in test_appendFraction_4arg_minTooSmall() 282 builder.appendFraction(MINUTE_OF_HOUR, 10, 9, false); in test_appendFraction_4arg_minTooBig() 287 builder.appendFraction(MINUTE_OF_HOUR, 0, -1, false); in test_appendFraction_4arg_maxTooSmall() 292 builder.appendFraction(MINUTE_OF_HOUR, 1, 10, false); in test_appendFraction_4arg_maxTooBig() 297 builder.appendFraction(MINUTE_OF_HOUR, 9, 3, false); in test_appendFraction_4arg_maxWidthMinWidth() 739 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOUR, 2).appendLit… in test_adjacent_strict_firstFixedWidth() 745 assertEquals(parsed.getLong(MINUTE_OF_HOUR), 30L); in test_adjacent_strict_firstFixedWidth() 751 …DateTimeFormatter f = builder.appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, 2).appendLitera… in test_adjacent_strict_firstVariableWidth_success() 757 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; 173 {YEAR, 2012, MINUTE_OF_HOUR, 5}, in data_resolveTwoNoChange() 182 {MONTH_OF_YEAR, 5, MINUTE_OF_HOUR, 5}, in data_resolveTwoNoChange() 215 {MINUTE_OF_HOUR, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5}, in data_resolveThreeNoChange() 401 {HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime() 414 {CLOCK_HOUR_OF_DAY, 8, MINUTE_OF_HOUR, 6, LocalTime.of(8, 6)}, in data_resolveTwoToTime() 415 {CLOCK_HOUR_OF_DAY, 24, MINUTE_OF_HOUR, 6, LocalTime.of(0, 6)}, in data_resolveTwoToTime() 430 {MINUTE_OF_DAY, 650, MINUTE_OF_HOUR, 50, LocalTime.of(10, 50)}, in data_resolveTwoToTime() 438 {SECOND_OF_DAY, 3600 + 650, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50)}, in data_resolveTwoToTime() 446 … {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 | 75 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 403 updateCheckConflict(NANO_OF_DAY, MINUTE_OF_HOUR, (nod / 60_000_000_000L) % 60); in resolveTimeFields() 429 updateCheckConflict(SECOND_OF_DAY, MINUTE_OF_HOUR, (sod / 60) % 60); in resolveTimeFields() 438 updateCheckConflict(MINUTE_OF_DAY, MINUTE_OF_HOUR, mod % 60); in resolveTimeFields() 465 if (fieldValues.containsKey(HOUR_OF_DAY) && fieldValues.containsKey(MINUTE_OF_HOUR) && in resolveTimeFields() 468 long moh = fieldValues.remove(MINUTE_OF_HOUR); in resolveTimeFields() 503 Long moh = fieldValues.get(MINUTE_OF_HOUR); in resolveTimeLenient() 519 fieldValues.remove(MINUTE_OF_HOUR); in resolveTimeLenient() 546 int mohVal = MINUTE_OF_HOUR.checkValidIntValue(moh); in resolveTime()
|
D | DateTimeFormatter.java | 68 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 806 .appendValue(MINUTE_OF_HOUR, 2) 1257 .appendValue(MINUTE_OF_HOUR, 2)
|
D | DateTimeFormatterBuilder.java | 74 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 1857 FIELD_MAP.put('m', ChronoField.MINUTE_OF_HOUR); // SDF, LDML 3256 .appendValue(MINUTE_OF_HOUR, 2).appendLiteral(':') in parse() 3272 int min = newContext.getParsed(MINUTE_OF_HOUR).intValue(); in parse()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 72 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 176 MINUTE_OF_HOUR, in validFields() 572 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoField.MINUTE_OF_HOUR), true); in test_isSupported_TemporalField() 627 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); in test_get_TemporalField() 643 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30); in test_getLong_TemporalField() 810 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_nanoOfSecond() 834 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_microOfSecond() 859 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_milliOfSecond() 883 assertEquals(test.get(MINUTE_OF_HOUR), TEST_12_30_40_987654321.get(MINUTE_OF_HOUR)); in test_with_longTemporalField_secondOfMinute() 904 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; 169 MINUTE_OF_HOUR, in validFields() 530 assertEquals(TEST_11_30_59_500_PONE.isSupported(ChronoField.MINUTE_OF_HOUR), true); 585 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); 598 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30); 781 …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; 188 MINUTE_OF_HOUR, in validFields() 547 … assertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.MINUTE_OF_HOUR), true); 608 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); 627 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() 873 assertEquals(TEST_DATE_TIME.isSupported(ChronoField.MINUTE_OF_HOUR), true); 934 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); 953 assertEquals(test.getLong(ChronoField.MINUTE_OF_HOUR), 30); 1324 …PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withEarlierOffsetAtOverlap(), MINUTE_OF_HOUR, 20, 1326 …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; 193 MINUTE_OF_HOUR, in validFields() 930 … assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoField.MINUTE_OF_HOUR), true); 991 assertEquals(test.get(ChronoField.MINUTE_OF_HOUR), 30); 1008 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()
|
D | TCKYear.java | 344 assertEquals(TEST_2008.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
|
D | TCKYearMonth.java | 409 assertEquals(TEST_2008_06.isSupported(ChronoField.MINUTE_OF_HOUR), false); in test_isSupported_TemporalField()
|
D | TCKInstant.java | 531 … {Instant.ofEpochSecond(10, 200), ChronoField.MINUTE_OF_HOUR, 1, null, DateTimeException.class},
|
/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/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; 294 MINUTE_OF_HOUR.checkValidValue(minute); in of() 315 MINUTE_OF_HOUR.checkValidValue(minute); in of() 334 MINUTE_OF_HOUR.checkValidValue(minute); in of() 665 case MINUTE_OF_HOUR: return minute; in get0() 840 case MINUTE_OF_HOUR: return withMinute((int) newValue); in with() 884 MINUTE_OF_HOUR.checkValidValue(minute); in withMinute()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeFormatterBuilder.java | 64 import static java.time.temporal.ChronoField.MINUTE_OF_HOUR; 299 builder.appendFraction(MINUTE_OF_HOUR, 1, 9, false); in test_appendFraction_4arg() 316 builder.appendFraction(MINUTE_OF_HOUR, -1, 9, false); in test_appendFraction_4arg_minTooSmall() 321 builder.appendFraction(MINUTE_OF_HOUR, 10, 9, false); in test_appendFraction_4arg_minTooBig() 326 builder.appendFraction(MINUTE_OF_HOUR, 0, -1, false); in test_appendFraction_4arg_maxTooSmall() 331 builder.appendFraction(MINUTE_OF_HOUR, 1, 10, false); in test_appendFraction_4arg_maxTooBig() 336 builder.appendFraction(MINUTE_OF_HOUR, 9, 3, false); in test_appendFraction_4arg_maxWidthMinWidth()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 248 MINUTE_OF_HOUR("MinuteOfHour", MINUTES, HOURS, ValueRange.of(0, 59), "minute"), enumConstant 636 case MINUTE_OF_HOUR: in getIcuFieldNumber()
|
/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 | 105 assertEquals(false, date.isSupported(ChronoField.MINUTE_OF_HOUR)); in test_JapaneseDate_isSupported_TemporalField()
|