Home
last modified time | relevance | path

Searched refs:networkResponse (Results 1 – 25 of 28) sorted by relevance

12

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DResponse.java44 private Response networkResponse; field in Response
58 this.networkResponse = builder.networkResponse; in Response()
157 public Response networkResponse() { in networkResponse() method in Response
158 return networkResponse; in networkResponse()
229 private Response networkResponse; field in Response.Builder
245 this.networkResponse = response.networkResponse; in Builder()
309 public Builder networkResponse(Response networkResponse) { in networkResponse() method in Response.Builder
310 if (networkResponse != null) checkSupportResponse("networkResponse", networkResponse); in networkResponse()
311 this.networkResponse = networkResponse; in networkResponse()
324 } else if (response.networkResponse != null) { in checkSupportResponse()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DResponse.java51 private Response networkResponse; field in Response
65 this.networkResponse = builder.networkResponse; in Response()
164 public Response networkResponse() { in networkResponse() method in Response
165 return networkResponse; in networkResponse()
239 private Response networkResponse; field in Response.Builder
255 this.networkResponse = response.networkResponse; in Builder()
319 public Builder networkResponse(Response networkResponse) { in networkResponse() argument
320 if (networkResponse != null) checkSupportResponse("networkResponse", networkResponse); in networkResponse()
321 this.networkResponse = networkResponse; in networkResponse()
334 } else if (response.networkResponse != null) { in checkSupportResponse()
/external/volley/src/main/java/com/android/volley/
DVolleyError.java22 public final NetworkResponse networkResponse; field in VolleyError
26 networkResponse = null; in VolleyError()
30 networkResponse = response; in VolleyError()
35 networkResponse = null; in VolleyError()
40 networkResponse = null; in VolleyError()
45 networkResponse = null; in VolleyError()
DServerError.java22 public ServerError(NetworkResponse networkResponse) { in ServerError() argument
23 super(networkResponse); in ServerError()
DClientError.java27 public ClientError(NetworkResponse networkResponse) { in ClientError() argument
28 super(networkResponse); in ClientError()
DAsyncRequestQueue.java345 public void onSuccess(final NetworkResponse networkResponse) { in run()
350 if (networkResponse.notModified && mRequest.hasHadResponseDelivered()) { in run()
358 new NetworkParseTask<>(mRequest, networkResponse)); in run()
373 NetworkResponse networkResponse; field in AsyncRequestQueue.NetworkParseTask
375 NetworkParseTask(Request<T> request, NetworkResponse networkResponse) { in NetworkParseTask() argument
377 this.networkResponse = networkResponse; in NetworkParseTask()
382 final Response<?> response = mRequest.parseNetworkResponse(networkResponse); in run()
DNetworkError.java30 public NetworkError(NetworkResponse networkResponse) { in NetworkError() argument
31 super(networkResponse); in NetworkError()
DParseError.java24 public ParseError(NetworkResponse networkResponse) { in ParseError() argument
25 super(networkResponse); in ParseError()
DAsyncNetwork.java36 void onSuccess(NetworkResponse networkResponse); in onSuccess() argument
66 public void onSuccess(NetworkResponse networkResponse) { in performRequest()
67 response.set(networkResponse); in performRequest()
DNetworkDispatcher.java132 NetworkResponse networkResponse = mNetwork.performRequest(request); in processRequest() local
137 if (networkResponse.notModified && request.hasHadResponseDelivered()) { in processRequest()
144 Response<?> response = request.parseNetworkResponse(networkResponse); in processRequest()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DRecordedResponse.java113 public RecordedResponse networkResponse() { in networkResponse() method in RecordedResponse
114 Response networkResponse = response.networkResponse(); in networkResponse() local
115 assertNotNull(networkResponse); in networkResponse()
116 assertNull(networkResponse.body()); in networkResponse()
117 return new RecordedResponse(networkResponse.request(), networkResponse, null, null, null); in networkResponse()
122 assertNull(response.networkResponse()); in assertNoNetworkResponse()
DInterceptorTest.java192 Response networkResponse = chain.proceed(networkRequest); in networkInterceptorsObserveNetworkHeaders()
193 assertEquals("gzip", networkResponse.header("Content-Encoding")); in networkInterceptorsObserveNetworkHeaders()
194 return networkResponse; in networkInterceptorsObserveNetworkHeaders()
522 assertEquals("intercepted request", response.networkResponse().request().header("User-Agent")); in networkInterceptorModifiedRequestIsReturned()
/external/volley/src/main/java/com/android/volley/toolbox/
DNetworkUtility.java163 NetworkResponse networkResponse; in handleException() local
167 networkResponse = in handleException()
176 attemptRetryOnException("auth", request, new AuthFailureError(networkResponse)); in handleException()
179 throw new ClientError(networkResponse); in handleException()
183 "server", request, new ServerError(networkResponse)); in handleException()
185 throw new ServerError(networkResponse); in handleException()
189 throw new ServerError(networkResponse); in handleException()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DHttpEngine.java582 Response networkResponse; in readResponse() local
586 networkResponse = readNetworkResponse(); in readResponse()
589 networkResponse = new NetworkInterceptorChain(0, networkRequest).proceed(networkRequest); in readResponse()
622 networkResponse = readNetworkResponse(); in readResponse()
625 receiveHeaders(networkResponse.headers()); in readResponse()
629 if (validate(cacheResponse, networkResponse)) { in readResponse()
633 .headers(combine(cacheResponse.headers(), networkResponse.headers())) in readResponse()
635 .networkResponse(stripBody(networkResponse)) in readResponse()
637 networkResponse.body().close(); in readResponse()
652 userResponse = networkResponse.newBuilder() in readResponse()
[all …]
DOkHeaders.java197 Headers requestHeaders = response.networkResponse().request().headers(); in varyHeaders()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpEngine.java569 Response networkResponse; in readResponse() local
573 networkResponse = readNetworkResponse(); in readResponse()
576 networkResponse = new NetworkInterceptorChain(0, networkRequest).proceed(networkRequest); in readResponse()
609 networkResponse = readNetworkResponse(); in readResponse()
612 receiveHeaders(networkResponse.headers()); in readResponse()
616 if (validate(cacheResponse, networkResponse)) { in readResponse()
620 .headers(combine(cacheResponse.headers(), networkResponse.headers())) in readResponse()
622 .networkResponse(stripBody(networkResponse)) in readResponse()
624 networkResponse.body().close(); in readResponse()
639 userResponse = networkResponse.newBuilder() in readResponse()
[all …]
DOkHeaders.java195 Headers requestHeaders = response.networkResponse().request().headers(); in varyHeaders()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DCacheResponse.java47 System.out.println("Response 1 network response: " + response1.networkResponse()); in run()
55 System.out.println("Response 2 network response: " + response2.networkResponse()); in run()
DRewriteResponseCacheControl.java69 System.out.println(" Network: " + (response.networkResponse() != null)); in run()
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/
DCrawler.java93 String responseSource = response.networkResponse() != null in fetch()
94 ? ("(network: " + response.networkResponse().code() + " over " + response.protocol() + ")") in fetch()
/external/volley/src/test/java/com/android/volley/toolbox/
DImageRequestTest.java127 NetworkResponse networkResponse, in verifyResize() argument
135 Response<Bitmap> response = request.parseNetworkResponse(networkResponse); in verifyResize()
/external/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/internal/huc/
DJavaApiConverter.java105 Response networkResponse = okResponseBuilder.build(); in createOkResponseForCachePut() local
106 okResponseBuilder.networkResponse(networkResponse); in createOkResponseForCachePut()
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
DJavaApiConverter.java103 Response networkResponse = okResponseBuilder.build(); in createOkResponseForCachePut() local
104 okResponseBuilder.networkResponse(networkResponse); in createOkResponseForCachePut()
/external/okhttp/repackaged/okhttp-urlconnection/src/main/java/com/android/okhttp/internal/huc/
DHttpURLConnectionImpl.java178 if (response.networkResponse() == null) { in responseSourceHeader()
187 return "CONDITIONAL_CACHE " + response.networkResponse().code(); in responseSourceHeader()
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
DHttpURLConnectionImpl.java174 if (response.networkResponse() == null) { in responseSourceHeader()
183 return "CONDITIONAL_CACHE " + response.networkResponse().code(); in responseSourceHeader()

12