Searched defs:action (Results 1 - 25 of 57) sorted by relevance

123

/libcore/ojluni/src/main/java/java/lang/
H A DIterable.java55 * 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 DGetBooleanAction.java26 package sun.security.action;
30 * as a privileged action.
36 * property named <code>"prop"</code> as a privileged action: <p>
H A DGetPropertyAction.java26 package sun.security.action;
30 * property as a privileged action.
36 * property named <code>"prop"</code> as a privileged action: <p>
H A DGetIntegerAction.java26 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
/libcore/ojluni/src/main/java/java/net/
H A DSocketPermission.java41 public SocketPermission(String host, String action) { super(""); } argument
/libcore/ojluni/src/main/java/java/security/
H A DAccessController.java40 * 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/util/
H A DIterator.java82 * {@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 DPrimitiveIterator.java71 * 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 DSpliterator.java208 * 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 DMap.java594 * Performs the given action for each entry in this map until all entries
595 * have been processed or the action throws an exception. Unless
598 * Exceptions thrown by the action are relayed to the caller.
604 * action.accept(entry.getKey(), entry.getValue());
612 * @param action The action to be performed for each entry
613 * @throws NullPointerException if the specified action is null
618 default void forEach(BiConsumer<? super K, ? super V> action) { argument
619 Objects.requireNonNull(action);
630 action
[all...]
H A DSpliterators.java942 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/nio/
H A DCharBufferSpliterator.java64 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/luni/src/main/java/org/w3c/dom/ls/
H A DLSParser.java345 * node. For this action to work, the context node must be an
351 * parse operation. For this action to work, the context node must be an
358 * sibling of the context node. For this action to work the context
365 * sibling of the context node. For this action to work the context
372 * this action to work, the context node must have a parent, and the
382 * <code>action</code> arguments. When parsing the input stream, the
391 * <br> If the context node is a <code>Document</code> node and the action
416 * the context node of type <code>DOCUMENT_NODE</code>, and the action
425 * @param action This parameter describes which action shoul
454 parseWithContext(LSInput input, Node contextArg, short action) argument
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentMap.java100 * action.accept(entry.getKey(), entry.getValue());
112 default void forEach(BiConsumer<? super K, ? super V> action) { argument
113 Objects.requireNonNull(action);
124 action.accept(k, v);
138 * except that the action is performed atomically.
173 * except that the action is performed atomically.
204 * except that the action is performed atomically.
233 * except that the action is performed atomically.
H A DCompletionStage.java45 * 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...]
H A DCopyOnWriteArraySet.java74 * perform some action upon state updates.
419 public void forEach(Consumer<? super E> action) { argument
420 al.forEach(action);
H A DExecutors.java372 * {@code Callable} to an otherwise resultless action.
400 * called, runs the given privileged action and returns its result.
401 * @param action the privileged action to run
403 * @throws NullPointerException if action null
405 public static Callable<Object> callable(final PrivilegedAction<?> action) { argument
406 if (action == null)
409 public Object call() { return action.run(); }};
414 * called, runs the given privileged exception action and returns
416 * @param action th
420 callable(final PrivilegedExceptionAction<?> action) argument
[all...]
/libcore/metrictests/memory/host/src/libcore/heapmetrics/
H A DMetricsRunner.java91 * 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/ojluni/src/main/java/java/util/stream/
H A DForEachOps.java40 * 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 DNode.java240 * {@code action} with each element.
242 * @param action a consumer that is to be invoked with each
246 void forEach(T_CONS action); argument
H A DDoubleStream.java195 * performing the provided action on each element as elements are consumed
201 * <p>For parallel stream pipelines, the action may be called at
203 * upstream operation. If the action modifies shared state,
217 * @param action a <a href="package-summary.html#NonInterference">
218 * non-interfering</a> action to perform on the elements as
222 DoubleStream peek(DoubleConsumer action); argument
281 * Performs an action for each element of this stream.
289 * action may be performed at whatever time and in whatever thread the
290 * library chooses. If the action accesses shared state, it is
293 * @param action
296 forEach(DoubleConsumer action) argument
310 forEachOrdered(DoubleConsumer action) argument
[all...]
H A DStream.java393 * performing the provided action on each element as elements are consumed
399 * <p>For parallel stream pipelines, the action may be called at
401 * upstream operation. If the action modifies shared state,
415 * @param action a <a href="package-summary.html#NonInterference">
416 * non-interfering</a> action to perform on the elements as
420 Stream<T> peek(Consumer<? super T> action); argument
479 * Performs an action for each element of this stream.
488 * action may be performed at whatever time and in whatever thread the
489 * library chooses. If the action accesses shared state, it is
492 * @param action
495 forEach(Consumer<? super T> action) argument
514 forEachOrdered(Consumer<? super T> action) argument
[all...]
H A DStreams.java401 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...]
/libcore/luni/src/main/java/libcore/icu/
H A DNativeConverter.java52 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/javax/security/auth/
H A DSubject.java325 * {@code action} will run as. This parameter
331 * @param action the code to be run as the specified
344 final java.security.PrivilegedAction<T> action) {
350 if (action == null)
352 (ResourcesMgr.getString("invalid.null.action.provided"));
360 (action,
381 * {@code action} will run as. This parameter
387 * @param action the code to be run as the specified
405 final java.security.PrivilegedExceptionAction<T> action)
413 if (action
343 doAs(final Subject subject, final java.security.PrivilegedAction<T> action) argument
404 doAs(final Subject subject, final java.security.PrivilegedExceptionAction<T> action) argument
461 doAsPrivileged(final Subject subject, final java.security.PrivilegedAction<T> action, final java.security.AccessControlContext acc) argument
527 doAsPrivileged(final Subject subject, final java.security.PrivilegedExceptionAction<T> action, final java.security.AccessControlContext acc) argument
[all...]

Completed in 380 milliseconds

123