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

12345

/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.java68 String response = null;
84 response = mProxyService.resolvePacFile(uri.getHost(), urlString);
88 if (response == null) {
92 return parseResponse(response);
95 private static List<Proxy> parseResponse(String response) { argument
96 String[] split = response.split(";");
/frameworks/volley/src/main/java/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 DAuthFailureError.java35 public AuthFailureError(NetworkResponse response) { argument
36 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 DVolleyError.java31 public VolleyError(NetworkResponse response) { argument
32 networkResponse = response;
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/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/src/main/java/com/android/volley/toolbox/
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;
112 entry.data = response.data;
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
51 * @param listener Listener to receive the JSON response
61 protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) { argument
63 String jsonString = new String(response.data,
64 HttpHeaderParser.parseCharset(response.headers, PROTOCOL_CHARSET));
66 HttpHeaderParser.parseCacheHeaders(response));
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
66 String jsonString = new String(response.data,
67 HttpHeaderParser.parseCharset(response.headers, PROTOCOL_CHARSET));
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...]
/frameworks/volley/src/test/java/com/android/volley/
H A DRequestTest.java61 protected void deliverResponse(Object response) { argument
65 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument
89 protected void deliverResponse(Object response) { argument
93 protected Response<Object> parseNetworkResponse(NetworkResponse response) { argument
/frameworks/volley/src/test/java/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/drm/mediadrm/plugins/clearkey/
H A DDrmPlugin.cpp70 const Vector<uint8_t>& response,
76 status_t res = session->provideKeyResponse(response);
68 provideKeyResponse( const Vector<uint8_t>& scope, const Vector<uint8_t>& response, Vector<uint8_t>& keySetId) argument
H A DSession.cpp45 status_t Session::provideKeyResponse(const Vector<uint8_t>& response) { argument
47 reinterpret_cast<const char*>(response.array()), response.size());
/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/base/media/lib/signer/java/com/android/mediadrm/signer/
H A DMediaDrmSigner.java23 * Provides certificate request generation, response handling and
90 * and authority. The response received should be passed to
104 * Process a response from the provisioning server. The response
113 * @param response the opaque certificate response byte array to provide to the
115 * @throws android.media.DeniedByServerException if the response indicates that the
118 public static Certificate provideCertificateResponse(MediaDrm drm, byte[] response) argument
120 return new Certificate(drm.provideCertificateResponse(response));
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
H A DRestrictionsManagerService.java160 public void notifyPermissionResponse(String packageName, PersistableBundle response) argument
175 // Post the response to target package
179 responseIntent.putExtra(RestrictionsManager.EXTRA_RESPONSE_BUNDLE, response);

Completed in 366 milliseconds

12345