/libcore/benchmarks/src/benchmarks/ |
D | BigIntegerBenchmark.java | 216 for (int i = 10; i <= 10_000; i *= 10) { in main() 217 repeatInner(1000, i, PRINT_TIMES ? Math.min(20_000 / i, 3_000) : 2); in main() 219 for (int i = 5; i <= 5_000; i *= 10) { in main() 220 repeatHarmonic1000(i, PRINT_TIMES ? Math.min(20_000 / i, 3_000) : 2); in main() 222 for (int i = 5; i <= 5_000; i *= 10) { in main() 223 repeatToString(i, PRINT_TIMES ? Math.min(20_000 / i, 3_000) : 2); in main() 225 for (int i = 10; i <= 10_000; i *= 10) { in main() 226 repeatEApprox(100_000, i, PRINT_TIMES ? 50_000 / i : 2); in main() 228 for (int i = 5; i <= 5_000; i *= 10) { in main() 229 repeatModPow(i, PRINT_TIMES ? 10_000 / i : 2); in main() [all …]
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 340 return create(secs, mos * 1000_000); in ofEpochMilli() 557 case MILLI_OF_SECOND: return nanos / 1000_000; in get() 594 case MILLI_OF_SECOND: return nanos / 1000_000; in getLong() 704 int nval = (int) newValue * 1000_000; in with() 848 case MICROS: return plus(amountToAdd / 1000_000, (amountToAdd % 1000_000) * 1000); in plus() 887 return plus(millisToAdd / 1000, (millisToAdd % 1000) * 1000_000); in plusMillis() 1228 long adjustment = nanos / 1000_000 - 1000; in toEpochMilli() 1232 return Math.addExact(millis, nanos / 1000_000); in toEpochMilli()
|
D | LocalTime.java | 684 case MILLI_OF_SECOND: return nano / 1000_000; in get0() 685 case MILLI_OF_DAY: return (int) (toNanoOfDay() / 1000_000); in get0() 859 case MILLI_OF_SECOND: return withNano((int) newValue * 1000_000); in with() 860 case MILLI_OF_DAY: return LocalTime.ofNanoOfDay(newValue * 1000_000); in with() 1066 case MILLIS: return plusNanos((amountToAdd % MILLIS_PER_DAY) * 1000_000); in plus() 1408 case MILLIS: return nanosUntil / 1000_000; in until() 1631 if (nanoValue % 1000_000 == 0) { in toString() 1632 buf.append(Integer.toString((nanoValue / 1000_000) + 1000).substring(1)); in toString() 1634 buf.append(Integer.toString((nanoValue / 1000) + 1000_000).substring(1)); in toString()
|
D | Clock.java | 286 if (tickNanos % 1000_000 == 0) { in tick() 622 if ((tickNanos % 1000_000) == 0) { in instant()
|
D | Duration.java | 262 return create(secs, mos * 1000_000); in ofMillis() 781 return plus(millisToAdd / 1000, (millisToAdd % 1000) * 1000_000); in plusMillis() 1200 millis = Math.addExact(millis, nanos / 1000_000); in toMillis() 1298 return nanos / 1000_000; in toMillisPart()
|
D | OffsetTime.java | 1178 case MILLIS: return nanosUntil / 1000_000; in until()
|
D | LocalDateTime.java | 1182 …return plusDays(amountToAdd / MILLIS_PER_DAY).plusNanos((amountToAdd % MILLIS_PER_DAY) * 1000_000); in plus()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock_Tick.java | 88 …Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000_000).toInstant(), PARIS), Duration.ofMil… in test_tick_ClockDuration_250millis() 96 …st = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000).toInstant(), PARIS), Duration.ofNanos(250_000)); in test_tick_ClockDuration_250micros() 97 assertEquals(test.instant(), ZDT.withNano((i / 250) * 250_000).toInstant()); in test_tick_ClockDuration_250micros()
|
D | TCKLocalTime.java | 866 assertEquals(test.get(NANO_OF_SECOND), i * 1_000); in test_with_longTemporalField_microOfSecond() local
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigIntegerTest.java | 252 for (int i = -100_000; i != 100_000; i += 10_000) { in test_shortValueExact()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoUnit.java | 93 MILLIS("Millis", Duration.ofNanos(1000_000)),
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | OffsetTimeTest.java | 66 assertPlusIsNoop(24 * 60 * 60 * 1_000, ChronoUnit.MILLIS); in test_plus_noop()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 420 updateCheckConflict(MILLI_OF_DAY, SECOND_OF_DAY, lod / 1_000); in resolveTimeFields() 421 updateCheckConflict(MILLI_OF_DAY, MILLI_OF_SECOND, lod % 1_000); in resolveTimeFields() 486 long cos = los * 1_000 + (fieldValues.get(MICRO_OF_SECOND) % 1_000); in resolveTimeLenient()
|
D | DateTimeFormatterBuilder.java | 3231 if (ldt.getYear() == -10_000) { in format() 3294 int year = (int) yearParsed % 10_000; in parse()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ThreadGroupTest.java | 128 Thread.sleep(20_000); in createHangThread()
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 183 return r + nanos / 1000_000; in toMillis() 198 private static final int NANOS_PER_MILLI = 1000_000;
|
/libcore/ojluni/src/main/java/java/lang/ref/ |
D | ReferenceQueue.java | 195 timeout -= (end - start) / 1000_000; in remove()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 302 {MICRO_OF_DAY, (3600 + 650) * 1_000_000L + 2, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveOneToTime() 434 {SECOND_OF_DAY, 3600 + 650, MICRO_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 453 … {MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, HOUR_OF_DAY, 1, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 454 … {MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, MINUTE_OF_HOUR, 10, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 455 …{MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, SECOND_OF_MINUTE, 50, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 456 … {MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, MILLI_OF_SECOND, 0, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime() 457 … {MICRO_OF_DAY, (3600 + 650) * 1000_000L + 2, MICRO_OF_SECOND, 2, LocalTime.of(1, 10, 50, 2_000)}, in data_resolveTwoToTime()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | HttpCookieTest.java | 419 String pastExpiryDate = dateFormat.format(new Date(System.currentTimeMillis() - 100_000)); in test_HasExpiredBug25682357_2() 425 String futureExpiryDate = dateFormat.format(new Date(System.currentTimeMillis() + 100_000)); in test_HasExpiredBug25682357_2()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | CompletableFutureTest.java | 4335 final int n = expensiveTests ? 1_000 : 2; in testRecursiveChains() 4432 final int n = expensiveTests ? 100_000 : 10; in testAnyOfGarbageRetention() 4449 final int n = expensiveTests ? 100_000 : 10; in testCancelledAllOfGarbageRetention() 4467 final int n = expensiveTests ? 100_000 : 10; in testCancelledGarbageRetention() 4482 final int n = expensiveTests ? 900_000 : 10; in testToCompletableFutureGarbageRetention()
|