Searched defs:skip (Results 26 - 50 of 54) sorted by relevance

123

/libcore/ojluni/src/main/java/sun/net/www/
H A DMeteredStream.java139 public synchronized long skip(long n) throws IOException { method in class:MeteredStream
141 // REMIND: what does skip do on EOF????
147 n = in.skip(n);
150 // just skip min(n, num_bytes_left)
152 n = in.skip(min);
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DHandshakeInStream.java108 public long skip(long n) throws IOException { method in class:HandshakeInStream
109 return r.skip(n);
155 * Do more than skip that handshake data ... totally ignore it.
/libcore/ojluni/src/main/java/sun/security/util/
H A DManifestEntryVerifier.java70 private boolean skip = true; field in class:ManifestEntryVerifier
102 skip = true;
146 skip = false;
160 if (skip) return;
171 if (skip) return;
198 if (skip) {
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
H A DSliceSpliteratorTest.java63 void test(int size, int skip, int limit); argument
73 SliceTester r = (size, skip, limit) -> {
79 return new StreamSpliterators.SliceSpliterator.OfRef<>(s, skip, limit);
86 SliceTester r = (size, skip, limit) -> {
92 return new StreamSpliterators.SliceSpliterator.OfInt(s, skip, limit);
99 SliceTester r = (size, skip, limit) -> {
105 return new StreamSpliterators.SliceSpliterator.OfLong(s, skip, limit);
112 SliceTester r = (size, skip, limit) -> {
118 return new StreamSpliterators.SliceSpliterator.OfDouble(s, skip, limit);
128 SliceTester r = (size, skip, limi
[all...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DIntSliceOpTest.java59 assertCountSum(IntStream.range(0, 0).skip(0).boxed(), 0, 0);
60 assertCountSum(IntStream.range(0, 0).skip(4).boxed(), 0, 0);
61 assertCountSum(IntStream.range(1, 5).skip(4).boxed(), 0, 0);
62 assertCountSum(IntStream.range(1, 5).skip(2).boxed(), 2, 7);
63 assertCountSum(IntStream.range(1, 5).skip(0).boxed(), 4, 10);
65 assertCountSum(IntStream.range(0, 0).parallel().skip(0).boxed(), 0, 0);
66 assertCountSum(IntStream.range(0, 0).parallel().skip(4).boxed(), 0, 0);
67 assertCountSum(IntStream.range(1, 5).parallel().skip(4).boxed(), 0, 0);
68 assertCountSum(IntStream.range(1, 5).parallel().skip(2).boxed(), 2, 7);
69 assertCountSum(IntStream.range(1, 5).parallel().skip(
126 sliceSize(int dataSize, int skip, int limit) argument
133 sliceSize(int dataSize, int skip) argument
[all...]
H A DSliceOpTest.java54 assertCountSum(countTo(0).stream().skip(0), 0, 0);
55 assertCountSum(countTo(0).stream().skip(4), 0, 0);
56 assertCountSum(countTo(4).stream().skip(4), 0, 0);
57 assertCountSum(countTo(4).stream().skip(2), 2, 7);
58 assertCountSum(countTo(4).stream().skip(0), 4, 10);
60 assertCountSum(countTo(0).parallelStream().skip(0), 0, 0);
61 assertCountSum(countTo(0).parallelStream().skip(4), 0, 0);
62 assertCountSum(countTo(4).parallelStream().skip(4), 0, 0);
63 assertCountSum(countTo(4).parallelStream().skip(2), 2, 7);
64 assertCountSum(countTo(4).parallelStream().skip(
140 sliceSize(int dataSize, int skip, int limit) argument
147 sliceSize(int dataSize, int skip) argument
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldFilterReaderTest.java72 public long skip(long count) throws IOException { method in class:OldFilterReaderTest.MockReader
158 fr.skip(10);
159 assertTrue("skip(long) has not been called.", called);
H A DOldFilterWriterTest.java60 public long skip(long count) throws IOException { method in class:OldFilterWriterTest.MockWriter
/libcore/ojluni/src/main/java/java/io/
H A DBufferedReader.java83 /** If the next character is a line feed, skip it */
406 * @param n The number of characters to skip
413 public long skip(long n) throws IOException { method in class:BufferedReader
415 throw new IllegalArgumentException("skip value is negative");
459 * is a newline character, then just skip it right away.
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipInputStream.java239 * @param n the number of bytes to skip
245 public long skip(long n) throws IOException { method in class:ZipInputStream
247 throw new IllegalArgumentException("negative skip length");
341 // Invalid zip64 extra fields, simply skip. Even it's
H A DZipFile.java723 public long skip(long n) { method in class:ZipFile.ZipFileInputStream
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DCertificateFactoryTest.java332 public long skip(long byteCount) throws IOException { method in class:CertificateFactoryTest.MeasuredInputStream
333 long count = mStream.skip(byteCount);
/libcore/luni/src/test/java/libcore/util/
H A DZoneInfoTest.java493 public void skip(int byteCount) { method in class:ZoneInfoTest.ByteBufferIterator
512 skip(4);
521 skip(4 * intCount);
529 skip(2);
/libcore/ojluni/src/main/java/java/util/jar/
H A DManifest.java412 public long skip(long n) throws IOException { method in class:Manifest.FastInputStream
418 return in.skip(n);
/libcore/ojluni/src/main/java/java/util/stream/
H A DDoubleStream.java261 * While {@code skip()} is generally a cheap operation on sequential
263 * especially for large values of {@code n}, since {@code skip(n)}
264 * is constrained to skip not just any <em>n</em> elements, but the
268 * speedups of {@code skip()} in parallel pipelines, if the semantics of
271 * {@code skip()} in parallel pipelines, switching to sequential execution
274 * @param n the number of leading elements to skip
278 DoubleStream skip(long n); method in interface:DoubleStream
H A DSliceOps.java44 * skip, and the number of elements to limit.
47 * @param skip the number of elements to skip, assumed to be >= 0
52 private static long calcSize(long size, long skip, long limit) { argument
53 return size >= 0 ? Math.max(-1, Math.min(size - skip, limit)) : -1;
59 * @param skip the number of elements to skip, assumed to be >= 0
64 private static long calcSliceFence(long skip, long limit) { argument
65 long sliceFence = limit >= 0 ? skip + limit : Long.MAX_VALUE;
78 long skip, lon
76 sliceSpliterator(StreamShape shape, Spliterator<P_IN> s, long skip, long limit) argument
114 makeRef(AbstractPipeline<?, T, ?> upstream, long skip, long limit) argument
230 makeInt(AbstractPipeline<?, Integer, ?> upstream, long skip, long limit) argument
339 makeLong(AbstractPipeline<?, Long, ?> upstream, long skip, long limit) argument
448 makeDouble(AbstractPipeline<?, Double, ?> upstream, long skip, long limit) argument
[all...]
H A DStream.java459 * While {@code skip()} is generally a cheap operation on sequential
461 * especially for large values of {@code n}, since {@code skip(n)}
462 * is constrained to skip not just any <em>n</em> elements, but the
466 * speedups of {@code skip()} in parallel pipelines, if the semantics of
469 * {@code skip()} in parallel pipelines, switching to sequential execution
472 * @param n the number of leading elements to skip
476 Stream<T> skip(long n); method in interface:Stream
H A DDoublePipeline.java344 public final DoubleStream skip(long n) { method in class:DoublePipeline
H A DIntPipeline.java380 public final IntStream skip(long n) { method in class:IntPipeline
H A DIntStream.java256 * While {@code skip()} is generally a cheap operation on sequential
258 * especially for large values of {@code n}, since {@code skip(n)}
259 * is constrained to skip not just any <em>n</em> elements, but the
263 * speedups of {@code skip()} in parallel pipelines, if the semantics of
266 * {@code skip()} in parallel pipelines, switching to sequential execution
269 * @param n the number of leading elements to skip
273 IntStream skip(long n); method in interface:IntStream
H A DLongPipeline.java361 public final LongStream skip(long n) { method in class:LongPipeline
H A DLongStream.java260 * While {@code skip()} is generally a cheap operation on sequential
262 * especially for large values of {@code n}, since {@code skip(n)}
263 * is constrained to skip not just any <em>n</em> elements, but the
267 * speedups of {@code skip()} in parallel pipelines, if the semantics of
270 * {@code skip()} in parallel pipelines, switching to sequential execution
273 * @param n the number of leading elements to skip
277 LongStream skip(long n); method in interface:LongStream
H A DReferencePipeline.java406 public final Stream<P_OUT> skip(long n) { method in class:ReferencePipeline
H A DStreamSpliterators.java911 UnorderedSliceSpliterator(T_SPLITR s, long skip, long limit) { argument
915 this.permits = new AtomicLong(limit >= 0 ? skip + limit : skip);
927 * Acquire permission to skip or process elements. The caller must
932 * which is initialized as skip+limit if we are limiting, or skip only
995 OfRef(Spliterator<T> s, long skip, long limit) { argument
996 super(s, skip, limit);
1070 OfPrimitive(T_SPLITR s, long skip, long limit) { argument
1071 super(s, skip, limi
1135 OfInt(Spliterator.OfInt s, long skip, long limit) argument
1170 OfLong(Spliterator.OfLong s, long skip, long limit) argument
1205 OfDouble(Spliterator.OfDouble s, long skip, long limit) argument
[all...]
/libcore/dex/src/main/java/com/android/dex/
H A DDex.java663 skip(triesSize * SizeOf.TRY_ITEM);
780 public void skip(int count) { method in class:Dex.Section

Completed in 525 milliseconds

123