Home
last modified time | relevance | path

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

12

/frameworks/base/packages/StatementService/src/com/android/statementservice/network/retriever/
DUrlFetcher.kt55 val responseCode = connection.responseCode in fetch() constant
57 responseCode != HttpURLConnection.HTTP_OK -> { in fetch()
58 Log.w(TAG, "The responses code is not 200 but $responseCode") in fetch()
59 Result.Success(Response(responseCode)) in fetch()
63 Result.Success(Response(responseCode)) in fetch()
72 Result.Success(Response(responseCode, content.await())) in fetch()
83 val responseCode: Int, constant in com.android.statementservice.network.retriever.UrlFetcher.Response
DStatementRetriever.kt56 val responseCode: Int? constant in com.android.statementservice.network.retriever.StatementRetriever.Result
64 webResult.responseCode
/frameworks/base/core/java/android/service/gatekeeper/
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);
/frameworks/base/core/java/android/security/
DConfirmationPrompt.java104 private void doCallback(int responseCode, byte[] dataThatWasConfirmed, in doCallback() argument
106 switch (responseCode) { in doCallback()
124 callback.onError(new Exception("Unexpected responseCode=" + responseCode in doCallback()
278 int responseCode = getService().presentConfirmationPrompt( in presentPrompt() local
281 switch (responseCode) { in presentPrompt()
294 "Unexpected responseCode=" + responseCode in presentPrompt()
310 int responseCode = in cancelPrompt() local
312 if (responseCode == AndroidProtectedConfirmation.ERROR_OK) { in cancelPrompt()
314 } else if (responseCode == AndroidProtectedConfirmation.ERROR_OPERATION_PENDING) { in cancelPrompt()
319 "Unexpected responseCode=" + responseCode in cancelPrompt()
/frameworks/base/core/java/com/android/internal/widget/
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()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/
DHttpResponse.java38 public abstract int responseCode(); in responseCode() method in HttpResponse
63 public abstract Builder setResponseCode(int responseCode); in setResponseCode() argument
100 .append(responseCode()) in toShortDebugString()
DHttpClient.java159 int responseCode = connection.getResponseCode(); in getHttpResponse() local
161 if (responseCode != HttpURLConnection.HTTP_OK in getHttpResponse()
162 && responseCode != HttpURLConnection.HTTP_MOVED_TEMP) { in getHttpResponse()
163 throw new ServiceEntitlementException(ERROR_HTTP_STATUS_NOT_SUCCESS, responseCode, in getHttpResponse()
165 "Invalid connection response: " + responseCode); in getHttpResponse()
167 responseBuilder.setResponseCode(responseCode); in getHttpResponse()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DRcsStatsTest.java292 int[] responseCode = {200, 401}; in onRcsAcsProvisioningStats_withAtoms() local
306 mSubId, responseCode[0], responseType[0], isSingleRegistrationEnabled); in onRcsAcsProvisioningStats_withAtoms()
313 mSubId, responseCode[1], responseType[1], isSingleRegistrationEnabled); in onRcsAcsProvisioningStats_withAtoms()
321 assertEquals(responseCode[0], stats.responseCode); in onRcsAcsProvisioningStats_withAtoms()
335 int[] responseCode = {200, 401}; in onRcsAcsProvisioningStats_withAtomsInvalidSubId() local
344 mSubId, responseCode[0], responseType[0], isSingleRegistrationEnabled); in onRcsAcsProvisioningStats_withAtomsInvalidSubId()
354 mSubId, responseCode[1], responseType[1], isSingleRegistrationEnabled); in onRcsAcsProvisioningStats_withAtomsInvalidSubId()
362 assertEquals(responseCode[0], stats.responseCode); in onRcsAcsProvisioningStats_withAtomsInvalidSubId()
377 int responseCode = 200; in onRcsAcsProvisioningStats_byCallBack() local
399 assertEquals(responseCode, stats.responseCode); in onRcsAcsProvisioningStats_byCallBack()
[all …]
DPersistAtomsStorageTest.java758 mRcsAcsProvisioningStats1Proto.responseCode = 401; in makeTestData()
769 mRcsAcsProvisioningStats2Proto.responseCode = 200; in makeTestData()
5964 && stats.responseCode == expectedStats.responseCode in assertHasStatsAndCountDuration()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DWebContent.java32 public WebContent(String content, Long expireTimeMillis, int responseCode) { in WebContent() argument
35 mResponseCode = responseCode; in WebContent()
/frameworks/libs/service_entitlement/tests/utils/com/android/libraries/entitlement/testing/
DFakeURLStreamHandler.java117 if (mResponse.hasException() && mResponse.responseCode() == 0) { in getResponseCode()
120 return mResponse.responseCode(); in getResponseCode()
174 public abstract int responseCode(); in responseCode() method in FakeURLStreamHandler.FakeResponse
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/publish/
DPublishControllerImplTest.java228 int responseCode = 200; in testPublishUpdated() local
232 .setSipResponseCode(responseCode, responsePhrase).build()); in testPublishUpdated()
244 assertEquals(responseCode, expectedCode); in testPublishUpdated()
248 assertEquals(responseCode, details.getResponseCode()); in testPublishUpdated()
256 int responseCode = 200; in testPublishUpdatedWithSipDetails() local
264 .setCSeq(cseq).setSipResponseCode(responseCode, responsePhrase).setCallId(callId) in testPublishUpdatedWithSipDetails()
280 assertEquals(responseCode, expectedCode); in testPublishUpdatedWithSipDetails()
289 assertEquals(responseCode, details.getResponseCode()); in testPublishUpdatedWithSipDetails()
/frameworks/base/telephony/java/android/telephony/ims/
DSipDetails.java113 public Builder setSipResponseCode(int responseCode, in setSipResponseCode() argument
115 this.mResponseCode = responseCode; in setSipResponseCode()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/request/
DSubscribeCoordinatorTest.java130 int responseCode = 200; in testRequestNetworkRespSuccess() local
137 .setSipResponseCode(responseCode, responsePhrase).setCallId(callId) in testRequestNetworkRespSuccess()
159 assertEquals(responseCode, receivedInfo.getResponseCode()); in testRequestNetworkRespSuccess()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DOptionsRequestCoordinator.java222 int responseCode = response.getNetworkRespSipCode().orElse(0); in handleNetworkResponse() local
224 0, responseCode); in handleNetworkResponse()
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/http/
DHttpClientTest.java105 assertThat(httpResponse.responseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in request_contentTypeXml_returnsXmlBody()
170 assertThat(httpResponse.responseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
DPublishProcessor.java312 int responseCode = requestResponse.getNetworkRespSipCode().orElse(0); in onNetworkResponse() local
314 responseCode); in onNetworkResponse()
/frameworks/base/packages/StatementService/src/com/android/statementservice/domain/
DDomainVerifier.kt108 when (result.responseCode) { in <lambda>()
/frameworks/base/tests/CoreTests/android/core/
DTestEventHandler.java37 private int responseCode = -1; field in TestEventHandler
174 responseCode = code; in status()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java1440 int responseCode = response.getResponseCode(); in unlockLskfBasedProtector() local
1441 if (responseCode == GateKeeperResponse.RESPONSE_OK) { in unlockLskfBasedProtector()
1466 } else if (responseCode == GateKeeperResponse.RESPONSE_RETRY) { in unlockLskfBasedProtector()
1698 int responseCode = response.getResponseCode(); in verifyChallengeInternal() local
1699 if (responseCode == GateKeeperResponse.RESPONSE_OK) { in verifyChallengeInternal()
1722 } else if (responseCode == GateKeeperResponse.RESPONSE_RETRY) { in verifyChallengeInternal()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DRcsStats.java901 public void onRcsAcsProvisioningStats(int subId, int responseCode, int responseType, in onRcsAcsProvisioningStats() argument
918 newStats.responseCode = responseCode; in onRcsAcsProvisioningStats()
1387 newProto.responseCode = proto.responseCode; in copyRcsAcsProvisioningStats()
1654 + " Response Code = " + stat.responseCode in printAllMetrics()
DPersistAtomsStorage.java2159 && stats.responseCode == key.responseCode in find()
DMetricsCollector.java1301 stats.responseCode, in buildStatsEvent()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipHelper.java447 public void sendResponse(RequestEvent event, int responseCode) in sendResponse() argument
452 responseCode, request); in sendResponse()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataNetwork.java1523 int responseCode = msg.arg1;
1524 onDeactivateResponse(responseCode);

12