Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java128 HttpURLConnection httpUrlConnection = null; in sendRequestAsInputStream() local
131 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.HttpInputStreamWrapper
273 httpUrlConnection = conn; in HttpInputStreamWrapper()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DDebugReportSenderTest.java40 HttpURLConnection httpUrlConnection = Mockito.mock(HttpURLConnection.class); in testSendDebugReport() local
43 Mockito.when(httpUrlConnection.getOutputStream()).thenReturn(outputStream); in testSendDebugReport()
44 Mockito.when(httpUrlConnection.getResponseCode()).thenReturn(200); in testSendDebugReport()
52 Mockito.doReturn(httpUrlConnection) in testSendDebugReport()
DEventReportSenderTest.java75 HttpURLConnection httpUrlConnection = Mockito.mock(HttpURLConnection.class); in testSendEventReport() local
78 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()
DAggregateReportSenderTest.java84 HttpURLConnection httpUrlConnection = Mockito.mock(HttpURLConnection.class); in testSendAggregateReport() local
87 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()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClient.java804 HttpURLConnection httpUrlConnection = (HttpURLConnection) urlConnection; in maybeDisconnect() local
805 httpUrlConnection.disconnect(); in maybeDisconnect()