Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/net/
DPlainSocketImpl.java50 import static android.system.OsConstants.SOCK_DGRAM;
124 fd.setInt$(IoBridge.socket(AF_INET6, isStream ? SOCK_STREAM : SOCK_DGRAM, 0).getInt$()); in socketCreate()
DInet6AddressImpl.java51 import static android.system.OsConstants.SOCK_DGRAM;
250 fd = IoBridge.socket(domain, SOCK_DGRAM, icmpProto); in icmpEcho()
DNetworkInterface.java570 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getMTU()
613 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags()
/libcore/luni/src/test/java/libcore/libcore/io/
DOsTest.java307 FileDescriptor nlSocket = Libcore.os.socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in test_NetlinkSocket()
323 FileDescriptor fd = Libcore.os.socket(AF_PACKET, SOCK_DGRAM, ETH_P_IPV6); in test_PacketSocketAddress()
350 FileDescriptor recvFd = Libcore.os.socket(family, SOCK_DGRAM, 0); in checkSendToSocketAddress()
356 FileDescriptor sendFd = Libcore.os.socket(family, SOCK_DGRAM, 0); in checkSendToSocketAddress()
437 FileDescriptor fd = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6); in test_socketPing()
442 fd = Libcore.os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in test_socketPing()
454 FileDescriptor mUdpSock = Libcore.os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_Ipv4Fallback()
481 final FileDescriptor serverFd = Libcore.os.socket(AF_INET, SOCK_DGRAM, 0); in test_recvfrom_concurrentShutdown()
726 final FileDescriptor fd = Libcore.os.socket(AF_INET, SOCK_DGRAM, 0); in test_socket_tcpUserTimeout_doesNotWorkOnDatagramSocket()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java47 import static android.system.OsConstants.SOCK_DGRAM;
282 FileDescriptor fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags()
/libcore/ojluni/src/main/native/
DNet.c236 int type = (stream ? SOCK_STREAM : SOCK_DGRAM); in Java_sun_nio_ch_Net_socket0()
277 if (type == SOCK_DGRAM) { in Java_sun_nio_ch_Net_socket0()
293 if (domain == AF_INET6 && type == SOCK_DGRAM) { in Java_sun_nio_ch_Net_socket0()
/libcore/luni/src/main/java/android/system/
DOsConstants.java464 public static final int SOCK_DGRAM = placeholder(); field in OsConstants
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp512 initConstant(env, c, "SOCK_DGRAM", SOCK_DGRAM); in OsConstants_initConstants()