/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 80 public long toMillis(long d) { return d/(C2/C0); } in toMillis() method 95 public long toMillis(long d) { return d/(C2/C1); } in toMillis() method 110 public long toMillis(long d) { return d; } in toMillis() method 115 public long convert(long d, TimeUnit u) { return u.toMillis(d); } in convert() 125 public long toMillis(long d) { return x(d, C3/C2, MAX/(C3/C2)); } in toMillis() method 141 public long toMillis(long d) { return x(d, C4/C2, MAX/(C4/C2)); } in toMillis() method 157 public long toMillis(long d) { return x(d, C5/C2, MAX/(C5/C2)); } in toMillis() method 173 public long toMillis(long d) { return x(d, C6/C2, MAX/(C6/C2)); } in toMillis() method 262 public long toMillis(long duration) { in toMillis() method in TimeUnit 351 long ms = toMillis(timeout); in timedWait() [all …]
|
D | ForkJoinTask.java | 1037 if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) > 0L && in get()
|
D | ForkJoinPool.java | 2246 else if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) <= 0L) in awaitJoin() 3263 long millis = TimeUnit.NANOSECONDS.toMillis(nanos); in awaitTermination()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TimeUnitTest.java | 191 DAYS.toMillis(t)); in testToMillis() 193 HOURS.toMillis(t)); in testToMillis() 195 MINUTES.toMillis(t)); in testToMillis() 197 SECONDS.toMillis(t)); in testToMillis() 199 MILLISECONDS.toMillis(t)); in testToMillis() 201 MICROSECONDS.toMillis(t*1000L)); in testToMillis() 203 NANOSECONDS.toMillis(t*1000000L)); in testToMillis() 410 assertEquals(z * ratio, x.toMillis(z)); in testToMillisSaturate() 412 assertEquals(Long.MAX_VALUE, x.toMillis(max + 1)); in testToMillisSaturate() 413 assertEquals(Long.MIN_VALUE, x.toMillis(-max - 1)); in testToMillisSaturate() [all …]
|
D | ScheduledExecutorSubclassTest.java | 279 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | BasicFileAttributeViewCreationTimeTest.java | 72 if (Math.abs(creationTime.toMillis()-now.toEpochMilli()) > 10000L) { in test() 118 if (Math.abs(creationTime.toMillis()-current.toMillis()) > 1000L) in test()
|
D | FileTimeTest.java | 167 ft.toMillis() != instant.toEpochMilli()) { in main() 233 FileTime.from(Instant.MAX).toMillis()); in main() 236 .toMillis()); in main() 238 FileTime.from(Instant.MIN).toMillis()); in main() 241 .toMillis()); in main()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipEntryTest.java | 183 assertEquals(orgTime, zentry.getLastModifiedTime().toMillis()); in test_getLastModifiedTime() 404 assertEquals(0, zentry.getLastModifiedTime().toMillis()); in test_setLastModifiedTime() 409 assertEquals(someTimestampValue, zentry.getLastModifiedTime().toMillis()); in test_setLastModifiedTime() 418 assertEquals(0, zentry.getCreationTime().toMillis()); in test_setCreationTime() 422 assertEquals(someTimestampValue, zentry.getCreationTime().toMillis()); in test_setCreationTime() 430 assertEquals(0, zentry.getLastAccessTime().toMillis()); in test_setLastAccessTime() 434 assertEquals(someTimestampValue, zentry.getLastAccessTime().toMillis()); in test_setLastAccessTime()
|
D | ZipOutputStreamTest.java | 327 readEntry.getLastModifiedTime().toMillis()); in test_timeSerializationRounding()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TimeUnitTest.java | 158 DAYS.toMillis(t)); in testToMillis() 160 HOURS.toMillis(t)); in testToMillis() 162 MINUTES.toMillis(t)); in testToMillis() 164 SECONDS.toMillis(t)); in testToMillis() 166 MILLISECONDS.toMillis(t)); in testToMillis() 168 MICROSECONDS.toMillis(t*1000L)); in testToMillis() 170 NANOSECONDS.toMillis(t*1000000L)); in testToMillis()
|
D | JSR166TestCase.java | 1284 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime);
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | ReferenceQueueTest.java | 73 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithSpuriousNotify() 97 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndNoTimeout() 113 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndTimeout()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Process.java | 199 Math.min(TimeUnit.NANOSECONDS.toMillis(rem) + 1, 100)); in waitFor()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | TimeZoneNames.java | 65 long nativeDuration = TimeUnit.NANOSECONDS.toMillis(nativeEnd - nativeStart); in create() 66 long duration = TimeUnit.NANOSECONDS.toMillis(end - start); in create()
|
/libcore/luni/src/main/java/android/system/ |
D | StructTimeval.java | 53 public long toMillis() { in toMillis() method in StructTimeval
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | StructTimevalTest.java | 78 assertEquals(millisValue, val.toMillis()); in fromToMillis()
|
D | OsTest.java | 1514 assertEquals(0, v.toMillis()); // system default value 1524 Math.abs(newValue.toMillis() - actualValue.toMillis()) <= 10); 1549 long durationMillis = Duration.ofNanos(System.nanoTime() - startTime).toMillis();
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | PollingWatchService.java | 260 Files.getLastModifiedTime(entry, LinkOption.NOFOLLOW_LINKS).toMillis(); 340 Files.getLastModifiedTime(entry, LinkOption.NOFOLLOW_LINKS).toMillis();
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 169 public long toMillis() { in toMillis() method in FileTime 171 return unit.toMillis(value); in toMillis()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipEntry.java | 228 return mtime.toMillis(); in getTime()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Clock.java | 567 return Math.addExact(baseClock.millis(), offset.toMillis()); in millis()
|
D | Duration.java | 1198 public long toMillis() { in toMillis() method in Duration
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 294 public long toMillis() { in toMillis() method in Duration
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 233 (int) TimeUnit.NANOSECONDS.toMillis(finishTimeNanos - System.nanoTime()); in connectErrno() 417 return (int) Libcore.os.getsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO).toMillis(); in getSocketOptionErrno()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDuration.java | 2629 assertEquals(test.toMillis(), 321000 + 123); in test_toMillis() 2635 assertEquals(test.toMillis(), Long.MAX_VALUE); in test_toMillis_max() 2641 test.toMillis(); in test_toMillis_tooBig()
|