/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | TestKeyStoreSpi.java | 146 public void engineLoad(InputStream stream, char[] password) argument 148 if (stream != null) { 149 if (stream.available() == 0) 227 public void engineStore(OutputStream stream, char[] password) argument 229 if (stream == null) {
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | OpTestCase.java | 23 package java.util.stream; 70 * An asserter for results produced when exercising of stream or terminal 77 * Assert a result produced when exercising of stream or terminal 88 // Exercise stream operations 103 return withData(data).stream(m).exercise(); 115 result = withData(data).stream(m).exercise(); 117 Collection<U> r2 = withData(data).stream(m).exercise(); 124 // Run multiple versions of exercise() for an Integer stream, returning the result of the first, and asserting that others return the same result 142 // Run multiple versions of exercise() with multiple terminal operations for all kinds of stream, , and asserting against the expected result 150 setContext("Intermediate stream", s 227 stream(Function<S_IN, S_OUT> m) { method in class:OpTestCase.DataStreamBuilder 232 stream(Function<S_IN, S_OUT> m, IntermediateTestOp<U, U> additionalOp) { method in class:OpTestCase.DataStreamBuilder [all...] |
H A D | SpliteratorTestHelper.java | 23 package java.util.stream;
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | OpTestCase.java | 23 package org.openjdk.testlib.java.util.stream; 43 import java.util.stream.*; 71 * An asserter for results produced when exercising of stream or terminal 78 * Assert a result produced when exercising of stream or terminal 89 // Exercise stream operations 104 return withData(data).stream(m).exercise(); 116 result = withData(data).stream(m).exercise(); 118 Collection<U> r2 = withData(data).stream(m).exercise(); 125 // Run multiple versions of exercise() for an Integer stream, returning the result of the first, and asserting that others return the same result 143 // Run multiple versions of exercise() with multiple terminal operations for all kinds of stream, , an 228 stream(Function<S_IN, S_OUT> m) { method in class:OpTestCase.DataStreamBuilder 233 stream(Function<S_IN, S_OUT> m, IntermediateTestOp<U, U> additionalOp) { method in class:OpTestCase.DataStreamBuilder [all...] |
H A D | SpliteratorTestHelper.java | 23 package org.openjdk.testlib.java.util.stream;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | RefSortedMap.java | 380 private void writeObject(ObjectOutputStream stream) throws IOException { argument 381 stream.defaultWriteObject(); 382 stream.writeInt(size()); 384 stream.writeObject(e.getKey()); 385 stream.writeObject(e.getValue()); 390 private void readObject(ObjectInputStream stream) throws IOException, argument 394 stream.defaultReadObject(); 395 int size = stream.readInt(); 398 put((K) stream.readObject(), (V) stream [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | IoBridge.java | 604 public static FileDescriptor socket(boolean stream) throws SocketException { argument 607 fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0); 616 if (!stream) {
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | SocketImpl.java | 73 * Creates either a stream or a datagram socket. 75 * @param stream if <code>true</code>, create a stream socket; 80 protected abstract void create(boolean stream) throws IOException; argument 145 * Returns an input stream for this socket. 147 * @return a stream for reading from this socket. 149 * input stream. 154 * Returns an output stream for this socket. 156 * @return an output stream for writing to this socket. 158 * output stream [all...] |
H A D | AbstractPlainSocketImpl.java | 72 /* whether this Socket is a stream (TCP) socket or not (UDP) 74 protected boolean stream; field in class:AbstractPlainSocketImpl 80 * is a stream socket (true) or an unconnected UDP socket (false). 82 protected synchronized void create(boolean stream) throws IOException { argument 83 this.stream = stream; 85 if (!stream) { 489 if (!stream) {
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | BitSet.java | 32 import java.util.stream.IntStream; 33 import java.util.stream.StreamSupport; 1114 * Save the state of the {@code BitSet} instance to a stream (i.e., 1131 * Reconstitute the {@code BitSet} instance from a stream (i.e., 1195 * Returns a stream of indices for which this {@code BitSet} 1197 * in order, from lowest to highest. The size of the stream 1202 * terminal stream operation. Otherwise, the result of the terminal 1203 * stream operation is undefined. 1205 * @return a stream of integers representing set indices 1208 public IntStream stream() { method in class:BitSet [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | AbstractPipeline.java | 25 package java.util.stream; 35 * Manages construction and evaluation of stream pipelines. 37 * <p>An {@code AbstractPipeline} represents an initial portion of a stream 38 * pipeline, encapsulating a stream source and zero or more intermediate 40 * referred to as <em>stages</em>, where each stage describes either the stream 53 * operation, the stream is considered to be consumed, and no more intermediate 54 * or terminal operations are permitted on this stream instance. 75 private static final String MSG_STREAM_LINKED = "stream has already been operated upon or closed"; 106 * and the stream source if sequential, or the previous stateful if parallel. 153 * Constructor for the head of a stream pipelin [all...] |
H A D | DoubleStream.java | 25 package java.util.stream; 60 * double sum = widgets.stream() 67 * for <a href="package-summary.html">java.util.stream</a> for additional 68 * specification of streams, stream operations, stream pipelines, and 73 * @see <a href="package-summary.html">java.util.stream</a> 78 * Returns a stream consisting of the elements of this stream that match 88 * @return the new stream 93 * Returns a stream consistin [all...] |
H A D | SliceOps.java | 25 package java.util.stream; 33 * that produce subsequences of their input stream. 71 * Creates a slice spliterator given a stream shape governing the 105 * Appends a "slice" operation to the provided stream. The slice operation 109 * @param upstream a reference stream with element type T 111 * @param limit the maximum size of the resulting stream, or -1 if no limit 227 * @param limit The maximum size of the resulting stream, or -1 if no limit 336 * @param limit The maximum size of the resulting stream, or -1 if no limit 445 * @param limit The maximum size of the resulting stream, or -1 if no limit 555 * @param <P_IN> Input element type to the stream pipelin [all...] |
H A D | SortedOps.java | 25 package java.util.stream; 45 * Appends a "sorted" operation to the provided stream. 48 * @param upstream a reference stream with element type T 55 * Appends a "sorted" operation to the provided stream. 58 * @param upstream a reference stream with element type T 67 * Appends a "sorted" operation to the provided stream. 70 * @param upstream a reference stream with element type T 77 * Appends a "sorted" operation to the provided stream. 80 * @param upstream a reference stream with element type T 87 * Appends a "sorted" operation to the provided stream [all...] |
H A D | SpinedBuffer.java | 25 package java.util.stream;
|
H A D | Stream.java | 25 package java.util.stream; 56 * int sum = widgets.stream() 63 * a stream of {@code Widget} objects via {@link Collection#stream Collection.stream()}, 64 * filter it to produce a stream containing only the red widgets, and then 65 * transform it into a stream of {@code int} values representing the weight of 66 * each red widget. Then this stream is summed to produce a total weight. 68 * <p>In addition to {@code Stream}, which is a stream of object references, 73 * <p>To perform a computation, stream [all...] |
H A D | Streams.java | 25 package java.util.stream; 39 * sequential stream can be transformed into a parallel stream by calling the 40 * {@code parallel()} method on the created stream. 52 * data element of a stream. Used when processing streams that can contain 332 // The first element in the stream 336 // The first and subsequent elements in the stream 341 * Constructor for building a stream of 0 or more elements. 346 * Constructor for a singleton stream. 390 return (c < 2) ? StreamSupport.stream(thi [all...] |
/libcore/ojluni/src/main/native/ |
H A D | System.c | 107 System_setIn0(JNIEnv *env, jclass cla, jobject stream) argument 113 (*env)->SetStaticObjectField(env,cla,fid,stream); 117 System_setOut0(JNIEnv *env, jclass cla, jobject stream) argument 123 (*env)->SetStaticObjectField(env,cla,fid,stream); 127 System_setErr0(JNIEnv *env, jclass cla, jobject stream) argument 133 (*env)->SetStaticObjectField(env,cla,fid,stream);
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | InfiniteStreamWithLimitOpTest.java | 23 package org.openjdk.tests.java.util.stream; 28 import org.openjdk.testlib.java.util.stream.OpTestCase; 29 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 30 import org.openjdk.testlib.java.util.stream.TestData; 31 import org.openjdk.testlib.java.util.stream.DoubleStreamTestScenario; 32 import org.openjdk.testlib.java.util.stream.IntStreamTestScenario; 33 import org.openjdk.testlib.java.util.stream.LongStreamTestScenario; 34 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 35 import org.openjdk.testlib.java.util.stream.StreamTestScenario; 45 import java.util.stream [all...] |
H A D | MatchOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 46 import java.util.stream.DoubleStream; 47 import java.util.stream [all...] |
H A D | StreamSpliteratorTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.SpliteratorTestHelper; 31 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 32 import org.openjdk.testlib.java.util.stream.TestData; 44 import java.util.stream [all...] |
H A D | TabulatorsTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.*; 47 import java.util.stream.Collector; 48 import java.util.stream.Collectors; 49 import java.util.stream.Stream; 53 import static java.util.stream.Collectors.collectingAndThen; 54 import static java.util.stream.Collectors.groupingBy; 55 import static java.util.stream.Collectors.groupingByConcurrent; 56 import static java.util.stream.Collectors.partitioningBy; 57 import static java.util.stream [all...] |
H A D | ToArrayOpTest.java | 23 package org.openjdk.tests.java.util.stream; 25 import org.openjdk.testlib.java.util.stream.DoubleStreamTestDataProvider; 26 import org.openjdk.testlib.java.util.stream.IntStreamTestDataProvider; 27 import org.openjdk.testlib.java.util.stream.LambdaTestHelpers; 28 import org.openjdk.testlib.java.util.stream.LongStreamTestDataProvider; 29 import org.openjdk.testlib.java.util.stream.OpTestCase; 30 import org.openjdk.testlib.java.util.stream.StreamTestDataProvider; 31 import org.openjdk.testlib.java.util.stream.TestData; 37 import java.util.stream.BaseStream; 38 import java.util.stream [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | PreferencesTest.java | 51 private MockInputStream stream ; field in class:PreferencesTest 63 stream = new MockInputStream(in); 69 stream.close(); 193 stream.setResult(MockInputStream.exception); 195 Preferences.importPreferences(stream); 200 stream.setResult(MockInputStream.runtimeException); 202 Preferences.importPreferences(stream);
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | KeyStore.java | 113 * // get user password and file input stream 1158 * Stores this keystore to the given output stream, and protects its 1161 * @param stream the output stream to which this keystore is written. 1172 public final void store(OutputStream stream, char[] password) argument 1179 keyStoreSpi.engineStore(stream, password); 1212 * Loads this KeyStore from the given input stream. 1221 * be initialized from a stream, pass <code>null</code> 1222 * as the <code>stream</code> argument. 1225 * reinitialized and loaded again from the given input stream 1244 load(InputStream stream, char[] password) argument [all...] |