/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
H A D | SSLCertificateSocketFactoryTest.java | 48 private static final String TEST_HOST = "www.google.com"; field in SSLCertificateSocketFactoryTest 68 addresses = InetAddress.getAllByName(TEST_HOST); in setUp() 81 Socket testSocket = new Socket(TEST_HOST, HTTPS_PORT); in setUp() 87 + TEST_HOST, ioe); in setUp() 180 mSocketFactory.createSocket(TEST_HOST, HTTPS_PORT); in createSocket_simple_with_hostname_verification() 201 Socket underlying = new Socket(TEST_HOST, HTTPS_PORT); in createSocket_wrapped_with_hostname_verification() 208 underlying = new Socket(TEST_HOST, HTTPS_PORT); in createSocket_wrapped_with_hostname_verification() 272 mSocketFactory.setHostname(socket, TEST_HOST); in createSocket_simple_no_hostname_verification() 281 SSLCertificateSocketFactory.verifyHostname(socket, TEST_HOST); in createSocket_simple_no_hostname_verification() 306 mSocketFactory.setHostname(socket, TEST_HOST); in createSocket_bound_no_hostname_verification() [all …]
|
H A D | ProxyInfoTest.java | 44 private static final String TEST_HOST = "test.example.com"; field in ProxyInfoTest 67 final ProxyInfo proxy1 = ProxyInfo.buildDirectProxy(TEST_HOST, TEST_PORT); in testBuildDirectProxy() 69 assertEquals(TEST_HOST, proxy1.getHost()); in testBuildDirectProxy() 77 final ProxyInfo proxy2 = ProxyInfo.buildDirectProxy(TEST_HOST, TEST_PORT, exclList); in testBuildDirectProxy() 79 assertEquals(TEST_HOST, proxy2.getHost()); in testBuildDirectProxy() 106 final ProxyInfo proxy1 = ProxyInfo.buildDirectProxy(TEST_HOST, TEST_PORT); in testIsValid() 116 final ProxyInfo proxy4 = ProxyInfo.buildDirectProxy(TEST_HOST, 0); in testIsValid() 119 final ProxyInfo proxy5 = ProxyInfo.buildDirectProxy(TEST_HOST, 65536); in testIsValid() 125 final ProxyInfo proxy6 = ProxyInfo.buildDirectProxy(TEST_HOST, TEST_PORT, exclList); in testIsValid()
|
H A D | ConnectivityManagerTest.java | 61 import static android.net.cts.util.CtsNetUtils.TEST_HOST; 1468 try (Socket s = getConnectedSocket(network, TEST_HOST, HTTP_PORT, AF_INET)) { in testCreateTcpKeepalive() argument 1584 final InetAddress dstAddr = getAddrByName(TEST_HOST, AF_INET); in createConcurrentNattSocketKeepalives() 1607 try (Socket tcpSocket = getConnectedSocket(network, TEST_HOST, HTTP_PORT, in createConcurrentTcpSocketKeepalives()
|
/aosp12/system/extras/multinetwork/ |
H A D | quick_test.sh | 5 readonly TEST_HOST="connectivitycheck.gstatic.com" 38 adb shell /system/bin/dnschk --nethandle $nethandle $TEST_HOST | 42 for host in $TEST_HOST $IPADDRESSES; do
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
H A D | NetworkWatchlistServiceTests.java | 60 private static final String TEST_HOST = "testhost.com"; field in NetworkWatchlistServiceTests 199 TEST_HOST, TEST_IPS, TEST_IPS.length, 123L, 456); in testNetworkEvents() 203 assertEquals(TEST_HOST, dnsParams[0]); in testNetworkEvents()
|
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
H A D | VpnTest.java | 142 public static String TEST_HOST = "connectivitycheck.gstatic.com"; field in VpnTest 741 FileDescriptor fd = openSocketFdInOtherApp(TEST_HOST, 80, TIMEOUT_MS); in testDefault() 754 assertSocketClosed(fd, TEST_HOST); in testDefault() 787 FileDescriptor fd = openSocketFdInOtherApp(TEST_HOST, 80, TIMEOUT_MS); in testAppAllowed() 795 assertSocketClosed(fd, TEST_HOST); in testAppAllowed() 807 FileDescriptor localFd = openSocketFd(TEST_HOST, 80, TIMEOUT_MS); in testAppDisallowed() 808 FileDescriptor remoteFd = openSocketFdInOtherApp(TEST_HOST, 80, TIMEOUT_MS); in testAppDisallowed() 822 assertSocketStillOpen(localFd, TEST_HOST); in testAppDisallowed() 823 assertSocketStillOpen(remoteFd, TEST_HOST); in testAppDisallowed()
|
/aosp12/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/ |
H A D | CtsNetUtils.java | 92 public static final String TEST_HOST = "connectivitycheck.gstatic.com"; field in CtsNetUtils 95 "Host: " + TEST_HOST + "\r\n" + 402 wifiBoundSocket = getBoundSocket(wifiNetworkToCheck, TEST_HOST, HTTP_PORT); in disconnectFromWifi()
|