/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 | 82 consumer.accept(i); in tryAdvance() 87 consumer.accept(i); in tryAdvance() 104 consumer.accept(i++); in forEachRemaining() 108 consumer.accept(i); in forEachRemaining() 207 consumer.accept(i); in tryAdvance() 212 consumer.accept(i); in tryAdvance() 228 consumer.accept(i++); in forEachRemaining() 232 consumer.accept(i); in forEachRemaining() 350 public void accept(T t) { in accept() method in Streams.StreamBuilderImpl 358 buffer.accept(first); in accept() [all …]
|
D | SortedOps.java | 357 downstream.accept(array[i]); in end() 361 downstream.accept(array[i]); in end() 368 public void accept(T t) { in accept() method in SortedOps.SizedRefSortingSink 395 list.forEach(downstream::accept); in end() 400 downstream.accept(t); in end() 408 public void accept(T t) { in accept() method in SortedOps.RefSortingSink 455 downstream.accept(array[i]); in end() 459 downstream.accept(array[i]); in end() 466 public void accept(int t) { in accept() method in SortedOps.SizedIntSortingSink 495 downstream.accept(anInt); in end() [all …]
|
D | IntPipeline.java | 108 return sink::accept; in adapt() 188 public void accept(int t) { in mapToObj() 189 downstream.accept(mapper.apply(t)); in mapToObj() 217 public void accept(int t) { 218 downstream.accept((long) t); 233 public void accept(int t) { 234 downstream.accept((double) t); 256 public void accept(int t) { 257 downstream.accept(mapper.applyAsInt(t)); 280 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); 298 public void accept(int t) { 309 accept(other.state); [all …]
|
D | ReferencePipeline.java | 189 public void accept(P_OUT u) { 191 downstream.accept(u); 208 public void accept(P_OUT u) { 209 downstream.accept(mapper.apply(u)); 226 public void accept(P_OUT u) { 227 downstream.accept(mapper.applyAsInt(u)); 244 public void accept(P_OUT u) { 245 downstream.accept(mapper.applyAsLong(u)); 262 public void accept(P_OUT u) { 263 downstream.accept(mapper.applyAsDouble(u)); [all …]
|
D | LongPipeline.java | 107 return sink::accept; in adapt() 185 public void accept(long t) { in mapToObj() 186 downstream.accept(mapper.apply(t)); in mapToObj() 215 public void accept(long t) { 216 downstream.accept((double) t); 238 public void accept(long t) { 239 downstream.accept(mapper.applyAsLong(t)); 262 public void accept(long t) { 263 downstream.accept(mapper.applyAsInt(t)); 280 public void accept(long t) { [all …]
|
D | DoublePipeline.java | 106 return sink::accept; in adapt() 184 public void accept(double t) { in mapToObj() 185 downstream.accept(mapper.apply(t)); in mapToObj() 221 public void accept(double t) { 222 downstream.accept(mapper.applyAsDouble(t)); 245 public void accept(double t) { 246 downstream.accept(mapper.applyAsInt(t)); 263 public void accept(double t) { 264 downstream.accept(mapper.applyAsLong(t)); 284 DoubleConsumer downstreamAsDouble = downstream::accept; [all …]
|
D | StreamSpliterators.java | 291 bufferSink = ph.wrapSink(b::accept); 300 consumer.accept(buffer.get(nextToConsume)); in tryAdvance() 310 ph.wrapAndCopyInto((Sink<P_OUT>) consumer::accept, spliterator); in forEachRemaining() 344 bufferSink = ph.wrapSink((Sink.OfInt) b::accept); in initPartialTraversalState() 358 consumer.accept(buffer.get(nextToConsume)); in tryAdvance() 368 ph.wrapAndCopyInto((Sink.OfInt) consumer::accept, spliterator); in forEachRemaining() 402 bufferSink = ph.wrapSink((Sink.OfLong) b::accept); in initPartialTraversalState() 416 consumer.accept(buffer.get(nextToConsume)); in tryAdvance() 426 ph.wrapAndCopyInto((Sink.OfLong) consumer::accept, spliterator); in forEachRemaining() 460 bufferSink = ph.wrapSink((Sink.OfDouble) b::accept); in initPartialTraversalState() [all …]
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | StringCharBufferSliceTest.java | 84 bitest.accept(buff, buff.slice()); in testSlice() 86 bitest.accept(buff, buff.slice(4, 3)); in testSlice() 102 bitest.accept(buff, buff.slice()); in testSlice() 104 bitest.accept(buff, buff.slice(4, 3)); in testSlice() 123 test.accept(buff.slice()); in testSlice() 124 test.accept(buff.slice(0, buff.capacity())); in testSlice() 137 test.accept(buff.slice()); in testSlice() 138 test.accept(buff.slice(4, 3)); in testSlice() 152 test.accept(buff.slice()); in testSlice() 153 test.accept(buff.slice(4, 4)); in testSlice() [all …]
|
/libcore/ojluni/src/test/java/util/DoubleSummaryStatistics/ |
D | NegativeCompensation.java | 52 stat1.accept(VAL); in testErrorComparision() 53 stat1.accept(VAL); in testErrorComparision() 54 stat2.accept(VAL); in testErrorComparision() 55 stat2.accept(VAL); in testErrorComparision() 56 stat2.accept(VAL); in testErrorComparision() 64 stat0.accept(VAL); in testErrorComparision()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | CollectAndSummaryStatisticsTest.java | 53 IntSummaryStatistics::accept, in testIntCollectNull() 59 IntSummaryStatistics::accept, in testIntCollectNull() 65 LongSummaryStatistics::accept, in testLongCollectNull() 71 LongSummaryStatistics::accept, in testLongCollectNull() 77 DoubleSummaryStatistics::accept, in testDoubleCollectNull() 83 DoubleSummaryStatistics::accept, in testDoubleCollectNull() 92 IntSummaryStatistics::accept, in testIntStatistics() 95 IntSummaryStatistics::accept, in testIntStatistics() field in CollectAndSummaryStatisticsTest.IntSummaryStatistics 100 … IntSummaryStatistics::accept, in testIntStatistics() 103 … IntSummaryStatistics::accept, in testIntStatistics() field in CollectAndSummaryStatisticsTest.IntSummaryStatistics [all …]
|
D | CollectorExample.java | 74 accumulator.accept(a1, t1); in testSnippet1() 75 accumulator.accept(a1, t2); in testSnippet1() 79 accumulator.accept(a2, t1); in testSnippet1() 81 accumulator.accept(a3, t2); in testSnippet1() 94 collector.accumulator().accept(container, t); in testSnippet3()
|
/libcore/ojluni/src/test/java/util/Objects/ |
D | CheckLongIndex.java | 117 checker.accept(AssertingOutOfBoundsException.class, 120 checker.accept(IndexOutOfBoundsException.class, 123 checker.accept(IndexOutOfBoundsException.class, 125 checker.accept(IndexOutOfBoundsException.class, 127 checker.accept(ArrayIndexOutOfBoundsException.class, 130 checker.accept(StringIndexOutOfBoundsException.class, 179 check.accept(AssertingOutOfBoundsException.class, 182 check.accept(IndexOutOfBoundsException.class, 185 check.accept(IndexOutOfBoundsException.class, 187 check.accept(IndexOutOfBoundsException.class, [all …]
|
D | CheckIndex.java | 118 checker.accept(AssertingOutOfBoundsException.class, 121 checker.accept(IndexOutOfBoundsException.class, 124 checker.accept(IndexOutOfBoundsException.class, 126 checker.accept(IndexOutOfBoundsException.class, 128 checker.accept(ArrayIndexOutOfBoundsException.class, 131 checker.accept(StringIndexOutOfBoundsException.class, 180 check.accept(AssertingOutOfBoundsException.class, 183 check.accept(IndexOutOfBoundsException.class, 186 check.accept(IndexOutOfBoundsException.class, 188 check.accept(IndexOutOfBoundsException.class, [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | DoubleSummaryStatisticsTest.java | 41 dss.accept(100.5d); in test_accept() 44 dss.accept(45.0d); in test_accept() 69 dss1.accept(Double.NaN); in test_getSum() 77 dss1.accept(Double.NaN); in test_getMin() 85 dss1.accept(Double.NaN); in test_getMax() 93 dss1.accept(Double.NaN); in test_getAverage() 138 dss.accept(value); in getDoubleSummaryStatisticsData1() 146 dss.accept(value); in getDoubleSummaryStatisticsData2()
|
D | LongSummaryStatisticsTest.java | 75 lss.accept(100L); in test_accept() 78 lss.accept(250L); in test_accept() 83 lss.accept(50); in test_accept() 86 lss.accept(200); in test_accept() 131 lss.accept(value); in getLongSummaryStatisticsData1() 139 lss.accept(value); in getLongSummaryStatisticsData2()
|
/libcore/ojluni/src/main/java/java/util/ |
D | PrimitiveIterator.java | 116 action.accept(nextInt()); in forEachRemaining() 151 forEachRemaining((IntConsumer) action::accept); in forEachRemaining() 183 action.accept(nextLong()); in forEachRemaining() 218 forEachRemaining((LongConsumer) action::accept); in forEachRemaining() 249 action.accept(nextDouble()); in forEachRemaining() 285 forEachRemaining((DoubleConsumer) action::accept); in forEachRemaining()
|
/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 …]
|