/cts/tests/tests/net/src/android/net/cts/ |
D | IpSecManagerTunnelTest.java | 32 import static android.system.OsConstants.AF_INET; 221 expectedPacketSize += innerFamily == AF_INET ? IP4_HDRLEN : IP6_HDRLEN; in getPacketSize() 232 expectedPacketSize += outerFamily == AF_INET ? IP4_HDRLEN : IP6_HDRLEN; in getPacketSize() 439 InetAddress localInner = innerFamily == AF_INET ? LOCAL_INNER_4 : LOCAL_INNER_6; 440 InetAddress remoteInner = innerFamily == AF_INET ? REMOTE_INNER_4 : REMOTE_INNER_6; 442 InetAddress localOuter = outerFamily == AF_INET ? LOCAL_OUTER_4 : LOCAL_OUTER_6; 443 InetAddress remoteOuter = outerFamily == AF_INET ? REMOTE_OUTER_4 : REMOTE_OUTER_6; 519 InetAddress localInner = innerFamily == AF_INET ? LOCAL_INNER_4 : LOCAL_INNER_6; 520 InetAddress remoteInner = innerFamily == AF_INET ? REMOTE_INNER_4 : REMOTE_INNER_6; 522 InetAddress localOuter = outerFamily == AF_INET ? LOCAL_OUTER_4 : LOCAL_OUTER_6; [all …]
|
D | ConnectivityManagerTest.java | 38 import static android.system.OsConstants.AF_INET; 891 if (family == AF_INET && addr instanceof Inet4Address) return addr; in getAddrByName() 1028 try (Socket s = getConnectedSocket(network, TEST_HOST, HTTP_PORT, AF_INET)) { in testCreateTcpKeepalive() argument 1144 final InetAddress dstAddr = getAddrByName(TEST_HOST, AF_INET); in createConcurrentNattSocketKeepalives() 1168 AF_INET)) { in createConcurrentTcpSocketKeepalives()
|
D | IpSecBaseTest.java | 101 domain = OsConstants.AF_INET; in getDomain()
|
/cts/tests/tests/net/native/dns/ |
D | NativeDnsAsyncTest.cpp | 112 expectAnswersValid(fd2, AF_INET, ns_r_noerror); in TEST() 113 expectAnswersValid(fd1, AF_INET, ns_r_noerror); in TEST() 143 expectAnswersValid(fd2, AF_INET, ns_r_noerror); in TEST() 144 expectAnswersValid(fd1, AF_INET, ns_r_noerror); in TEST() 179 expectAnswersValid(fd2, AF_INET, ns_r_nxdomain); in TEST() 180 expectAnswersValid(fd1, AF_INET, ns_r_nxdomain); in TEST() 211 expectAnswersValid(fd, AF_INET, ns_r_noerror); in TEST()
|
/cts/tests/tests/net/jni/ |
D | NativeDnsJni.c | 51 if (current->ai_addr->sa_family == AF_INET) { in Java_android_net_cts_DnsTest_testNativeDns() 84 if (current->ai_addr->sa_family == AF_INET) { in Java_android_net_cts_DnsTest_testNativeDns() 108 sa4.sin_family = AF_INET; in Java_android_net_cts_DnsTest_testNativeDns() 110 inet_pton(AF_INET, GoogleDNSIpV4Address, &(sa4.sin_addr)); in Java_android_net_cts_DnsTest_testNativeDns()
|
D | NativeMultinetworkJni.cpp | 158 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNqueryCheck() 164 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNqueryCheck() 187 EXPECT_EQ(env, 0, expectAnswersValid(env, fd2, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 189 EXPECT_EQ(env, 0, expectAnswersValid(env, fd1, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 219 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_nxdomain), in Java_android_net_cts_MultinetworkApiTest_runResNnxDomainCheck() 234 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_nxdomain), in Java_android_net_cts_MultinetworkApiTest_runResNnxDomainCheck() 270 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNapiMalformedCheck()
|
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/ |
D | ChildSessionParamsTest.java | 19 import static android.system.OsConstants.AF_INET; 162 .addInternalAddressRequest(AF_INET) in testBuildChildSessionParamsWithConfigReq() 167 .addInternalDnsServerRequest(AF_INET) in testBuildChildSessionParamsWithConfigReq() 169 .addInternalDhcpServerRequest(AF_INET) in testBuildChildSessionParamsWithConfigReq() 170 .addInternalDhcpServerRequest(AF_INET) in testBuildChildSessionParamsWithConfigReq()
|
D | IkeSessionParamsTest.java | 26 import static android.system.OsConstants.AF_INET; 227 .addPcscfServerRequest(AF_INET) in testSetPcscfConfigRequests()
|
D | IkeSessionTestBase.java | 19 import static android.system.OsConstants.AF_INET; 290 .addInternalAddressRequest(AF_INET) in buildTunnelModeChildSessionParams()
|
/cts/suite/audio_quality/lib/src/ |
D | ClientSocket.cpp | 43 mSocket = socket(AF_INET, SOCK_STREAM, 0); in init() 57 serverAddr.sin_family = AF_INET; in init() 59 if (inet_pton(AF_INET, hostIp, &serverAddr.sin_addr) != 1) { in init()
|
/cts/tests/tests/net/native/qtaguid/src/ |
D | NativeQtaguidTest.cpp | 93 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in TEST() 123 checkNoSocketPointerLeaks(AF_INET); in TEST()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/ |
D | VpnTestHelper.java | 19 import static android.system.OsConstants.AF_INET; 184 FileDescriptor socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in checkPing() 234 socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in tryPosixConnect()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0844/ |
D | poc.c | 72 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13273/ |
D | poc.c | 75 sock_fd = socket(AF_INET, SOCK_STREAM, 0); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2471/ |
D | poc.c | 134 fd = socket(AF_INET, SOCK_STREAM, 0); in main()
|
/cts/suite/audio_quality/test_description/ |
D | processing_main.py | 208 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
/cts/apps/CtsVerifier/assets/scripts/ |
D | execute_power_tests.py | 193 dummysocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 210 link = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
/cts/apps/CameraITS/pymodules/its/ |
D | device.py | 120 socket_lock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 182 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 331 s = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in checkPing()
|