Home
last modified time | relevance | path

Searched refs:convert (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DTimeUnitTest.java68 SECONDS.convert(t, DAYS)); in testConvert()
70 SECONDS.convert(t, HOURS)); in testConvert()
72 SECONDS.convert(t, MINUTES)); in testConvert()
74 SECONDS.convert(t, SECONDS)); in testConvert()
76 SECONDS.convert(1000L*t, MILLISECONDS)); in testConvert()
78 SECONDS.convert(1000000L*t, MICROSECONDS)); in testConvert()
80 SECONDS.convert(1000000000L*t, NANOSECONDS)); in testConvert()
83 MILLISECONDS.convert(t, DAYS)); in testConvert()
85 MILLISECONDS.convert(t, HOURS)); in testConvert()
87 MILLISECONDS.convert(t, MINUTES)); in testConvert()
[all …]
DDelayQueueTest.java130 return unit.convert(n, TimeUnit.NANOSECONDS); in getDelay()
/libcore/ojluni/src/main/java/java/util/concurrent/
DTimeUnit.java85 public long convert(long d, TimeUnit u) { return u.toNanos(d); } in convert() method
100 public long convert(long d, TimeUnit u) { return u.toMicros(d); } in convert() method
115 public long convert(long d, TimeUnit u) { return u.toMillis(d); } in convert() method
130 public long convert(long d, TimeUnit u) { return u.toSeconds(d); } in convert() method
146 public long convert(long d, TimeUnit u) { return u.toMinutes(d); } in convert() method
162 public long convert(long d, TimeUnit u) { return u.toHours(d); } in convert() method
178 public long convert(long d, TimeUnit u) { return u.toDays(d); } in convert() method
226 public long convert(long sourceDuration, TimeUnit sourceUnit) { in convert() method in TimeUnit
DScheduledThreadPoolExecutor.java241 return unit.convert(time - System.nanoTime(), NANOSECONDS); in getDelay()
DThreadPoolExecutor.java1751 return unit.convert(keepAliveTime, TimeUnit.NANOSECONDS); in getKeepAliveTime()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java144 return unit.convert(this.value, this.unit); in to()
146 long secs = unit.convert(instant.getEpochSecond(), TimeUnit.SECONDS); in to()
150 long nanos = unit.convert(instant.getNano(), TimeUnit.NANOSECONDS); in to()
318 return unit.toNanos(value - unit.convert(days, TimeUnit.DAYS)); in toExcessNanos()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DDerIndefLenConverter.java92 byte[] convert(byte[] indefData) throws java.io.IOException { in convert() method in DerIndefLenConverter
/libcore/ojluni/src/main/java/sun/security/util/
DDerInputStream.java135 buffer = new DerInputBuffer(derIn.convert(inData)); in init()
440 buffer = new DerInputBuffer(derIn.convert(indefData)); in readVector()
DDerValue.java275 inbuf = new DerInputBuffer(derIn.convert(indefData)); in DerValue()
393 in = new ByteArrayInputStream(derIn.convert(indefData)); in init()
DDerIndefLenConverter.java320 byte[] convert(byte[] indefData) throws IOException { in convert() method in DerIndefLenConverter
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java2736 value = w.convert(value, type); in constant()
2822 values[i] = Wrapper.forPrimitiveType(ptype).convert(values[i], ptype); in insertArguments()
/libcore/jsr166-tests/src/test/java/jsr166/
DDelayQueueTest.java123 return unit.convert(n, TimeUnit.NANOSECONDS); in getDelay()
/libcore/
DJavaLibrary.bp931 … "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* ",