/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/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/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);
|
D | ScheduledExecutorTest.java | 201 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
|
/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/luni/src/test/java/libcore/java/lang/ref/ |
D | ReferenceQueueTest.java | 73 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithSpuriousNotify() 96 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndNoTimeout() 107 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndTimeout()
|
/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/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/android/system/ |
D | StructTimeval.java | 54 public long toMillis() { in toMillis() method in StructTimeval
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | StructTimevalTest.java | 76 assertEquals(millisValue, val.toMillis()); in fromToMillis()
|
D | OsTest.java | 1088 assertEquals(0, v.toMillis()); // system default value in test_socket_sockoptTimeval_readWrite() 1098 Math.abs(newValue.toMillis() - actualValue.toMillis()) <= 10); in test_socket_sockoptTimeval_readWrite() 1120 assertTrue(Duration.ofNanos(endTime - startTime).toMillis() < allowedTimeoutMillis); in test_socket_setSockoptTimeval_effective()
|
/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/luni/src/test/java/libcore/java/time/zone/ |
D | IcuZoneRulesProviderTest.java | 96 icuOffsets[1], daylightSavings.toMillis()); in testTransitionsNearInstants()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipEntry.java | 227 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 | 1164 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 | 187 (int) TimeUnit.NANOSECONDS.toMillis(finishTimeNanos - System.nanoTime()); in connectErrno() 350 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 | 2441 assertEquals(test.toMillis(), 321000 + 123); in test_toMillis() 2447 assertEquals(test.toMillis(), Long.MAX_VALUE); in test_toMillis_max() 2453 test.toMillis(); in test_toMillis_tooBig()
|