Searched defs:response (Results 1 - 25 of 81) sorted by relevance

1234

/frameworks/base/core/java/android/net/
H A DParseException.java24 public String response; field in class:ParseException
26 ParseException(String response) { argument
27 this.response = response;
H A DPacProxySelector.java65 String response = null;
73 response = mProxyService.resolvePacFile(uri.getHost(), urlString);
77 if (response == null) {
81 return parseResponse(response);
84 private static List<Proxy> parseResponse(String response) { argument
85 String[] split = response.split(";");
/frameworks/volley/src/com/android/volley/
H A DResponseDelivery.java21 * Parses a response from the network or cache and delivers it.
23 public void postResponse(Request<?> request, Response<?> response); argument
26 * Parses a response from the network or cache and delivers it. The provided
29 public void postResponse(Request<?> request, Response<?> response, Runnable runnable); argument
H A DVolleyError.java30 public VolleyError(NetworkResponse response) { argument
31 networkResponse = response;
H A DAuthFailureError.java38 public AuthFailureError(NetworkResponse response) { argument
39 super(response);
H A DResponse.java20 * Encapsulates a parsed response for delivery.
22 * @param <T> Parsed type of this response
28 /** Called when a response is received. */
29 public void onResponse(T response); argument
41 /** Returns a successful response containing the parsed result. */
47 * Returns a failed response containing the given error code and an optional
54 /** Parsed response, or null in the case of error. */
57 /** Cache metadata for this response, or null in the case of error. */
63 /** True if this response was a soft-expired one and a second one MAY be coming. */
67 * Returns whether this response i
[all...]
H A DExecutorDelivery.java31 * Creates a new response delivery interface.
45 * Creates a new response delivery interface, mockable version
54 public void postResponse(Request<?> request, Response<?> response) { argument
55 postResponse(request, response, null);
59 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { argument
61 request.addMarker("post-response");
62 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, runnable));
68 Response<?> response = Response.error(error);
69 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, null));
82 public ResponseDeliveryRunnable(Request request, Response response, Runnabl argument
[all...]
/frameworks/volley/src/com/android/volley/toolbox/
H A DJsonArrayRequest.java31 * A request for retrieving a {@link JSONArray} response body at a given URL.
38 * @param listener Listener to receive the JSON response
46 protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) { argument
49 new String(response.data, HttpHeaderParser.parseCharset(response.headers));
51 HttpHeaderParser.parseCacheHeaders(response));
H A DClearCacheRequest.java63 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument
68 protected void deliverResponse(Object response) { argument
H A DHttpHeaderParser.java36 * @param response The network response to parse headers from
37 * @return a cache entry for the given response, or null if the response is not cacheable.
39 public static Cache.Entry parseCacheHeaders(NetworkResponse response) { argument
42 Map<String, String> headers = response.headers;
94 entry.data = response.data;
H A DJsonObjectRequest.java31 * A request for retrieving a {@link JSONObject} response body at a given URL, allowing for an
42 * @param listener Listener to receive the JSON response
64 protected Response<JSONObject> parseNetworkResponse(NetworkResponse response) { argument
67 new String(response.data, HttpHeaderParser.parseCharset(response.headers));
69 HttpHeaderParser.parseCacheHeaders(response));
H A DStringRequest.java28 * A canned request for retrieving the response body at a given URL as a String.
38 * @param listener Listener to receive the String response
51 * @param listener Listener to receive the String response
59 protected void deliverResponse(String response) { argument
60 mListener.onResponse(response);
64 protected Response<String> parseNetworkResponse(NetworkResponse response) { argument
67 parsed = new String(response.data, HttpHeaderParser.parseCharset(response.headers));
69 parsed = new String(response.data);
71 return Response.success(parsed, HttpHeaderParser.parseCacheHeaders(response));
[all...]
H A DJsonRequest.java29 * A request for retrieving a T type response body at a given URL that also
32 * @param <T> JSON type of response expected
64 protected void deliverResponse(T response) { argument
65 mListener.onResponse(response);
69 abstract protected Response<T> parseNetworkResponse(NetworkResponse response); argument
H A DRequestFuture.java31 * Used by providing as your response and error listeners. For example:
43 * JSONObject response = future.get();
44 * // do something with response
52 * @param <T> The type of parsed response this future expects.
141 public synchronized void onResponse(T response) { argument
143 mResult = response;
/frameworks/base/core/java/android/accounts/
H A DAccountManagerResponse.java25 * Used to return a response to the AccountManager.
32 public AccountManagerResponse(IAccountManagerResponse response) { argument
33 mResponse = response;
H A DAccountAuthenticatorResponse.java36 public AccountAuthenticatorResponse(IAccountAuthenticatorResponse response) { argument
37 mAccountAuthenticatorResponse = response;
/frameworks/base/core/tests/coretests/src/android/net/http/
H A DDefaultHttpClientTest.java61 * response was sent. http://b/2612240
87 private String contentToString(HttpResponse response) throws IOException { argument
90 Reader reader = new InputStreamReader(response.getEntity().getContent());
/frameworks/base/tests/CoreTests/android/core/
H A DTestHttpClient.java105 HttpResponse response = this.httpexecutor.execute(request, conn, this.context);
106 response.setParams(
107 new DefaultedHttpParams(response.getParams(), this.params));
108 this.httpexecutor.postProcess(response, this.httpproc, this.context);
109 return response;
112 public boolean keepAlive(final HttpResponse response) { argument
113 return this.connStrategy.keepAlive(response, this.context);
/frameworks/volley/tests/src/com/android/volley/
H A DRequestTest.java64 protected void deliverResponse(Object response) { argument
68 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument
/frameworks/volley/tests/src/com/android/volley/mock/
H A DMockResponseDelivery.java35 public void postResponse(Request<?> request, Response<?> response) { argument
37 responsePosted = response;
41 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { argument
43 responsePosted = response;
H A DWaitableQueue.java64 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument
69 protected void deliverResponse(Object response) { argument
H A DMockHttpStack.java50 public void setResponseToReturn(HttpResponse response) { argument
51 mResponseToReturn = response;
/frameworks/av/media/libstagefright/foundation/
H A DALooperRoster.cpp171 const sp<AMessage> &msg, sp<AMessage> *response) {
181 response->clear();
190 *response = mReplies.valueAt(index);
170 postAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument
/frameworks/av/media/libstagefright/wifi-display/source/
H A DMediaPuller.cpp51 sp<AMessage> response; local
52 status_t err = msg->postAndAwaitResponse(&response);
58 if (!response->findInt32("err", &err)) {
105 sp<AMessage> response = new AMessage; local
106 response->setInt32("err", err);
110 response->postReply(replyID);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmInboundSmsHandler.java136 * @param response callback message sent when operation completes.
139 protected void acknowledgeLastIncomingSms(boolean success, int result, Message response) { argument
140 mPhone.mCi.acknowledgeLastIncomingGsmSms(success, resultToCause(result), response);

Completed in 479 milliseconds

1234