Home
last modified time | relevance | path

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

/frameworks/native/libs/sensor/
DBitTube.cpp72 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(rcvbuf)); in init()
73 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof(sndbuf)); in init()
75 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); in init()
76 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in init()
/frameworks/base/core/java/android/net/
DLocalSocketImpl.java424 StructTimeval timeval = Os.getsockoptTimeval(fd, OsConstants.SOL_SOCKET, in getOption()
432 toReturn = Os.getsockoptInt(fd, OsConstants.SOL_SOCKET, osOpt); in getOption()
436 Os.getsockoptLinger(fd, OsConstants.SOL_SOCKET, OsConstants.SO_LINGER); in getOption()
483 Os.setsockoptLinger(fd, OsConstants.SOL_SOCKET, OsConstants.SO_LINGER, linger); in setOption()
489 Os.setsockoptTimeval(fd, OsConstants.SOL_SOCKET, OsConstants.SO_RCVTIMEO, in setOption()
491 Os.setsockoptTimeval(fd, OsConstants.SOL_SOCKET, OsConstants.SO_SNDTIMEO, in setOption()
498 Os.setsockoptInt(fd, OsConstants.SOL_SOCKET, osOpt, intValue); in setOption()
/frameworks/native/libs/gui/
DBitTube.cpp51 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(rcvbuf)); in init()
52 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof(sndbuf)); in init()
54 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); in init()
55 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in init()
/frameworks/base/core/java/android/net/util/
DSocketUtils.java19 import static android.system.OsConstants.SOL_SOCKET;
54 Os.setsockoptIfreq(socket, SOL_SOCKET, SO_BINDTODEVICE, iface); in bindSocketToInterface()
/frameworks/base/services/core/java/com/android/server/am/
DNativeCrashListener.java21 import static android.system.OsConstants.SOL_SOCKET;
208 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, timeout); in consumeNativeCrashData()
209 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_SNDTIMEO, timeout); in consumeNativeCrashData()
/frameworks/native/libs/binder/
DOS_unix_base.cpp98 cmsg->cmsg_level = SOL_SOCKET; in sendMessageOnSocket()
134 if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS) { in receiveMessageFromSocket()
DRpcSession.cpp631 int ret = getsockopt(transportFd.fd.get(), SOL_SOCKET, SO_ERROR, &connErrno, in setupOneSocketConnection()
/frameworks/base/core/jni/
Dcom_android_internal_os_ZygoteCommandBuffer.cpp360 if (getsockopt(socket, SOL_SOCKET, SO_PEERCRED, &credentials, &cred_size) == -1 in getSocketPeerUid()
424 if (getsockopt(session_socket, SOL_SOCKET, SO_RCVTIMEO, &timeout, &timeout_size) != 0) { in com_android_internal_os_ZygoteCommandBuffer_nativeForkRepeatedly()
519 if (setsockopt(session_socket, SOL_SOCKET, SO_RCVTIMEO, &timeout, timeout_size) != 0) { in com_android_internal_os_ZygoteCommandBuffer_nativeForkRepeatedly()
523 if (setsockopt(session_socket, SOL_SOCKET, SO_SNDTIMEO, &timeout, timeout_size) != 0) { in com_android_internal_os_ZygoteCommandBuffer_nativeForkRepeatedly()
Dandroid_net_LocalSocketImpl.cpp399 err = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &creds, &szCreds); in socket_get_peer_credentials()
/frameworks/native/cmds/bugreportz/
Dmain.cpp109 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) { in main()
/frameworks/native/libs/vr/libpdx_uds/
Dipc_helper.cpp215 control->cmsg_level = SOL_SOCKET; in Send()
223 control->cmsg_level = SOL_SOCKET; in Send()
313 if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_CREDENTIALS && in Receive()
317 } else if (cmsg->cmsg_level == SOL_SOCKET && in Receive()
Dservice_endpoint.cpp414 if (setsockopt(local_socket->Get(), SOL_SOCKET, SO_PASSCRED, &optval, in CreateChannelSocketPair()
776 if (setsockopt(channel_fd.Get(), SOL_SOCKET, SO_PASSCRED, &optval, in RegisterNewChannelForTests()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp618 if (setsockopt(pair[0], SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv))) { in set()
843 setsockopt(deviceSocket, SOL_SOCKET, SO_RCVBUF, &output, sizeof(output)); in threadLoop()
844 setsockopt(deviceSocket, SOL_SOCKET, SO_SNDBUF, &output, sizeof(output)); in threadLoop()
/frameworks/native/libs/input/
DInputTransport.cpp371 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair()
372 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair()
373 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair()
374 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); in openInputChannelPair()
/frameworks/av/media/libstagefright/rtsp/
DARTPConnection.cpp134 CHECK_EQ(setsockopt(s, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)), 0); in bumpSocketBufferSize()
256 setsockopt(*rtpSocket, SOL_SOCKET, SO_REUSEADDR, (int *)&sockopt, sizeof(sockopt)); in MakeRTPSocketPair()
257 setsockopt(*rtcpSocket, SOL_SOCKET, SO_REUSEADDR, (int *)&sockopt, sizeof(sockopt)); in MakeRTPSocketPair()
DARTPWriter.cpp1642 setsockopt(mRTPSocket, SOL_SOCKET, SO_REUSEADDR, (int *)&sockopt, sizeof(sockopt)); in makeSocketPairAndBind()
1643 setsockopt(mRTCPSocket, SOL_SOCKET, SO_REUSEADDR, (int *)&sockopt, sizeof(sockopt)); in makeSocketPairAndBind()
DARTSPConnection.cpp385 CHECK_EQ(getsockopt(mSocket, SOL_SOCKET, SO_ERROR, &err, &optionLen), 0); in onCompleteConnection()
/frameworks/av/media/libstagefright/rtsp/fuzzer/
Drtsp_connection_fuzzer.cpp312 if (setsockopt(mServerFd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt))) { in startServer()
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/android/system/
DOsConstants.java706 public static final int SOL_SOCKET = placeholder(); field in OsConstants
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp378 cmsg->cmsg_level = SOL_SOCKET; in AHardwareBuffer_sendHandleToUnixSocket()
/frameworks/base/ravenwood/runtime-jni/
Dravenwood_os_constants.cpp559 initConstant(env, c, "SOL_SOCKET", SOL_SOCKET); in OsConstants_initConstants()
/frameworks/native/libs/binder/tests/
DbinderRpcTest.cpp1226 int ret = getsockopt(connectFd.get(), SOL_SOCKET, SO_ERROR, &connectErrno, in testSupportVsockLoopback()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt27970 field public static final int SOL_SOCKET;