Searched refs:booleanToInt (Results 1 – 1 of 1) sorted by relevance
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 313 private static int booleanToInt(boolean b) { in booleanToInt() method in IoBridge 340 … Libcore.os.setsockoptByte(fd, IPPROTO_IP, IP_MULTICAST_LOOP, booleanToInt((Boolean) value)); in setSocketOptionErrno() 341 … Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, booleanToInt((Boolean) value)); in setSocketOptionErrno() 354 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value)); in setSocketOptionErrno() 357 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value)); in setSocketOptionErrno() 366 StructLinger linger = new StructLinger(booleanToInt(on), seconds); in setSocketOptionErrno() 370 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value)); in setSocketOptionErrno() 376 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR, booleanToInt((Boolean) value)); in setSocketOptionErrno() 387 Libcore.os.setsockoptInt(fd, IPPROTO_TCP, TCP_NODELAY, booleanToInt((Boolean) value)); in setSocketOptionErrno()
|