Searched refs:open (Results 1 - 25 of 70) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DPipeTest.java34 * @tests java.nio.channels.Pipe#open()
37 Pipe pipe = Pipe.open();
45 Pipe pipe = Pipe.open();
54 Pipe pipe = Pipe.open();
H A DUnixSelectorTest.java31 ServerSocketChannel serverChannel = ServerSocketChannel.open();
62 Selector sel0 = Selector.open();
63 Selector sel1 = Selector.open();
76 SocketChannel socketChannel = SocketChannel.open();
78 Selector sel2 = Selector.open();
93 SocketChannel socketChannel2 = SocketChannel.open();
95 Selector sel3 = Selector.open();
104 Selector sel4 = Selector.open();
110 Selector sel5 = Selector.open();
H A DSelectorTest.java54 ssc = ServerSocketChannel.open();
59 selector = Selector.open();
77 * @tests java.nio.channels.Selector#open()
116 SocketChannel sc = SocketChannel.open();
151 SocketChannel sc = SocketChannel.open();
251 selector = Selector.open();
337 SocketChannel sc = SocketChannel.open();
361 final Pipe pipe = Pipe.open();
394 SocketChannel sc = SocketChannel.open();
442 channel = SocketChannel.open();
[all...]
H A DServerSocketChannelTest.java54 this.serverChannel = ServerSocketChannel.open();
55 this.clientChannel = SocketChannel.open();
96 * Test method for 'java.nio.channels.ServerSocketChannel.open()'
115 ServerSocketChannel ssc = ServerSocketChannel.open();
130 ServerSocketChannel portHog = ServerSocketChannel.open();
133 ServerSocketChannel ssc = ServerSocketChannel.open();
146 ServerSocketChannel ssc = ServerSocketChannel.open();
159 ServerSocketChannel portPickingChannel = ServerSocketChannel.open();
169 ServerSocketChannel ssc = ServerSocketChannel.open();
181 ServerSocketChannel ssc = ServerSocketChannel.open();
[all...]
H A DSelectableChannelTest.java40 msc.register(Selector.open(), SelectionKey.OP_ACCEPT);
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DSelectorTest.java35 Selector selector = Selector.open();
36 ServerSocketChannel ssc = ServerSocketChannel.open();
41 SocketChannel sc = SocketChannel.open();
56 Selector selector = Selector.open();
59 SocketChannel sc = SocketChannel.open();
74 Selector selector = Selector.open();
89 final Selector selector = Selector.open();
122 Selector selector = Selector.open();
128 Selector selector = Selector.open();
129 ServerSocketChannel ssc = ServerSocketChannel.open();
[all...]
H A DPipeTest.java24 Pipe p = Pipe.open();
H A DSocketChannelTest.java57 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress());
79 SocketChannel sc = SocketChannel.open();
82 Selector selector = Selector.open();
102 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress());
123 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress());
140 /** Checks the state of the SocketChannel and associated Socket after open() */
142 SocketChannel sc = SocketChannel.open();
165 SocketChannel sc = SocketChannel.open();
181 SocketChannel sc = SocketChannel.open();
209 SocketChannel sc = SocketChannel.open();
[all...]
H A DDatagramChannelTest.java37 DatagramChannel dc = DatagramChannel.open();
58 DatagramChannel dc = DatagramChannel.open();
70 DatagramChannel dc = DatagramChannel.open();
92 DatagramChannel dc = DatagramChannel.open();
114 DatagramChannel dc = DatagramChannel.open();
146 DatagramChannel dc = DatagramChannel.open();
H A DServerSocketChannelTest.java35 ServerSocketChannel ssc = ServerSocketChannel.open();
46 /** Checks the state of the ServerSocketChannel and associated ServerSocket after open() */
48 ServerSocketChannel ssc = ServerSocketChannel.open();
67 ServerSocketChannel ssc = ServerSocketChannel.open();
81 ServerSocketChannel ssc = ServerSocketChannel.open();
107 ServerSocketChannel ssc = ServerSocketChannel.open();
141 SocketChannel socketChannel = SocketChannel.open(address);
H A DOldSocketChannelTest.java55 this.channel1 = SocketChannel.open();
56 this.channel2 = SocketChannel.open();
94 channel = SocketChannel.open();
114 SocketChannel testSChannel = MockSocketChannel.open();
179 this.channel1 = SocketChannel.open(localAddr1);
184 this.channel1 = SocketChannel.open(newTypeAddress);
193 this.channel1 = SocketChannel.open(unresolvedAddress);
200 SocketChannel.open(null);
281 final ServerSocketChannel ssc = ServerSocketChannel.open();
300 SocketChannel sc = SocketChannel.open();
[all...]
H A DOldServerSocketChannelTest.java39 this.serverChannel = ServerSocketChannel.open();
40 this.clientChannel = SocketChannel.open();
/libcore/luni/src/test/java/libcore/java/util/
H A DResourceLeakageDetectorTest.java33 closeGuard.open("open");
48 closeGuard.open("open");
/libcore/luni/src/main/java/java/nio/channels/
H A DSocketChannel.java35 * <p>A socket channel is open but not connected when created by {@link #open}.
79 * Creates an open and unconnected socket channel.
84 * @return the new channel which is open but unconnected.
88 public static SocketChannel open() throws IOException { method in class:SocketChannel
95 * This method performs a call to {@code open()} followed by a call to
115 public static SocketChannel open(SocketAddress address) throws IOException { method in class:SocketChannel
116 SocketChannel socketChannel = open();
H A DPipe.java88 public static Pipe open() throws IOException { method in class:Pipe
H A DSelector.java46 public static Selector open() throws IOException { method in class:Selector
73 * Indicates whether this selector is open.
H A DServerSocketChannel.java34 * A server-socket channel is open but not bound when created by the {@code
35 * open()} method. Calling {@code accept} before bound will cause a
51 * Creates an open and unbound server-socket channel.
56 * @return the new channel which is open but unbound.
60 public static ServerSocketChannel open() throws IOException { method in class:ServerSocketChannel
H A DDatagramChannel.java36 * A datagram channel is open but not connected when created with the
37 * {@code open()} method. After it is connected, it will keep the connected
64 * @return the new channel which is open but not connected.
68 public static DatagramChannel open() throws IOException { method in class:DatagramChannel
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
H A DAbstractSelectorTest.java115 ServerSocketChannel ssc = ServerSocketChannel.open();
131 ServerSocketChannel ssc = ServerSocketChannel.open();
144 acceptSelector = Selector.open();
H A DAbstractSelectableChannelTest.java112 SocketChannel sc = SocketChannel.open();
126 SocketChannel channel = SocketChannel.open();
128 Selector selector = Selector.open();
211 SocketChannel sc = SocketChannel.open();
235 SocketChannel sc = SocketChannel.open();
257 SocketChannel sc = SocketChannel.open();
/libcore/dalvik/src/main/java/dalvik/system/
H A DCloseGuard.java33 * guard.open("cleanup");
70 * guard.open("cleanup");
92 * When used in a constructor calls to {@code open} should occur at
96 * in a method, the call to {@code open} should occur just after
122 * #open(String)} can be used to set up the instance to warn on
162 * If CloseGuard is enabled, {@code open} initializes the instance
170 public void open(String closer) { method in class:CloseGuard
/libcore/luni/src/test/java/libcore/java/io/
H A DInterruptedStreamTest.java90 testInterruptReadableChannel(Pipe.open().source());
94 testInterruptWritableChannel(Pipe.open().sink());
111 ServerSocketChannel serverSocketChannel = ServerSocketChannel.open();
113 SocketChannel clientSocketChannel = SocketChannel.open();
/libcore/luni/src/main/java/java/io/
H A DFileInputStream.java76 this.fd = IoBridge.open(file.getPath(), O_RDONLY);
78 guard.open("close");
95 // Note that we do not call guard.open here because the
H A DFileOutputStream.java87 this.fd = IoBridge.open(file.getPath(), mode);
89 this.guard.open("close");
105 // Note that we do not call guard.open here because the
/libcore/luni/src/main/java/libcore/io/
H A DMemoryMappedFile.java51 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0);

Completed in 339 milliseconds

123