Home
last modified time | relevance | path

Searched refs:action (Results 1 – 25 of 143) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/util/
DSpliterator.java309 boolean tryAdvance(Consumer<? super T> action); in tryAdvance() argument
325 default void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() argument
326 do { } while (tryAdvance(action)); in forEachRemaining()
617 boolean tryAdvance(T_CONS action); in tryAdvance() argument
635 default void forEachRemaining(T_CONS action) { in forEachRemaining() argument
636 do { } while (tryAdvance(action)); in forEachRemaining()
650 boolean tryAdvance(IntConsumer action); in tryAdvance() argument
653 default void forEachRemaining(IntConsumer action) { in forEachRemaining() argument
654 do { } while (tryAdvance(action)); in forEachRemaining()
668 default boolean tryAdvance(Consumer<? super Integer> action) { in tryAdvance() argument
[all …]
DPrimitiveIterator.java80 void forEachRemaining(T_CONS action); in forEachRemaining() argument
112 default void forEachRemaining(IntConsumer action) { in forEachRemaining() argument
113 Objects.requireNonNull(action); in forEachRemaining()
115 action.accept(nextInt()); in forEachRemaining()
141 default void forEachRemaining(Consumer<? super Integer> action) { in forEachRemaining() argument
142 if (action instanceof IntConsumer) { in forEachRemaining()
143 forEachRemaining((IntConsumer) action); in forEachRemaining()
147 Objects.requireNonNull(action); in forEachRemaining()
150 forEachRemaining((IntConsumer) action::accept); in forEachRemaining()
186 default void forEachRemaining(LongConsumer action) { in forEachRemaining() argument
[all …]
DSpliterators.java942 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() argument
944 if (action == null) in forEachRemaining()
948 do { action.accept((T)a[i]); } while (++i < hi); in forEachRemaining()
953 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance() argument
954 if (action == null) in tryAdvance()
958 action.accept(e); in tryAdvance()
1026 public void forEachRemaining(IntConsumer action) { in forEachRemaining() argument
1028 if (action == null) in forEachRemaining()
1032 do { action.accept(a[i]); } while (++i < hi); in forEachRemaining()
1037 public boolean tryAdvance(IntConsumer action) { in tryAdvance() argument
[all …]
DIterator.java113 default void forEachRemaining(Consumer<? super E> action) { in forEachRemaining() argument
114 Objects.requireNonNull(action); in forEachRemaining()
116 action.accept(next()); in forEachRemaining()
DLinkedHashMap.java587 public final void forEach(Consumer<? super K> action) { in forEach() argument
588 if (action == null) in forEach()
593 action.accept(e.key); in forEach()
637 public final void forEach(Consumer<? super V> action) { in forEach() argument
638 if (action == null) in forEach()
643 action.accept(e.value); in forEach()
701 public final void forEach(Consumer<? super Map.Entry<K,V>> action) { in forEach() argument
702 if (action == null) in forEach()
707 action.accept(e); in forEach()
715 public void forEach(BiConsumer<? super K, ? super V> action) { in forEach() argument
[all …]
DWeakHashMap.java1016 public void forEach(BiConsumer<? super K, ? super V> action) { in forEach() argument
1017 Objects.requireNonNull(action); in forEach()
1025 action.accept((K)WeakHashMap.unmaskNull(key), entry.value); in forEach()
1112 public void forEachRemaining(Consumer<? super K> action) { in forEachRemaining() argument
1114 if (action == null) in forEachRemaining()
1137 action.accept(k); in forEachRemaining()
1146 public boolean tryAdvance(Consumer<? super K> action) { in tryAdvance() argument
1148 if (action == null) in tryAdvance()
1161 action.accept(k); in tryAdvance()
1192 public void forEachRemaining(Consumer<? super V> action) { in forEachRemaining() argument
[all …]
DVector.java1173 public void forEachRemaining(Consumer<? super E> action) { in forEachRemaining() argument
1174 Objects.requireNonNull(action); in forEachRemaining()
1189 action.accept(elementData[i++]); in forEachRemaining()
1260 public synchronized void forEach(Consumer<? super E> action) { in forEach() argument
1261 Objects.requireNonNull(action); in forEach()
1267 action.accept(elementData[i]); in forEach()
1400 public boolean tryAdvance(Consumer<? super E> action) { in tryAdvance() argument
1402 if (action == null) in tryAdvance()
1406 action.accept((E)array[i]); in tryAdvance()
1415 public void forEachRemaining(Consumer<? super E> action) { in forEachRemaining() argument
[all …]
DIdentityHashMap.java1343 public void forEach(BiConsumer<? super K, ? super V> action) { in forEach() argument
1344 Objects.requireNonNull(action); in forEach()
1351 action.accept((K) unmaskNull(k), (V) t[index + 1]); in forEach()
1431 public void forEachRemaining(Consumer<? super K> action) { in forEachRemaining() argument
1432 if (action == null) in forEachRemaining()
1440 action.accept((K)unmaskNull(key)); in forEachRemaining()
1449 public boolean tryAdvance(Consumer<? super K> action) { in tryAdvance() argument
1450 if (action == null) in tryAdvance()
1458 action.accept((K)unmaskNull(key)); in tryAdvance()
1487 public void forEachRemaining(Consumer<? super V> action) { in forEachRemaining() argument
[all …]
/libcore/ojluni/src/main/java/java/security/
DAccessController.java42 public static <T> T doPrivileged(PrivilegedAction<T> action) { in doPrivileged() argument
43 return action.run(); in doPrivileged()
49 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) { in doPrivilegedWithCombiner() argument
50 return action.run(); in doPrivilegedWithCombiner()
57 public static <T> T doPrivileged(PrivilegedAction<T> action, in doPrivileged() argument
59 return action.run(); in doPrivileged()
66 doPrivileged(PrivilegedExceptionAction<T> action) in doPrivileged() argument
69 return action.run(); in doPrivileged()
82 (PrivilegedExceptionAction<T> action) throws PrivilegedActionException { in doPrivilegedWithCombiner() argument
83 return doPrivileged(action); in doPrivilegedWithCombiner()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DCompletionStage.java219 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/ojluni/src/main/java/java/util/stream/
DStreams.java401 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance() argument
402 Objects.requireNonNull(action); in tryAdvance()
405 action.accept(first); in tryAdvance()
415 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() argument
416 Objects.requireNonNull(action); in forEachRemaining()
419 action.accept(first); in forEachRemaining()
492 public boolean tryAdvance(IntConsumer action) { in tryAdvance() argument
493 Objects.requireNonNull(action); in tryAdvance()
496 action.accept(first); in tryAdvance()
506 public void forEachRemaining(IntConsumer action) { in forEachRemaining() argument
[all …]
DForEachOps.java70 public static <T> TerminalOp<T, Void> makeRef(Consumer<? super T> action, in makeRef() argument
72 Objects.requireNonNull(action); in makeRef()
73 return new ForEachOp.OfRef<>(action, ordered); in makeRef()
85 public static TerminalOp<Integer, Void> makeInt(IntConsumer action, in makeInt() argument
87 Objects.requireNonNull(action); in makeInt()
88 return new ForEachOp.OfInt(action, ordered); in makeInt()
100 public static TerminalOp<Long, Void> makeLong(LongConsumer action, in makeLong() argument
102 Objects.requireNonNull(action); in makeLong()
103 return new ForEachOp.OfLong(action, ordered); in makeLong()
115 public static TerminalOp<Double, Void> makeDouble(DoubleConsumer action, in makeDouble() argument
[all …]
DStreamSpliterators.java710 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance() argument
711 Objects.requireNonNull(action); in tryAdvance()
725 return s.tryAdvance(action); in tryAdvance()
729 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining() argument
730 Objects.requireNonNull(action); in forEachRemaining()
740 s.forEachRemaining(action); in forEachRemaining()
750 s.tryAdvance(action); in forEachRemaining()
772 public boolean tryAdvance(T_CONS action) { in tryAdvance() argument
773 Objects.requireNonNull(action); in tryAdvance()
787 return s.tryAdvance(action); in tryAdvance()
[all …]
DLongPipeline.java349 public final LongStream peek(LongConsumer action) {
350 Objects.requireNonNull(action);
359 action.accept(t);
401 public void forEach(LongConsumer action) {
402 evaluate(ForEachOps.makeLong(action, false));
406 public void forEachOrdered(LongConsumer action) {
407 evaluate(ForEachOps.makeLong(action, true));
561 public void forEach(LongConsumer action) {
563 adapt(sourceStageSpliterator()).forEachRemaining(action);
565 super.forEach(action);
[all …]
DIntPipeline.java368 public final IntStream peek(IntConsumer action) {
369 Objects.requireNonNull(action);
378 action.accept(t);
420 public void forEach(IntConsumer action) {
421 evaluate(ForEachOps.makeInt(action, false));
425 public void forEachOrdered(IntConsumer action) {
426 evaluate(ForEachOps.makeInt(action, true));
578 public void forEach(IntConsumer action) {
580 adapt(sourceStageSpliterator()).forEachRemaining(action);
583 super.forEach(action);
[all …]
DReferencePipeline.java379 public final Stream<P_OUT> peek(Consumer<? super P_OUT> action) {
380 Objects.requireNonNull(action);
389 action.accept(u);
434 public void forEach(Consumer<? super P_OUT> action) {
435 evaluate(ForEachOps.makeRef(action, false));
439 public void forEachOrdered(Consumer<? super P_OUT> action) {
440 evaluate(ForEachOps.makeRef(action, true));
602 public void forEach(Consumer<? super E_OUT> action) {
604 sourceStageSpliterator().forEachRemaining(action);
607 super.forEach(action);
[all …]
/libcore/ojluni/src/main/java/java/nio/
DCharBufferSpliterator.java64 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/metrictests/memory/host/src/libcore/heapmetrics/
DMetricsRunner.java119 Result runAllInstrumentations(String action) in runAllInstrumentations() argument
121 String relativeDirectoryName = String.format("%s-%s", timestampedLabel, action); in runAllInstrumentations()
127 action, relativeDirectoryName, deviceDirectoryName, in runAllInstrumentations()
130 action, relativeDirectoryName, deviceDirectoryName, in runAllInstrumentations()
132 AhatSnapshot beforeDump = fetchHeapDump(deviceDirectoryName, "before.hprof", action); in runAllInstrumentations()
133 AhatSnapshot afterDump = fetchHeapDump(deviceDirectoryName, "after.hprof", action); in runAllInstrumentations()
155 String action, String relativeDirectoryName, String deviceDirectoryName, String apk) in runInstrumentation() argument
159 relativeDirectoryName, action, apk); in runInstrumentation()
208 String deviceDirectoryName, String relativeDumpFilename, String action) in fetchHeapDump() argument
217 logHeapDump(file, String.format("%s-%s", action, relativeDumpFilename)); in fetchHeapDump()
/libcore/ojluni/src/main/java/java/lang/
DIterable.java73 default void forEach(Consumer<? super T> action) { in forEach() argument
74 Objects.requireNonNull(action); in forEach()
76 action.accept(t); in forEach()
/libcore/ojluni/annotations/mmodule/java/util/concurrent/
DCompletableFuture.annotated.java76 …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/org/apache/harmony/security/tests/java/security/
DPrivilegedActionTest.java34 MyPrivilegedAction action = new MyPrivilegedAction(); in testRun() local
35 String result = AccessController.doPrivileged(action); in testRun()
37 assertTrue("run method was not called", action.called); in testRun()
/libcore/luni/src/main/java/libcore/icu/
DNativeConverter.java52 private static int translateCodingErrorAction(CodingErrorAction action) { in translateCodingErrorAction() argument
53 if (action == CodingErrorAction.REPORT) { in translateCodingErrorAction()
55 } else if (action == CodingErrorAction.IGNORE) { in translateCodingErrorAction()
57 } else if (action == CodingErrorAction.REPLACE) { in translateCodingErrorAction()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharsetDecoder.java600 CodingErrorAction action = null; in decode() local
602 action = malformedInputAction; in decode()
604 action = unmappableCharacterAction; in decode()
608 if (action == CodingErrorAction.REPORT) in decode()
611 if (action == CodingErrorAction.REPLACE) { in decode()
617 if ((action == CodingErrorAction.IGNORE) in decode()
618 || (action == CodingErrorAction.REPLACE)) { in decode()
DCharsetEncoder.java617 CodingErrorAction action = null; in encode() local
619 action = malformedInputAction; in encode()
621 action = unmappableCharacterAction; in encode()
625 if (action == CodingErrorAction.REPORT) in encode()
628 if (action == CodingErrorAction.REPLACE) { in encode()
634 if ((action == CodingErrorAction.IGNORE) in encode()
635 || (action == CodingErrorAction.REPLACE)) { in encode()
/libcore/metrictests/memory/
DREADME26 This instrumentation dumps a heap, performs some configurable action (see the code for details), and
38 # Pick the action you want here:
40 …adb shell am instrument -w -e dumpdir ${RELATIVE_DIR} -e action ${DUMPER_ACTION} libcore.heapdumpe…
67 This instrumentation measures the PSS in kB, performs some configurable action (see the code for
79 # Pick the action you want here:
81 …adb shell am instrument -w -e dumpdir ${RELATIVE_DIR} -e action ${DUMPER_ACTION} libcore.heapdumpe…

123456