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()
DNetworkLoggingDelegateTest.java119 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite() local
120 try (AutoCloseable ac = () -> urlConnection.disconnect()){ in connectToWebsite()
121 urlConnection.setConnectTimeout(2000); in connectToWebsite()
122 urlConnection.setReadTimeout(2000); in connectToWebsite()
123 urlConnection.getResponseCode(); in connectToWebsite()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DStreamingVideoActivity.java244 HttpURLConnection urlConnection = null;
247 urlConnection = (HttpURLConnection) url.openConnection();
248 if (urlConnection.getResponseCode() != 200) {
250 + urlConnection.getResponseCode());
253 new InputStreamReader(urlConnection.getInputStream()));
259 if (urlConnection != null) {
260 urlConnection.disconnect();
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DNetworkLoggingTest.java196 HttpURLConnection urlConnection = null; in connectToWebsite() local
199 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()
200 urlConnection.setConnectTimeout(2000); in connectToWebsite()
201 urlConnection.setReadTimeout(2000); in connectToWebsite()
202 urlConnection.getResponseCode(); in connectToWebsite()
206 if (urlConnection != null) { in connectToWebsite()
207 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()