Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DWorkProfileNetworkLoggingDelegateTest.java161 HttpURLConnection urlConnection = null; in connectToWebsite() local
164 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
165 urlConnection.setConnectTimeout(2000); in connectToWebsite()
166 urlConnection.setReadTimeout(2000); in connectToWebsite()
167 urlConnection.getResponseCode(); in connectToWebsite()
171 if (urlConnection != null) { in connectToWebsite()
172 urlConnection.disconnect(); in connectToWebsite()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DStreamingVideoActivity.java231 HttpURLConnection urlConnection = null;
234 urlConnection = (HttpURLConnection) url.openConnection();
235 if (urlConnection.getResponseCode() != 200) {
237 + urlConnection.getResponseCode());
240 new InputStreamReader(urlConnection.getInputStream()));
246 if (urlConnection != null) {
247 urlConnection.disconnect();
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DNetworkLoggingTest.java195 HttpURLConnection urlConnection = null; in connectToWebsite() local
198 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
199 urlConnection.setConnectTimeout(2000); in connectToWebsite()
200 urlConnection.setReadTimeout(2000); in connectToWebsite()
201 urlConnection.getResponseCode(); in connectToWebsite()
205 if (urlConnection != null) { in connectToWebsite()
206 urlConnection.disconnect(); in connectToWebsite()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNetworkLoggingTest.java362 HttpURLConnection urlConnection = null; in connectToWebsite() local
369 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
370 urlConnection.setConnectTimeout(CONNECTION_TIMEOUT_MS); in connectToWebsite()
371 urlConnection.setReadTimeout(CONNECTION_TIMEOUT_MS); in connectToWebsite()
372 final int responseCode = urlConnection.getResponseCode(); in connectToWebsite()
379 if (urlConnection != null) { in connectToWebsite()
380 urlConnection.disconnect(); in connectToWebsite()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DNetworkLoggingTest.kt158 val urlConnection = url.openConnection() as HttpURLConnection in <lambda>() constant
160 urlConnection.connectTimeout = 2000 in <lambda>()
161 urlConnection.readTimeout = 2000 in <lambda>()
162 urlConnection.responseCode in <lambda>()
166 urlConnection.disconnect() in <lambda>()