Searched refs:booleanToInt (Results 1 – 1 of 1) sorted by relevance
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 364 private static int booleanToInt(boolean b) { in booleanToInt() method in IoBridge 401 int enable = booleanToInt(!((Boolean) value)); in setSocketOptionErrno() 420 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value)); in setSocketOptionErrno() 423 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value)); in setSocketOptionErrno() 432 StructLinger linger = new StructLinger(booleanToInt(on), seconds); in setSocketOptionErrno() 436 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value)); in setSocketOptionErrno() 442 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR, booleanToInt((Boolean) value)); in setSocketOptionErrno() 453 Libcore.os.setsockoptInt(fd, IPPROTO_TCP, TCP_NODELAY, booleanToInt((Boolean) value)); in setSocketOptionErrno()
|