Home
last modified time | relevance | path

Searched refs:urlConnection (Results 1 – 4 of 4) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DStreamingVideoActivity.java238 HttpURLConnection urlConnection = null;
241 urlConnection = (HttpURLConnection) url.openConnection();
242 if (urlConnection.getResponseCode() != 200) {
244 + urlConnection.getResponseCode());
247 new InputStreamReader(urlConnection.getInputStream()));
253 if (urlConnection != null) {
254 urlConnection.disconnect();
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DNetworkLoggingDelegateTest.java140 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite() local
141 try (AutoCloseable ac = () -> urlConnection.disconnect()){ in connectToWebsite()
142 urlConnection.setConnectTimeout(2000); in connectToWebsite()
143 urlConnection.setReadTimeout(2000); in connectToWebsite()
144 urlConnection.getResponseCode(); in connectToWebsite()
/cts/hostsidetests/incident/apps/netstatsapp/src/com/android/server/cts/netstats/
DNetstatsDeviceTest.java57 final HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection(); in makeNetworkRequest() local
60 final int status = urlConnection.getResponseCode(); in makeNetworkRequest()
66 urlConnection.disconnect(); in makeNetworkRequest()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNetworkLoggingTest.java326 HttpURLConnection urlConnection = null; in connectToWebsite() local
329 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
330 urlConnection.setConnectTimeout(2000); in connectToWebsite()
331 urlConnection.setReadTimeout(2000); in connectToWebsite()
332 urlConnection.getResponseCode(); in connectToWebsite()
336 if (urlConnection != null) { in connectToWebsite()
337 urlConnection.disconnect(); in connectToWebsite()