Home
last modified time | relevance | path

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

12

/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java1138 verify(mFallbackConnection, times(1)).getResponseCode(); in testIsCaptivePortal_OtherFallbackProbeIsPortal()
1139 verify(mOtherFallbackConnection, never()).getResponseCode(); in testIsCaptivePortal_OtherFallbackProbeIsPortal()
1147 .getResponseCode(); in testIsCaptivePortal_OtherFallbackProbeIsPortal()
1158 verify(mFallbackConnection, times(1)).getResponseCode();
1159 verify(mOtherFallbackConnection, never()).getResponseCode();
1171 verify(mOtherFallbackConnection, times(1)).getResponseCode();
1172 verify(mFallbackConnection, never()).getResponseCode();
1191 verify(mCapportApiConnection).getResponseCode();
1193 verify(mHttpConnection, times(1)).getResponseCode();
1213 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/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/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/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/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/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/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/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/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()
DPbapClientConnectionHandler.java353 (connectionResponse.getResponseCode() == ResponseCodes.OBEX_HTTP_OK); in connectObexSession()
/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/
DConnectivityTestActivity.java89 int respCode = urlConnection.getResponseCode(); in httpRequest()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfileModel.java174 .getResponseCode(); in checkPassword()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapStore.java164 public String getResponseCode() { in getResponseCode() method in ImapStore.ImapException
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainTestActivity.java212 if (connection.getResponseCode() != 200) { in makeHttpsRequest()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiStatusTest.java368 if (urlConnection.getResponseCode() == 200) { in httpClientTest()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiStatusTest.java368 if (urlConnection.getResponseCode() == 200) { in httpClientTest()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java530 responseCode = putOperation.getResponseCode(); in sendEventHandler()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java296 final int responseCode = httpConn.getResponseCode(); in processDownload()

12