/libcore/ojluni/src/main/java/java/util/stream/ |
D | SliceOps.java | 52 private static long calcSize(long size, long skip, long limit) { in calcSize() argument 53 return size >= 0 ? Math.max(-1, Math.min(size - skip, limit)) : -1; in calcSize() 64 private static long calcSliceFence(long skip, long limit) { in calcSliceFence() argument 65 long sliceFence = limit >= 0 ? skip + limit : Long.MAX_VALUE; in calcSliceFence() 78 long skip, long limit) { in sliceSpliterator() argument 80 long sliceFence = calcSliceFence(skip, limit); in sliceSpliterator() 84 .SliceSpliterator.OfRef<>(s, skip, sliceFence); in sliceSpliterator() 87 .SliceSpliterator.OfInt((Spliterator.OfInt) s, skip, sliceFence); in sliceSpliterator() 90 .SliceSpliterator.OfLong((Spliterator.OfLong) s, skip, sliceFence); in sliceSpliterator() 93 .SliceSpliterator.OfDouble((Spliterator.OfDouble) s, skip, sliceFence); in sliceSpliterator() [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SliceOpTest.java | 54 assertCountSum(countTo(0).stream().skip(0), 0, 0); in testSkip() 55 assertCountSum(countTo(0).stream().skip(4), 0, 0); in testSkip() 56 assertCountSum(countTo(4).stream().skip(4), 0, 0); in testSkip() 57 assertCountSum(countTo(4).stream().skip(2), 2, 7); in testSkip() 58 assertCountSum(countTo(4).stream().skip(0), 4, 10); in testSkip() 60 assertCountSum(countTo(0).parallelStream().skip(0), 0, 0); in testSkip() 61 assertCountSum(countTo(0).parallelStream().skip(4), 0, 0); in testSkip() 62 assertCountSum(countTo(4).parallelStream().skip(4), 0, 0); in testSkip() 63 assertCountSum(countTo(4).parallelStream().skip(2), 2, 7); in testSkip() 64 assertCountSum(countTo(4).parallelStream().skip(0), 4, 10); in testSkip() [all …]
|
D | IntSliceOpTest.java | 59 assertCountSum(IntStream.range(0, 0).skip(0).boxed(), 0, 0); in testSkip() 60 assertCountSum(IntStream.range(0, 0).skip(4).boxed(), 0, 0); in testSkip() 61 assertCountSum(IntStream.range(1, 5).skip(4).boxed(), 0, 0); in testSkip() 62 assertCountSum(IntStream.range(1, 5).skip(2).boxed(), 2, 7); in testSkip() 63 assertCountSum(IntStream.range(1, 5).skip(0).boxed(), 4, 10); in testSkip() 65 assertCountSum(IntStream.range(0, 0).parallel().skip(0).boxed(), 0, 0); in testSkip() 66 assertCountSum(IntStream.range(0, 0).parallel().skip(4).boxed(), 0, 0); in testSkip() 67 assertCountSum(IntStream.range(1, 5).parallel().skip(4).boxed(), 0, 0); in testSkip() 68 assertCountSum(IntStream.range(1, 5).parallel().skip(2).boxed(), 2, 7); in testSkip() 69 assertCountSum(IntStream.range(1, 5).parallel().skip(0).boxed(), 4, 10); in testSkip() [all …]
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | SliceSpliteratorTest.java | 63 void test(int size, int skip, int limit); in test() argument 73 SliceTester r = (size, skip, limit) -> { in sliceSpliteratorDataProvider() 79 return new StreamSpliterators.SliceSpliterator.OfRef<>(s, skip, limit); in sliceSpliteratorDataProvider() 86 SliceTester r = (size, skip, limit) -> { in sliceSpliteratorDataProvider() 92 return new StreamSpliterators.SliceSpliterator.OfInt(s, skip, limit); in sliceSpliteratorDataProvider() 99 SliceTester r = (size, skip, limit) -> { in sliceSpliteratorDataProvider() 105 return new StreamSpliterators.SliceSpliterator.OfLong(s, skip, limit); in sliceSpliteratorDataProvider() 112 SliceTester r = (size, skip, limit) -> { in sliceSpliteratorDataProvider() 118 return new StreamSpliterators.SliceSpliterator.OfDouble(s, skip, limit); in sliceSpliteratorDataProvider() 128 SliceTester r = (size, skip, limit) -> { in sliceSpliteratorDataProvider() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PushbackReaderTest.java | 244 numSkipped = pReader2.skip(3); in test_skip$J() 247 numSkipped += pReader2.skip(10); in test_skip$J() 248 numSkipped += pReader2.skip(10); in test_skip$J() 249 numSkipped += pReader2.skip(10); in test_skip$J() 250 numSkipped += pReader2.skip(10); in test_skip$J() 251 numSkipped += pReader2.skip(10); in test_skip$J() 252 numSkipped += pReader2.skip(10); in test_skip$J() 256 numSkipped += pReader.skip(2); in test_skip$J() 258 numSkipped += pReader.skip(2); in test_skip$J() 259 numSkipped += pReader.skip(0); in test_skip$J() [all …]
|
D | CharArrayReaderTest.java | 71 cr.skip(5L); in test_markI() 113 cr.skip(1000); in test_ready() 138 cr.skip(5L); in test_reset() 164 long skipped = cr.skip(5L); in test_skipJ() 175 assertEquals(1L, cr.skip(1L)); in test_skipOverflow() 176 assertEquals(hw.length - 1, cr.skip(Long.MAX_VALUE)); in test_skipOverflow()
|
D | StringReaderTest.java | 59 sr.skip(5); in test_markI() 61 sr.skip(5); in test_markI() 127 sr.skip(5); in test_reset() 129 sr.skip(5); in test_reset() 143 sr.skip(5); in test_skipJ()
|
D | StringBufferInputStreamTest.java | 50 sbis.skip(6); in test_read() 69 long s = sbis.skip(6); in test_reset() 80 long s = sbis.skip(6); in test_skipJ()
|
D | BufferedInputStreamTest.java | 128 is.skip(bufferSize - 2); in test_ConstructorLjava_io_InputStreamI() 247 is.skip(50); in test_markI() 262 in.skip(6); in test_markI() 269 in.skip(6); in test_markI() 271 in.skip(7); in test_markI() 384 is.skip(500); in test_read$BII() 490 buffis.skip(5); in test_reset_scenario1() 502 buffis.skip(6); in test_reset_scenario2() 521 bytesLeft -= is.skip(bytesLeft); in test_skipJ() 532 buf.skip(10); in test_skipJ() [all …]
|
D | LineNumberInputStreamTest.java | 76 lnis.skip(4); in test_markI() 114 lnis.skip(4); in test_reset() 123 lnis.skip(100); in test_reset() 144 lnis.skip(4); in test_skipJ()
|
D | BufferedReaderTest.java | 108 br.skip(500); in test_markI() 110 br.skip(250); in test_markI() 119 br.skip(500); in test_markI() 134 in.skip(6); in test_markI() 142 in.skip(6); in test_markI() 144 in.skip(7); in test_markI() 506 br.skip(500); in test_reset() 508 br.skip(500); in test_reset() 519 br.skip(500); in test_reset() 564 br.skip(500); in test_skipJ()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | InflaterInputStreamTest.java | 258 assertEquals(4, in.skip(4)); in testAvailableSkip() 364 iis.skip(-3); in test_skipJ() 372 iis.skip(Integer.MIN_VALUE); in test_skipJ() 380 assertEquals("Incorrect Number Of Bytes Skipped.", 3, iis.skip(3)); in test_skipJ() 385 assertEquals("Incorrect Number Of Bytes Skipped.", 0, iis.skip(0)); in test_skipJ() 389 assertEquals("Incorrect Number Of Bytes Skipped.", 2, iis.skip(4)); in test_skipJ() 406 long skip; in test_skipJ2() local 408 skip = inflatIP.skip(Integer.MIN_VALUE); in test_skipJ2() 422 skip = inflatIP2.skip(Integer.MAX_VALUE); in test_skipJ2() 425 5, skip); in test_skipJ2() [all …]
|
D | ZipInputStreamTest.java | 192 zis.skip(2); in test_skipJ() 198 long s = zis.skip(1025); in test_skipJ() 204 assertEquals("Assert 0: failed valid skip", skipLen, zis.skip(skipLen)); in test_skipJ() 205 zis.skip(dataBytes.length); in test_skipJ() 206 assertEquals("Assert 1: performed invalid skip", 0, zis.skip(1)); in test_skipJ() 207 assertEquals("Assert 2: failed zero len skip", 0, zis.skip(0)); in test_skipJ() 209 zis.skip(-1); in test_skipJ() 231 zis1.skip(1); in test_available() 239 assertEquals(0, zis1.skip(1)); in test_available()
|
D | CheckedInputStreamTest.java | 86 skipValue, checkIn.skip(skipValue)); in test_skipJ() 87 checkIn.skip(skipValue); in test_skipJ() 92 assertEquals(0, checkIn.skip(0)); in test_skipJ()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | ManifestEntryVerifier.java | 69 private boolean skip = true; field in ManifestEntryVerifier 100 skip = true; in setEntry() 144 skip = false; in setEntry() 158 if (skip) return; in update() 169 if (skip) return; in update() 196 if (skip) { in verify()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldBufferedReaderTest.java | 87 br.skip(500); in test_markI() 89 br.skip(250); in test_markI() 100 br.skip(500); in test_markI() 114 in.skip(6); in test_markI() 126 in.skip(6); in test_markI() 128 in.skip(7); in test_markI() 268 br.skip(-1); in test_skipJ() 274 br.skip(500); in test_skipJ() 284 br.skip(1); in test_skipJ() 364 assertEquals(2, r.skip(2)); in test_readLine_interaction_with_skip()
|
D | OldCharArrayReaderTest.java | 98 cr.skip(5L); in test_markI() 197 cr.skip(1000); in test_ready() 221 cr.skip(5L); in test_reset() 240 skipped = cr.skip(5L); in test_skipJ() 248 cr.skip(1); in test_skipJ()
|
D | OldLineNumberInputStreamTest.java | 113 lnis.skip(4); in test_reset() 121 lnis.skip(100); in test_reset() 150 long skipped = lnis.skip(4); in test_skipJ() 158 lnis.skip(4); in test_skipJ()
|
D | OldPushbackInputStreamTest.java | 171 tobj.skip(6); in test_skipJ() 173 tobj.skip(1000000); in test_skipJ() 174 tobj.skip(1000000); in test_skipJ() 177 tobj.skip(1); in test_skipJ() 186 pis.skip(50); in test_skipJ() 191 pis.skip(25); in test_skipJ() 311 tobj.skip(2); in test_unreadI()
|
D | OldLineNumberReaderTest.java | 34 lnr.skip(80); in test_markI() 164 long skipped = lnr.skip(80); in test_skipJ() 172 lnr.skip(-1); in test_skipJ() 180 lnr.skip(1); in test_skipJ()
|
D | FileInputStreamTest.java | 91 fis.skip(SKIP_SIZE); in testSkipInPipes() 143 fis2.skip(1); in testFileDescriptorOwnership() 169 fis1.skip(1); in testFileDescriptorOwnership() 203 fis.skip(1); in testClose() 209 fis.skip(0); in testClose() 267 assertEquals(lastByte, fis.skip(lastByte)); in testSkipOnLargeFiles()
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlParser.java | 589 skip(); in readDoctype() 592 skip(); in readDoctype() 596 skip(); in readDoctype() 607 skip(); in readDoctype() 623 skip(); in readExternalId() 630 skip(); in readExternalId() 640 skip(); in readExternalId() 681 skip(); in readInternalSubset() 732 skip(); in readElementDeclaration() 735 skip(); in readElementDeclaration() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | FilterReader.java | 82 public long skip(long n) throws IOException { in skip() method in FilterReader 83 return in.skip(n); in skip()
|
D | FilterInputStream.java | 150 public long skip(long n) throws IOException { in skip() method in FilterInputStream 151 return in.skip(n); in skip()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherInputStream1Test.java | 151 int skip = 2; in testRead3() local 152 int ind = skip; // index into the data array (to check the got data) in testRead3() 154 cis.read(null, 0, skip); in testRead3() 155 int got = skip + cis.read(result, 0, 1); // the number of got bytes in testRead3() 188 int skipped = (int) cis.skip(2); in testSkip()
|