/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/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/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/text/Format/ChoiceFormat/ |
D | Bug4387255.java | 36 private static final double[] doubles = { field in Bug4387255 55 ChoiceFormat choiceFormat1 = new ChoiceFormat(doubles, strings); in main() 63 for (int i = 0; i < doubles.length; i++) { in main() 64 String result = choiceFormat2.format(doubles[i]); in main()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SplittableRandom.java | 524 public DoubleStream doubles(long streamSize) { in doubles() method in SplittableRandom 525 return proxy.doubles(streamSize); in doubles() 539 public DoubleStream doubles() { in doubles() method in SplittableRandom 540 return proxy.doubles(); in doubles() 559 …public DoubleStream doubles(long streamSize, double randomNumberOrigin, double randomNumberBound) { in doubles() method in SplittableRandom 560 return proxy.doubles(streamSize, randomNumberOrigin, randomNumberBound); in doubles() 579 public DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) { in doubles() method in SplittableRandom 580 return proxy.doubles(randomNumberOrigin, randomNumberBound); in doubles()
|
D | Random.java | 924 public DoubleStream doubles(long streamSize) { in doubles() method in Random 925 return AbstractSpliteratorGenerator.doubles(this, streamSize); in doubles() 943 public DoubleStream doubles() { in doubles() method in Random 944 return AbstractSpliteratorGenerator.doubles(this); in doubles() 975 …public DoubleStream doubles(long streamSize, double randomNumberOrigin, double randomNumberBound) { in doubles() method in Random 976 …return AbstractSpliteratorGenerator.doubles(this, streamSize, randomNumberOrigin, randomNumberBoun… in doubles() 1007 public DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) { in doubles() method in Random 1008 return AbstractSpliteratorGenerator.doubles(this, randomNumberOrigin, randomNumberBound); in doubles()
|
/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/ojluni/src/test/java/util/concurrent/tck/ |
D | ThreadLocalRandom8Test.java | 72 () -> r.doubles(-1L), in testBadStreamSize() 73 () -> r.doubles(-1L, .5, .6), in testBadStreamSize() 89 () -> r.doubles(0.0, 0.0), in testBadStreamBounds() 90 () -> r.doubles(10, .5, .4), in testBadStreamBounds() 134 r.doubles(size).parallel().forEach(x -> counter.increment()); in testDoublesCount() 188 r.doubles(size, lo, hi).parallel().forEach( in testBoundedDoubles() 226 r.doubles().limit(size).parallel().forEach(x -> counter.increment()); in testUnsizedDoublesCount() 259 r.doubles().limit(size).forEach(x -> counter.increment()); in testUnsizedDoublesCountSeq()
|
D | SplittableRandomTest.java | 369 () -> { DoubleStream unused = r.doubles(-1L); }, 370 () -> { DoubleStream unused = r.doubles(-1L, .5, .6); }); 385 () -> { DoubleStream unused = r.doubles(0.0, 0.0); }, 386 () -> { DoubleStream unused = r.doubles(10, .5, .4); }); 428 r.doubles(size).parallel().forEach(x -> counter.increment()); 482 r.doubles(size, lo, hi).parallel().forEach( 520 r.doubles().limit(size).parallel().forEach(x -> counter.increment()); 553 r.doubles().limit(size).forEach(x -> counter.increment());
|
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/ |
D | ThreadLocalRandom.annotated.java | 97 public java.util.stream.DoubleStream doubles(long streamSize) { throw new RuntimeException("Stub!")… in doubles() method in ThreadLocalRandom 99 public java.util.stream.DoubleStream doubles() { throw new RuntimeException("Stub!"); } in doubles() method in ThreadLocalRandom 101 public java.util.stream.DoubleStream doubles(long streamSize, double randomNumberOrigin, double ran… in doubles() method in ThreadLocalRandom 103 public java.util.stream.DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) {… in doubles() method in ThreadLocalRandom
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | RandomTest.java | 236 double[] streamRands = new Random(0).doubles().limit(limit).toArray(); in test_doubles$() 250 double[] streamRands = new Random(0).doubles(size).toArray(); in test_doubles$L() 252 assertEquals(size, new Random(0).doubles(size).count()); in test_doubles$L() 275 double[] streamRands = new Random(0).doubles(origin, bound).limit(limit).toArray(); in test_doubles$II() 279 new Random(0).doubles(100, 0); in test_doubles$II() 299 double[] streamRands = new Random(0).doubles(size, origin, bound).toArray(); in test_doubles$LII() 301 assertEquals(size, new Random(0).doubles(size, origin, bound).count()); in test_doubles$LII() 304 new Random(0).doubles(-1, 10, 20); in test_doubles$LII() 308 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/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 634 public DoubleStream doubles(long streamSize) { in doubles() method in ThreadLocalRandom 635 return AbstractSpliteratorGenerator.doubles(ThreadLocalRandomProxy.PROXY, streamSize); in doubles() 645 public DoubleStream doubles() { in doubles() method in ThreadLocalRandom 646 return AbstractSpliteratorGenerator.doubles(ThreadLocalRandomProxy.PROXY); in doubles() 655 …public DoubleStream doubles(long streamSize, double randomNumberOrigin, double randomNumberBound) { in doubles() method in ThreadLocalRandom 656 …return AbstractSpliteratorGenerator.doubles(ThreadLocalRandomProxy.PROXY, streamSize, randomNumber… in doubles() 667 public DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) { in doubles() method in ThreadLocalRandom 668 …return AbstractSpliteratorGenerator.doubles(ThreadLocalRandomProxy.PROXY, randomNumberOrigin, rand… in doubles()
|
/libcore/ojluni/annotations/flagged_api/java/util/ |
D | SplittableRandom.annotated.java | 74 public java.util.stream.DoubleStream doubles(long streamSize) { throw new RuntimeException("Stub!")… in doubles() method in SplittableRandom 76 public java.util.stream.DoubleStream doubles() { throw new RuntimeException("Stub!"); } in doubles() method in SplittableRandom 78 public java.util.stream.DoubleStream doubles(long streamSize, double randomNumberOrigin, double ran… in doubles() method in SplittableRandom 80 public java.util.stream.DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) {… in doubles() method in SplittableRandom
|
/libcore/ojluni/src/test/java/util/Random/ |
D | RandomTest.java | 182 assertThrowsIAE(() -> r.doubles(-1L)); 183 assertThrowsIAE(() -> r.doubles(-1L, .5, .6)); 197 testDoubleBadOriginBound((o, b) -> r.doubles(10, o, b)); 271 r.doubles(size).forEach(x -> { in testDoublesCount() 329 r.doubles(size, lo, hi). in testBoundedDoubles() 372 r.doubles().limit(size).parallel().forEach(x -> { in testUnsizedDoublesCount() 411 r.doubles().limit(size).forEach(x -> { in testUnsizedDoublesCountSeq()
|
D | RandomStreamTest.java | 83 random.doubles().limit(count).forEach(destination::add); in testRandomDoubleStream() 84 random.doubles().limit(count).forEach(d -> assertTrue(d >= 0.0 && d < 1.0)); in testRandomDoubleStream() 126 final double[] b = r2.doubles().limit(SIZE).toArray(); in testDoubleStream() 145 … testRandomResultSupplierConcurrently(() -> tlr.doubles().limit(SIZE).boxed().collect(toList())); in testThreadLocalDoubleStream()
|
D | RandomTestCoverage.java | 86 DoubleStream doubleStream1 = rng.doubles(); in coverRandomGenerator() 87 DoubleStream doubleStream2 = rng.doubles(0.5, 1.0); in coverRandomGenerator() 88 DoubleStream doubleStream3 = rng.doubles(5); in coverRandomGenerator() 89 DoubleStream doubleStream4 = rng.doubles(5, 0.5, 1.0); in coverRandomGenerator()
|
/libcore/ojluni/src/main/java/java/util/random/ |
D | RandomGenerator.java | 173 default DoubleStream doubles() { in doubles() method 199 default DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) { in doubles() method 219 default DoubleStream doubles(long streamSize) { in doubles() method 222 return doubles().limit(streamSize); in doubles() 246 default DoubleStream doubles(long streamSize, double randomNumberOrigin, in doubles() method 251 return doubles(randomNumberOrigin, randomNumberBound).limit(streamSize); in doubles()
|
/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/annotations/flagged_api/java/util/random/ |
D | RandomGenerator.annotated.java | 39 public default java.util.stream.DoubleStream doubles() { throw new RuntimeException("Stub!"); } in doubles() method 41 public default java.util.stream.DoubleStream doubles(double randomNumberOrigin, double randomNumber… in doubles() method 43 public default java.util.stream.DoubleStream doubles(long streamSize) { throw new RuntimeException(… in doubles() method 45 public default java.util.stream.DoubleStream doubles(long streamSize, double randomNumberOrigin, do… in doubles() method
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | LongPrimitiveOpsTests.java | 158 TreeSet<Double> doubles = new TreeSet<>(); in testSortDistinct() local 159 for(long i : input) doubles.add((double)i); in testSortDistinct() 160 double[] expectedDoubles = doubles.stream().mapToDouble(Double::doubleValue).toArray(); in testSortDistinct()
|
D | IntPrimitiveOpsTests.java | 170 TreeSet<Double> doubles = new TreeSet<>(); in testSortDistinct() local 171 for(int i : input) doubles.add((double)i); in testSortDistinct() 172 double[] expectedDoubles = doubles.stream().mapToDouble(Double::doubleValue).toArray(); in testSortDistinct()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SortedOps.java | 688 double[] doubles = b.asPrimitiveArray(); in end() local 689 Arrays.sort(doubles); in end() 690 downstream.begin(doubles.length); in end() 692 for (double aDouble : doubles) in end() 696 for (double aDouble : doubles) { in end()
|