Home
last modified time | relevance | path

Searched refs:toMillis (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/concurrent/
DTimeUnit.java80 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 …]
DForkJoinTask.java1037 if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) > 0L && in get()
DForkJoinPool.java2246 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/
DBasicFileAttributeViewCreationTimeTest.java72 if (Math.abs(creationTime.toMillis()-now.toEpochMilli()) > 10000L) { in test()
118 if (Math.abs(creationTime.toMillis()-current.toMillis()) > 1000L) in test()
DFileTimeTest.java167 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/
DTimeUnitTest.java158 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()
DJSR166TestCase.java1284 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime);
DScheduledExecutorTest.java201 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipEntryTest.java183 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()
DZipOutputStreamTest.java327 readEntry.getLastModifiedTime().toMillis()); in test_timeSerializationRounding()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java73 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/
DTimeZoneNames.java65 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/
DProcess.java199 Math.min(TimeUnit.NANOSECONDS.toMillis(rem) + 1, 100)); in waitFor()
/libcore/luni/src/main/java/android/system/
DStructTimeval.java54 public long toMillis() { in toMillis() method in StructTimeval
/libcore/luni/src/test/java/libcore/android/system/
DStructTimevalTest.java76 assertEquals(millisValue, val.toMillis()); in fromToMillis()
DOsTest.java1088 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/
DPollingWatchService.java260 Files.getLastModifiedTime(entry, LinkOption.NOFOLLOW_LINKS).toMillis();
340 Files.getLastModifiedTime(entry, LinkOption.NOFOLLOW_LINKS).toMillis();
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java169 public long toMillis() { in toMillis() method in FileTime
171 return unit.toMillis(value); in toMillis()
/libcore/luni/src/test/java/libcore/java/time/zone/
DIcuZoneRulesProviderTest.java96 icuOffsets[1], daylightSavings.toMillis()); in testTransitionsNearInstants()
/libcore/ojluni/src/main/java/java/util/zip/
DZipEntry.java227 return mtime.toMillis(); in getTime()
/libcore/ojluni/src/main/java/java/time/
DClock.java567 return Math.addExact(baseClock.millis(), offset.toMillis()); in millis()
DDuration.java1164 public long toMillis() { in toMillis() method in Duration
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java294 public long toMillis() { in toMillis() method in Duration
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java187 (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/
DTCKDuration.java2441 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()

12