Home
last modified time | relevance | path

Searched refs:SOCK_NONBLOCK (Results 1 – 25 of 32) sorted by relevance

12

/aosp12/system/core/libcutils/
H A Dandroid_get_control_socket_test.cpp27 #ifndef SOCK_NONBLOCK
28 #define SOCK_NONBLOCK 0 macro
43 ASSERT_GE(fd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0), 0); in TEST()
/aosp12/packages/modules/Connectivity/Tethering/src/android/net/ip/
H A DNeighborPacketForwarder.java24 import static android.system.OsConstants.SOCK_NONBLOCK;
121 mFd = Os.socket(AF_PACKET, SOCK_DGRAM | SOCK_NONBLOCK, 0); in createFd()
171 fd = Os.socket(AF_INET6, SOCK_RAW | SOCK_NONBLOCK, IPPROTO_RAW); in handlePacket()
/aosp12/system/bt/gd/shim/
H A Ddumpsys_test.cc108 ASSERT_EQ(0, socketpair(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK, 0, sv)); in TEST_F()
125 ASSERT_EQ(0, socketpair(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK, 0, sv)); in TEST_F()
/aosp12/packages/modules/adb/libs/adbconnection/
H A Dadbconnection_server.cpp48 unique_fd s(socket(AF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK | SOCK_CLOEXEC, 0)); in adbconnection_listen()
85 TEMP_FAILURE_RETRY(accept4(s.get(), nullptr, nullptr, SOCK_NONBLOCK | SOCK_CLOEXEC))); in adbconnection_listen()
/aosp12/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
H A DNetlinkMonitor.java23 import static android.system.OsConstants.SOCK_NONBLOCK;
86 fd = Os.socket(AF_NETLINK, SOCK_DGRAM | SOCK_NONBLOCK, mFamily); in createFd()
/aosp12/packages/modules/NetworkStack/src/android/net/ip/
H A DConnectivityPacketTracker.java23 import static android.system.OsConstants.SOCK_NONBLOCK;
112 s = Os.socket(AF_PACKET, SOCK_RAW | SOCK_NONBLOCK, 0); in createFd()
/aosp12/system/core/libsysutils/src/
H A DSocketListener_test.cpp49 unique_fd fd(socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); in serverSocket()
63 unique_fd fd(socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); in clientSocket()
/aosp12/system/core/libstats/push_compat/
H A Dstatsd_writer.c86 #ifdef SOCK_NONBLOCK in statsdOpen()
87 flags |= SOCK_NONBLOCK; in statsdOpen()
/aosp12/packages/modules/StatsD/lib/libstatssocket/
H A Dstatsd_writer.c103 #ifdef SOCK_NONBLOCK in statsdOpen()
104 flags |= SOCK_NONBLOCK; in statsdOpen()
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/util/
H A DTetheringUtilsTest.java25 import static android.system.OsConstants.SOCK_NONBLOCK;
140 Os.socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0, in, out); in checkIcmpSocketFilter()
/aosp12/packages/modules/NetworkStack/tests/integration/src/android/net/util/
H A DNetworkStackUtilsIntegrationTest.kt35 import android.system.OsConstants.SOCK_NONBLOCK
105 val socket = Os.socket(AF_INET, SOCK_DGRAM or SOCK_NONBLOCK, IPPROTO_UDP)
/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
H A DPacketReaderTest.java22 import static android.system.OsConstants.SOCK_NONBLOCK;
88 s = Os.socket(AF_INET6, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP); in createFd()
/aosp12/system/logging/liblog/tests/
H A Dlogd_writer_test.cpp58 unique_fd{TEMP_FAILURE_RETRY(socket(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0))}; in TEST()
/aosp12/bionic/libc/bionic/
H A Dandroid_profiling_dynamic.cpp128 ScopedFd sock_fd{ socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0 /*protocol*/) }; in HandleTracedPerfSignal()
/aosp12/system/bt/service/ipc/
H A Dipc_handler_linux.cc162 int client_socket = accept4(socket_.get(), nullptr, nullptr, SOCK_NONBLOCK); in StartListeningOnThread()
/aosp12/system/logging/liblog/
H A Dlogd_writer.cpp93 flags |= SOCK_NONBLOCK; in GetSocket()
/aosp12/bionic/tests/
H A Dsys_socket_test.cpp39 int fd = socket(PF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC | SOCK_NONBLOCK, 0); in ConnectFn()
/aosp12/system/logging/logd/
H A DREADME.replay.md13 the logd socket in `liblog` blocking, by removing `SOCK_NONBLOCK` from the `socket()` call in
/aosp12/bionic/libc/include/sys/
H A Dsocket.h58 #define SOCK_NONBLOCK O_NONBLOCK macro
/aosp12/packages/modules/DnsResolver/
H A DDnsTlsTransport.cpp103 const int sockType = SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC; in sendUdpQuery()
/aosp12/system/netd/server/
H A DNFLogListener.cpp209 const auto flags = SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK; in makeNFLogListener()
/aosp12/packages/modules/NetworkStack/src/android/net/dhcp/
H A DDhcpServer.java31 import static android.system.OsConstants.SOCK_NONBLOCK;
852 mSocket = Os.socket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP); in createFd()
H A DDhcpClient.java47 import static android.system.OsConstants.SOCK_NONBLOCK;
682 mPacketSock = Os.socket(AF_PACKET, SOCK_RAW | SOCK_NONBLOCK, 0 /* protocol */); in createFd()
1525 mArpSock = Os.socket(AF_PACKET, SOCK_RAW | SOCK_NONBLOCK, 0 /* protocol */); in createFd()
/aosp12/bionic/libc/async_safe/
H A Dasync_safe_log.cpp474 int log_fd = TEMP_FAILURE_RETRY(__socket(PF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); in open_log_socket()
/aosp12/frameworks/native/libs/adbd_auth/
H A Dadbd_auth.cpp332 SOCK_CLOEXEC | SOCK_NONBLOCK)); in Run()

12