Home
last modified time | relevance | path

Searched refs:booleanToInt (Results 1 – 1 of 1) sorted by relevance

/libcore/luni/src/main/java/libcore/io/
DIoBridge.java365 private static int booleanToInt(boolean b) { in booleanToInt() method in IoBridge
402 int enable = booleanToInt(!((Boolean) value)); in setSocketOptionErrno()
421 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value)); in setSocketOptionErrno()
424 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value)); in setSocketOptionErrno()
433 StructLinger linger = new StructLinger(booleanToInt(on), seconds); in setSocketOptionErrno()
437 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value)); in setSocketOptionErrno()
443 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR, booleanToInt((Boolean) value)); in setSocketOptionErrno()
454 Libcore.os.setsockoptInt(fd, IPPROTO_TCP, TCP_NODELAY, booleanToInt((Boolean) value)); in setSocketOptionErrno()