/frameworks/base/core/java/android/net/ |
H A D | ParseException.java | 24 public String response; field in class:ParseException 26 ParseException(String response) { argument 27 this.response = response;
|
/frameworks/support/volley/src/com/android/volley/ |
H A D | ResponseDelivery.java | 21 * 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 D | VolleyError.java | 30 public VolleyError(NetworkResponse response) { argument 31 networkResponse = response;
|
H A D | AuthFailureError.java | 38 public AuthFailureError(NetworkResponse response) { argument 39 super(response);
|
H A D | Response.java | 20 * 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 D | ExecutorDelivery.java | 31 * 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/support/volley/src/com/android/volley/toolbox/ |
H A D | JsonArrayRequest.java | 31 * 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 D | ClearCacheRequest.java | 63 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument 68 protected void deliverResponse(Object response) { argument
|
H A D | HttpHeaderParser.java | 36 * @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 D | JsonObjectRequest.java | 31 * A request for retrieving a {@link JSONObject} response body at a given URL, allowing for an 41 * @param listener Listener to receive the JSON response 50 protected Response<JSONObject> parseNetworkResponse(NetworkResponse response) { argument 53 new String(response.data, HttpHeaderParser.parseCharset(response.headers)); 55 HttpHeaderParser.parseCacheHeaders(response));
|
H A D | StringRequest.java | 28 * A canned request for retrieving the response body at a given URL as a String. 36 * @param listener Listener to receive the String response 45 protected void deliverResponse(String response) { argument 46 mListener.onResponse(response); 50 protected Response<String> parseNetworkResponse(NetworkResponse response) { argument 53 parsed = new String(response.data, HttpHeaderParser.parseCharset(response.headers)); 55 parsed = new String(response.data); 57 return Response.success(parsed, HttpHeaderParser.parseCacheHeaders(response));
|
H A D | JsonRequest.java | 29 * A request for retrieving a T type response body at a given URL that also 32 * @param <T> JSON type of response expected 53 protected void deliverResponse(T response) { argument 54 mListener.onResponse(response); 58 abstract protected Response<T> parseNetworkResponse(NetworkResponse response); argument
|
H A D | RequestFuture.java | 31 * 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 D | AccountManagerResponse.java | 25 * Used to return a response to the AccountManager. 32 public AccountManagerResponse(IAccountManagerResponse response) { argument 33 mResponse = response;
|
H A D | AccountAuthenticatorResponse.java | 36 /* package private */ AccountAuthenticatorResponse(IAccountAuthenticatorResponse response) { argument 37 mAccountAuthenticatorResponse = response;
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
H A D | DefaultHttpClientTest.java | 61 * 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 D | TestHttpClient.java | 105 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/support/volley/tests/src/com/android/volley/ |
H A D | RequestTest.java | 64 protected void deliverResponse(Object response) { argument 68 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument
|
/frameworks/support/volley/tests/src/com/android/volley/mock/ |
H A D | MockResponseDelivery.java | 35 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 D | WaitableQueue.java | 64 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument 69 protected void deliverResponse(Object response) { argument
|
H A D | MockHttpStack.java | 50 public void setResponseToReturn(HttpResponse response) { argument 51 mResponseToReturn = response;
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ALooperRoster.cpp | 156 const sp<AMessage> &msg, sp<AMessage> *response) { 166 response->clear(); 175 *response = mReplies.valueAt(index); 155 postAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | MediaPuller.cpp | 51 sp<AMessage> response; local 52 status_t err = msg->postAndAwaitResponse(&response); 58 if (!response->findInt32("err", &err)) { 102 sp<AMessage> response = new AMessage; local 103 response->setInt32("err", err); 107 response->postReply(replyID);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | AdnRecordLoader.java | 68 * Resulting AdnRecord is placed in response.obj.result 69 * or response.obj.exception is set 73 Message response) { 77 this.userResponse = response; 87 * Resulting ArrayList<adnRecord> is placed in response.obj.result 88 * or response.obj.exception is set 92 Message response) { 95 this.userResponse = response; 113 * @param response will be sent to its handler when completed 117 String pin2, Message response) { 72 loadFromEF(int ef, int extensionEF, int recordNumber, Message response) argument 91 loadAllFromEF(int ef, int extensionEF, Message response) argument 116 updateEF(AdnRecord adn, int ef, int extensionEF, int recordNumber, String pin2, Message response) argument [all...] |
/frameworks/support/volley/tests/src/com/android/volley/toolbox/ |
H A D | HttpHeaderParserTest.java | 38 private NetworkResponse response; field in class:HttpHeaderParserTest 45 response = new NetworkResponse(0, null, headers, false); 49 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 61 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 72 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 86 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 103 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 115 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 129 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 140 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); [all...] |