Home
last modified time | relevance | path

Searched refs:httpResponse (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/http/
DHttpClientTest.java125 HttpResponse httpResponse = HttpClient.request(request); in request_contentTypeXml_returnsXmlBody() local
133 assertThat(httpResponse.contentType()).isEqualTo(ContentType.JSON); in request_contentTypeXml_returnsXmlBody()
134 assertThat(httpResponse.body()).isEqualTo(TEST_RESPONSE_BODY); in request_contentTypeXml_returnsXmlBody()
135 assertThat(httpResponse.responseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in request_contentTypeXml_returnsXmlBody()
190 HttpResponse httpResponse = HttpClient.request(request); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork() local
198 assertThat(httpResponse.contentType()).isEqualTo(ContentType.JSON); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()
199 assertThat(httpResponse.body()).isEqualTo(TEST_RESPONSE_BODY); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()
200 assertThat(httpResponse.responseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()
299 HttpResponse httpResponse = HttpClient.request(request); in request_postGzipJsonArray_response_gunzipJsonArray() local
302 assertThat(httpResponse.contentType()).isEqualTo(ContentType.JSON); in request_postGzipJsonArray_response_gunzipJsonArray()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DAfcClient.java99 HttpResponse httpResponse = HttpClient.request(httpRequest); in queryAfcServer() local
100 JSONObject httpResponseBodyJSON = new JSONObject(httpResponse.body()); in queryAfcServer()
103 .fromSpectrumInquiryResponse(getHttpResponseCode(httpResponse), in queryAfcServer()
241 private int getHttpResponseCode(HttpResponse httpResponse) { in getHttpResponseCode() argument
242 return httpResponse == null ? 500 : httpResponse.responseCode(); in getHttpResponseCode()
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/
DCarrierSpecificServiceEntitlement.java174 HttpResponse httpResponse = HttpClient.request( in getImsiPseudonym() local
180 new GetImsiPseudonymResponse(httpResponse.body()); in getImsiPseudonym()
235 HttpResponse httpResponse = in getAuthenticationChallenge() local
239 ChallengeResponse challengeResponse = new ChallengeResponse(httpResponse.body()); in getAuthenticationChallenge()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/
DHttpFederatedProtocol.java510 String stage, FederatedComputeHttpResponse httpResponse) {
511 if (!HTTP_OK_STATUS.contains(httpResponse.getStatusCode())) {
512 throw new IllegalStateException(stage + " failed: " + httpResponse.getStatusCode());
519 String stage, FederatedComputeHttpResponse httpResponse) {
520 if (!HTTP_OK_OR_UNAUTHENTICATED_STATUS.contains(httpResponse.getStatusCode())) {
521 throw new IllegalStateException(stage + " failed: " + httpResponse.getStatusCode());
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DAfcClientTest.java98 HttpResponse httpResponse = HttpResponse.builder().setResponseCode( in setUp() local
106 when(HttpClient.request(any(HttpRequest.class))).thenReturn(httpResponse); in setUp()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/
DHttpFederatedProtocolTest.java388 FederatedComputeHttpResponse httpResponse = in testCreateTaskAssignmentFailed() local
391 .thenReturn(immediateFuture(httpResponse)); in testCreateTaskAssignmentFailed()
484 FederatedComputeHttpResponse httpResponse = in testCreateTaskAssignmentRejection() local
490 .thenReturn(immediateFuture(httpResponse)); in testCreateTaskAssignmentRejection()