Home
last modified time | relevance | path

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

123

/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcp/
H A DAvrcpBipObexServerTest.java236 int responseCode = mAvrcpBipObexServer.onGet(op); in testOnGetNoHeaders() local
247 int responseCode = mAvrcpBipObexServer.onGet(op); in testOnGetBadType() local
258 int responseCode = mAvrcpBipObexServer.onGet(op); in testOnGetNoType() local
271 int responseCode = mAvrcpBipObexServer.onGet(op); in testGetLinkedThumbnailWithValidHandle() local
283 int responseCode = mAvrcpBipObexServer.onGet(op); in testGetLinkedThumbnailWithValidUnstoredHandle() local
296 int responseCode = mAvrcpBipObexServer.onGet(op); in testGetLinkedThumbnailWithInvalidHandle() local
309 int responseCode = mAvrcpBipObexServer.onGet(op); in testGetLinkedThumbnailWithNullHandle() local
322 int responseCode = mAvrcpBipObexServer.onGet(op); in testGetImagePropertiesWithValidHandle() local
334 int responseCode = mAvrcpBipObexServer.onGet(op); in testGetImagePropertiesWithValidUnstoredHandle() local
347 int responseCode = mAvrcpBipObexServer.onGet(op); in testGetImagePropertiesWithInvalidHandle() local
[all …]
/aosp12/frameworks/base/obex/javax/obex/
H A DClientOperation.java189 if (mReplyHeader.responseCode != ResponseCodes.OBEX_HTTP_OK) { in abort()
210 if ((mReplyHeader.responseCode == -1) in getResponseCode()
215 return mReplyHeader.responseCode; in getResponseCode()
427 if (mPrivateInput == null || mReplyHeader.responseCode == -1) { in validateConnection()
637 while ((more) && (mReplyHeader.responseCode == in startProcessing()
666 mReplyHeader.responseCode = ResponseCodes.OBEX_HTTP_CONTINUE; in startProcessing()
672 if (mReplyHeader.responseCode == ResponseCodes.OBEX_HTTP_CONTINUE) { in startProcessing()
738 if (mReplyHeader.responseCode == -1) { in continueOperation()
774 if (mReplyHeader.responseCode == -1) { in streamClosed()
802 if (mReplyHeader.responseCode == -1) { in streamClosed()
[all …]
H A DHeaderSet.java246 public int responseCode; field in HeaderSet
257 responseCode = -1; in HeaderSet()
704 if (responseCode == -1) { in getResponseCode()
707 return responseCode; in getResponseCode()
/aosp12/frameworks/base/packages/StatementService/src/com/android/statementservice/network/retriever/
H A DUrlFetcher.kt55 val responseCode = connection.responseCode regex
57 responseCode != HttpURLConnection.HTTP_OK -> {
58 Log.w(TAG, "The responses code is not 200 but $responseCode")
59 Result.Success(Response(responseCode))
63 Result.Success(Response(responseCode))
72 Result.Success(Response(responseCode, content.await()))
83 val responseCode: Int,
/aosp12/frameworks/base/core/java/android/service/gatekeeper/
H A DGateKeeperResponse.java43 private GateKeeperResponse(int responseCode) { in GateKeeperResponse() argument
44 mResponseCode = responseCode; in GateKeeperResponse()
48 public static GateKeeperResponse createGenericResponse(int responseCode) { in createGenericResponse() argument
49 return new GateKeeperResponse(responseCode); in createGenericResponse()
75 int responseCode = source.readInt();
77 if (responseCode == RESPONSE_RETRY) {
79 } else if (responseCode == RESPONSE_OK) {
89 response = createGenericResponse(responseCode);
/aosp12/frameworks/base/core/java/android/security/
H A DConfirmationPrompt.java105 private void doCallback(int responseCode, byte[] dataThatWasConfirmed, in doCallback() argument
107 switch (responseCode) { in doCallback()
125 callback.onError(new Exception("Unexpected responseCode=" + responseCode in doCallback()
279 int responseCode = getService().presentConfirmationPrompt( in presentPrompt() local
282 switch (responseCode) { in presentPrompt()
295 "Unexpected responseCode=" + responseCode in presentPrompt()
311 int responseCode = in cancelPrompt() local
313 if (responseCode == AndroidProtectedConfirmation.ERROR_OK) { in cancelPrompt()
315 } else if (responseCode == AndroidProtectedConfirmation.ERROR_OPERATION_PENDING) { in cancelPrompt()
320 "Unexpected responseCode=" + responseCode in cancelPrompt()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A 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()
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()
547 if (responseCode == ResponseCodes.OBEX_HTTP_FORBIDDEN in sendFile()
587 responseCode = putOperation.getResponseCode(); in sendFile()
588 if (responseCode != -1) { in sendFile()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DVerifyCredentialResponse.java58 final @ResponseCode int responseCode = source.readInt();
63 return new VerifyCredentialResponse(responseCode, timeout, gatekeeperHAT,
127 private VerifyCredentialResponse(@ResponseCode int responseCode, int timeout, in VerifyCredentialResponse() argument
129 mResponseCode = responseCode; in VerifyCredentialResponse()
187 int responseCode = gateKeeperResponse.getResponseCode(); in fromGateKeeperResponse() local
188 if (responseCode == GateKeeperResponse.RESPONSE_RETRY) { in fromGateKeeperResponse()
190 } else if (responseCode == GateKeeperResponse.RESPONSE_OK) { in fromGateKeeperResponse()
/aosp12/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/
H A 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()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
H A 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()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
H A DAvrcpBipClient.java267 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()
/aosp12/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
H A 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()
/aosp12/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
H A 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()
H A 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
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
H A 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()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
H A DRcsStatsTest.java290 int[] responseCode = {200, 401}; in onRcsAcsProvisioningStats_withAtoms() local
319 assertEquals(responseCode[0], stats.responseCode); in onRcsAcsProvisioningStats_withAtoms()
333 int[] responseCode = {200, 401}; in onRcsAcsProvisioningStats_withAtomsInvalidSubId() local
360 assertEquals(responseCode[0], stats.responseCode); in onRcsAcsProvisioningStats_withAtomsInvalidSubId()
375 int responseCode = 200; in onRcsAcsProvisioningStats_byCallBack() local
397 assertEquals(responseCode, stats.responseCode); in onRcsAcsProvisioningStats_byCallBack()
409 int responseCode = 401; in onRcsAcsProvisioningStats_byErrorCallBack() local
434 assertEquals(responseCode, stats.responseCode); in onRcsAcsProvisioningStats_byErrorCallBack()
445 int[] responseCode = {401, 200}; in onStoreCompleteRcsAcsProvisioningStats_withSubId() local
480 assertEquals(responseCode[i], stats.responseCode); in onStoreCompleteRcsAcsProvisioningStats_withSubId()
[all …]
/aosp12/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
H A DHttpResponse.kt24 val responseCode: Int,
31 responseCode = 200,
38 writeInt(responseCode)
/aosp12/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/
H A DHttpResponse.java38 public abstract int responseCode(); in responseCode() method in HttpResponse
58 public abstract Builder setResponseCode(int responseCode); in setResponseCode() argument
86 .append(responseCode()) in toString()
H A DHttpClient.java128 int responseCode = connection.getResponseCode(); in getHttpResponse() local
130 if (responseCode != HttpURLConnection.HTTP_OK) { in getHttpResponse()
131 throw new ServiceEntitlementException(ERROR_HTTP_STATUS_NOT_SUCCESS, responseCode, in getHttpResponse()
135 responseBuilder.setResponseCode(responseCode); in getHttpResponse()
/aosp12/system/security/keystore2/apc_compat/
H A Dapc_compat.cpp115 finalize(ResponseCode responseCode, in finalize() argument
135 if (responseCode == ResponseCode::OK) { in finalize()
145 callback.result(callback.data, responseCode2Compat(responseCode), dataConfirmedPtr, in finalize()
151 android::hardware::Return<void> result(ResponseCode responseCode, in result() argument
154 finalize(responseCode, dataConfirmed, confirmationToken); in result()
/aosp12/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
H A 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()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A 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()
/aosp12/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DWebContent.java32 public WebContent(String content, Long expireTimeMillis, int responseCode) { in WebContent() argument
35 mResponseCode = responseCode; in WebContent()
/aosp12/system/security/keystore/tests/
H A Dconfirmationui_invocation_test.cpp73 auto [responseCode, dataThatWasConfirmed] = future.get(); in TEST()
75 ASSERT_EQ(responseCode, apc::ResponseCode::ABORTED); in TEST()
/aosp12/packages/services/Telephony/src/com/android/phone/callcomposer/
H A 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()

123