/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LongStreamTestDataProvider.java | 84 final long[] longs = (long[]) data[1]; 87 TestData.Factory.ofArray("array:" + name, longs)}); in list.add() argument 90 for (long i : longs) { 96 list.add(streamDataDescr("LongStream.longRange(0,l): " + longs.length, 97 () -> LongStream.range(0, longs.length))); 98 list.add(streamDataDescr("LongStream.longRangeClosed(0,l): " + longs.length, 99 () -> LongStream.rangeClosed(0, longs.length))); 108 final long[] longs = (long[]) data[1]; 111 for (long i : longs) { 116 () -> Arrays.spliterator(longs))); [all …]
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LongStreamTestDataProvider.java | 88 final long[] longs = (long[]) data[1]; 91 TestData.Factory.ofArray("array:" + name, longs)}); in list.add() argument 94 for (long i : longs) { 100 list.add(streamDataDescr("LongStream.longRange(0,l): " + longs.length, 101 () -> LongStream.range(0, longs.length))); 102 list.add(streamDataDescr("LongStream.longRangeClosed(0,l): " + longs.length, 103 () -> LongStream.rangeClosed(0, longs.length))); 112 final long[] longs = (long[]) data[1]; 115 for (long i : longs) { 120 () -> Arrays.spliterator(longs))); [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | BitSetTest.java | 53 private static void assertBitSet(BitSet bs, long[] longs, String s) { in assertBitSet() argument 54 for (int i = 0; i < 64 * longs.length; ++i) { in assertBitSet() 55 assertEquals(bs.toString(), ((longs[i / 64] & (1L << (i % 64))) != 0), bs.get(i)); in assertBitSet() 58 for (int i = 0; i < longs.length; ++i) { in assertBitSet() 59 cardinality += Long.bitCount(longs[i]); in assertBitSet() 67 assertEquals(64 * longs.length, bs.size()); in assertBitSet() 71 private static void assertBitSet(long[] longs, String s) { in assertBitSet() argument 73 assertBitSet(BitSet.valueOf(longs), longs, s); in assertBitSet() local 75 assertBitSet(BitSet.valueOf(LongBuffer.wrap(longs)), longs, s); in assertBitSet() local 77 long[] paddedLongs = new long[1 + longs.length + 1]; in assertBitSet() [all …]
|
D | RandomTest.java | 129 long[] streamRands = new Random(0).longs().limit(limit).toArray(); in test_longs$() 142 long[] streamRands = new Random(0).longs(size).toArray(); in test_longs$L() 144 assertEquals(size, new Random(0).longs(size).count()); in test_longs$L() 147 new Random(0).longs(-1); in test_longs$L() 162 long[] streamRands = new Random(0).longs(origin, bound).limit(limit).toArray(); in test_longs$II() 166 new Random(0).longs(100, 0); in test_longs$II() 181 long[] streamRands = new Random(0).longs(size, origin, bound).toArray(); in test_longs$LII() 183 assertEquals(size, new Random(0).longs(size, origin, bound).count()); in test_longs$LII() 186 new Random(0).longs(-1, 10, 20); in test_longs$LII() 190 new Random(0).longs(10, 100, 0); in test_longs$LII()
|
D | PrimitiveIteratorTest.java | 52 private final long[] longs; field in PrimitiveIteratorTest.CannedLongIterator 55 public CannedLongIterator(long[] longs) { in CannedLongIterator() argument 56 this.longs = longs; in CannedLongIterator() 62 return longs[idx++]; in nextLong() 67 return idx < longs.length; in hasNext()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ArrayTest.java | 29 private static long[] longs; field in ArrayTest 40 longs = new long[] { 0xffffffffffffffffL }; in setUp() 51 try { Array.getBoolean(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean() 63 try { Array.getByte(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte() 75 try { Array.getChar(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar() 87 assertEquals((double) longs[0], Array.getDouble(longs, 0)); in testGetDouble() 99 assertEquals((float) longs[0], Array.getFloat(longs, 0)); in testGetFloat() 111 try { Array.getInt(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetInt() 123 assertEquals(longs[0], Array.getLong(longs, 0)); in testGetLong() 135 try { Array.getShort(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandom8Test.java | 47 () -> r.longs(-1L), in testBadStreamSize() 48 () -> r.longs(-1L, -1L, 1L), in testBadStreamSize() 64 () -> r.longs(-1L, -1L), in testBadStreamBounds() 65 () -> r.longs(10, 1L, -2L), in testBadStreamBounds() 96 r.longs(size).parallel().forEach(x -> counter.increment()); in testLongsCount() 146 r.longs(size, lo, hi).parallel().forEach( in testBoundedLongs() 192 r.longs().limit(size).parallel().forEach(x -> counter.increment()); in testUnsizedLongsCount() 225 r.longs().limit(size).forEach(x -> counter.increment()); in testUnsizedLongsCountSeq()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 119 public java.util.stream.LongStream longs(long streamSize) { in longs() method in Random 123 public java.util.stream.LongStream longs() { in longs() method in Random 127 public java.util.stream.LongStream longs( in longs() method in Random 132 public java.util.stream.LongStream longs(long randomNumberOrigin, long randomNumberBound) { in longs() method in Random
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SortedOps.java | 582 long[] longs = b.asPrimitiveArray(); in end() local 583 Arrays.sort(longs); in end() 584 downstream.begin(longs.length); in end() 586 for (long aLong : longs) in end() 590 for (long aLong : longs) { in end()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SplittableRandom.java | 658 public LongStream longs(long streamSize) { in longs() method in SplittableRandom 676 public LongStream longs() { in longs() method in SplittableRandom 698 public LongStream longs(long streamSize, long randomNumberOrigin, in longs() method in SplittableRandom 725 public LongStream longs(long randomNumberOrigin, long randomNumberBound) { in longs() method in SplittableRandom
|
D | Random.java | 746 public LongStream longs(long streamSize) { in longs() method in Random 768 public LongStream longs() { in longs() method in Random 812 public LongStream longs(long streamSize, long randomNumberOrigin, in longs() method in Random 862 public LongStream longs(long randomNumberOrigin, long randomNumberBound) { in longs() method in Random
|
D | BitSet.java | 195 public static BitSet valueOf(long[] longs) { in valueOf() argument 197 for (n = longs.length; n > 0 && longs[n - 1] == 0; n--) in valueOf() 199 return new BitSet(Arrays.copyOf(longs, n)); in valueOf()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 563 public LongStream longs(long streamSize) { in longs() method in ThreadLocalRandom 582 public LongStream longs() { in longs() method in ThreadLocalRandom 604 public LongStream longs(long streamSize, long randomNumberOrigin, in longs() method in ThreadLocalRandom 632 public LongStream longs(long randomNumberOrigin, long randomNumberBound) { in longs() method in ThreadLocalRandom
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | InfiniteStreamWithLimitOpTest.java | 156 private TestData.OfLong longs() { 206 withData(longs()). 231 withData(longs()). 253 withData(longs()).
|
D | ToArrayOpTest.java | 296 long[] longs = exerciseTerminalOps(data, s -> s.map(i -> i + i), s -> s.toArray()); 297 assertTrue(longs.length == data.size()); 305 long[] longs = exerciseTerminalOps(data, s -> s.sorted(), (LongStream s) -> s.toArray()); 306 assertTrue(longs.length == data.size());
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandlesTest.java | 1216 public VariableArityTester(long... longs) { update(longs); } in VariableArityTester() argument 1237 public String update(long... longs) { return lastResult = tally(longs); } in update() argument 1263 public static String tally(long... longs) { return Arrays.toString(longs); } in tally() argument
|
D | MethodHandleAccessorsTest.java | 680 long[] longs = {0x0123456789abcdefl, 0xfedcba9876543210l}; in testLongSettersAndGetters() local 681 for (long j : longs) { in testLongSettersAndGetters()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest1.java | 514 long[] longs = { 0, 1, 2, 3 }; in test_18_6_writeObject() local 515 objToSave = longs; in test_18_6_writeObject()
|
/libcore/expectations/ |
D | knownfailures.txt | 1668 …substring: "Large hex longs shouldn't be yield ints or strings expected:<-1> but was:<0xFFFFFFFFFF…
|