Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/encryptionkey/
DEncryptionKeyFetcherTest.java85 @Mock private HttpsURLConnection mURLConnection; field in EncryptionKeyFetcherTest
199 mSpyFetcher, mURLConnection, buildEncryptionKeyJSONResponse().toString()); in testFirstTimeFetchEncryptionKeysSucceed()
206 verify(mURLConnection).setRequestMethod("GET"); in testFirstTimeFetchEncryptionKeysSucceed()
223 mSpyFetcher, mURLConnection, buildEncryptionKeyJSONResponse().toString()); in testFirstTimeFetchEncryptionKeysNullEncryptionKeyUrl()
245 mSpyFetcher, mURLConnection, buildEncryptionKeyJSONResponse().toString()); in testFirstTimeFetchEncryptionKeysEmptyEncryptionKeyUrl()
268 mSpyFetcher, mURLConnection, buildEncryptionKeyJSONResponse().toString()); in testFirstTimeFetchEncryptionKeysSingleWhiteSpaceEncryptionKeyUrl()
311 doReturn(mURLConnection) in testFirstTimeFetchEncryptionKeysServerTimeOut()
314 doThrow(new IOException("Server timeout")).when(mURLConnection).getResponseCode(); in testFirstTimeFetchEncryptionKeysServerTimeOut()
336 doReturn(mURLConnection) in testFirstTimeFetchEncryptionKeysInvalidJSONResponse()
339 when(mURLConnection.getResponseCode()).thenReturn(200); in testFirstTimeFetchEncryptionKeysInvalidJSONResponse()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClient.java891 @Nullable final HttpsURLConnection mURLConnection; field in AdServicesHttpsClient.CloseableConnectionWrapper
894 mURLConnection = urlConnection; in CloseableConnectionWrapper()
899 maybeClose(mURLConnection.getInputStream()); in close()
900 maybeClose(mURLConnection.getErrorStream()); in close()
901 maybeDisconnect(mURLConnection); in close()