Lines Matching refs:fd

41     private FileDescriptor fd;
42 /** whether fd is created internally */
59 return available_native(fd);
73 FileDescriptor myFd = fd;
91 FileDescriptor myFd = fd;
126 FileDescriptor myFd = fd;
140 FileDescriptor myFd = fd;
154 FileDescriptor myFd = fd;
166 private native int pending_native(FileDescriptor fd) throws IOException;
167 private native int available_native(FileDescriptor fd) throws IOException;
168 private native int read_native(FileDescriptor fd) throws IOException;
170 FileDescriptor fd) throws IOException;
172 FileDescriptor fd) throws IOException;
173 private native void write_native(int b, FileDescriptor fd)
175 private native void connectLocal(FileDescriptor fd, String name,
177 private native void bindLocal(FileDescriptor fd, String name, int namespace)
179 private native void listen_native(FileDescriptor fd, int backlog)
181 private native void shutdown(FileDescriptor fd, boolean shutdownInput);
183 FileDescriptor fd) throws IOException;
184 private native int getOption_native(FileDescriptor fd, int optID)
186 private native void setOption_native(FileDescriptor fd, int optID,
190 // (FileDescriptor fd) throws IOException;
195 * @param fd file descriptor of server socket
200 (FileDescriptor fd, LocalSocketImpl s) throws IOException;
214 * @param fd non-null; bound file descriptor
216 /*package*/ LocalSocketImpl(FileDescriptor fd) throws IOException
218 this.fd = fd;
222 return super.toString() + " fd:" + fd;
235 if (fd == null) {
251 fd = Libcore.os.socket(OsConstants.AF_UNIX, osType, 0);
266 if ((fd == null) || (mFdCreatedInternally == false)) {
267 fd = null;
271 Libcore.os.close(fd);
275 fd = null;
283 if (fd == null) {
287 connectLocal(fd, address.getName(), address.getNamespace().getId());
299 if (fd == null) {
303 bindLocal(fd, endpoint.getName(), endpoint.getNamespace().getId());
308 if (fd == null) {
312 listen_native(fd, backlog);
324 if (fd == null) {
328 s.fd = accept(fd, s);
340 if (fd == null) {
361 if (fd == null) {
392 if (fd == null) {
396 shutdown(fd, true);
406 if (fd == null) {
410 shutdown(fd, false);
415 return fd;
430 if (fd == null) {
438 int value = getOption_native(fd, optID);
461 if (fd == null) {
473 setOption_native(fd, optID, boolValue, intValue);
519 return getPeerCredentials_native(fd);
532 //return getSockName_native(fd);