Home
last modified time | relevance | path

Searched refs:AF_INET (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/tests/vcn/java/android/net/vcn/persistablebundleutils/
DTunnelModeChildSessionParamsUtilsTest.java19 import static android.system.OsConstants.AF_INET;
108 .addInternalAddressRequest(AF_INET) in testSetConfigRequestsEncodeDecodeIsLossless()
112 .addInternalDnsServerRequest(AF_INET) in testSetConfigRequestsEncodeDecodeIsLossless()
114 .addInternalDhcpServerRequest(AF_INET) in testSetConfigRequestsEncodeDecodeIsLossless()
DIkeSessionParamsUtilsTest.java22 import static android.system.OsConstants.AF_INET;
126 .addPcscfServerRequest(AF_INET) in testEncodeRecodeParamsWithConfigRequests()
/frameworks/base/core/java/com/android/internal/net/
DNetworkUtilsInternal.java19 import static android.system.OsConstants.AF_INET;
30 private static final int[] ADDRESS_FAMILIES = new int[] {AF_INET, AF_INET6};
/frameworks/opt/net/voip/src/jni/rtp/
Dutil.cpp43 if (inet_pton(AF_INET, address, &(sin->sin_addr)) > 0) { in parse()
44 sin->sin_family = AF_INET; in parse()
DRtpStream.cpp57 uint16_t *p = (ss.ss_family == AF_INET) ? in create()
DAudioGroup.cpp214 if (remote->ss_family == AF_INET) { in set()
/frameworks/av/media/libstagefright/rtsp/
DUDPPusher.cpp38 mSocket = socket(AF_INET, SOCK_DGRAM, 0); in UDPPusher()
42 addr.sin_family = AF_INET; in UDPPusher()
49 mRemoteAddr.sin_family = AF_INET; in UDPPusher()
DARTPSession.cpp101 int s = socket(AF_INET, SOCK_DGRAM, 0); in MakeUDPSocket()
106 addr.sin_family = AF_INET; in MakeUDPSocket()
DARTPConnection.cpp140 *rtpSocket = socket(AF_INET, SOCK_DGRAM, 0); in MakePortPair()
145 *rtcpSocket = socket(AF_INET, SOCK_DGRAM, 0); in MakePortPair()
157 addr.sin_family = AF_INET; in MakePortPair()
176 *rtpSocket = socket(AF_INET, SOCK_DGRAM, 0); in MakePortPair()
193 *rtpSocket = socket(isIPv6 ? AF_INET6 : AF_INET, SOCK_DGRAM, 0); in MakeRTPSocketPair()
198 *rtcpSocket = socket(isIPv6 ? AF_INET6 : AF_INET, SOCK_DGRAM, 0); in MakeRTPSocketPair()
250 addr4.sin_family = AF_INET; in MakeRTPSocketPair()
288 addr4.sin_family = AF_INET; in MakeRTPSocketPair()
DARTPWriter.cpp89 mRTPSocket = socket(AF_INET, SOCK_DGRAM, 0); in ARTPWriter()
91 mRTCPSocket = socket(AF_INET, SOCK_DGRAM, 0); in ARTPWriter()
95 mRTPAddr.sin_family = AF_INET; in ARTPWriter()
1636 mRTPSocket = socket(mIsIPv6 ? AF_INET6 : AF_INET, SOCK_DGRAM, 0); in makeSocketPairAndBind()
1638 mRTCPSocket = socket(mIsIPv6 ? AF_INET6 : AF_INET, SOCK_DGRAM, 0); in makeSocketPairAndBind()
1665 mLocalAddr.sin_family = AF_INET; in makeSocketPairAndBind()
1669 mRTPAddr.sin_family = AF_INET; in makeSocketPairAndBind()
DARTSPConnection.cpp268 mSocket = socket(AF_INET, SOCK_STREAM, 0); in onConnect()
280 remote.sin_family = AF_INET; in onConnect()
/frameworks/base/core/java/android/net/vcn/persistablebundleutils/
DTunnelModeChildSessionParamsUtils.java19 import static android.system.OsConstants.AF_INET;
231 builder.addInternalAddressRequest(AF_INET); in fromPersistableBundle()
253 builder.addInternalDnsServerRequest(AF_INET); in fromPersistableBundle()
265 builder.addInternalDhcpServerRequest(AF_INET); in fromPersistableBundle()
DIkeSessionParamsUtils.java19 import static android.system.OsConstants.AF_INET;
235 builder.addPcscfServerRequest(AF_INET); in fromPersistableBundle()
/frameworks/base/services/core/jni/
Dcom_android_server_connectivity_Vpn.cpp126 ifr4.ifr_addr.sa_family = AF_INET; in set_addresses()
127 ifr4.ifr_netmask.sa_family = AF_INET; in set_addresses()
156 if (inet_pton(AF_INET, address, as_in_addr(&ifr4.ifr_addr)) != 1 || in set_addresses()
368 inet4 = socket(AF_INET, SOCK_DGRAM, 0); in register_android_server_connectivity_Vpn()
/frameworks/base/core/java/android/net/
DVpnService.java19 import static android.system.OsConstants.AF_INET;
770 if (family == AF_INET) { in allowFamily()
775 throw new IllegalArgumentException(family + " is neither " + AF_INET + " nor " + in allowFamily()
/frameworks/base/services/core/jni/gnss/
DAGnssCallback.cpp91 inet_ntop(AF_INET, &ipAddr, str, INET_ADDRSTRLEN); in agnssStatusIpV4Cb()
/frameworks/av/media/libaudiofoundation/
DAudioDeviceTypeAddr.cpp42 if (inet_pton(AF_INET, address.c_str(), &ss4) > 0) { in isSenstiveAddress()
/frameworks/av/media/libstagefright/rtsp/fuzzer/
Drtsp_connection_fuzzer.cpp304 mServerFd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); in startServer()
306 serverAddress.sin_family = AF_INET; in startServer()
/frameworks/native/libs/binder/tests/
DbinderRpcTestService.cpp192 case AF_INET: in main()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpnIkev2Utils.java131 childOptionsBuilder.addInternalAddressRequest(OsConstants.AF_INET); in buildChildSessionParams()
133 childOptionsBuilder.addInternalDnsServerRequest(OsConstants.AF_INET); in buildChildSessionParams()
/frameworks/native/libs/binder/
DRpcServer.cpp90 LOG_ALWAYS_FATAL_IF(socketAddress.addr()->sa_family != AF_INET, "expecting inet"); in setupInetServer()
573 if (addr.addr()->sa_family == AF_INET || addr.addr()->sa_family == AF_INET6) { in setupSocketServer()
DRpcSession.cpp604 if (addr.addr()->sa_family == AF_INET || addr.addr()->sa_family == AF_INET6) { in setupOneSocketConnection()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java32 import static android.system.OsConstants.AF_INET;
276 FileDescriptor srvSocketFd = Os.socket(AF_INET, SOCK_STREAM, 0); in testCopy_SocketToFile_FileToSocket$noRavenwood()
313 FileDescriptor clientFd = Os.socket(AF_INET, SOCK_STREAM, 0); in testCopy_SocketToFile_FileToSocket$noRavenwood()
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/android/system/
DOsConstants.java131 public static final int AF_INET = placeholder(); field in OsConstants
/frameworks/av/media/libmedia/
Dmediaplayer.cpp854 mRetransmitEndpoint.sin_family = AF_INET; in setRetransmitEndpoint()

12