Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java381 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 …]
DBluetoothOppObexServerSession.java622 resp.responseCode = ResponseCodes.OBEX_HTTP_OK; in onDisconnect()
/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/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/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java438 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()
DBluetoothMapObexServer.java421 resp.responseCode = ResponseCodes.OBEX_HTTP_OK; in onDisconnect()
/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/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()
DImapFolder.java727 final ImapString responseCode = response.getResponseCodeOrEmpty(); in doSelect() local
728 if (responseCode.is(ImapConstants.READ_ONLY)) { in doSelect()
730 } else if (responseCode.is(ImapConstants.READ_WRITE)) { in doSelect()
/packages/services/Telephony/src/com/android/phone/
DCarrierXmlParser.java356 public HashMap<String, ArrayList<SsResultEntry>> responseCode = field in CarrierXmlParser.SsFeature
364 for (Map.Entry<String, ArrayList<SsResultEntry>> entry : responseCode.entrySet()) { in getResponseCodeString()
411 return entry.getResponseSet(inputResponse, responseCode); in getResponseSet()
514 if (ssFeature.responseCode.containsKey(key)) { in readCommandResultEntry()
515 ssFeature.responseCode.get(key).add(entry); in readCommandResultEntry()
519 ssFeature.responseCode.put(key, arrayList); in readCommandResultEntry()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapConnection.java349 final String responseCode = response.getResponseCodeOrEmpty().getString(); in getCommandResponses() local
353 if (ImapConstants.UNAVAILABLE.equals(responseCode)) { in getCommandResponses()
357 throw new ImapException(toString, status, alert, responseCode); in getCommandResponses()
571 final String responseCode = response.getResponseCodeOrEmpty().getString(); in getOAuthResponse() local
572 if (ImapConstants.UNAVAILABLE.equals(responseCode)) { in getOAuthResponse()
DImapFolder.java295 String responseCode = copyResponse.getStringOrEmpty(0).getString(); in copyMessages() local
296 if (ImapConstants.COPYUID.equals(responseCode)) { in copyMessages()
1243 final ImapString responseCode = response.getResponseCodeOrEmpty(); in doSelect() local
1244 if (responseCode.is(ImapConstants.READ_ONLY)) { in doSelect()
1246 } else if (responseCode.is(ImapConstants.READ_WRITE)) { in doSelect()
DImapStore.java669 String responseCode) { in ImapException() argument
673 mResponseCode = responseCode; in ImapException()
/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/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java209 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/
DHeadsetNativeInterface.java240 public boolean atResponseCode(BluetoothDevice device, int responseCode, int errorCode) { in atResponseCode() argument
241 return atResponseCodeNative(responseCode, errorCode, Utils.getByteAddress(device)); in atResponseCode()
462 private native boolean atResponseCodeNative(int responseCode, int errorCode, byte[] address); in atResponseCodeNative() argument
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java457 final int responseCode = conn.getResponseCode(); in executeDownload() local
458 switch (responseCode) { in executeDownload()
482 if (responseCode == HTTP_MOVED_PERM) { in executeDownload()
507 responseCode, conn.getResponseMessage()); in executeDownload()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DBluetoothPbapRequest.java127 protected void checkResponseCode(int responseCode) throws IOException { in checkResponseCode() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java298 resp.responseCode = ResponseCodes.OBEX_HTTP_OK; in onDisconnect()