Home
last modified time | relevance | path

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

/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java177 HttpURLConnection urlc = null; in exerciseRemoteHost() local
182 urlc = (HttpURLConnection) network.openConnection(url); in exerciseRemoteHost()
183 urlc.setConnectTimeout(TIMEOUT_MILLIS); in exerciseRemoteHost()
184 urlc.setUseCaches(false); in exerciseRemoteHost()
187 urlc.setRequestProperty("Accept-Encoding", "identity"); in exerciseRemoteHost()
188 urlc.connect(); in exerciseRemoteHost()
189 boolean ping = urlc.getResponseCode() == 200; in exerciseRemoteHost()
192 (InputStream) urlc.getContent()); in exerciseRemoteHost()
208 if (urlc != null) { in exerciseRemoteHost()
209 urlc.disconnect(); in exerciseRemoteHost()