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

12345

/libcore/ojluni/src/main/java/java/nio/channels/spi/
H A DAbstractInterruptibleChannel.java93 private volatile boolean open = true; field in class:AbstractInterruptibleChannel
113 if (!open)
115 open = false;
139 return open;
161 if (!open)
163 open = false;
205 if (!completed && !open)
H A DAbstractSelector.java108 boolean open = selectorOpen.getAndSet(false);
109 if (!open)
/libcore/dalvik/src/test/java/dalvik/system/
H A DCloseGuardTest.java60 owner.open();
68 owner.open();
78 owner.open();
89 owner.open();
108 owner.open();
116 owner.open();
126 owner.open();
155 public void open() { method in class:CloseGuardTest.ResourceOwner
156 closeGuard.open("close");
/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();
/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
132 * #open(String)} can be used to set up the instance to warn on
205 * If CloseGuard is enabled, {@code open} initializes the instance
213 public void open(String closer) { method in class:CloseGuard
224 currentTracker.open(allocationSite);
263 void open(Throwable allocationSite); method in interface:CloseGuard.Tracker
273 public void open(Throwabl method in class:CloseGuard.DefaultTracker
[all...]
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DPipeTest.java24 Pipe p = Pipe.open();
H A DDatagramChannelTest.java50 DatagramChannel dc = DatagramChannel.open()) {
72 DatagramChannel dc = DatagramChannel.open();
84 DatagramChannel dc = DatagramChannel.open();
106 DatagramChannel dc = DatagramChannel.open();
128 DatagramChannel dc = DatagramChannel.open();
160 try (DatagramChannel dc = DatagramChannel.open()) {
170 DatagramChannel dc = DatagramChannel.open();
190 try (DatagramSocket socket = DatagramChannel.open().socket()) {
198 DatagramChannel channel = DatagramChannel.open();
212 try (DatagramChannel dc = DatagramChannel.open()){
[all...]
H A DSelectorTest.java36 Selector selector = Selector.open();
37 ServerSocketChannel ssc = ServerSocketChannel.open();
42 SocketChannel sc = SocketChannel.open();
57 Selector selector = Selector.open();
72 final Selector selector = Selector.open();
105 Selector selector = Selector.open();
111 Selector selector = Selector.open();
112 ServerSocketChannel ssc = ServerSocketChannel.open();
118 SocketChannel sc = SocketChannel.open();
143 Selector selector = Selector.open();
[all...]
H A DAsynchronousFileChannelTest.java59 AsynchronousFileChannel channel = AsynchronousFileChannel.open(newFile,
73 AsynchronousFileChannel channel = AsynchronousFileChannel.open(newFile,
78 AsynchronousFileChannel.open(newFile, StandardOpenOption.CREATE_NEW);
81 AsynchronousFileChannel.open(newFile, StandardOpenOption.CREATE_NEW,
88 channel = AsynchronousFileChannel.open(newFile, StandardOpenOption.CREATE,
99 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.READ);
105 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.WRITE);
116 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.CREATE);
122 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.CREATE,
129 AsynchronousFileChannel.open(nonExisten
[all...]
H A DAsynchronousServerSocketChannelTest.java53 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
68 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
83 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
95 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
108 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
130 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
157 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
181 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
194 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
207 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open();
[all...]
H A DSocketChannelTest.java52 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress())) {
75 SocketChannel sc = SocketChannel.open();
78 Selector selector = Selector.open();
104 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress());
125 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress());
142 /** Checks the state of the SocketChannel and associated Socket after open() */
144 SocketChannel sc = SocketChannel.open();
167 SocketChannel sc = SocketChannel.open();
183 SocketChannel sc = SocketChannel.open();
211 SocketChannel sc = SocketChannel.open();
[all...]
H A DAsynchronousChannelGroupTest.java89 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(acg);
96 // Bounded channel should still be open.
101 AsynchronousServerSocketChannel.open(acg);
105 // ExecutorService hasn't yet terminated as the channel is still open.
120 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(acg);
130 AsynchronousServerSocketChannel.open(acg);
143 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(acg);
160 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(acg);
H A DServerSocketChannelTest.java38 ServerSocketChannel ssc = ServerSocketChannel.open();
49 /** Checks the state of the ServerSocketChannel and associated ServerSocket after open() */
51 ServerSocketChannel ssc = ServerSocketChannel.open();
70 ServerSocketChannel ssc = ServerSocketChannel.open();
84 ServerSocketChannel ssc = ServerSocketChannel.open();
110 ServerSocketChannel ssc = ServerSocketChannel.open();
143 ServerSocketChannel ssc = ServerSocketChannel.open();
157 ServerSocketChannel ssc1 = ServerSocketChannel.open();
172 ServerSocketChannel sc = ServerSocketChannel.open();
196 SocketChannel socketChannel = SocketChannel.open(addres
[all...]
/libcore/tools/docs/crypto/
H A Dcrypto_docs.py22 f = open(filename)
/libcore/ojluni/src/main/java/java/nio/channels/
H A DAsynchronousServerSocketChannel.java38 * {@link #open open} method of this class.
39 * A newly-created asynchronous server-socket channel is open but not yet bound.
75 * AsynchronousServerSocketChannel.open().bind(new InetSocketAddress(5000));
140 public static AsynchronousServerSocketChannel open(AsynchronousChannelGroup group) method in class:AsynchronousServerSocketChannel
155 * open((AsynchronousChannelGroup)null);
163 public static AsynchronousServerSocketChannel open() method in class:AsynchronousServerSocketChannel
166 return open(null);
H A DSocketChannel.java39 * <p> A socket channel is created by invoking one of the {@link #open open}
41 * pre-existing socket. A newly-created socket channel is open but not yet
144 public static SocketChannel open() throws IOException { method in class:SocketChannel
151 * <p> This convenience method works as if by invoking the {@link #open()}
184 public static SocketChannel open(SocketAddress remote) method in class:SocketChannel
187 SocketChannel sc = open();
308 * is {@link #isOpen open} and connected
H A DPipe.java154 public static Pipe open() throws IOException { method in class:Pipe
H A DSelector.java37 * <p> A selector may be created by invoking the {@link #open open} method of
42 * method of a custom selector provider. A selector remains open until it is
160 * that the key is valid or that its channel is open. Application code should
226 public static Selector open() throws IOException { method in class:Selector
231 * Tells whether or not this selector is open.
233 * @return <tt>true</tt> if, and only if, this selector is open
H A DAsynchronousFileChannel.java43 * one of the {@link #open open} methods defined by this class. The file contains
200 * Shutting down the executor service while the channel is open results in
211 * The path of the file to open or create
228 * open option is specified, or the array contains an attribute that
241 public static AsynchronousFileChannel open(Path file, method in class:AsynchronousFileChannel
261 * ch.{@link #open(Path,Set,ExecutorService,FileAttribute[])
262 * open}(file, opts, null, new FileAttribute&lt;?&gt;[0]);
273 * The path of the file to open or create
283 * support creating file channels, or an unsupported open optio
296 public static AsynchronousFileChannel open(Path file, OpenOption... options) method in class:AsynchronousFileChannel
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DFileInputStream.java57 /* File Descriptor - handle to the open file */
150 open(name);
151 guard.open("close");
199 private void open(String name) throws FileNotFoundException { method in class:FileInputStream
401 channel = FileChannelImpl.open(fd, path, true, false, this);
H A DFileOutputStream.java44 * this class will fail if the file involved is already open.
223 open(name, append);
224 guard.open("close");
285 private void open(String name, boolean append) method in class:FileOutputStream
404 channel = FileChannelImpl.open(fd, path, false, true, append, this);
/libcore/dalvik/test-rules/src/test/java/dalvik/system/
H A DCloseGuardSupportTest.java44 closeGuard.open("test resource");
59 closeGuard.open("test resource");
77 closeGuard.open("test resource");
95 closeGuard.open("test resource");
161 guard.open("test resource");
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixChannelFactory.java54 * Represents the flags from a user-supplied set of open options.
101 * Constructs a file channel from an existing (open) file descriptor
106 return FileChannelImpl.open(fdObj, path, reading, writing, null);
136 FileDescriptor fdObj = open(dfd, path, pathForPermissionCheck, flags, mode);
137 return FileChannelImpl.open(fdObj, path.toString(), flags.read, flags.write, flags.append, null);
172 FileDescriptor fdObj = open(-1, path, null, flags, mode);
173 return SimpleAsynchronousFileChannelImpl.open(fdObj, flags.read, flags.write, pool);
178 * encapsulating the handle to the open file.
180 protected static FileDescriptor open(int dfd, method in class:UnixChannelFactory
239 // permission check before we open th
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
H A DAbstractSelectorTest.java116 ServerSocketChannel ssc = ServerSocketChannel.open();
132 ServerSocketChannel ssc = ServerSocketChannel.open();
145 acceptSelector = Selector.open();

Completed in 4249 milliseconds

12345