/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | AsyncTriggerFetcherTest.java | 303 when(mUrlConnection.getResponseCode()).thenReturn(200); in testBasicTriggerRequest() 377 when(mUrlConnection.getResponseCode()).thenReturn(200); in testBasicTriggerRequest_withAggregateDeduplicationKey() 440 when(mUrlConnection.getResponseCode()).thenReturn(200); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails() 488 when(mUrlConnection.getResponseCode()).thenReturn(200); in triggerRequest_aggregateDeduplicationKey_dedupKeyNegative_fails() 536 when(mUrlConnection.getResponseCode()).thenReturn(200); in triggerRequest_aggregateDeduplicationKey_dedupKeyTooLarge_fails() 584 when(mUrlConnection.getResponseCode()).thenReturn(200); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAnInt_fails() 631 when(mUrlConnection.getResponseCode()).thenReturn(200); in triggerRequest_aggregateDeduplicationKey_dedupKeyMissing_succeeds() 665 when(mUrlConnection.getResponseCode()).thenReturn(200); in testRedirectType_bothRedirectHeaderTypes_choosesListType() 709 when(mUrlConnection.getResponseCode()).thenReturn(302); in testRedirectType_locationRedirectHeaderType_choosesLocationType() 741 when(mUrlConnection.getResponseCode()).thenReturn(302); in testRedirectType_locationRedirectType_acceptsListType() [all …]
|
D | AsyncSourceFetcherTest.java | 263 when(mUrlConnection.getResponseCode()).thenReturn(200); in testBasicSourceRequest() 353 when(mUrlConnection.getResponseCode()).thenReturn(200); in testBasicSourceRequest_skipSourceWhenNotEnrolled() 405 when(mUrlConnection.getResponseCode()).thenReturn(200); in fetchSource_multipleWebDestinations_success() 450 when(mUrlConnection.getResponseCode()).thenReturn(200); in fetchSource_emptyWebDestinations_success() 488 when(mUrlConnection.getResponseCode()).thenReturn(200); in fetchSource_duplicateWebDestinationsInList_removesDuplicates() 536 when(mUrlConnection.getResponseCode()).thenReturn(200); in fetchSource_invalidWebDestinationInList_fails() 584 when(mUrlConnection.getResponseCode()).thenReturn(200); in fetchSource_tooManyWebDestinationInList_fails() 615 when(mUrlConnection.getResponseCode()).thenReturn(200); in fetchSource_noDestinations_fail() 644 when(mUrlConnection.getResponseCode()).thenReturn(200); in fetchSource_noAppDestination_emptyWebDestination_fail() 674 when(mUrlConnection.getResponseCode()).thenReturn(200); in testSourceRequestWithPostInstallAttributes() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
D | BlockingHttpClientTests.java | 64 when(mMockHttpConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_BAD_GATEWAY); in testError_badGateway() 79 when(mMockHttpConnection.getResponseCode()).thenReturn( in testError_clientTimeout() 96 when(mMockHttpConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_FORBIDDEN); in testError_forbiddenWithRequest() 115 when(mMockHttpConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_OK); in testSuccess_emptyRequest() 132 when(mMockHttpConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_OK); in testSuccess()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/ |
D | HttpClientTest.java | 88 when(mMockHttpURLConnection.getResponseCode()).thenReturn(200); in testPerformGetRequestSuccess() 106 when(mMockHttpURLConnection.getResponseCode()).thenReturn(503); in testPerformGetRequestFails() 124 when(mMockHttpURLConnection.getResponseCode()).thenReturn(503); in testPerformGetRequestFailsWithRetry() 144 when(mMockHttpURLConnection.getResponseCode()).thenReturn(503); in testPerformGetRequestSuccessWithRetry() 151 when(mockSuccessfulHttpURLConnection.getResponseCode()).thenReturn(200); in testPerformGetRequestSuccessWithRetry() 187 when(mMockHttpURLConnection.getResponseCode()).thenReturn(200); in testPerformPostRequestSuccess()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/ |
D | DevContextAccessResolverTest.java | 115 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_register_localhost_devDisabled_returnsFalse() 179 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerWebSource_allLocalhost_devDisabled_returnsFalse() 195 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerWebSource_someLocalhost_devDisabled_returnsFalse() 263 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerWebTrigger_allLocalhost_devDisabled_returnsFalse() 279 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerWebTrigger_someLocalhost_devDisabled_returnsFalse() 339 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerSources_allLocalhost_devDisabled_returnsFalse() 353 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerSources_someLocalhost_devDisabled_returnsFalse()
|
D | ForegroundEnforcementAccessResolverTest.java | 154 assertEquals(STATUS_BACKGROUND_CALLER, result.getResponseCode()); in testIsAllowed_isNotForeground_returnFalse() 175 assertEquals(STATUS_BACKGROUND_CALLER, result.getResponseCode()); in testIsAllowed_CatchesAllExceptions_returnsFalse()
|
D | AppPackageAccessResolverTest.java | 211 accessInfo.getResponseCode()); in getResponseCode_notInAllowList() 225 accessInfo.getResponseCode()); in getResponseCode_isBlocklisted()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 1188 verify(mOtherHttpsConnection1, never()).getResponseCode(); in testConfigurationChange_BeforeNMConnected() 1215 verify(mOtherHttpsConnection1, times(1)).getResponseCode(); in testIsCaptivePortal_ConfigurationChange_RenewUrls() 1216 verify(mOtherHttpConnection1, times(1)).getResponseCode(); in testIsCaptivePortal_ConfigurationChange_RenewUrls() 1476 verify(mFallbackConnection, times(1)).getResponseCode(); in testIsCaptivePortal_OtherFallbackProbeIsPortal() 1477 verify(mOtherFallbackConnection, never()).getResponseCode(); in testIsCaptivePortal_OtherFallbackProbeIsPortal() 1485 .getResponseCode(); in testIsCaptivePortal_OtherFallbackProbeIsPortal() 1496 verify(mFallbackConnection, times(1)).getResponseCode(); 1497 verify(mOtherFallbackConnection, never()).getResponseCode(); 1509 verify(mOtherFallbackConnection, times(1)).getResponseCode(); 1510 verify(mFallbackConnection, never()).getResponseCode(); [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipRequest.java | 82 mResponseCode = operation.getResponseCode(); in executeGet() 104 mResponseCode = operation.getResponseCode(); in executePut() 127 public final int getResponseCode() { in getResponseCode() method in BipRequest
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/ |
D | AggregateEncryptionKeyFetcherTest.java | 166 doThrow(new IOException("timeout")).when(mUrlConnection).getResponseCode(); in testServerTimeout() 190 when(mUrlConnection.getResponseCode()).thenReturn(200); in testInvalidResponseBodyJson() 216 when(mUrlConnection.getResponseCode()).thenReturn(200); in testMissingCacheControlHeader() 235 when(mUrlConnection.getResponseCode()).thenReturn(200); in testMissingAgeHeader() 267 when(mUrlConnection.getResponseCode()).thenReturn(200); in testBrokenAgeHeader() 298 when(mUrlConnection.getResponseCode()).thenReturn(200); in testCachedAgeGreaterThanMaxAge()
|
/packages/services/Telephony/src/com/android/phone/callcomposer/ |
D | CallComposerPictureTransfer.java | 162 if (conn.getResponseCode() != 200) { in downloadPicture() 175 if (conn.getResponseCode() == 200) { in downloadPicture() 282 responseCode = connection.getResponseCode(); in obtainAuthenticateHeader() 309 if (conn.getResponseCode() != 200) { in downloadImageFromConnection() 310 Log.w(TAG, "Got response code " + conn.getResponseCode() + " when trying" in downloadImageFromConnection() 312 if (conn.getResponseCode() == 401) { in downloadImageFromConnection() 442 int response = connection.getResponseCode();
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/ |
D | WidevineProvisioner.java | 197 if (con.getResponseCode() != 200) { in sendNetworkRequest() 198 Log.e(TAG, "Server request for WV certs failed. Error: " + con.getResponseCode()); in sendNetworkRequest() 199 throw new IOException("Failed to request WV certs. Error: " + con.getResponseCode()); in sendNetworkRequest()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/ |
D | Request.java | 115 mResponseCode = mOp.getResponseCode(); in executeGet() 138 mResponseCode = op.getResponseCode(); in executePut()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/ |
D | HttpsServiceConnection.java | 77 public int getResponseCode() throws IOException { in getResponseCode() method in HttpsServiceConnection 78 return mConnection.getResponseCode(); in getResponseCode()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | NetworkUriImageRequest.java | 62 if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { in isGif() 94 if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { in loadBitmapInternal()
|
/packages/modules/RemoteKeyProvisioning/util/src/com/android/rkpdapp/ |
D | RkpRegistrationCheck.java | 256 Log.i(TAG, "HTTP status: " + con.getResponseCode()); in httpPost() 258 if (con.getResponseCode() == 444) { in httpPost() 262 if (con.getResponseCode() != HttpURLConnection.HTTP_OK) { in httpPost() 264 + ", HTTP response code: " + con.getResponseCode()); in httpPost()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpBipClient.java | 260 int responseCode = headerSet.getResponseCode(); in connect() 295 int responseCode = headerSet.getResponseCode(); in refreshObexSession() 365 int responseCode = request.getResponseCode(); in notifyCaller()
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/ |
D | ServerInterface.java | 481 metrics.setHttpStatusError(con.getResponseCode()); in requestData() 482 if (con.getResponseCode() != HttpURLConnection.HTTP_OK) { in requestData() 485 + con.getResponseCode() + "\nRepeated failure count: " + failures); in requestData() 487 throw RkpdException.createFromHttpError(con.getResponseCode()); in requestData()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | JavaNetHttpHelper.kt | 133 if (c.getResponseCode() != HttpURLConnection.HTTP_OK) { in getResponseFrom() 134 throw HttpHelper.HttpException(c.getResponseCode(), c.getResponseMessage()) in getResponseFrom()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | Http.java | 91 int responseCode = e.getResponseCode(); in getOrPost() 151 int responseCode = connection.getResponseCode(); in checkResponseCode() 306 public int getResponseCode() { in getResponseCode() method in Http.HttpError
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | WifiDownloadReceiver.java | 111 if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) { in doInBackground() 112 return "Server returned HTTP " + connection.getResponseCode() in doInBackground()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/ |
D | HttpsServiceConnectionTest.java | 125 when(mHttpsURLConnection.getResponseCode()).thenReturn(testResponseCode); in verifyGetResponseCode() 127 assertEquals(testResponseCode, mHttpsServiceConnection.getResponseCode()); in verifyGetResponseCode()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/encryptionkey/ |
D | EncryptionKeyFetcherTest.java | 185 when(urlConnection.getResponseCode()).thenReturn(200); in prepareMockFetchEncryptionKeyResult() 192 when(urlConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_NOT_MODIFIED); in prepareMockRefetchEncryptionKeyNoChange() 314 doThrow(new IOException("Server timeout")).when(mURLConnection).getResponseCode(); in testFirstTimeFetchEncryptionKeysServerTimeOut() 339 when(mURLConnection.getResponseCode()).thenReturn(200); in testFirstTimeFetchEncryptionKeysInvalidJSONResponse()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/ |
D | MasClient.java | 136 Log.d(TAG, "Connection results" + headerset.getResponseCode()); in connect() 138 if (headerset.getResponseCode() == ResponseCodes.OBEX_HTTP_OK) { in connect()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/ |
D | AccessInfo.java | 38 public int getResponseCode() { in getResponseCode() method in AccessInfo
|