/libcore/ojluni/src/main/java/java/util/ |
H A D | PrimitiveIterator.java | 71 * Performs the given action for each remaining element, in the order 73 * or the action throws an exception. Errors or runtime exceptions 74 * thrown by the action are relayed to the caller. 76 * @param action The action to be performed for each element 77 * @throws NullPointerException if the specified action is null 80 void forEachRemaining(T_CONS action); argument 97 * Performs the given action for each remaining element until all elements 98 * have been processed or the action throws an exception. Actions are 100 * Exceptions thrown by the action ar 112 forEachRemaining(IntConsumer action) argument 141 forEachRemaining(Consumer<? super Integer> action) argument 186 forEachRemaining(LongConsumer action) argument 215 forEachRemaining(Consumer<? super Long> action) argument 259 forEachRemaining(DoubleConsumer action) argument 289 forEachRemaining(Consumer<? super Double> action) argument [all...] |
H A D | Spliterator.java | 208 * public void forEachRemaining(Consumer<? super T> action) { 210 * action.accept((T) array[origin]); 213 * public boolean tryAdvance(Consumer<? super T> action) { 215 * action.accept((T) array[origin]); 256 * static <T> void parEach(TaggedArray<T> a, Consumer<T> action) { 259 * new ParEach(null, s, action, targetBatchSize).invoke(); 264 * final Consumer<T> action; 268 * Consumer<T> action, long targetBatchSize) { 270 * this.spliterator = spliterator; this.action = action; 309 tryAdvance(Consumer<? super T> action) argument 325 forEachRemaining(Consumer<? super T> action) argument 617 tryAdvance(T_CONS action) argument 635 forEachRemaining(T_CONS action) argument 650 tryAdvance(IntConsumer action) argument 653 forEachRemaining(IntConsumer action) argument 668 tryAdvance(Consumer<? super Integer> action) argument 691 forEachRemaining(Consumer<? super Integer> action) argument 714 tryAdvance(LongConsumer action) argument 717 forEachRemaining(LongConsumer action) argument 732 tryAdvance(Consumer<? super Long> action) argument 755 forEachRemaining(Consumer<? super Long> action) argument 778 tryAdvance(DoubleConsumer action) argument 781 forEachRemaining(DoubleConsumer action) argument 796 tryAdvance(Consumer<? super Double> action) argument 820 forEachRemaining(Consumer<? super Double> action) argument [all...] |
H A D | Iterator.java | 82 * {@link UnsupportedOperationException} and performs no other action. 97 * Performs the given action for each remaining element until all elements 98 * have been processed or the action throws an exception. Actions are 100 * Exceptions thrown by the action are relayed to the caller. 106 * action.accept(next()); 109 * @param action The action to be performed for each element 110 * @throws NullPointerException if the specified action is null 113 default void forEachRemaining(Consumer<? super E> action) { argument 114 Objects.requireNonNull(action); [all...] |
H A D | Spliterators.java | 942 public void forEachRemaining(Consumer<? super T> action) { argument 944 if (action == null) 948 do { action.accept((T)a[i]); } while (++i < hi); 953 public boolean tryAdvance(Consumer<? super T> action) { argument 954 if (action == null) 958 action.accept(e); 1026 public void forEachRemaining(IntConsumer action) { argument 1028 if (action == null) 1032 do { action.accept(a[i]); } while (++i < hi); 1037 public boolean tryAdvance(IntConsumer action) { argument 1109 forEachRemaining(LongConsumer action) argument 1120 tryAdvance(LongConsumer action) argument 1192 forEachRemaining(DoubleConsumer action) argument 1203 tryAdvance(DoubleConsumer action) argument 1794 forEachRemaining(Consumer<? super T> action) argument 1805 tryAdvance(Consumer<? super T> action) argument 1906 forEachRemaining(IntConsumer action) argument 1912 tryAdvance(IntConsumer action) argument 2000 forEachRemaining(LongConsumer action) argument 2006 tryAdvance(LongConsumer action) argument 2094 forEachRemaining(DoubleConsumer action) argument 2100 tryAdvance(DoubleConsumer action) argument [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | AccessController.java | 40 * Calls {@code action.run()}. 42 public static <T> T doPrivileged(PrivilegedAction<T> action) { argument 43 return action.run(); 47 * Calls {@code action.run()}. 49 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) { argument 50 return action.run(); 55 * Calls {@code action.run()}. 57 public static <T> T doPrivileged(PrivilegedAction<T> action, argument 59 return action.run(); 63 * Calls {@code action 66 doPrivileged(PrivilegedExceptionAction<T> action) argument 81 doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action) argument 91 doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) argument [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Iterable.java | 55 * Performs the given action for each element of the {@code Iterable} 56 * until all elements have been processed or the action throws an 59 * is specified). Exceptions thrown by the action are relayed to the 66 * action.accept(t); 69 * @param action The action to be performed for each element 70 * @throws NullPointerException if the specified action is null 73 default void forEach(Consumer<? super T> action) { argument 74 Objects.requireNonNull(action); 76 action [all...] |
/libcore/ojluni/src/main/java/sun/security/action/ |
H A D | GetBooleanAction.java | 26 package sun.security.action; 30 * as a privileged action. 36 * property named <code>"prop"</code> as a privileged action: <p>
|
H A D | GetIntegerAction.java | 26 package sun.security.action; 30 * as a privileged action. 36 * property named <code>"prop"</code> as a privileged action. Since it does 43 * (new sun.security.action.GetIntegerAction("prop")); 51 * property named <code>"prop"</code> as a privileged action, and also passes
|
H A D | GetPropertyAction.java | 26 package sun.security.action; 30 * property as a privileged action. 36 * property named <code>"prop"</code> as a privileged action: <p>
|
/libcore/ojluni/src/main/java/java/nio/ |
H A D | CharBufferSpliterator.java | 64 public void forEachRemaining(IntConsumer action) { argument 65 if (action == null) 72 action.accept(cb.getUnchecked(i++)); 77 public boolean tryAdvance(IntConsumer action) { argument 78 if (action == null) 81 action.accept(buffer.getUnchecked(index++));
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | CompletionStage.java | 45 * action or computes a value when another CompletionStage completes. 107 * {@code whenComplete}, when the supplied action itself encounters an 210 * to the supplied action. 215 * @param action the action to perform before completing the 219 public CompletionStage<Void> thenAccept(Consumer<? super T> action); argument 225 * the supplied action. 230 * @param action the action to perform before completing the 234 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action); argument 249 thenAcceptAsync(Consumer<? super T> action, Executor executor) argument 262 thenRun(Runnable action) argument 276 thenRunAsync(Runnable action) argument 290 thenRunAsync(Runnable action, Executor executor) argument 368 thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) argument 387 thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) argument 407 thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor) argument 424 runAfterBoth(CompletionStage<?> other, Runnable action) argument 439 runAfterBothAsync(CompletionStage<?> other, Runnable action) argument 456 runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor) argument 530 acceptEither(CompletionStage<? extends T> other, Consumer<? super T> action) argument 548 acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action) argument 567 acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor) argument 584 runAfterEither(CompletionStage<?> other, Runnable action) argument 600 runAfterEitherAsync(CompletionStage<?> other, Runnable action) argument 618 runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor) argument 781 whenComplete(BiConsumer<? super T, ? super Throwable> action) argument 807 whenCompleteAsync(BiConsumer<? super T, ? super Throwable> action) argument 834 whenCompleteAsync(BiConsumer<? super T, ? super Throwable> action, Executor executor) argument [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | PrivilegedActionTest.java | 34 MyPrivilegedAction action = new MyPrivilegedAction(); 35 String result = AccessController.doPrivileged(action); 37 assertTrue("run method was not called", action.called);
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | SocketPermission.java | 41 public SocketPermission(String host, String action) { super(""); } argument
|
H A D | DefaultDatagramSocketImplFactory.java | 44 new sun.security.action.GetPropertyAction("impl.prefix", null));
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | DefaultSelectorProvider.java | 30 import sun.security.action.GetPropertyAction;
|
H A D | DefaultAsynchronousChannelProvider.java | 30 import sun.security.action.GetPropertyAction;
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | ForEachOps.java | 40 * action for every element of a stream. Supported variants include unordered 61 * Constructs a {@code TerminalOp} that perform an action for every element 64 * @param action the {@code Consumer} that receives all elements of a 70 public static <T> TerminalOp<T, Void> makeRef(Consumer<? super T> action, argument 72 Objects.requireNonNull(action); 73 return new ForEachOp.OfRef<>(action, ordered); 77 * Constructs a {@code TerminalOp} that perform an action for every element 80 * @param action the {@code IntConsumer} that receives all elements of a 85 public static TerminalOp<Integer, Void> makeInt(IntConsumer action, argument 87 Objects.requireNonNull(action); 100 makeLong(LongConsumer action, boolean ordered) argument 115 makeDouble(DoubleConsumer action, boolean ordered) argument 369 private final Sink<T> action; field in class:ForEachOps.ForEachOrderedTask 373 ForEachOrderedTask(PipelineHelper<T> helper, Spliterator<S> spliterator, Sink<T> action) argument [all...] |
H A D | Streams.java | 401 public boolean tryAdvance(Consumer<? super T> action) { argument 402 Objects.requireNonNull(action); 405 action.accept(first); 415 public void forEachRemaining(Consumer<? super T> action) { argument 416 Objects.requireNonNull(action); 419 action.accept(first); 492 public boolean tryAdvance(IntConsumer action) { argument 493 Objects.requireNonNull(action); 496 action.accept(first); 506 public void forEachRemaining(IntConsumer action) { argument 583 tryAdvance(LongConsumer action) argument 597 forEachRemaining(LongConsumer action) argument 674 tryAdvance(DoubleConsumer action) argument 688 forEachRemaining(DoubleConsumer action) argument 793 tryAdvance(T_CONS action) argument 808 forEachRemaining(T_CONS action) argument [all...] |
H A D | StreamSpliterators.java | 710 public boolean tryAdvance(Consumer<? super T> action) { argument 711 Objects.requireNonNull(action); 725 return s.tryAdvance(action); 729 public void forEachRemaining(Consumer<? super T> action) { argument 730 Objects.requireNonNull(action); 740 s.forEachRemaining(action); 750 s.tryAdvance(action); 772 public boolean tryAdvance(T_CONS action) { argument 773 Objects.requireNonNull(action); 787 return s.tryAdvance(action); 791 forEachRemaining(T_CONS action) argument 1009 tryAdvance(Consumer<? super T> action) argument 1025 forEachRemaining(Consumer<? super T> action) argument 1079 tryAdvance(T_CONS action) argument 1095 acceptConsumed(T_CONS action) argument 1098 forEachRemaining(T_CONS action) argument 1149 acceptConsumed(IntConsumer action) argument 1184 acceptConsumed(LongConsumer action) argument 1219 acceptConsumed(DoubleConsumer action) argument 1273 tryAdvance(Consumer<? super T> action) argument 1285 forEachRemaining(Consumer<? super T> action) argument 1353 tryAdvance(Consumer<? super T> action) argument 1378 tryAdvance(IntConsumer action) argument 1403 tryAdvance(LongConsumer action) argument 1428 tryAdvance(DoubleConsumer action) argument 1464 forEach(Consumer<? super T> action, long fence) argument 1481 forEach(T_CONS action, long fence) argument 1498 forEach(IntConsumer action, long fence) argument 1519 forEach(LongConsumer action, long fence) argument 1540 forEach(DoubleConsumer action, long fence) argument [all...] |
H A D | LongPipeline.java | 334 public final LongStream peek(LongConsumer action) { argument 335 Objects.requireNonNull(action); 343 action.accept(t); 385 public void forEach(LongConsumer action) { argument 386 evaluate(ForEachOps.makeLong(action, false)); 390 public void forEachOrdered(LongConsumer action) { argument 391 evaluate(ForEachOps.makeLong(action, true)); 540 public void forEach(LongConsumer action) { argument 542 adapt(sourceStageSpliterator()).forEachRemaining(action); 544 super.forEach(action); 549 forEachOrdered(LongConsumer action) argument [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
H A D | NativeConverter.java | 52 private static int translateCodingErrorAction(CodingErrorAction action) { argument 53 if (action == CodingErrorAction.REPORT) { 55 } else if (action == CodingErrorAction.IGNORE) { 57 } else if (action == CodingErrorAction.REPLACE) {
|
/libcore/ojluni/src/main/java/sun/net/ |
H A D | NetHooks.java | 33 import sun.security.action.GetPropertyAction;
|
/libcore/metrictests/memory/host/src/libcore/heapmetrics/ |
H A D | MetricsRunner.java | 91 * Returns the parsed form of the heap dump captured after the instrumentation action has 106 * Returns the PSS measured after the instrumentation action has been executed, in kB. 116 * @param action The name of the action to run, to be sent as an argument to the instrumentation 119 Result runAllInstrumentations(String action) argument 121 String relativeDirectoryName = String.format("%s-%s", timestampedLabel, action); 127 action, relativeDirectoryName, deviceDirectoryName, 130 action, relativeDirectoryName, deviceDirectoryName, 132 AhatSnapshot beforeDump = fetchHeapDump(deviceDirectoryName, "before.hprof", action); 133 AhatSnapshot afterDump = fetchHeapDump(deviceDirectoryName, "after.hprof", action); 154 runInstrumentation( String action, String relativeDirectoryName, String deviceDirectoryName, String apk) argument 207 fetchHeapDump( String deviceDirectoryName, String relativeDumpFilename, String action) argument [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | DoPrivilegedBenchmark.java | 55 final PrivilegedAction<String> action = new ReusableAction("line.separator"); 57 String lineSeparator = AccessController.doPrivileged(action);
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
H A D | CharsetDecoder.java | 89 * <p> How a decoding error is handled depends upon the action requested for 109 * <p> The default action for malformed-input and unmappable-character errors 111 * malformed-input error action may be changed via the {@link 113 * unmappable-character action may be changed via the {@link 356 * Returns this decoder's current action for malformed-input errors. 358 * @return The current malformed-input action, which is never <tt>null</tt> 365 * Changes this decoder's action for malformed-input errors. 368 * implOnMalformedInput} method, passing the new action. </p> 370 * @param newAction The new action; must not be <tt>null</tt> 379 throw new IllegalArgumentException("Null action"); [all...] |