/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
D | alltests.java | 49 public void build(DOMTestSink sink) { in build() argument 50 sink.addTest(attrcreatedocumentfragment.class); in build() 51 sink.addTest(attrcreatetextnode.class); in build() 52 sink.addTest(attrcreatetextnode2.class); in build() 54 sink.addTest(attreffectivevalue.class); in build() 56 sink.addTest(attrname.class); in build() 57 sink.addTest(attrnextsiblingnull.class); in build() 59 sink.addTest(attrparentnodenull.class); in build() 60 sink.addTest(attrprevioussiblingnull.class); in build() 63 sink.addTest(attrspecifiedvalue.class); in build() [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | alltests.java | 49 public void build(DOMTestSink sink) { in build() argument 51 sink.addTest(attrgetownerelement02.class); in build() 52 sink.addTest(attrgetownerelement03.class); in build() 53 sink.addTest(attrgetownerelement04.class); in build() 54 sink.addTest(attrgetownerelement05.class); in build() 55 sink.addTest(createAttributeNS01.class); in build() 56 sink.addTest(createAttributeNS02.class); in build() 57 sink.addTest(createAttributeNS03.class); in build() 58 sink.addTest(createAttributeNS04.class); in build() 59 sink.addTest(createAttributeNS05.class); in build() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | PipedWriter.java | 42 private PipedReader sink; field in PipedWriter 94 } else if (sink != null || snk.connected) { in connect() 100 sink = snk; in connect() 121 if (sink == null) { in write() 124 sink.receive(c); in write() 145 if (sink == null) { in write() 150 sink.receive(cbuf, off, len); in write() 161 if (sink != null) { in flush() 162 if (sink.closedByReader || closed) { in flush() 165 synchronized (sink) { in flush() [all …]
|
D | PipedOutputStream.java | 53 private PipedInputStream sink; field in PipedOutputStream 99 } else if (sink != null || snk.connected) { in connect() 102 sink = snk; in connect() 119 if (sink == null) { in write() 122 sink.receive(b); in write() 139 if (sink == null) { in write() 149 sink.receive(b, off, len); in write() 160 if (sink != null) { in flush() 161 synchronized (sink) { in flush() 162 sink.notifyAll(); in flush() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SinkChannelTest.java | 42 private Pipe.SinkChannel sink; field in SinkChannelTest 53 sink = pipe.sink(); in setUp() 64 assertEquals(SelectionKey.OP_WRITE, sink.validOps()); in test_validOps() 77 sink.configureBlocking(sinkBlockingMode[i]); in test_write_LByteBuffer() 85 sink.write(buf); in test_write_LByteBuffer() 114 sink.write(ByteBuffer.wrap(strbytes)); in test_write_LByteBuffer_mutliThread() 153 sink.write(nullBuf); in test_write_LByteBuffer_Exception() 163 int written = sink.write(buffer); in test_write_LByteBuffer_SourceClosed() 170 sink.close(); in test_write_LByteBuffer_SinkClosed() 172 sink.write(buffer); in test_write_LByteBuffer_SinkClosed() [all …]
|
D | SourceChannelTest.java | 38 private Pipe.SinkChannel sink; field in SourceChannelTest 49 sink = pipe.sink(); in setUp() 68 sink.write(ByteBuffer.allocate(1)); in test_read_LByteBuffer_DataAvailable() 91 sink.write(buffer); in test_read_LByteBuffer_SinkClosed() 92 sink.close(); in test_read_LByteBuffer_SinkClosed() 160 sink = pipe.sink(); in test_read_$LByteBuffer() 162 sink.configureBlocking(sinkBlockingMode[i]); in test_read_$LByteBuffer() 167 long writeCount = sink.write(bufArray); in test_read_$LByteBuffer() 170 sink.close(); in test_read_$LByteBuffer() 195 sink.close(); in test_read_$LByteBuffer() [all …]
|
D | PipeTest.java | 46 SinkChannel sink = pipe.sink(); in test_sink() local 47 assertTrue(sink.isBlocking()); in test_sink()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | StatelessTestOp.java | 37 public Sink opWrapSink(int flags, Sink<T> sink) { in chain() 38 return op.opWrapSink(flags, isParallel(), sink); in chain() 43 public Sink opWrapSink(int flags, Sink sink) { in chain() 44 return op.opWrapSink(flags, isParallel(), sink); in chain() 50 public Sink opWrapSink(int flags, Sink sink) { in chain() 51 return op.opWrapSink(flags, isParallel(), sink); in chain() 57 public Sink opWrapSink(int flags, Sink sink) { in chain() 58 return op.opWrapSink(flags, isParallel(), sink); in chain() 71 Sink<E_IN> opWrapSink(int flags, boolean parallel, Sink<E_OUT> sink);
|
D | StatefulTestOp.java | 40 public Sink opWrapSink(int flags, Sink sink) { in chain() 41 return op.opWrapSink(flags, isParallel(), sink); in chain() 60 public Sink opWrapSink(int flags, Sink sink) { in chain() 61 return op.opWrapSink(flags, isParallel(), sink); in chain() 80 public Sink opWrapSink(int flags, Sink sink) { in chain() 81 return op.opWrapSink(flags, isParallel(), sink); in chain() 100 public Sink opWrapSink(int flags, Sink sink) { in chain() 101 return op.opWrapSink(flags, isParallel(), sink); in chain() 127 Sink<E> opWrapSink(int flags, boolean parallel, Sink<E> sink);
|
D | FlagDeclaringOp.java | 58 public Sink<T> opWrapSink(int flags, boolean parallel, Sink sink) { in opWrapSink() argument 59 return sink; in opWrapSink()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | StatelessTestOp.java | 46 public Sink opWrapSink(int flags, Sink<T> sink) { in chain() 47 return op.opWrapSink(flags, isParallel(), sink); in chain() 53 public Sink opWrapSink(int flags, Sink sink) { in chain() 54 return op.opWrapSink(flags, isParallel(), sink); in chain() 60 public Sink opWrapSink(int flags, Sink sink) { in chain() 61 return op.opWrapSink(flags, isParallel(), sink); in chain() 67 public Sink opWrapSink(int flags, Sink sink) { in chain() 68 return op.opWrapSink(flags, isParallel(), sink); in chain() 81 Sink<E_IN> opWrapSink(int flags, boolean parallel, Sink<E_OUT> sink);
|
D | StatefulTestOp.java | 41 public Sink opWrapSink(int flags, Sink sink) { in chain() 42 return op.opWrapSink(flags, isParallel(), sink); in chain() 61 public Sink opWrapSink(int flags, Sink sink) { in chain() 62 return op.opWrapSink(flags, isParallel(), sink); in chain() 81 public Sink opWrapSink(int flags, Sink sink) { in chain() 82 return op.opWrapSink(flags, isParallel(), sink); in chain() 101 public Sink opWrapSink(int flags, Sink sink) { in chain() 102 return op.opWrapSink(flags, isParallel(), sink); in chain() 128 Sink<E> opWrapSink(int flags, boolean parallel, Sink<E> sink);
|
D | FlagDeclaringOp.java | 61 public Sink<T> opWrapSink(int flags, boolean parallel, Sink sink) { in opWrapSink() argument 62 return sink; in opWrapSink()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/ |
D | NullArgsTestCase.java | 42 public final Consumer<Object[]> sink; field in NullArgsTestCase 45 protected NullArgsTestCase(String name, Consumer<Object[]> sink, Object[] args) { in NullArgsTestCase() argument 47 this.sink = sink; in NullArgsTestCase() 53 sink.accept(args); in goodNonNull() 62 sink.accept(temp); in throwWithNull()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SortedOps.java | 133 public Sink<T> opWrapSink(int flags, Sink<T> sink) { in opWrapSink() argument 134 Objects.requireNonNull(sink); in opWrapSink() 139 return sink; in opWrapSink() 141 return new SizedRefSortingSink<>(sink, comparator); in opWrapSink() 143 return new RefSortingSink<>(sink, comparator); in opWrapSink() 174 public Sink<Integer> opWrapSink(int flags, Sink<Integer> sink) { in opWrapSink() argument 175 Objects.requireNonNull(sink); in opWrapSink() 178 return sink; in opWrapSink() 180 return new SizedIntSortingSink(sink); in opWrapSink() 182 return new IntSortingSink(sink); in opWrapSink() [all …]
|
D | IntPipeline.java | 99 private static IntConsumer adapt(Sink<Integer> sink) { in adapt() argument 100 if (sink instanceof IntConsumer) { in adapt() 101 return (IntConsumer) sink; in adapt() 107 return sink::accept; in adapt() 160 public final void forEachWithCancel(Spliterator<Integer> spliterator, Sink<Integer> sink) { in forEachWithCancel() argument 162 IntConsumer adaptedSink = adapt(sink); in forEachWithCancel() 163 do { } while (!sink.cancellationRequested() && spl.tryAdvance(adaptedSink)); in forEachWithCancel() 192 public Sink<Integer> opWrapSink(int flags, Sink<Long> sink) { in asLongStream() 193 return new Sink.ChainedInt<Long>(sink) { in asLongStream() 208 public Sink<Integer> opWrapSink(int flags, Sink<Double> sink) { [all …]
|
D | LongPipeline.java | 99 private static LongConsumer adapt(Sink<Long> sink) { in adapt() argument 100 if (sink instanceof LongConsumer) { in adapt() 101 return (LongConsumer) sink; in adapt() 106 return sink::accept; in adapt() 158 public final void forEachWithCancel(Spliterator<Long> spliterator, Sink<Long> sink) { in forEachWithCancel() argument 160 LongConsumer adaptedSink = adapt(sink); in forEachWithCancel() 161 do { } while (!sink.cancellationRequested() && spl.tryAdvance(adaptedSink)); in forEachWithCancel() 189 public Sink<Long> opWrapSink(int flags, Sink<Double> sink) { in asDoubleStream() 190 return new Sink.ChainedLong<Double>(sink) { in asDoubleStream() 211 public Sink<Long> opWrapSink(int flags, Sink<Long> sink) { [all …]
|
D | DoublePipeline.java | 98 private static DoubleConsumer adapt(Sink<Double> sink) { in adapt() argument 99 if (sink instanceof DoubleConsumer) { in adapt() 100 return (DoubleConsumer) sink; in adapt() 105 return sink::accept; in adapt() 157 public final void forEachWithCancel(Spliterator<Double> spliterator, Sink<Double> sink) { in forEachWithCancel() argument 159 DoubleConsumer adaptedSink = adapt(sink); in forEachWithCancel() 160 do { } while (!sink.cancellationRequested() && spl.tryAdvance(adaptedSink)); in forEachWithCancel() 194 public Sink<Double> opWrapSink(int flags, Sink<Double> sink) { in map() 195 return new Sink.ChainedDouble<Double>(sink) { in map() 211 public Sink<Double> opWrapSink(int flags, Sink<U> sink) { [all …]
|
D | ReferencePipeline.java | 126 public final void forEachWithCancel(Spliterator<P_OUT> spliterator, Sink<P_OUT> sink) { in forEachWithCancel() argument 127 do { } while (!sink.cancellationRequested() && spliterator.tryAdvance(sink)); in forEachWithCancel() 154 public Sink<P_OUT> opWrapSink(int flags, Sink<P_OUT> sink) { in unordered() 155 return sink; in unordered() 166 public Sink<P_OUT> opWrapSink(int flags, Sink<P_OUT> sink) { 167 return new Sink.ChainedReference<P_OUT, P_OUT>(sink) { 190 public Sink<P_OUT> opWrapSink(int flags, Sink<R> sink) { 191 return new Sink.ChainedReference<P_OUT, R>(sink) { 207 public Sink<P_OUT> opWrapSink(int flags, Sink<Integer> sink) { 208 return new Sink.ChainedReference<P_OUT, Integer>(sink) { [all …]
|
D | AbstractPipeline.java | 471 final <P_IN, S extends Sink<E_OUT>> S wrapAndCopyInto(S sink, Spliterator<P_IN> spliterator) { in wrapAndCopyInto() argument 472 copyInto(wrapSink(Objects.requireNonNull(sink)), spliterator); in wrapAndCopyInto() 473 return sink; in wrapAndCopyInto() 514 public final <P_IN> Sink<P_IN> wrapSink(Sink<E_OUT> sink) { in wrapSink() argument 515 Objects.requireNonNull(sink); in wrapSink() 518 sink = p.opWrapSink(p.previousStage.combinedFlags, sink); in wrapSink() 520 return (Sink<P_IN>) sink; in wrapSink() 606 public abstract void forEachWithCancel(Spliterator<E_OUT> spliterator, Sink<E_OUT> sink); in forEachWithCancel() argument 659 public abstract Sink<E_IN> opWrapSink(int flags, Sink<E_OUT> sink); in opWrapSink() argument
|
D | DistinctOps.java | 119 public Sink<T> opWrapSink(int flags, Sink<T> sink) { in makeRef() argument 120 Objects.requireNonNull(sink); in makeRef() 123 return sink; in makeRef() 125 return new Sink.ChainedReference<T, T>(sink) { in makeRef() 156 return new Sink.ChainedReference<T, T>(sink) { in makeRef()
|
D | PipelineHelper.java | 108 abstract<P_IN, S extends Sink<P_OUT>> S wrapAndCopyInto(S sink, Spliterator<P_IN> spliterator); in wrapAndCopyInto() argument 154 public abstract<P_IN> Sink<P_IN> wrapSink(Sink<P_OUT> sink); in wrapSink() argument
|
D | ForEachOps.java | 256 private final Sink<S> sink; field in ForEachOps.ForEachTask 262 Sink<S> sink) { in ForEachTask() argument 264 this.sink = sink; in ForEachTask() 273 this.sink = parent.sink; in ForEachTask() 286 Sink<S> taskSink = sink; in compute()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | PipeImpl.java | 39 private final SinkChannel sink; field in PipeImpl 50 sink = new SinkChannelImpl(sp, sinkfd); in PipeImpl() 57 public SinkChannel sink() { in sink() method in PipeImpl 58 return sink; in sink()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | NodeTest.java | 81 private void traverse(Node node, List<Node> sink) { in traverse() argument 82 sink.add(node); in traverse() 86 traverse(children.item(i), sink); in traverse() local
|