/libcore/luni/src/main/java/java/net/ |
D | PlainDatagramSocketImpl.java | 25 import libcore.io.IoBridge; 60 IoBridge.bind(fd, address, port); in bind() 64 localPort = IoBridge.getSocketLocalPort(fd); in bind() 81 IoBridge.closeAndSignalBlockedThreads(fd); in close() 93 this.fd = IoBridge.socket(false); in create() 108 return IoBridge.getSocketOption(fd, option); in getOption() 113 return (Integer) getOption(IoBridge.JAVA_IP_MULTICAST_TTL); in getTimeToLive() 128 setOption(IoBridge.JAVA_MCAST_JOIN_GROUP, makeGroupReq(addr, null)); in join() 135 setOption(IoBridge.JAVA_MCAST_JOIN_GROUP, makeGroupReq(groupAddr, netInterface)); in joinGroup() 141 setOption(IoBridge.JAVA_MCAST_LEAVE_GROUP, makeGroupReq(addr, null)); in leave() [all …]
|
D | PlainSocketImpl.java | 28 import libcore.io.IoBridge; 107 newImpl.localport = IoBridge.getSocketLocalPort(newImpl.fd); in accept() 128 return IoBridge.available(fd); in available() 132 IoBridge.bind(fd, address, port); in bind() 136 this.localport = IoBridge.getSocketLocalPort(fd); in bind() 148 IoBridge.closeAndSignalBlockedThreads(fd); in close() 183 IoBridge.connect(fd, normalAddr, aPort, timeout); in connect() 198 this.fd = IoBridge.socket(streaming); in create() 242 return IoBridge.getSocketOption(fd, option); in getOption() 286 IoBridge.setSocketOption(fd, option, value); in setOption() [all …]
|
D | InetAddress.java | 37 import libcore.io.IoBridge; 755 FileDescriptor fd = IoBridge.socket(true); in isReachable() 759 IoBridge.bind(fd, source, 0); in isReachable() 761 IoBridge.connect(fd, destination, 7, timeout); in isReachable() 770 IoBridge.closeAndSignalBlockedThreads(fd); in isReachable()
|
D | ServerSocket.java | 24 import libcore.io.IoBridge; 119 localAddress = IoBridge.getSocketLocalAddress(impl.fd); in readBackBindState()
|
D | DatagramSocket.java | 25 import libcore.io.IoBridge; 184 return IoBridge.getSocketLocalAddress(impl.fd); in getLocalAddress()
|
D | Socket.java | 26 import libcore.io.IoBridge; 1001 this.localAddress = IoBridge.getSocketLocalAddress(impl.fd); in cacheLocalAddress()
|
/libcore/luni/src/main/java/java/io/ |
D | FileInputStream.java | 25 import libcore.io.IoBridge; 76 this.fd = IoBridge.open(file.getPath(), O_RDONLY); in FileInputStream() 108 return IoBridge.available(fd); in available() 119 IoBridge.closeAndSignalBlockedThreads(fd); in close() 177 return IoBridge.read(fd, buffer, byteOffset, byteCount); in read()
|
D | FileOutputStream.java | 23 import libcore.io.IoBridge; 87 this.fd = IoBridge.open(file.getPath(), mode); in FileOutputStream() 138 IoBridge.closeAndSignalBlockedThreads(fd); in close() 186 IoBridge.write(fd, buffer, byteOffset, byteCount); in write()
|
D | RandomAccessFile.java | 27 import libcore.io.IoBridge; 117 this.fd = IoBridge.open(file.getPath(), flags); in RandomAccessFile() 165 IoBridge.closeAndSignalBlockedThreads(fd); in close() 286 return IoBridge.read(fd, buffer, byteOffset, byteCount); in read() 688 IoBridge.write(fd, buffer, byteOffset, byteCount); in write()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 50 public final class IoBridge { class 52 private IoBridge() { in IoBridge() method in IoBridge 110 IoBridge.connect(fd, inetAddress, port, 0); in connect() 171 } while (!IoBridge.isConnected(fd, inetAddress, port, timeoutMs, remainingTimeoutMs)); in connectErrno() 274 case IoBridge.JAVA_IP_MULTICAST_TTL: in getSocketOptionErrno() 343 case IoBridge.JAVA_IP_MULTICAST_TTL: in setSocketOptionErrno() 389 case IoBridge.JAVA_MCAST_JOIN_GROUP: in setSocketOptionErrno() 390 case IoBridge.JAVA_MCAST_LEAVE_GROUP: in setSocketOptionErrno() 398 case IoBridge.JAVA_MCAST_JOIN_SOURCE_GROUP: in setSocketOptionErrno() 399 case IoBridge.JAVA_MCAST_LEAVE_SOURCE_GROUP: in setSocketOptionErrno() [all …]
|
D | IoUtils.java | 209 fd = IoBridge.open(absolutePath, O_RDONLY); in FileReader()
|
/libcore/luni/src/main/java/java/nio/ |
D | DatagramChannelImpl.java | 45 import libcore.io.IoBridge; 83 fd = IoBridge.socket(false); in DatagramChannelImpl() 153 IoBridge.connect(fd, remoteAddress, remotePort); in connect() 257 …received = IoBridge.recvfrom(false, fd, receivePacket.getData(), receivePacket.getOffset(), receiv… in receiveImpl() 278 IoBridge.recvfrom(false, fd, target, 0, receivePacket, isConnected()); in receiveDirectImpl() 306 sendCount = IoBridge.sendto(fd, source, 0, isa.getAddress(), isa.getPort()); in send() 377 readCount = IoBridge.recvfrom(false, fd, dst, 0, null, isConnected()); in readImpl() 438 result = IoBridge.sendto(fd, buf, 0, null, 0); in writeImpl() 449 IoBridge.closeAndSignalBlockedThreads(fd); in implCloseSelectableChannel()
|
D | SocketChannelImpl.java | 48 import libcore.io.IoBridge; 105 fd = (connect ? IoBridge.socket(true) : new FileDescriptor()); in SocketChannelImpl() 199 IoBridge.connect(fd, normalAddr, port); in connect() 277 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately. in finishConnect() 342 readCount = IoBridge.recvfrom(true, fd, dst, 0, null, false); in readImpl() 403 writeCount = IoBridge.sendto(fd, src, 0, null, 0); in writeImpl() 467 IoBridge.closeAndSignalBlockedThreads(fd); in implCloseSelectableChannel()
|
D | SelectorImpl.java | 37 import libcore.io.IoBridge; 242 while (IoBridge.read(wakeupIn, buffer, 0, 1) > 0) { in processPollFds()
|