Home
last modified time | relevance | path

Searched refs:toMillis (Results 1 – 25 of 30) 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/util/concurrent/tck/
DTimeUnitTest.java191 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 …]
DScheduledExecutorSubclassTest.java279 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
/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/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/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);
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java73 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/
DProcess.java199 Math.min(TimeUnit.NANOSECONDS.toMillis(rem) + 1, 100)); in waitFor()
/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/luni/src/main/java/android/system/
DStructTimeval.java53 public long toMillis() { in toMillis() method in StructTimeval
/libcore/luni/src/test/java/libcore/android/system/
DStructTimevalTest.java78 assertEquals(millisValue, val.toMillis()); in fromToMillis()
DOsTest.java1514 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/
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/ojluni/src/main/java/java/util/zip/
DZipEntry.java228 return mtime.toMillis(); in getTime()
/libcore/ojluni/src/main/java/java/time/
DClock.java567 return Math.addExact(baseClock.millis(), offset.toMillis()); in millis()
DDuration.java1198 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.java233 (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/
DTCKDuration.java2629 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()

12