Home
last modified time | relevance | path

Searched refs:MINUTES (Results 1 – 25 of 42) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DTimeUnitTest.java15 import static java.util.concurrent.TimeUnit.MINUTES;
48 SECONDS.convert(t, MINUTES)); in testConvert()
63 MILLISECONDS.convert(t, MINUTES)); in testConvert()
78 MICROSECONDS.convert(t, MINUTES)); in testConvert()
93 NANOSECONDS.convert(t, MINUTES)); in testConvert()
116 MINUTES.toNanos(t)); in testToNanos()
139 MINUTES.toMicros(t)); in testToMicros()
162 MINUTES.toMillis(t)); in testToMillis()
185 MINUTES.toSeconds(t)); in testToSeconds()
208 MINUTES.toMinutes(t)); in testToMinutes()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DTimeUnit8Test.java40 import static java.util.concurrent.TimeUnit.MINUTES;
71 assertSame(ChronoUnit.MINUTES, MINUTES.toChronoUnit()); in testToChronoUnit()
88 assertSame(MINUTES, TimeUnit.of(ChronoUnit.MINUTES)); in testTimeUnitOf()
121 assertEquals(n, MINUTES.convert(Duration.ofMinutes(n))); in testConvertDuration_roundtripDurationOf()
122 assertEquals(n, MINUTES.convert(Duration.of(n, ChronoUnit.MINUTES))); in testConvertDuration_roundtripDurationOf()
DTimeUnitTest.java41 import static java.util.concurrent.TimeUnit.MINUTES;
72 SECONDS.convert(t, MINUTES)); in testConvert()
87 MILLISECONDS.convert(t, MINUTES)); in testConvert()
102 MICROSECONDS.convert(t, MINUTES)); in testConvert()
117 NANOSECONDS.convert(t, MINUTES)); in testConvert()
149 MINUTES.toNanos(t)); in testToNanos()
172 MINUTES.toMicros(t)); in testToMicros()
195 MINUTES.toMillis(t)); in testToMillis()
218 MINUTES.toSeconds(t)); in testToSeconds()
241 MINUTES.toMinutes(t)); in testToMinutes()
[all …]
/libcore/luni/src/test/java/libcore/java/time/
DOffsetTimeTest.java50 NOON_UTC.plus(1, ChronoUnit.MINUTES)); in test_plus()
61 assertPlusIsNoop(0, ChronoUnit.MINUTES); in test_plus_noop()
64 assertPlusIsNoop(24 * 60, ChronoUnit.MINUTES); in test_plus_noop()
DOffsetDateTimeTest.java48 ODT.plus(1, ChronoUnit.MINUTES)); in test_plus()
64 ODT.minus(1, ChronoUnit.MINUTES)); in test_minus_utc_offset()
84 odt.minus(1, ChronoUnit.MINUTES)); in test_minus_non_utc_offset()
DInstantTest.java40 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MINUTES)); in test_isSupported_TemporalUnit()
/libcore/ojluni/src/main/java/java/util/concurrent/
DTimeUnit.java96 MINUTES(TimeUnit.MINUTE_SCALE), enumConstant
462 case MINUTES: return ChronoUnit.MINUTES; in toChronoUnit()
485 case MINUTES: return TimeUnit.MINUTES; in of()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java69 import static java.time.temporal.ChronoUnit.MINUTES;
113 {MINUTES, false, true, false}, in data_chronoUnit()
144 {MINUTES, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(1, 3, 3, 400)}, in data_unitAndTemporal()
159 {MINUTES, LocalDate.of(2000, 2, 29), false, 1, null}, in data_unitAndTemporal()
DTCKChronoField.java92 import static java.time.temporal.ChronoUnit.MINUTES;
131 {MINUTE_OF_DAY, MINUTES, DAYS}, in data_fieldUnit()
132 {MINUTE_OF_HOUR, MINUTES, HOURS}, in data_fieldUnit()
134 {SECOND_OF_MINUTE, SECONDS, MINUTES}, in data_fieldUnit()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoUnitSerialization.java69 import static java.time.temporal.ChronoUnit.MINUTES;
108 {MINUTES}, in data_chronoUnit()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java77 import static java.time.temporal.ChronoUnit.MINUTES;
237 SECOND_OF_MINUTE("SecondOfMinute", SECONDS, MINUTES, ValueRange.of(0, 59), "second"),
259 MINUTE_OF_HOUR("MinuteOfHour", MINUTES, HOURS, ValueRange.of(0, 59), "minute"),
270 MINUTE_OF_DAY("MinuteOfDay", MINUTES, DAYS, ValueRange.of(0, (24 * 60) - 1)),
DChronoUnit.java104 MINUTES("Minutes", Duration.ofSeconds(60)), enumConstant
/libcore/luni/src/test/java/libcore/javax/xml/datatype/
DDurationImpl.java61 fields.put(DatatypeConstants.MINUTES, m); in DurationImpl()
73 if (m >= 0) { fields.put(DatatypeConstants.MINUTES, m); } in DurationImpl()
DDatatypeConstantsTest.java28 assertEquals(4, DatatypeConstants.MINUTES.getId()); in testField_getId()
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java162 boolean minuteSet = isSet(DatatypeConstants.MINUTES); in getXMLSchemaType()
284 return getFieldValueAsInt(DatatypeConstants.MINUTES); in getMinutes()
908 BigInteger minutes = (BigInteger) getField(DatatypeConstants.MINUTES); in toString()
DDatatypeConstants.java149 public static final Field MINUTES = new Field("MINUTES", 4); field in DatatypeConstants
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKInstant.java70 import static java.time.temporal.ChronoUnit.MINUTES;
635 …{Instant.ofEpochSecond(86400 + 3600 + 60 + 1, 123_456_789), MINUTES, Instant.ofEpochSecond(86400 +…
643 …{Instant.ofEpochSecond(-86400 - 3600 - 60 - 1, 123_456_789), MINUTES, Instant.ofEpochSecond(-86400…
647 …{Instant.ofEpochSecond(-86400 - 3600 - 120, 0), MINUTES, Instant.ofEpochSecond(-86400 - 3600 - 120…
683 {MINUTES, MockSimplePeriod.of(4, MINUTES), 241, 0},
688 {MINUTES, MockSimplePeriod.of(12, MINUTES), 721, 0},
1790 {0, 0, -60, 0, MINUTES, -1L},
1791 {0, 0, -1, 999_999_999, MINUTES, 0L},
1792 {0, 0, 59, 0, MINUTES, 0L},
1793 {0, 0, 59, 999_999_999, MINUTES, 0L},
[all …]
DTCKDuration.java67 import static java.time.temporal.ChronoUnit.MINUTES;
343 {0, MINUTES, 0, 0}, in provider_factory_of_longTemporalUnit()
351 {1, MINUTES, 60, 0}, in provider_factory_of_longTemporalUnit()
359 {3, MINUTES, 3 * 60, 0}, in provider_factory_of_longTemporalUnit()
367 {-1, MINUTES, -60, 0}, in provider_factory_of_longTemporalUnit()
375 {-3, MINUTES, -3 * 60, 0}, in provider_factory_of_longTemporalUnit()
387 {Long.MAX_VALUE / 60, MINUTES, (Long.MAX_VALUE / 60) * 60, 0}, in provider_factory_of_longTemporalUnit()
388 {Long.MIN_VALUE / 60, MINUTES, (Long.MIN_VALUE / 60) * 60, 0}, in provider_factory_of_longTemporalUnit()
406 {Long.MAX_VALUE / 60 + 1, MINUTES}, in provider_factory_of_longTemporalUnit_outOfRange()
407 {Long.MIN_VALUE / 60 - 1, MINUTES}, in provider_factory_of_longTemporalUnit_outOfRange()
[all …]
DTCKLocalTime.java83 import static java.time.temporal.ChronoUnit.MINUTES;
634 assertEquals(TEST_12_30_40_987654321.isSupported(ChronoUnit.MINUTES), true); in test_isSupported_TemporalUnit()
1382 {LocalTime.of(1, 2, 3, 123_456_789), MINUTES, LocalTime.of(1, 2)}, in data_truncatedToValid()
1429 TemporalAmount period = MockSimplePeriod.of(-25, ChronoUnit.MINUTES); in test_plus_TemporalAmount_negativeMinutes()
1470 LocalTime t = TEST_12_30_40_987654321.plus(-25, ChronoUnit.MINUTES); in test_plus_longTemporalUnit_negativeMinutes()
1476 LocalTime t = TEST_12_30_40_987654321.plus(0, ChronoUnit.MINUTES); in test_plus_longTemporalUnit_zero()
1855 TemporalAmount period = MockSimplePeriod.of(-25, ChronoUnit.MINUTES);
1896 LocalTime t = TEST_12_30_40_987654321.minus(-25, ChronoUnit.MINUTES);
1902 LocalTime t = TEST_12_30_40_987654321.minus(0, ChronoUnit.MINUTES);
2301 {time(0, 0, 0, 0), time(0, 0, 0, 0), MINUTES, 0},
[all …]
DTCKLocalDateTime.java98 import static java.time.temporal.ChronoUnit.MINUTES;
958 assertEquals(TEST_2007_07_15_12_30_40_987654321.isSupported(ChronoUnit.MINUTES), true);
2803 {dtEpoch(0, 0, 0, 0), dtEpoch(0, 0, 0, 0), MINUTES, 0},
2811 {dtEpoch(0, 0, 0, 0), dtEpoch(2, 0, 0, 0), MINUTES, 2 * 60},
2819 {dtEpoch(0, 0, 0, 0), dtEpoch(14, 0, 0, 0), MINUTES, 14 * 60},
2827 {dtEpoch(0, 0, 0, 0), dtEpoch(2, 30, 40, 1500), MINUTES, 2 * 60 + 30},
2856 … {dt(2000, 1, 15, 12, 30, 40, 500), dt(2000, 1, 16, 12, 29, 40, 499), MINUTES, -2 + 24 * 60L},
2857 … {dt(2000, 1, 15, 12, 30, 40, 500), dt(2000, 1, 16, 12, 29, 40, 500), MINUTES, -1 + 24 * 60L},
2858 … {dt(2000, 1, 15, 12, 30, 40, 500), dt(2000, 1, 16, 12, 29, 40, 501), MINUTES, -1 + 24 * 60L},
2859 … {dt(2000, 1, 15, 12, 30, 40, 500), dt(2000, 1, 16, 12, 30, 40, 499), MINUTES, -1 + 24 * 60L},
[all …]
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java85 cmp(Instant.MIN, Long.MIN_VALUE, MINUTES, 1); in main()
93 cmp(Instant.MAX, Long.MAX_VALUE, MINUTES, -1); in main()
183 ts(1L, MINUTES, "1970-01-01T00:01:00Z"); in main()
193 ts(-1L, MINUTES, "1969-12-31T23:59:00Z"); in main()
/libcore/luni/src/test/java/libcore/java/security/
DMessageDigestTest.java61 assertTrue("Test should not timeout", es.awaitTermination(1, TimeUnit.MINUTES)); in testMessageDigest_MultipleThreads_Misuse()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DJapaneseDateTest.java81 JapaneseDate.now().minus(1, ChronoUnit.MINUTES); in minus_less_than_day_throwsUnsupportedTemporalTypeException()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java312 case MINUTES: return plusMinutes(amountToAdd); in plus()
383 case MINUTES: amount = Math.multiplyExact(amount, MINUTES_PER_DAY); break; in until()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoLocalDateTime.java272 dates.add(date.minus(1, ChronoUnit.MINUTES)); in test_datetime_comparisons()
278 dates.add(date.plus(1, ChronoUnit.MINUTES)); in test_datetime_comparisons()

12