Home
last modified time | relevance | path

Searched refs:responseCode (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcp/
DAvrcpBipObexServerTest.java190 int responseCode = mAvrcpBipObexServer.onConnect(mRequest, mReply); in testConnectWithValidUuidHeader() local
192 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_OK); in testConnectWithValidUuidHeader()
201 int responseCode = mAvrcpBipObexServer.onConnect(mRequest, mReply); in testConnectWithInvalidUuidHeader() local
203 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_NOT_ACCEPTABLE); in testConnectWithInvalidUuidHeader()
230 int responseCode = mAvrcpBipObexServer.onGet(op); in testOnGetNoHeaders() local
231 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_BAD_REQUEST); in testOnGetNoHeaders()
241 int responseCode = mAvrcpBipObexServer.onGet(op); in testOnGetBadType() local
242 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_BAD_REQUEST); in testOnGetBadType()
252 int responseCode = mAvrcpBipObexServer.onGet(op); in testOnGetNoType() local
253 assertThat(responseCode).isEqualTo(ResponseCodes.OBEX_HTTP_BAD_REQUEST); in testOnGetNoType()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java380 int responseCode = -1; in sendFile() local
483 responseCode = putOperation.getResponseCode(); in sendFile()
490 if (responseCode == ResponseCodes.OBEX_HTTP_CONTINUE in sendFile()
491 || responseCode == ResponseCodes.OBEX_HTTP_OK) { in sendFile()
502 Log.i(TAG, "Remote reject, Response code is " + responseCode); in sendFile()
515 responseCode = putOperation.getResponseCode(); in sendFile()
517 Log.v(TAG, "Response code is " + responseCode); in sendFile()
519 if (responseCode != ResponseCodes.OBEX_HTTP_CONTINUE in sendFile()
520 && responseCode != ResponseCodes.OBEX_HTTP_OK) { in sendFile()
546 if (responseCode == ResponseCodes.OBEX_HTTP_FORBIDDEN in sendFile()
[all …]
/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/
DCaptivePortalProbeResult.java113 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/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClient.java268 int responseCode = headerSet.getResponseCode(); in connect() local
269 if (responseCode == ResponseCodes.OBEX_HTTP_OK) { in connect()
273 error("Error connecting, code: " + responseCode); in connect()
305 int responseCode = headerSet.getResponseCode(); in refreshObexSession() local
306 if (responseCode == ResponseCodes.OBEX_HTTP_OK) { in refreshObexSession()
310 error("Error reconnecting, code: " + responseCode); in refreshObexSession()
372 int responseCode = request.getResponseCode(); in notifyCaller() local
381 mCallback.onGetImagePropertiesComplete(responseCode, imageHandle, properties); in notifyCaller()
386 mCallback.onGetImageComplete(responseCode, imageHandle, image); in notifyCaller()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
DBlockingHttpClient.java80 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/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java73 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/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DMsrpParser.java74 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()
DMsrpChunk.java35 .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
DMsrpSerializer.java60 (chunk.responseCode() + " " + chunk.responseReason()).getBytes(UTF_8)); in writeRequestLine()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapStore.java137 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()
DImapConnection.java394 final String responseCode = response.getResponseCodeOrEmpty().getString(); in getCommandResponses() local
396 throw new ImapException(toString, status, statusMessage, alert, responseCode); in getCommandResponses()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java437 int responseCode = -1; in sendEventHandler() local
444 return responseCode; in sendEventHandler()
529 responseCode = putOperation.getResponseCode(); in sendEventHandler()
530 if (responseCode != -1) { in sendEventHandler()
532 Log.v(TAG, "Put response code " + responseCode); in sendEventHandler()
534 if (responseCode != ResponseCodes.OBEX_HTTP_OK) { in sendEventHandler()
535 Log.i(TAG, "Response error code is " + responseCode); in sendEventHandler()
547 return responseCode; in sendEventHandler()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DHttp.java91 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/
DHttpResponse.kt24 val responseCode: Int, constant in com.android.server.net.integrationtests.HttpResponse
31 responseCode = 200,
38 writeInt(responseCode) in writeToParcel()
DConnectivityServiceIntegrationTest.kt235 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/
DCallComposerPictureTransfer.java280 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/
DCarrierXmlParser.java357 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/apps/Messaging/src/android/support/v7/mms/
DMmsHttpClient.java185 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/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java313 final int responseCode = httpConn.getResponseCode(); in processDownload() local
314 if (responseCode < 200 || responseCode > 299) { in processDownload()
315 throw new IOException("Download error: response code " + responseCode); in processDownload()
/packages/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java211 final int responseCode = connection.getResponseCode(); in execute() local
213 LogUtil.d(requestId, "HTTP: " + responseCode + " " + responseMessage); in execute()
217 if (responseCode / 100 != 2) { in execute()
218 throw new MmsHttpException(responseCode, responseMessage); in execute()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetNativeInterface.java250 public boolean atResponseCode(BluetoothDevice device, int responseCode, int errorCode) { in atResponseCode() argument
251 return atResponseCodeNative(responseCode, errorCode, getByteAddress(device)); in atResponseCode()
493 private native boolean atResponseCodeNative(int responseCode, int errorCode, byte[] address); in atResponseCodeNative() argument
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java446 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/
DSimpleChatSession.java144 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/
DDSULoader.java97 int responseCode = connection.getResponseCode(); in readAll() local
99 throw new IOException("HTTP error code: " + responseCode); in readAll()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DBluetoothPbapRequest.java127 protected void checkResponseCode(int responseCode) throws IOException { in checkResponseCode() argument

12