Searched refs:openConnection (Results 1 – 14 of 14) sorted by relevance
137 URLConnection c1 = server.getUrl("/").openConnection(); in testStatisticsTracking()146 URLConnection c2 = server.getUrl("/").openConnection(); in testStatisticsTracking()149 URLConnection c3 = server.getUrl("/").openConnection(); in testStatisticsTracking()
56 final HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection(); in makeNetworkRequest()
110 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in assertUrlConnectionFails()121 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in assertUrlConnectionSucceeds()
183 ((HttpURLConnection) new URL("http://example.com/").openConnection()) in testCleartextNetwork()207 ((HttpURLConnection) new URL("https://example.com/").openConnection()) in testEncryptedNetwork()280 ((HttpURLConnection) new URL("http://example.com/").openConnection()) in testUntaggedSocketsHttp()290 ((HttpURLConnection) new URL("http://example.com/").openConnection()) in testUntaggedSocketsHttp()418 ((HttpURLConnection) new URL("http://example.com/").openConnection()) in testNetwork()
139 URLConnection connection = openConnection(url); in shutdown()322 private URLConnection openConnection(URL url) in openConnection() method in TestWebServer329 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in openConnection()339 return url.openConnection(); in openConnection()
78 conn = (HttpURLConnection) url.openConnection(); in assertCleartextHttpURLConnectionSucceeds()96 conn = (HttpURLConnection) url.openConnection(); in assertCleartextHttpURLConnectionBlocked()
241 urlConnection = (HttpURLConnection) url.openConnection();
267 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
168 final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in checkNetworkStatus()
345 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in makeHttpsRequest()
630 (HttpURLConnection) network.openConnection(new URL(url));
600 connection = (HttpURLConnection) url.openConnection(); in testWifiWatchdog()
180 urlc = (HttpURLConnection) network.openConnection(url); in exerciseRemoteHost()
350 HttpURLConnection connection = (HttpURLConnection) network.openConnection(httpUrl); in httpGet()