Searched refs:pipe (Results 1 - 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DPipeTest.java37 Pipe pipe = Pipe.open();
38 assertNotNull(pipe);
45 Pipe pipe = Pipe.open();
46 SinkChannel sink = pipe.sink();
54 Pipe pipe = Pipe.open();
55 SourceChannel source = pipe.source();
H A DSourceChannelTest.java36 private Pipe pipe; field in class:SourceChannelTest
48 pipe = Pipe.open();
49 sink = pipe.sink();
50 source = pipe.source();
158 // open new pipe everytime, will be closed in finally block
159 pipe = Pipe.open();
160 sink = pipe.sink();
161 source = pipe.source();
194 // close pipe everytime
301 Pipe pipe
[all...]
H A DSinkChannelTest.java40 private Pipe pipe; field in class:SinkChannelTest
52 pipe = Pipe.open();
53 sink = pipe.sink();
54 source = pipe.source();
H A DSelectorTest.java361 final Pipe pipe = Pipe.open();
362 pipe.source().configureBlocking(false);
363 final SelectionKey key = pipe.source().register(selector, SelectionKey.OP_READ);
372 pipe.sink().write(ByteBuffer.allocate(4)); // unblock select()
H A DFileChannelTest.java103 private Pipe pipe; field in class:FileChannelTest
212 if (null != pipe) {
213 if (null != pipe.source()) {
215 pipe.source().close();
220 if (null != pipe.sink()) {
222 pipe.sink().close();
2575 // inits pipe.
2576 pipe = Pipe.open();
2578 // writes content to pipe.
2580 pipe
[all...]
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DChannelsTest.java52 Pipe pipe = Pipe.open();
53 WritableByteChannel sinkChannel = pipe.sink();
55 Pipe.SourceChannel sourceChannel = pipe.source();
/libcore/luni/src/test/java/libcore/java/io/
H A DFileInputStreamTest.java70 FileDescriptor[] pipe = Libcore.os.pipe();
71 DataFeeder feeder = new DataFeeder(pipe[1]);
74 FileInputStream fis = new FileInputStream(pipe[0]);
81 IoUtils.closeQuietly(pipe[0]);
/libcore/luni/src/main/native/
H A Djava_lang_ProcessManager.cpp93 // Create 4 pipes: stdin, stdout, stderr, and an exec() status pipe.
96 if (pipe(pipes + i * 2) == -1) {
165 // Close child's pipe ends.
171 // Check status pipe for an error code. If execvp(2) succeeds, the other
172 // end of the pipe should automatically close, in which case, we'll read
H A Dlibcore_io_Posix.cpp1041 throwIfMinusOne(env, "pipe", TEMP_FAILURE_RETRY(pipe(&fds[0])));
1598 NATIVE_METHOD(Posix, pipe, "()[Ljava/io/FileDescriptor;"),
/libcore/luni/src/main/java/android/system/
H A DOs.java303 * See <a href="http://man7.org/linux/man-pages/man2/pipe.2.html">pipe(2)</a>.
305 public static FileDescriptor[] pipe() throws ErrnoException { return Libcore.os.pipe(); } method in class:Os
/libcore/luni/src/main/java/libcore/io/
H A DForwardingOs.java116 public FileDescriptor[] pipe() throws ErrnoException { return os.pipe(); } method in class:ForwardingOs
H A DOs.java108 public FileDescriptor[] pipe() throws ErrnoException; method in interface:Os
H A DPosix.java110 public native FileDescriptor[] pipe() throws ErrnoException; method in class:Posix
/libcore/luni/src/main/java/java/nio/
H A DSelectorImpl.java80 * The wakeup pipe. To trigger a wakeup, write a byte to wakeupOut. Each
92 * Create a pipe to trigger wakeup. We can't use a NIO pipe because it
94 * configure the pipe so we can fully drain it without blocking.
97 FileDescriptor[] pipeFds = Libcore.os.pipe();
212 int i = 1; // Our wakeup pipe comes before all the user's fds.
229 // We need one slot for each element of mutableKeys, plus one for the wakeup pipe.
240 // Read bytes from the wakeup pipe until the pipe is empty.

Completed in 386 milliseconds