/libcore/ojluni/src/main/java/java/util/ |
D | Spliterator.java | 312 boolean tryAdvance(Consumer<? super T> action); in tryAdvance() argument 331 default void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() argument 332 do { } while (tryAdvance(action)); in forEachRemaining() 632 boolean tryAdvance(T_CONS action); in tryAdvance() argument 653 default void forEachRemaining(T_CONS action) { in forEachRemaining() argument 654 do { } while (tryAdvance(action)); in forEachRemaining() 668 boolean tryAdvance(IntConsumer action); in tryAdvance() argument 671 default void forEachRemaining(IntConsumer action) { in forEachRemaining() argument 672 do { } while (tryAdvance(action)); in forEachRemaining() 686 default boolean tryAdvance(Consumer<? super Integer> action) { in tryAdvance() argument [all …]
|
D | PrimitiveIterator.java | 88 void forEachRemaining(T_CONS action); in forEachRemaining() argument 113 default void forEachRemaining(IntConsumer action) { in forEachRemaining() argument 114 Objects.requireNonNull(action); in forEachRemaining() 116 action.accept(nextInt()); in forEachRemaining() 142 default void forEachRemaining(Consumer<? super Integer> action) { in forEachRemaining() argument 143 if (action instanceof IntConsumer) { in forEachRemaining() 144 forEachRemaining((IntConsumer) action); in forEachRemaining() 148 Objects.requireNonNull(action); in forEachRemaining() 151 forEachRemaining((IntConsumer) action::accept); in forEachRemaining() 180 default void forEachRemaining(LongConsumer action) { in forEachRemaining() argument [all …]
|
D | Spliterators.java | 698 public void forEachRemaining(Consumer<? super T> action) { in iterator() argument 699 Objects.requireNonNull(action); in iterator() 704 action.accept(t); in iterator() 706 spliterator.forEachRemaining(action); in iterator() 755 public void forEachRemaining(IntConsumer action) { in iterator() argument 756 Objects.requireNonNull(action); in iterator() 759 action.accept(nextElement); in iterator() 761 spliterator.forEachRemaining(action); in iterator() 810 public void forEachRemaining(LongConsumer action) { in iterator() argument 811 Objects.requireNonNull(action); in iterator() [all …]
|
D | Iterator.java | 130 default void forEachRemaining(Consumer<? super E> action) { in forEachRemaining() argument 131 Objects.requireNonNull(action); in forEachRemaining() 133 action.accept(next()); in forEachRemaining()
|
/libcore/ojluni/src/main/java/java/security/ |
D | AccessController.java | 45 public static <T> T doPrivileged(PrivilegedAction<T> action) { in doPrivileged() argument 46 return action.run(); in doPrivileged() 52 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) { in doPrivilegedWithCombiner() argument 53 return action.run(); in doPrivilegedWithCombiner() 60 public static <T> T doPrivileged(PrivilegedAction<T> action, in doPrivileged() argument 62 return action.run(); in doPrivileged() 70 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action, in doPrivilegedWithCombiner() argument 72 return doPrivileged(action); in doPrivilegedWithCombiner() 79 doPrivileged(PrivilegedExceptionAction<T> action) in doPrivileged() argument 82 return action.run(); in doPrivileged() [all …]
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | AccessControllerTest.java | 60 assertActionRun(action -> AccessController.doPrivileged( in testDoPrivilegedWithCombiner() 61 (PrivilegedAction<Void>) action::get)); in testDoPrivilegedWithCombiner() 63 assertActionRun(action -> AccessController.doPrivileged( in testDoPrivilegedWithCombiner() 64 (PrivilegedAction<Void>) action::get, accessControlContext)); in testDoPrivilegedWithCombiner() 66 assertActionRun(action -> { in testDoPrivilegedWithCombiner() 68 AccessController.doPrivileged((PrivilegedExceptionAction<Void>) action::get); in testDoPrivilegedWithCombiner() 74 assertActionRun(action -> { in testDoPrivilegedWithCombiner() 77 (PrivilegedExceptionAction<Void>) action::get, accessControlContext); in testDoPrivilegedWithCombiner() 83 assertActionRun(action -> AccessController.doPrivilegedWithCombiner( in testDoPrivilegedWithCombiner() 84 (PrivilegedAction<Void>) action::get)); in testDoPrivilegedWithCombiner() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CompletionStage.java | 219 public CompletionStage<Void> thenAccept(Consumer<? super T> action); in thenAccept() argument 234 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action); in thenAcceptAsync() argument 249 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action, in thenAcceptAsync() argument 262 public CompletionStage<Void> thenRun(Runnable action); in thenRun() argument 276 public CompletionStage<Void> thenRunAsync(Runnable action); in thenRunAsync() argument 290 public CompletionStage<Void> thenRunAsync(Runnable action, in thenRunAsync() argument 370 BiConsumer<? super T, ? super U> action); in thenAcceptBoth() argument 389 BiConsumer<? super T, ? super U> action); in thenAcceptBothAsync() argument 409 BiConsumer<? super T, ? super U> action, in thenAcceptBothAsync() argument 425 Runnable action); in runAfterBoth() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorTest.java | 46 public boolean tryAdvance(IntConsumer action) { in tryAdvance() argument 48 action.accept(current++); in tryAdvance() 66 public boolean tryAdvance(Consumer<? super Integer> action) { in tryAdvance() argument 67 if (action instanceof IntConsumer) { in tryAdvance() 68 return tryAdvance(action); in tryAdvance() 70 return tryAdvance((IntConsumer) action::accept); in tryAdvance() 86 IntConsumer action = (i) -> sum.addAndGet(i); in testOfPrimitiveForEachRemaining() local 87 spliterator.forEachRemaining(action); in testOfPrimitiveForEachRemaining()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | Selector.java | 482 public int select(Consumer<SelectionKey> action, long timeout) in select() argument 487 return doSelect(Objects.requireNonNull(action), timeout); in select() 519 public int select(Consumer<SelectionKey> action) throws IOException { in select() argument 520 return select(action, 0); in select() 552 public int selectNow(Consumer<SelectionKey> action) throws IOException { in selectNow() argument 553 return doSelect(Objects.requireNonNull(action), -1); in selectNow() 559 private int doSelect(Consumer<SelectionKey> action, long timeout) in doSelect() argument 580 action.accept(k); in doSelect()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Streams.java | 393 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance() argument 394 Objects.requireNonNull(action); in tryAdvance() 397 action.accept(first); in tryAdvance() 407 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() argument 408 Objects.requireNonNull(action); in forEachRemaining() 411 action.accept(first); in forEachRemaining() 484 public boolean tryAdvance(IntConsumer action) { in tryAdvance() argument 485 Objects.requireNonNull(action); in tryAdvance() 488 action.accept(first); in tryAdvance() 498 public void forEachRemaining(IntConsumer action) { in forEachRemaining() argument [all …]
|
D | StreamSpliterators.java | 708 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance() argument 709 Objects.requireNonNull(action); in tryAdvance() 723 return s.tryAdvance(action); in tryAdvance() 727 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() argument 728 Objects.requireNonNull(action); in forEachRemaining() 738 s.forEachRemaining(action); in forEachRemaining() 748 s.tryAdvance(action); in forEachRemaining() 770 public boolean tryAdvance(T_CONS action) { in tryAdvance() argument 771 Objects.requireNonNull(action); in tryAdvance() 785 return s.tryAdvance(action); in tryAdvance() [all …]
|
D | ForEachOps.java | 69 public static <T> TerminalOp<T, Void> makeRef(Consumer<? super T> action, in makeRef() argument 71 Objects.requireNonNull(action); in makeRef() 72 return new ForEachOp.OfRef<>(action, ordered); in makeRef() 84 public static TerminalOp<Integer, Void> makeInt(IntConsumer action, in makeInt() argument 86 Objects.requireNonNull(action); in makeInt() 87 return new ForEachOp.OfInt(action, ordered); in makeInt() 99 public static TerminalOp<Long, Void> makeLong(LongConsumer action, in makeLong() argument 101 Objects.requireNonNull(action); in makeLong() 102 return new ForEachOp.OfLong(action, ordered); in makeLong() 114 public static TerminalOp<Double, Void> makeDouble(DoubleConsumer action, in makeDouble() argument [all …]
|
D | DoubleStream.java | 261 DoubleStream peek(DoubleConsumer action); in peek() argument 468 void forEach(DoubleConsumer action); in forEach() argument 482 void forEachOrdered(DoubleConsumer action); in forEachOrdered() argument 1010 public boolean tryAdvance(DoubleConsumer action) { in iterate() 1011 Objects.requireNonNull(action); in iterate() 1019 action.accept(prev = t); in iterate() 1072 public boolean tryAdvance(DoubleConsumer action) { in iterate() 1073 Objects.requireNonNull(action); in iterate() 1087 action.accept(prev = t); in iterate() 1092 public void forEachRemaining(DoubleConsumer action) { in iterate() [all …]
|
D | IntStream.java | 259 IntStream peek(IntConsumer action); in peek() argument 464 void forEach(IntConsumer action); in forEach() argument 478 void forEachOrdered(IntConsumer action); in forEachOrdered() argument 951 public boolean tryAdvance(IntConsumer action) { in iterate() 952 Objects.requireNonNull(action); in iterate() 960 action.accept(prev = t); in iterate() 1013 public boolean tryAdvance(IntConsumer action) { in iterate() 1014 Objects.requireNonNull(action); in iterate() 1028 action.accept(prev = t); in iterate() 1033 public void forEachRemaining(IntConsumer action) { in iterate() [all …]
|
D | LongStream.java | 259 LongStream peek(LongConsumer action); in peek() argument 466 void forEach(LongConsumer action); in forEach() argument 480 void forEachOrdered(LongConsumer action); in forEachOrdered() argument 940 public boolean tryAdvance(LongConsumer action) { in iterate() 941 Objects.requireNonNull(action); in iterate() 949 action.accept(prev = t); in iterate() 1002 public boolean tryAdvance(LongConsumer action) { in iterate() 1003 Objects.requireNonNull(action); in iterate() 1017 action.accept(prev = t); in iterate() 1022 public void forEachRemaining(LongConsumer action) { in iterate() [all …]
|
D | Stream.java | 645 Stream<T> peek(Consumer<? super T> action); 851 void forEach(Consumer<? super T> action); 870 void forEachOrdered(Consumer<? super T> action); 1460 public boolean tryAdvance(Consumer<? super T> action) { 1461 Objects.requireNonNull(action); 1469 action.accept(prev = t); 1523 public boolean tryAdvance(Consumer<? super T> action) { 1524 Objects.requireNonNull(action); 1539 action.accept(prev = t); 1544 public void forEachRemaining(Consumer<? super T> action) { [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | CharBufferSpliterator.java | 64 public void forEachRemaining(IntConsumer action) { in forEachRemaining() argument 65 if (action == null) in forEachRemaining() 72 action.accept(cb.getUnchecked(i++)); in forEachRemaining() 77 public boolean tryAdvance(IntConsumer action) { in tryAdvance() argument 78 if (action == null) in tryAdvance() 81 action.accept(buffer.getUnchecked(index++)); in tryAdvance()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | CountedCompleter8Test.java | 59 public static <E> void forEach1(E[] array, Consumer<E> action) { in forEach1() argument 75 action.accept(array[lo]); in forEach1() 83 public static <E> void forEach2(E[] array, Consumer<E> action) { in forEach2() argument 98 action.accept(array[lo]); in forEach2() 107 public static <E> void forEach3(E[] array, Consumer<E> action) { in forEach3() argument 121 action.accept(array[lo]); in forEach3() 129 public static <E> void forEach4(E[] array, Consumer<E> action) { in forEach4() argument 140 action.accept(array[lo]); in forEach4() 149 BiConsumer<Integer[], Consumer<Integer>> action) { in testRecursiveDecomposition() argument 154 action.accept(a, ai::addAndGet); in testRecursiveDecomposition()
|
/libcore/metrictests/memory/host/src/libcore/heapmetrics/ |
D | MetricsRunner.java | 118 Result runAllInstrumentations(String action) in runAllInstrumentations() argument 120 String relativeDirectoryName = String.format("%s-%s", timestampedLabel, action); in runAllInstrumentations() 126 action, relativeDirectoryName, deviceDirectoryName, in runAllInstrumentations() 129 action, relativeDirectoryName, deviceDirectoryName, in runAllInstrumentations() 131 AhatSnapshot beforeDump = fetchHeapDump(deviceDirectoryName, "before.hprof", action); in runAllInstrumentations() 132 AhatSnapshot afterDump = fetchHeapDump(deviceDirectoryName, "after.hprof", action); in runAllInstrumentations() 154 String action, String relativeDirectoryName, String deviceDirectoryName, String apk) in runInstrumentation() argument 158 relativeDirectoryName, action, apk); in runInstrumentation() 207 String deviceDirectoryName, String relativeDumpFilename, String action) in fetchHeapDump() argument 216 logHeapDump(file, String.format("%s-%s", action, relativeDumpFilename)); in fetchHeapDump()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketPermissionTest.java | 33 String action = "Connect"; in testGetAction() local 34 SocketPermission permission = new SocketPermission(host, action); in testGetAction() 42 String action = "Connect"; in testImplies() local 43 SocketPermission permission = new SocketPermission(host, action); in testImplies()
|
/libcore/ojluni/annotations/mmodule/java/util/concurrent/ |
D | CompletableFuture.annotated.java | 76 …Future<java.lang.Void> thenAccept(java.util.function.Consumer<? super T> action) { throw new Runti… in thenAccept() argument 78 …e<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T> action) { throw new Runti… in thenAcceptAsync() argument 80 …e<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T> action, java.util.concurr… in thenAcceptAsync() argument 82 public java.util.concurrent.CompletableFuture<java.lang.Void> thenRun(java.lang.Runnable action) { … in thenRun() argument 84 …urrent.CompletableFuture<java.lang.Void> thenRunAsync(java.lang.Runnable action) { throw new Runti… in thenRunAsync() argument 86 …urrent.CompletableFuture<java.lang.Void> thenRunAsync(java.lang.Runnable action, java.util.concurr… in thenRunAsync() argument 94 …e<? extends U> other, java.util.function.BiConsumer<? super T,? super U> action) { throw new Runti… in thenAcceptBoth() argument 96 …e<? extends U> other, java.util.function.BiConsumer<? super T,? super U> action) { throw new Runti… in thenAcceptBothAsync() argument 98 …e<? extends U> other, java.util.function.BiConsumer<? super T,? super U> action, java.util.concurr… in thenAcceptBothAsync() argument 100 …erBoth(java.util.concurrent.CompletionStage<?> other, java.lang.Runnable action) { throw new Runti… in runAfterBoth() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CompletionStageTest.java | 113 public CompletionStage<Void> thenAccept(Consumer<? super T> action) { in thenAccept() argument 117 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action) { in thenAcceptAsync() argument 121 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action, in thenAcceptAsync() argument 126 public CompletionStage<Void> thenRun(Runnable action) { in thenRun() argument 130 public CompletionStage<Void> thenRunAsync(Runnable action) { in thenRunAsync() argument 134 public CompletionStage<Void> thenRunAsync(Runnable action, in thenRunAsync() argument 156 BiConsumer<? super T, ? super U> action) { in thenAcceptBoth() argument 161 BiConsumer<? super T, ? super U> action) { in thenAcceptBothAsync() argument 166 BiConsumer<? super T, ? super U> action, in thenAcceptBothAsync() argument 172 Runnable action) { in runAfterBoth() argument [all …]
|
/libcore/ojluni/src/main/java/jdk/internal/ref/ |
D | CleanerImpl.java | 189 private final Runnable action; field in CleanerImpl.PhantomCleanableRef 197 public PhantomCleanableRef(Object obj, Cleaner cleaner, Runnable action) { in PhantomCleanableRef() argument 199 this.action = action; in PhantomCleanableRef() 207 this.action = null; in PhantomCleanableRef() 212 action.run(); in performCleanup()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Iterable.java | 72 default void forEach(Consumer<? super T> action) { in forEach() argument 73 Objects.requireNonNull(action); in forEach() 75 action.accept(t); in forEach()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DefaultMethodStreams.java | 247 public Stream<T> peek(Consumer<? super T> action) { in peek() argument 248 return s.peek(action); in peek() 262 public void forEach(Consumer<? super T> action) { in forEach() argument 263 s.forEach(action); in forEach() 267 public void forEachOrdered(Consumer<? super T> action) { in forEachOrdered() argument 268 s.forEachOrdered(action); in forEachOrdered() 438 public IntStream peek(IntConsumer action) { in peek() argument 439 return s.peek(action); in peek() 453 public void forEach(IntConsumer action) { in forEach() argument 454 s.forEach(action); in forEach() [all …]
|