/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ArrayTest.java | 26 private static double[] doubles; field in ArrayTest 37 doubles = new double[] { (double) 0xffffffffffffffffL }; in setUp() 48 try { Array.getBoolean(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean() 60 try { Array.getByte(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte() 72 try { Array.getChar(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar() 84 assertEquals(doubles[0], Array.getDouble(doubles, 0)); in testGetDouble() 97 try { Array.getFloat(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetFloat() 108 try { Array.getInt(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetInt() 120 try { Array.getLong(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetLong() 132 try { Array.getShort(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort() [all …]
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | DoubleStreamTestDataProvider.java | 84 final double[] doubles = (double[]) data[1]; 87 TestData.Factory.ofArray("array:" + name, doubles)}); in list.add() argument 90 for (double i : doubles) { 103 final double[] doubles = (double[]) data[1]; 106 for (double i : doubles) { 111 () -> Arrays.spliterator(doubles))); 113 … () -> Arrays.spliterator(doubles, 0, doubles.length / 2))); 119 … () -> Spliterators.spliterator(isl.iterator(), doubles.length, 0)));
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DoubleStreamTestDataProvider.java | 89 final double[] doubles = (double[]) data[1]; 92 TestData.Factory.ofArray("array:" + name, doubles)}); in list.add() argument 95 for (double i : doubles) { 108 final double[] doubles = (double[]) data[1]; 111 for (double i : doubles) { 116 () -> Arrays.spliterator(doubles))); 118 … () -> Arrays.spliterator(doubles, 0, doubles.length / 2))); 124 … () -> Spliterators.spliterator(isl.iterator(), doubles.length, 0)));
|
/libcore/ojluni/src/main/native/ |
D | ObjectOutputStream.c | 131 jdouble *doubles; in Java_java_io_ObjectOutputStream_doublesToBytes() local 145 doubles = (*env)->GetPrimitiveArrayCritical(env, src, NULL); in Java_java_io_ObjectOutputStream_doublesToBytes() 146 if (doubles == NULL) /* exception thrown */ in Java_java_io_ObjectOutputStream_doublesToBytes() 151 (*env)->ReleasePrimitiveArrayCritical(env, src, doubles, JNI_ABORT); in Java_java_io_ObjectOutputStream_doublesToBytes() 157 (*env)->ReleasePrimitiveArrayCritical(env, src, doubles, JNI_ABORT); in Java_java_io_ObjectOutputStream_doublesToBytes() 164 dval = doubles[srcpos]; in Java_java_io_ObjectOutputStream_doublesToBytes() 183 (*env)->ReleasePrimitiveArrayCritical(env, src, doubles, JNI_ABORT); in Java_java_io_ObjectOutputStream_doublesToBytes()
|
D | ObjectInputStream.c | 128 jdouble *doubles; in Java_java_io_ObjectInputStream_bytesToDoubles() local 151 doubles = (*env)->GetPrimitiveArrayCritical(env, dst, NULL); in Java_java_io_ObjectInputStream_bytesToDoubles() 152 if (doubles == NULL) { /* exception thrown */ in Java_java_io_ObjectInputStream_bytesToDoubles() 170 doubles[dstpos] = (jdouble) u.d; in Java_java_io_ObjectInputStream_bytesToDoubles() 175 (*env)->ReleasePrimitiveArrayCritical(env, dst, doubles, 0); in Java_java_io_ObjectInputStream_bytesToDoubles()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandom8Test.java | 49 () -> r.doubles(-1L), in testBadStreamSize() 50 () -> r.doubles(-1L, .5, .6), in testBadStreamSize() 66 () -> r.doubles(0.0, 0.0), in testBadStreamBounds() 67 () -> r.doubles(10, .5, .4), in testBadStreamBounds() 111 r.doubles(size).parallel().forEach(x -> counter.increment()); in testDoublesCount() 165 r.doubles(size, lo, hi).parallel().forEach( in testBoundedDoubles() 203 r.doubles().limit(size).parallel().forEach(x -> counter.increment()); in testUnsizedDoublesCount() 236 r.doubles().limit(size).forEach(x -> counter.increment()); in testUnsizedDoublesCountSeq()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | RandomTest.java | 204 double[] streamRands = new Random(0).doubles().limit(limit).toArray(); in test_doubles$() 217 double[] streamRands = new Random(0).doubles(size).toArray(); in test_doubles$L() 219 assertEquals(size, new Random(0).doubles(size).count()); in test_doubles$L() 241 double[] streamRands = new Random(0).doubles(origin, bound).limit(limit).toArray(); in test_doubles$II() 245 new Random(0).doubles(100, 0); in test_doubles$II() 264 double[] streamRands = new Random(0).doubles(size, origin, bound).toArray(); in test_doubles$LII() 266 assertEquals(size, new Random(0).doubles(size, origin, bound).count()); in test_doubles$LII() 269 new Random(0).doubles(-1, 10, 20); in test_doubles$LII() 273 new Random(0).doubles(10, 100, 0); in test_doubles$LII()
|
D | PrimitiveIteratorTest.java | 72 private final double[] doubles; field in PrimitiveIteratorTest.CannedDoubleIterator 75 public CannedDoubleIterator(double[] doubles) { in CannedDoubleIterator() argument 76 this.doubles = doubles; in CannedDoubleIterator() 82 return doubles[idx++]; in nextDouble() 87 return idx < doubles.length; in hasNext()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 136 public java.util.stream.DoubleStream doubles(long streamSize) { in doubles() method in Random 140 public java.util.stream.DoubleStream doubles() { in doubles() method in Random 144 public java.util.stream.DoubleStream doubles( in doubles() method in Random 149 public java.util.stream.DoubleStream doubles( in doubles() method in Random
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SortedOps.java | 680 double[] doubles = b.asPrimitiveArray(); in end() local 681 Arrays.sort(doubles); in end() 682 downstream.begin(doubles.length); in end() 684 for (double aDouble : doubles) in end() 688 for (double aDouble : doubles) { in end()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SplittableRandom.java | 744 public DoubleStream doubles(long streamSize) { in doubles() method in SplittableRandom 763 public DoubleStream doubles() { in doubles() method in SplittableRandom 786 public DoubleStream doubles(long streamSize, double randomNumberOrigin, in doubles() method in SplittableRandom 813 public DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) { in doubles() method in SplittableRandom
|
D | Random.java | 885 public DoubleStream doubles(long streamSize) { in doubles() method in Random 908 public DoubleStream doubles() { in doubles() method in Random 942 public DoubleStream doubles(long streamSize, double randomNumberOrigin, in doubles() method in Random 981 public DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) { in doubles() method in Random
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 86 double[] doubles = new double[3]; in testByteSwappedBulkGet() local 87 b.order(ByteOrder.BIG_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); in testByteSwappedBulkGet() 88 assertEquals(0, Double.doubleToRawLongBits(doubles[0])); in testByteSwappedBulkGet() 89 assertEquals(0x0102030405060708L, Double.doubleToRawLongBits(doubles[1])); in testByteSwappedBulkGet() 90 assertEquals(0, Double.doubleToRawLongBits(doubles[2])); in testByteSwappedBulkGet() 91 b.order(ByteOrder.LITTLE_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); in testByteSwappedBulkGet() 92 assertEquals(0, Double.doubleToRawLongBits(doubles[0])); in testByteSwappedBulkGet() 93 assertEquals(0x0807060504030201L, Double.doubleToRawLongBits(doubles[1])); in testByteSwappedBulkGet() 94 assertEquals(0, Double.doubleToRawLongBits(doubles[2])); in testByteSwappedBulkGet() 176 double[] doubles = new double[] { 0, Double.longBitsToDouble(0x0102030405060708L), 0 }; in testByteSwappedBulkPut() local [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 652 public DoubleStream doubles(long streamSize) { in doubles() method in ThreadLocalRandom 672 public DoubleStream doubles() { in doubles() method in ThreadLocalRandom 695 public DoubleStream doubles(long streamSize, double randomNumberOrigin, in doubles() method in ThreadLocalRandom 723 public DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) { in doubles() method in ThreadLocalRandom
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ToArrayOpTest.java | 369 double[] doubles = exerciseTerminalOps(data, s -> s.map(i -> i + i), s -> s.toArray()); 370 assertTrue(doubles.length == data.size()); 378 … double[] doubles = exerciseTerminalOps(data, s -> s.sorted(), (DoubleStream s) -> s.toArray()); 379 assertTrue(doubles.length == data.size());
|
D | InfiniteStreamWithLimitOpTest.java | 166 private TestData.OfDouble doubles() { 217 withData(doubles()). 265 withData(doubles()).
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandlesTest.java | 1266 public VariableArityTester(double... doubles) { update(doubles); } in VariableArityTester() argument 1287 public String update(double... doubles) { return lastResult = tally(doubles); } in update() argument 1313 public static String tally(double... doubles) { return Arrays.toString(doubles); } in tally() argument
|
D | MethodHandleAccessorsTest.java | 660 double[] doubles = {0.44444444444e37, -0.555555555e-37}; in testDoubleSettersAndGetters() local 661 for (double d : doubles) { in testDoubleSettersAndGetters()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest1.java | 570 double[] doubles = { 0.0, 1.1, 2.2, 3.3 }; in test_18_8_writeObject() local 571 objToSave = doubles; in test_18_8_writeObject()
|