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

123

/frameworks/base/core/java/android/net/
H A DParseException.java25 public String response; field in class:ParseException
27 ParseException(String response) { argument
28 this.response = response;
/frameworks/support/volley/src/com/android/volley/
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 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 DExecutorDelivery.java34 * Creates a new response delivery interface.
48 * Creates a new response delivery interface, mockable version
57 public void postResponse(Request<?> request, Response<?> response) { argument
58 postResponse(request, response, null);
62 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { argument
64 request.addMarker("post-response");
65 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, runnable));
71 Response<?> response = Response.error(error);
72 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, null));
90 public ResponseDeliveryRunnable(Request request, Response response, Runnabl argument
[all...]
/frameworks/support/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
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 DStringRequest.java28 * 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 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
53 protected void deliverResponse(T response) { argument
54 mListener.onResponse(response);
58 abstract protected Response<T> parseNetworkResponse(NetworkResponse response); argument
/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 /* package private */ AccountAuthenticatorResponse(IAccountAuthenticatorResponse response) { argument
37 mAccountAuthenticatorResponse = response;
H A DAbstractAccountAuthenticator.java103 * and return the result via that response when the activity finishes (or whenever else the
118 public void addAccount(IAccountAuthenticatorResponse response, String accountType, argument
129 new AccountAuthenticatorResponse(response),
136 response.onResult(result);
139 handleException(response, "addAccount", accountType, e);
143 public void confirmCredentials(IAccountAuthenticatorResponse response, argument
151 new AccountAuthenticatorResponse(response), account, options);
158 response.onResult(result);
161 handleException(response, "confirmCredentials", account.toString(), e);
165 public void getAuthTokenLabel(IAccountAuthenticatorResponse response, argument
187 getAuthToken(IAccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument
212 updateCredentials(IAccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument
237 editProperties(IAccountAuthenticatorResponse response, String accountType) argument
251 hasFeatures(IAccountAuthenticatorResponse response, Account account, String[] features) argument
265 getAccountRemovalAllowed(IAccountAuthenticatorResponse response, Account account) argument
280 handleException(IAccountAuthenticatorResponse response, String method, String data, Exception e) argument
335 editProperties(AccountAuthenticatorResponse response, String accountType) argument
358 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument
378 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument
399 getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) argument
429 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) argument
449 hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) argument
468 getAccountRemovalAllowed(AccountAuthenticatorResponse response, Account account) argument
[all...]
/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/support/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/support/volley/tests/src/com/android/volley/mock/
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;
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;
/frameworks/base/core/java/android/bluetooth/
H A DAtCommandResult.java23 * This class can represent the final response to an AT command line, and also
28 * line are stored in a string array. The final response is stored as an
30 * final response is sent from multiple commands chained into a single command
48 * response array.
58 * single line response.
59 * @param response The single line response.
61 public AtCommandResult(String response) { argument
63 addResponse(response);
71 * Add another line to the response
73 addResponse(String response) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DALooperRoster.cpp156 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/base/telephony/java/com/android/internal/telephony/
H A DAdnRecordLoader.java68 * 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&lt;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 DHttpHeaderParserTest.java38 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...]

Completed in 621 milliseconds

123