HomeSort by relevance Sort by last modified time
    Searched refs:booleanToInt (Results 1 - 2 of 2) sorted by null

  /art/test/593-checker-boolean-to-integral-conv/src/
Main.java 23 expectEqualsInt(1, booleanToInt(true));
109 /// CHECK-START: int Main.booleanToInt(boolean) builder (after)
118 /// CHECK-START: int Main.booleanToInt(boolean) select_generator (after)
125 /// CHECK-START: int Main.booleanToInt(boolean) instruction_simplifier_after_bce (after)
129 static int booleanToInt(boolean b) {
  /libcore/luni/src/main/java/libcore/io/
IoBridge.java 312 private static int booleanToInt(boolean b) {
339 Libcore.os.setsockoptByte(fd, IPPROTO_IP, IP_MULTICAST_LOOP, booleanToInt((Boolean) value));
340 Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, booleanToInt((Boolean) value));
353 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value));
356 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE, booleanToInt((Boolean) value));
365 StructLinger linger = new StructLinger(booleanToInt(on), seconds);
369 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE, booleanToInt((Boolean) value));
375 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR, booleanToInt((Boolean) value));
386 Libcore.os.setsockoptInt(fd, IPPROTO_TCP, TCP_NODELAY, booleanToInt((Boolean) value));

Completed in 59 milliseconds