Searched refs:httpUrlConnection (Results 1 – 5 of 5) sorted by relevance
128 HttpURLConnection httpUrlConnection = null; in sendRequestAsInputStream() local131 httpUrlConnection = (HttpURLConnection) url.openConnection(); in sendRequestAsInputStream()132 setMethodAndHeaders(httpUrlConnection, requestMethod, headers); in sendRequestAsInputStream()133 int responseCode = httpUrlConnection.getResponseCode(); in sendRequestAsInputStream()139 InputStream is = httpUrlConnection.getInputStream(); in sendRequestAsInputStream()141 is = new HttpInputStreamWrapper(httpUrlConnection, is); in sendRequestAsInputStream()149 if (httpUrlConnection != null && !isSuccess) { in sendRequestAsInputStream()150 httpUrlConnection.disconnect(); in sendRequestAsInputStream()268 final HttpURLConnection httpUrlConnection; field in HttpFetcher.HttpInputStreamWrapper273 httpUrlConnection = conn; in HttpInputStreamWrapper()[all …]
40 HttpURLConnection httpUrlConnection = Mockito.mock(HttpURLConnection.class); in testSendDebugReport() local43 Mockito.when(httpUrlConnection.getOutputStream()).thenReturn(outputStream); in testSendDebugReport()44 Mockito.when(httpUrlConnection.getResponseCode()).thenReturn(200); in testSendDebugReport()52 Mockito.doReturn(httpUrlConnection) in testSendDebugReport()
75 HttpURLConnection httpUrlConnection = Mockito.mock(HttpURLConnection.class); in testSendEventReport() local78 Mockito.when(httpUrlConnection.getOutputStream()).thenReturn(outputStream); in testSendEventReport()79 Mockito.when(httpUrlConnection.getResponseCode()).thenReturn(200); in testSendEventReport()87 Mockito.doReturn(httpUrlConnection).when(spyEventReportSender) in testSendEventReport()
84 HttpURLConnection httpUrlConnection = Mockito.mock(HttpURLConnection.class); in testSendAggregateReport() local87 Mockito.when(httpUrlConnection.getOutputStream()).thenReturn(outputStream); in testSendAggregateReport()88 Mockito.when(httpUrlConnection.getResponseCode()).thenReturn(200); in testSendAggregateReport()98 Mockito.doReturn(httpUrlConnection).when(spyAggregateReportSender) in testSendAggregateReport()
804 HttpURLConnection httpUrlConnection = (HttpURLConnection) urlConnection; in maybeDisconnect() local805 httpUrlConnection.disconnect(); in maybeDisconnect()