Home
last modified time | relevance | path

Searched refs:getResponseCode (Results 1 – 25 of 39) sorted by relevance

12

/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java1195 verify(mFallbackConnection, times(1)).getResponseCode(); in testIsCaptivePortal_OtherFallbackProbeIsPortal()
1196 verify(mOtherFallbackConnection, never()).getResponseCode(); in testIsCaptivePortal_OtherFallbackProbeIsPortal()
1204 .getResponseCode(); in testIsCaptivePortal_OtherFallbackProbeIsPortal()
1215 verify(mFallbackConnection, times(1)).getResponseCode();
1216 verify(mOtherFallbackConnection, never()).getResponseCode();
1228 verify(mOtherFallbackConnection, times(1)).getResponseCode();
1229 verify(mFallbackConnection, never()).getResponseCode();
1248 verify(mCapportApiConnection).getResponseCode();
1250 verify(mHttpConnection, times(1)).getResponseCode();
1270 verify(mHttpConnection, never()).getResponseCode();
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
DBlockingHttpClientTests.java64 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/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DServerInterface.java73 if (con.getResponseCode() != HttpURLConnection.HTTP_OK) { in requestSignedCertificates()
76 + con.getResponseCode() + "\nRepeated failure count: " + failures); in requestSignedCertificates()
124 if (con.getResponseCode() != HttpURLConnection.HTTP_OK) { in fetchGeek()
127 + con.getResponseCode() + "\nRepeated failure count: " + failures); in fetchGeek()
/packages/services/Telephony/src/com/android/phone/callcomposer/
DCallComposerPictureTransfer.java162 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/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipRequest.java85 mResponseCode = operation.getResponseCode(); in executeGet()
109 mResponseCode = operation.getResponseCode(); in executePut()
132 public final int getResponseCode() { in getResponseCode() method in BipRequest
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClient.java267 int responseCode = headerSet.getResponseCode(); in connect()
304 int responseCode = headerSet.getResponseCode(); in refreshObexSession()
371 int responseCode = request.getResponseCode(); in notifyCaller()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequest.java111 mResponseCode = op.getResponseCode(); in executeGet()
134 mResponseCode = op.getResponseCode(); in executePut()
DRequestSetPath.java64 mResponseCode = hs.getResponseCode(); in execute()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java77 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/
DNetworkUriImageRequest.java62 if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { in isGif()
94 if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { in loadBitmapInternal()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DHttp.java91 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/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.java151 if (c.getResponseCode() != HttpURLConnection.HTTP_OK) { in getResponseFrom()
152 throw new HttpException(c.getResponseCode(), c.getResponseMessage()); in getResponseFrom()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMasClient.java136 if (DBG) Log.d(TAG, "Connection results" + headerset.getResponseCode()); in connect()
138 if (headerset.getResponseCode() == ResponseCodes.OBEX_HTTP_OK) { in connect()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnectionTest.java125 when(mHttpsURLConnection.getResponseCode()).thenReturn(testResponseCode); in verifyGetResponseCode()
127 assertEquals(testResponseCode, mHttpsServiceConnection.getResponseCode()); in verifyGetResponseCode()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DWifiDownloadReceiver.java111 if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) { in doInBackground()
112 return "Server returned HTTP " + connection.getResponseCode() in doInBackground()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java73 int responseCode = conn.getResponseCode(); in sendRequestAsByteArray()
133 int responseCode = httpUrlConnection.getResponseCode(); in sendRequestAsInputStream()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java484 responseCode = putOperation.getResponseCode(); in sendFile()
516 responseCode = putOperation.getResponseCode(); in sendFile()
587 responseCode = putOperation.getResponseCode(); in sendFile()
/packages/apps/TV/src/com/android/tv/util/
DNetworkUtils.java47 if (connection.getResponseCode() == HttpURLConnection.HTTP_NO_CONTENT) { in isNetworkAvailable()
/packages/apps/Settings/src/com/android/settings/development/
DDSULoader.java97 int responseCode = connection.getResponseCode(); in readAll()
98 if (connection.getResponseCode() != HttpsURLConnection.HTTP_OK) { in readAll()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
DBlockingHttpClient.java80 final int responseCode = mConnection.getResponseCode(); in execute()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DBluetoothPbapRequest.java90 mResponseCode = mOp.getResponseCode(); in execute()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/testutils/
DCommonUtils.java76 if (HttpURLConnection.HTTP_OK == connection.getResponseCode()) { in connectToURL()
/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/
DConnectivityTestActivity.java89 int respCode = urlConnection.getResponseCode(); in httpRequest()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapStore.java164 public String getResponseCode() { in getResponseCode() method in ImapStore.ImapException
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java488 if (mServiceConnection.getResponseCode() != HttpURLConnection.HTTP_OK) { in getCert()
490 + " is not OK, but " + mServiceConnection.getResponseCode()); in getCert()

12