/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcp/ |
D | AvrcpBipObexServerTest.java | 196 int responseCode = mAvrcpBipObexServer.onConnect(mRequest, mReply); in testConnectWithValidUuidHeader() local 198 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_OK); in testConnectWithValidUuidHeader() 207 int responseCode = mAvrcpBipObexServer.onConnect(mRequest, mReply); in testConnectWithInvalidUuidHeader() local 209 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_NOT_ACCEPTABLE); in testConnectWithInvalidUuidHeader() 236 int responseCode = mAvrcpBipObexServer.onGet(op); in testOnGetNoHeaders() local 237 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_BAD_REQUEST); in testOnGetNoHeaders() 247 int responseCode = mAvrcpBipObexServer.onGet(op); in testOnGetBadType() local 248 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_BAD_REQUEST); in testOnGetBadType() 258 int responseCode = mAvrcpBipObexServer.onGet(op); in testOnGetNoType() local 259 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_BAD_REQUEST); in testOnGetNoType() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexClientSession.java | 381 int responseCode = -1; in sendFile() local 484 responseCode = putOperation.getResponseCode(); in sendFile() 491 if (responseCode == ResponseCodes.OBEX_HTTP_CONTINUE in sendFile() 492 || responseCode == ResponseCodes.OBEX_HTTP_OK) { in sendFile() 503 Log.i(TAG, "Remote reject, Response code is " + responseCode); in sendFile() 516 responseCode = putOperation.getResponseCode(); in sendFile() 518 Log.v(TAG, "Response code is " + responseCode); in sendFile() 520 if (responseCode != ResponseCodes.OBEX_HTTP_CONTINUE in sendFile() 521 && responseCode != ResponseCodes.OBEX_HTTP_OK) { in sendFile() 547 if (responseCode == ResponseCodes.OBEX_HTTP_FORBIDDEN in sendFile() [all …]
|
/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/ |
D | CaptivePortalProbeResult.java | 113 private static boolean isSuccessCode(int responseCode) { in isSuccessCode() argument 114 return responseCode == SUCCESS_CODE; in isSuccessCode() 120 public static boolean isPortalCode(int responseCode) { in isPortalCode() argument 121 return !isSuccessCode(responseCode) && (responseCode >= 200) && (responseCode <= 399); in isPortalCode()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpBipClient.java | 267 int responseCode = headerSet.getResponseCode(); in connect() local 268 if (responseCode == ResponseCodes.OBEX_HTTP_OK) { in connect() 272 error("Error connecting, code: " + responseCode); in connect() 304 int responseCode = headerSet.getResponseCode(); in refreshObexSession() local 305 if (responseCode == ResponseCodes.OBEX_HTTP_OK) { in refreshObexSession() 309 error("Error reconnecting, code: " + responseCode); in refreshObexSession() 371 int responseCode = request.getResponseCode(); in notifyCaller() local 380 mCallback.onGetImagePropertiesComplete(responseCode, imageHandle, properties); in notifyCaller() 385 mCallback.onGetImageComplete(responseCode, imageHandle, image); in notifyCaller()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | HttpFetcher.java | 73 int responseCode = conn.getResponseCode(); in sendRequestAsByteArray() local 74 LogUtil.i("HttpFetcher.sendRequestAsByteArray", "response code: " + responseCode); in sendRequestAsByteArray() 76 if (responseCode / 100 == 2) { in sendRequestAsByteArray() 93 if (responseCode == 401) { in sendRequestAsByteArray() 133 int responseCode = httpUrlConnection.getResponseCode(); in sendRequestAsInputStream() local 134 LogUtil.i("HttpFetcher.sendRequestAsInputStream", "response code: " + responseCode); in sendRequestAsInputStream() 136 if (responseCode == 401) { in sendRequestAsInputStream() 138 } else if (responseCode / 100 == 2) { // All 2xx codes are successful. in sendRequestAsInputStream()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/ |
D | BlockingHttpClient.java | 80 final int responseCode = mConnection.getResponseCode(); in execute() local 81 if (responseCode != HttpURLConnection.HTTP_OK) { in execute() 82 Log.w(TAG, "Response error: " + responseCode + ", Message: " in execute() 84 if (responseCode == HttpURLConnection.HTTP_UNAUTHORIZED) { in execute() 87 throw new HttpException(responseCode); in execute()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpParser.java | 74 int responseCode = -1; in parse() local 76 if (i == CHAR_SP && responseCode == -1) { in parse() 79 responseCode = Integer.parseInt(value.toString()); in parse() 90 if (responseCode == -1) { in parse() 92 responseCode = Integer.parseInt(value.toString()); in parse() 106 final boolean isResponse = responseCode > -1; in parse() 108 transaction.transactionId(txId).responseCode(responseCode).responseReason( in parse()
|
D | MsrpChunk.java | 35 .responseCode(0) in newBuilder() 47 public abstract int responseCode(); in responseCode() method in MsrpChunk 123 public abstract Builder responseCode(int continuation); in responseCode() method in MsrpChunk.Builder
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
D | ImapStore.java | 137 private final String responseCode; field in ImapStore.ImapException 144 String responseCode) { in ImapException() argument 149 this.responseCode = responseCode; in ImapException() 165 return responseCode; in getResponseCode()
|
D | ImapConnection.java | 394 final String responseCode = response.getResponseCodeOrEmpty().getString(); in getCommandResponses() local 396 throw new ImapException(toString, status, statusMessage, alert, responseCode); in getCommandResponses()
|
D | ImapFolder.java | 728 final ImapString responseCode = response.getResponseCodeOrEmpty(); in doSelect() local 729 if (responseCode.is(ImapConstants.READ_ONLY)) { in doSelect() 731 } else if (responseCode.is(ImapConstants.READ_WRITE)) { in doSelect()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMnsObexClient.java | 438 int responseCode = -1; in sendEventHandler() local 445 return responseCode; in sendEventHandler() 530 responseCode = putOperation.getResponseCode(); in sendEventHandler() 531 if (responseCode != -1) { in sendEventHandler() 533 Log.v(TAG, "Put response code " + responseCode); in sendEventHandler() 535 if (responseCode != ResponseCodes.OBEX_HTTP_OK) { in sendEventHandler() 536 Log.i(TAG, "Response error code is " + responseCode); in sendEventHandler() 548 return responseCode; in sendEventHandler()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | Http.java | 91 int responseCode = e.getResponseCode(); in getOrPost() 92 if (responseCode == HttpURLConnection.HTTP_UNAVAILABLE) { in getOrPost() 97 } else if (responseCode != HttpURLConnection.HTTP_GATEWAY_TIMEOUT) { in getOrPost() 151 int responseCode = connection.getResponseCode(); in checkResponseCode() local 152 if (responseCode == HttpURLConnection.HTTP_OK) return; in checkResponseCode() 161 throw new HttpError(responseCode, responseMessage, responseHeaders, responseBody); in checkResponseCode() 163 throw new HttpError(responseCode, responseMessage, responseHeaders); in checkResponseCode()
|
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/ |
D | HttpResponse.kt | 24 val responseCode: Int, constant in com.android.server.net.integrationtests.HttpResponse 31 responseCode = 200, 38 writeInt(responseCode) in writeToParcel()
|
D | TestNetworkStackService.kt | 78 doReturn(response.responseCode).`when`(connection).responseCode in openConnection()
|
D | ConnectivityServiceIntegrationTest.kt | 235 nsInstrumentation.addHttpResponse(HttpResponse(httpProbeUrl, responseCode = 204)) in <lambda>() 236 nsInstrumentation.addHttpResponse(HttpResponse(httpsProbeUrl, responseCode = 204)) in <lambda>() 273 nsInstrumentation.addHttpResponse(HttpResponse(httpsProbeUrl, responseCode = 204)) in <lambda>()
|
/packages/services/Telephony/src/com/android/phone/callcomposer/ |
D | CallComposerPictureTransfer.java | 280 int responseCode; in obtainAuthenticateHeader() 282 responseCode = connection.getResponseCode(); in obtainAuthenticateHeader() 287 if (responseCode == 204) { in obtainAuthenticateHeader() 289 } else if (responseCode == 403) { in obtainAuthenticateHeader() 291 } else if (responseCode != 401) { in obtainAuthenticateHeader() 293 + responseCode); in obtainAuthenticateHeader()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CarrierXmlParser.java | 357 public HashMap<String, ArrayList<SsResultEntry>> responseCode = field in CarrierXmlParser.SsFeature 365 for (Map.Entry<String, ArrayList<SsResultEntry>> entry : responseCode.entrySet()) { in getResponseCodeString() 412 return entry.getResponseSet(inputResponse, responseCode); in getResponseSet() 515 if (ssFeature.responseCode.containsKey(key)) { in readCommandResultEntry() 516 ssFeature.responseCode.get(key).add(entry); in readCommandResultEntry() 520 ssFeature.responseCode.put(key, arrayList); in readCommandResultEntry()
|
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | DownloadService.java | 296 final int responseCode = httpConn.getResponseCode(); in processDownload() local 297 if (responseCode < 200 || responseCode > 299) { in processDownload() 298 throw new IOException("Download error: response code " + responseCode); in processDownload()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsHttpClient.java | 185 final int responseCode = connection.getResponseCode(); in execute() local 187 Log.d(MmsService.TAG, "HTTP: " + responseCode + " " + responseMessage); in execute() 191 if (responseCode / 100 != 2) { in execute() 192 throw new MmsHttpException(responseCode, responseMessage); in execute()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsHttpClient.java | 209 final int responseCode = connection.getResponseCode(); in execute() local 211 LogUtil.d(requestId, "HTTP: " + responseCode + " " + responseMessage); in execute() 215 if (responseCode / 100 != 2) { in execute() 216 throw new MmsHttpException(responseCode, responseMessage); in execute()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetNativeInterface.java | 240 public boolean atResponseCode(BluetoothDevice device, int responseCode, int errorCode) { in atResponseCode() argument 241 return atResponseCodeNative(responseCode, errorCode, Utils.getByteAddress(device)); in atResponseCode() 483 private native boolean atResponseCodeNative(int responseCode, int errorCode, byte[] address); in atResponseCodeNative() argument
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadThread.java | 446 final int responseCode = conn.getResponseCode(); in executeDownload() local 447 switch (responseCode) { in executeDownload() 471 if (responseCode == HTTP_MOVED_PERM) { in executeDownload() 496 responseCode, conn.getResponseMessage()); in executeDownload()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/service/chat/ |
D | SimpleChatSession.java | 144 if (result.responseCode() != 200) { in sendMessage() 146 + " code=" + result.responseCode()); in sendMessage() 148 new ChatServiceException("Msrp response code: " + result.responseCode(), in sendMessage()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DSULoader.java | 97 int responseCode = connection.getResponseCode(); in readAll() local 99 throw new IOException("HTTP error code: " + responseCode); in readAll()
|