/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TimeUnitTest.java | 44 SECONDS.convert(t, DAYS)); in testConvert() 46 SECONDS.convert(t, HOURS)); in testConvert() 48 SECONDS.convert(t, MINUTES)); in testConvert() 50 SECONDS.convert(t, SECONDS)); in testConvert() 52 SECONDS.convert(1000L*t, MILLISECONDS)); in testConvert() 54 SECONDS.convert(1000000L*t, MICROSECONDS)); in testConvert() 56 SECONDS.convert(1000000000L*t, NANOSECONDS)); in testConvert() 59 MILLISECONDS.convert(t, DAYS)); in testConvert() 61 MILLISECONDS.convert(t, HOURS)); in testConvert() 63 MILLISECONDS.convert(t, MINUTES)); in testConvert() [all …]
|
D | DelayQueueTest.java | 123 return unit.convert(n, TimeUnit.NANOSECONDS); in getDelay()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TimeUnit8Test.java | 114 assertEquals(n, NANOSECONDS.convert(Duration.ofNanos(n))); in testConvertDuration_roundtripDurationOf() 115 assertEquals(n, NANOSECONDS.convert(Duration.of(n, ChronoUnit.NANOS))); in testConvertDuration_roundtripDurationOf() 116 assertEquals(n, MILLISECONDS.convert(Duration.ofMillis(n))); in testConvertDuration_roundtripDurationOf() 117 assertEquals(n, MILLISECONDS.convert(Duration.of(n, ChronoUnit.MILLIS))); in testConvertDuration_roundtripDurationOf() 118 assertEquals(n, SECONDS.convert(Duration.ofSeconds(n))); in testConvertDuration_roundtripDurationOf() 119 assertEquals(n, SECONDS.convert(Duration.of(n, ChronoUnit.SECONDS))); in testConvertDuration_roundtripDurationOf() 121 assertEquals(n, MINUTES.convert(Duration.ofMinutes(n))); in testConvertDuration_roundtripDurationOf() 122 assertEquals(n, MINUTES.convert(Duration.of(n, ChronoUnit.MINUTES))); in testConvertDuration_roundtripDurationOf() 124 assertEquals(n, HOURS.convert(Duration.ofHours(n))); in testConvertDuration_roundtripDurationOf() 125 assertEquals(n, HOURS.convert(Duration.of(n, ChronoUnit.HOURS))); in testConvertDuration_roundtripDurationOf() [all …]
|
D | TimeUnitTest.java | 68 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 …]
|
D | DelayQueueTest.java | 130 return unit.convert(n, TimeUnit.NANOSECONDS); in getDelay()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 50 long tomorrowInDays = TimeUnit.DAYS.convert(now, MILLISECONDS) + 1; in main() 51 long yesterdayInDays = TimeUnit.DAYS.convert(now, MILLISECONDS) - 1; in main() 107 to(MILLISECONDS.convert(1, DAYS) - 1, MILLISECONDS); in main() 108 to(MILLISECONDS.convert(1, DAYS) + 0, MILLISECONDS); in main() 109 to(MILLISECONDS.convert(1, DAYS) + 1, MILLISECONDS); in main() 113 to(MILLISECONDS.convert(-1, DAYS) - 1, MILLISECONDS); in main() 114 to(MILLISECONDS.convert(-1, DAYS) + 0, MILLISECONDS); in main() 115 to(MILLISECONDS.convert(-1, DAYS) + 1, MILLISECONDS); in main() 296 long secs = SECONDS.convert(value, unit); in eqTime() 297 long nanos = NANOSECONDS.convert(value - unit.convert(secs, SECONDS), unit); in eqTime() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 144 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/src/test/java/nio/Buffer/ |
D | EqualsCompareTest.java | 148 setter.invoke(a, i, convert(v)); in set() 158 abstract Object convert(Object o); in convert() method in EqualsCompareTest.BufferType 224 Object convert(Object o) { in convert() method in EqualsCompareTest.BufferType.Bytes 254 Object convert(Object o) { in convert() method in EqualsCompareTest.BufferType.Chars 290 Object convert(Object o) { in convert() method in EqualsCompareTest.BufferType.Shorts 319 Object convert(Object o) { in convert() method in EqualsCompareTest.BufferType.Ints 347 Object convert(Object o) { in convert() method in EqualsCompareTest.BufferType.Floats 391 Object convert(Object o) { in convert() method in EqualsCompareTest.BufferType.Longs 421 Object convert(Object o) { in convert() method in EqualsCompareTest.BufferType.Doubles
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | Wrapper.java | 263 public <T> T zero(Class<T> type) { return convert(zero(), type); } in zero() 495 return convert(x, type, true); in cast() 503 public <T> T convert(Object x, Class<T> type) { in convert() method in Wrapper 504 return convert(x, type, false); in convert() 507 private <T> T convert(Object x, Class<T> type, boolean isCast) { in convert() method in Wrapper 642 value = convert(value, primitiveType); in copyArrayUnboxing()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | DerIndefLenConverter.java | 92 byte[] convert(byte[] indefData) throws java.io.IOException { in convert() method in DerIndefLenConverter
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 185 public long convert(long sourceDuration, TimeUnit sourceUnit) { in convert() method in TimeUnit 217 public long convert(Duration duration) { in convert() method in TimeUnit
|
D | ScheduledThreadPoolExecutor.java | 248 return unit.convert(time - System.nanoTime(), NANOSECONDS); in getDelay()
|
D | ThreadPoolExecutor.java | 1744 return unit.convert(keepAliveTime, TimeUnit.NANOSECONDS); in getKeepAliveTime()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerInputStream.java | 135 buffer = new DerInputBuffer(derIn.convert(inData)); in init() 440 buffer = new DerInputBuffer(derIn.convert(indefData)); in readVector()
|
D | DerValue.java | 275 inbuf = new DerInputBuffer(derIn.convert(indefData)); in DerValue() 393 in = new ByteArrayInputStream(derIn.convert(indefData)); in init()
|
D | DerIndefLenConverter.java | 320 byte[] convert(byte[] indefData) throws IOException { in convert() method in DerIndefLenConverter
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | Sorting.java | 1600 converter.convert((int[]) gold[0], gold[i]); in convertData() 1620 void convert(int[] src, Object dst) { in convert() method 1630 void convert(int[] src, Object dst) { in convert() method 1640 void convert(int[] src, Object dst) { in convert() method 1650 void convert(int[] src, Object dst) { in convert() method 1660 void convert(int[] src, Object dst) { in convert() method 1670 void convert(int[] src, Object dst) { in convert() method 1679 abstract void convert(int[] src, Object dst); in convert() method in Sorting.TypeConverter
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipUtils.java | 100 return TimeUnit.MILLISECONDS.convert(ldt.toEpochSecond( in dosToJavaTime()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArraysTest.java | 1883 Object convertedGolden = converter.convert(golden); in test_sort() 1884 Object convertedTest = converter.convert(test); in test_sort() 2221 Object convert(int[] a) { in convert() method 2227 Object convert(int[] a) { in convert() method 2238 Object convert(int[] a) { in convert() method 2249 Object convert(int[] a) { in convert() method 2260 Object convert(int[] a) { in convert() method 2271 Object convert(int[] a) { in convert() method 2282 Object convert(int[] a) { in convert() method 2292 abstract Object convert(int[] a); in convert() method in ArraysTest.PrimitiveTypeConverter
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandles.java | 3002 value = w.convert(value, type); in constant() 3184 values[i] = Wrapper.forPrimitiveType(ptype).convert(values[i], ptype); in insertArguments()
|
/libcore/ |
D | JavaLibrary.bp | 1094 … "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* ",
|
/libcore/api/ |
D | current.txt | 16430 method public long convert(long, java.util.concurrent.TimeUnit); 16431 method public long convert(java.time.Duration);
|