/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | CookiePolicyTest.java | 36 boolean accept; in test_ShouldAccept_LURI_LHttpCookie() 39 accept = CookiePolicy.ACCEPT_ALL.shouldAccept(null, cookie); in test_ShouldAccept_LURI_LHttpCookie() 40 assertTrue(accept); in test_ShouldAccept_LURI_LHttpCookie() 42 accept = CookiePolicy.ACCEPT_ALL.shouldAccept(null, null); in test_ShouldAccept_LURI_LHttpCookie() 43 assertTrue(accept); in test_ShouldAccept_LURI_LHttpCookie() 45 accept = CookiePolicy.ACCEPT_ALL.shouldAccept(uri, null); in test_ShouldAccept_LURI_LHttpCookie() 46 assertTrue(accept); in test_ShouldAccept_LURI_LHttpCookie() 49 accept = CookiePolicy.ACCEPT_NONE.shouldAccept(null, cookie); in test_ShouldAccept_LURI_LHttpCookie() 50 assertFalse(accept); in test_ShouldAccept_LURI_LHttpCookie() 52 accept = CookiePolicy.ACCEPT_NONE.shouldAccept(null, null); in test_ShouldAccept_LURI_LHttpCookie() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Sink.java | 160 default void accept(int value) { in accept() method 171 default void accept(long value) { in accept() method 182 default void accept(double value) { in accept() method 193 void accept(int value); in accept() method 196 default void accept(Integer i) { in accept() method 199 accept(i.intValue()); in accept() 210 void accept(long value); in accept() method 213 default void accept(Long i) { in accept() method 216 accept(i.longValue()); in accept() 227 void accept(double value); in accept() method [all …]
|
D | Streams.java | 89 consumer.accept(i); in tryAdvance() 94 consumer.accept(i); in tryAdvance() 110 consumer.accept(i++); in forEachRemaining() 114 consumer.accept(i); in forEachRemaining() 214 consumer.accept(i); in tryAdvance() 219 consumer.accept(i); in tryAdvance() 235 consumer.accept(i++); in forEachRemaining() 239 consumer.accept(i); in forEachRemaining() 358 public void accept(T t) { in accept() method in Streams.StreamBuilderImpl 366 buffer.accept(first); in accept() [all …]
|
D | SortedOps.java | 352 downstream.accept(array[i]); in end() 356 downstream.accept(array[i]); in end() 363 public void accept(T t) { in accept() method in SortedOps.SizedRefSortingSink 390 list.forEach(downstream::accept); in end() 395 downstream.accept(t); in end() 403 public void accept(T t) { in accept() method in SortedOps.RefSortingSink 449 downstream.accept(array[i]); in end() 453 downstream.accept(array[i]); in end() 460 public void accept(int t) { in accept() method in SortedOps.SizedIntSortingSink 489 downstream.accept(anInt); in end() [all …]
|
D | IntPipeline.java | 108 return sink::accept; in adapt() 202 public void accept(int t) { in asLongStream() 203 downstream.accept((long) t); in asLongStream() 219 public void accept(int t) { 220 downstream.accept((double) t); 242 public void accept(int t) { 243 downstream.accept(mapper.applyAsInt(t)); 260 public void accept(int t) { 261 downstream.accept(mapper.apply(t)); 278 public void accept(int t) { [all …]
|
D | ReduceOps.java | 79 public void accept(T t) { in makeRef() method in ReduceOps.ReducingSink 118 public void accept(T t) { 135 accept(other.state); 168 public void accept(T t) { 169 accumulator.accept(state, t); 219 public void accept(T t) { 220 accumulator.accept(state, t); 225 reducer.accept(state, other.state); 257 public void accept(int t) { 268 accept(other.state); [all …]
|
D | LongPipeline.java | 107 return sink::accept; in adapt() 200 public void accept(long t) { in asDoubleStream() 201 downstream.accept((double) t); in asDoubleStream() 223 public void accept(long t) { 224 downstream.accept(mapper.applyAsLong(t)); 241 public void accept(long t) { 242 downstream.accept(mapper.apply(t)); 259 public void accept(long t) { 260 downstream.accept(mapper.applyAsInt(t)); 277 public void accept(long t) { [all …]
|
D | DoublePipeline.java | 106 return sink::accept; in adapt() 205 public void accept(double t) { in map() 206 downstream.accept(mapper.applyAsDouble(t)); in map() 223 public void accept(double t) { 224 downstream.accept(mapper.apply(t)); 241 public void accept(double t) { 242 downstream.accept(mapper.applyAsInt(t)); 259 public void accept(double t) { 260 downstream.accept(mapper.applyAsLong(t)); 281 public void accept(double t) { [all …]
|
D | ReferencePipeline.java | 183 public void accept(P_OUT u) { 185 downstream.accept(u); 202 public void accept(P_OUT u) { 203 downstream.accept(mapper.apply(u)); 220 public void accept(P_OUT u) { 221 downstream.accept(mapper.applyAsInt(u)); 238 public void accept(P_OUT u) { 239 downstream.accept(mapper.applyAsLong(u)); 256 public void accept(P_OUT u) { 257 downstream.accept(mapper.applyAsDouble(u)); [all …]
|
D | StreamSpliterators.java | 293 bufferSink = ph.wrapSink(b::accept); 302 consumer.accept(buffer.get(nextToConsume)); in tryAdvance() 312 ph.wrapAndCopyInto((Sink<P_OUT>) consumer::accept, spliterator); in forEachRemaining() 346 bufferSink = ph.wrapSink((Sink.OfInt) b::accept); in initPartialTraversalState() 360 consumer.accept(buffer.get(nextToConsume)); in tryAdvance() 370 ph.wrapAndCopyInto((Sink.OfInt) consumer::accept, spliterator); in forEachRemaining() 404 bufferSink = ph.wrapSink((Sink.OfLong) b::accept); in initPartialTraversalState() 418 consumer.accept(buffer.get(nextToConsume)); in tryAdvance() 428 ph.wrapAndCopyInto((Sink.OfLong) consumer::accept, spliterator); in forEachRemaining() 462 bufferSink = ph.wrapSink((Sink.OfDouble) b::accept); in initPartialTraversalState() [all …]
|
D | FindOps.java | 177 public void accept(T value) { in accept() method in FindOps.FindSink 201 public void accept(int value) { in accept() method in FindOps.FindSink.OfInt 203 accept((Integer) value); in accept() 216 public void accept(long value) { in accept() method in FindOps.FindSink.OfLong 218 accept((Long) value); in accept() 231 public void accept(double value) { in accept() method in FindOps.FindSink.OfDouble 233 accept((Double) value); in accept()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | DoubleSummaryStatisticsTest.java | 37 dss.accept(100.5d); in test_accept() 40 dss.accept(45.0d); in test_accept() 65 dss1.accept(Double.NaN); in test_getSum() 73 dss1.accept(Double.NaN); in test_getMin() 81 dss1.accept(Double.NaN); in test_getMax() 89 dss1.accept(Double.NaN); in test_getAverage() 96 dss.accept(value); in getDoubleSummaryStatisticsData1() 104 dss.accept(value); in getDoubleSummaryStatisticsData2()
|
D | LongSummaryStatisticsTest.java | 39 lss.accept(100L); in test_accept() 42 lss.accept(250L); in test_accept() 47 lss.accept(50); in test_accept() 50 lss.accept(200); in test_accept() 95 lss.accept(value); in getLongSummaryStatisticsData1() 103 lss.accept(value); in getLongSummaryStatisticsData2()
|
D | IntSummaryStatisticsTest.java | 37 iss.accept(5); in test_accept() 40 iss.accept(10); in test_accept() 85 iss.accept(value); in getIntSummaryStatisticsData1() 93 iss.accept(value); in getIntSummaryStatisticsData2()
|
/libcore/ojluni/src/main/java/java/util/ |
D | PrimitiveIterator.java | 115 action.accept(nextInt()); in forEachRemaining() 150 forEachRemaining((IntConsumer) action::accept); in forEachRemaining() 189 action.accept(nextLong()); in forEachRemaining() 224 forEachRemaining((LongConsumer) action::accept); in forEachRemaining() 262 action.accept(nextDouble()); in forEachRemaining() 298 forEachRemaining((DoubleConsumer) action::accept); in forEachRemaining()
|
D | Spliterator.java | 676 return tryAdvance((IntConsumer) action::accept); in tryAdvance() 699 forEachRemaining((IntConsumer) action::accept); in forEachRemaining() 740 return tryAdvance((LongConsumer) action::accept); in tryAdvance() 763 forEachRemaining((LongConsumer) action::accept); in forEachRemaining() 804 return tryAdvance((DoubleConsumer) action::accept); in tryAdvance() 828 forEachRemaining((DoubleConsumer) action::accept); in forEachRemaining()
|
D | LongSummaryStatistics.java | 85 public void accept(int value) { in accept() method in LongSummaryStatistics 86 accept((long) value); in accept() 95 public void accept(long value) { in accept() method in LongSummaryStatistics
|
/libcore/ojluni/src/main/java/java/util/function/ |
D | DoubleConsumer.java | 49 void accept(double value); in accept() method 65 return (double t) -> { accept(t); after.accept(t); }; in andThen()
|
D | IntConsumer.java | 49 void accept(int value); in accept() method 65 return (int t) -> { accept(t); after.accept(t); }; in andThen()
|
D | LongConsumer.java | 49 void accept(long value); in accept() method 65 return (long t) -> { accept(t); after.accept(t); }; in andThen()
|
D | Consumer.java | 49 void accept(T t); in accept() method 65 return (T t) -> { accept(t); after.accept(t); }; in andThen()
|
D | BiConsumer.java | 53 void accept(T t, U u); in accept() method 71 accept(l, r); in andThen() 72 after.accept(l, r); in andThen()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | ServerSocketChannelTest.java | 341 this.serverChannel.accept(); in testAccept_Block_NotYetBound() 352 this.serverChannel.accept(); in testAccept_NonBlock_NotYetBound() 363 this.serverChannel.accept(); in testAccept_ClosedChannel() 387 this.serverChannel.accept(); in testAccept_Block_NoConnect() 398 assertNull(this.serverChannel.accept()); in testAccept_NonBlock_NoConnect() 412 Socket serverSocket = serverChannel.accept().socket(); in test_read_Blocking_RealData() 451 Socket serverSocket = serverChannel.accept().socket(); in test_read_NonBlocking_RealData() 470 Socket socket = serverChannel.accept().socket(); in test_write_Blocking_RealData() 491 Socket clientSocket = serverChannel.accept().socket(); in test_write_NonBlocking_RealData() 513 Socket socket = serverChannel.accept().socket(); in test_read_LByteBuffer_Blocking_ReadWriteRealLargeData() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | CharSequence.java | 149 block.accept(charAt(cur)); in chars() 189 block.accept(c1); in codePoints() 194 block.accept(Character.toCodePoint(c1, c2)); in codePoints() 196 block.accept(c1); in codePoints()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | StreamTestScenario.java | 62 b.accept(t); in STREAM_COLLECT() 72 b.accept((U) t); in STREAM_TO_ARRAY() 82 b.accept(seqIter.next()); in STREAM_ITERATOR() 148 b.accept((U) t); in PAR_STREAM_TO_ARRAY() 162 b.accept((U) t); in PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY() 175 b.accept((U) t); in PAR_STREAM_TO_ARRAY_CLEAR_SIZED() 184 b.accept(u); in PAR_STREAM_COLLECT_TO_LIST() 193 b.accept(u); in STREAM_TO_PAR_STREAM_COLLECT_TO_LIST() 202 b.accept(u); in PAR_STREAM_TO_STREAM_COLLECT_TO_LIST() 212 b.accept(e); in PAR_STREAM_FOR_EACH() [all …]
|