Searched refs:action (Results 1 - 25 of 126) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/util/
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 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 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/security/
H A DAccessController.java38 * Calls {@code action.run()}.
40 public static <T> T doPrivileged(PrivilegedAction<T> action) { argument
41 return action.run();
45 * Calls {@code action.run()}.
47 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) { argument
48 return action.run();
53 * Calls {@code action.run()}.
55 public static <T> T doPrivileged(PrivilegedAction<T> action, argument
57 return action.run();
61 * Calls {@code action
64 doPrivileged(PrivilegedExceptionAction<T> action) argument
79 doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action) argument
89 doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) argument
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DIterable.java54 * Performs the given action for each element of the {@code Iterable}
55 * until all elements have been processed or the action throws an
58 * is specified). Exceptions thrown by the action are relayed to the
65 * action.accept(t);
68 * @param action The action to be performed for each element
69 * @throws NullPointerException if the specified action is null
72 default void forEach(Consumer<? super T> action) { argument
73 Objects.requireNonNull(action);
75 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 DLoadLibraryAction.java26 package sun.security.action;
29 * A convenience class for loading a system library as a privileged action.
35 * <code>"lib"</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
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 DPutAllAction.java26 package sun.security.action;
/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/ojluni/src/main/java/sun/net/www/
H A DMimeEntry.java35 private int action; field in class:MimeEntry
60 // Default action is UNKNOWN so clients can decide what the default
74 action = UNKNOWN;
82 MimeEntry(String typeName, int action, String command, argument
85 this.action = action;
94 MimeEntry(String typeName, int action, String command, argument
98 this.action = action;
116 return action;
119 setAction(int action, String command) argument
124 setAction(int action) argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DCompletionStage.java16 * action or computes a value when another CompletionStage completes.
78 * {@code whenComplete}, when the supplied action itself encounters an
181 * to the supplied action.
186 * @param action the action to perform before completing the
190 public CompletionStage<Void> thenAccept(Consumer<? super T> action); argument
196 * the supplied action.
201 * @param action the action to perform before completing the
205 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action); argument
220 thenAcceptAsync(Consumer<? super T> action, Executor executor) argument
233 thenRun(Runnable action) argument
247 thenRunAsync(Runnable action) argument
261 thenRunAsync(Runnable action, Executor executor) argument
339 thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) argument
358 thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) argument
378 thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor) argument
395 runAfterBoth(CompletionStage<?> other, Runnable action) argument
410 runAfterBothAsync(CompletionStage<?> other, Runnable action) argument
427 runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor) argument
501 acceptEither(CompletionStage<? extends T> other, Consumer<? super T> action) argument
519 acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action) argument
538 acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor) argument
555 runAfterEither(CompletionStage<?> other, Runnable action) argument
571 runAfterEitherAsync(CompletionStage<?> other, Runnable action) argument
589 runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor) argument
752 whenComplete(BiConsumer<? super T, ? super Throwable> action) argument
778 whenCompleteAsync(BiConsumer<? super T, ? super Throwable> action) argument
805 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 DPrivilegedActionTest.java34 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 DSocketPermission.java39 public SocketPermission(String host, String action) { super(""); } argument
H A DDefaultDatagramSocketImplFactory.java44 new sun.security.action.GetPropertyAction("impl.prefix", null));
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DDefaultSelectorProvider.java31 import sun.security.action.GetPropertyAction;
/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 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...]
H A DStreamSpliterators.java710 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...]
/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/sun/net/
H A DNetHooks.java33 import sun.security.action.GetPropertyAction;
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DKrb5Proxy.java68 * Returns a ServicePermission for the principal name and action.
70 Permission getServicePermission(String principalName, String action); argument
/libcore/benchmarks/src/benchmarks/regression/
H A DDoPrivilegedBenchmark.java55 final PrivilegedAction<String> action = new ReusableAction("line.separator");
57 String lineSeparator = AccessController.doPrivileged(action);

Completed in 606 milliseconds

123456