Home
last modified time | relevance | path

Searched refs:Response (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/support/volley/src/com/android/volley/
DResponse.java24 public class Response<T> { class
42 public static <T> Response<T> success(T result, Cache.Entry cacheEntry) { in success()
43 return new Response<T>(result, cacheEntry); in success()
50 public static <T> Response<T> error(VolleyError error) { in error()
51 return new Response<T>(error); in error()
74 private Response(T result, Cache.Entry cacheEntry) { in Response() method in Response
80 private Response(VolleyError error) { in Response() method in Response
DExecutorDelivery.java57 public void postResponse(Request<?> request, Response<?> response) { in postResponse()
62 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { in postResponse()
71 Response<?> response = Response.error(error); in postError()
87 private final Response mResponse;
90 public ResponseDeliveryRunnable(Request request, Response response, Runnable runnable) { in ResponseDeliveryRunnable()
DResponseDelivery.java23 public void postResponse(Request<?> request, Response<?> response); in postResponse()
29 public void postResponse(Request<?> request, Response<?> response, Runnable runnable); in postResponse()
DRequest.java47 private final Response.ErrorListener mErrorListener;
92 public Request(String url, Response.ErrorListener listener) { in Request()
396 abstract protected Response<T> parseNetworkResponse(NetworkResponse response); in parseNetworkResponse()
DNetworkDispatcher.java106 Response<?> response = request.parseNetworkResponse(networkResponse); in run()
DCacheDispatcher.java116 Response<?> response = request.parseNetworkResponse( in run()
/frameworks/support/volley/src/com/android/volley/toolbox/
DJsonArrayRequest.java21 import com.android.volley.Response;
22 import com.android.volley.Response.ErrorListener;
23 import com.android.volley.Response.Listener;
46 protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
50 return Response.success(new JSONArray(jsonString), in parseNetworkResponse()
53 return Response.error(new ParseError(e)); in parseNetworkResponse()
55 return Response.error(new ParseError(je)); in parseNetworkResponse()
DJsonObjectRequest.java21 import com.android.volley.Response;
22 import com.android.volley.Response.ErrorListener;
23 import com.android.volley.Response.Listener;
50 protected Response<JSONObject> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
54 return Response.success(new JSONObject(jsonString), in parseNetworkResponse()
57 return Response.error(new ParseError(e)); in parseNetworkResponse()
59 return Response.error(new ParseError(je)); in parseNetworkResponse()
DImageRequest.java23 import com.android.volley.Response;
44 private final Response.Listener<Bitmap> mListener;
69 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, in ImageRequest()
70 Config decodeConfig, Response.ErrorListener errorListener) { in ImageRequest()
122 protected Response<Bitmap> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
129 return Response.error(new ParseError(e)); in parseNetworkResponse()
137 private Response<Bitmap> doParse(NetworkResponse response) { in doParse()
178 return Response.error(new ParseError()); in doParse()
180 return Response.success(bitmap, HttpHeaderParser.parseCacheHeaders(response)); in doParse()
DStringRequest.java21 import com.android.volley.Response;
22 import com.android.volley.Response.ErrorListener;
23 import com.android.volley.Response.Listener;
50 protected Response<String> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
57 return Response.success(parsed, HttpHeaderParser.parseCacheHeaders(response)); in parseNetworkResponse()
DJsonRequest.java21 import com.android.volley.Response;
22 import com.android.volley.Response.ErrorListener;
23 import com.android.volley.Response.Listener;
58 abstract protected Response<T> parseNetworkResponse(NetworkResponse response); in parseNetworkResponse()
DClearCacheRequest.java22 import com.android.volley.Response;
63 protected Response<Object> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
/frameworks/base/voip/java/com/android/server/sip/
DSipSessionGroup.java83 import javax.sip.message.Response;
398 Response response = evt.getResponse(); in extractExternalAddress()
448 return Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST; in processInviteWithReplaces()
452 if (dialog == null) return Response.DECLINE; in processInviteWithReplaces()
457 return Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST; in processInviteWithReplaces()
464 return Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST; in processInviteWithReplaces()
466 return Response.OK; in processInviteWithReplaces()
480 if (response == Response.OK) { in processNewInviteRequest()
512 mSipHelper.sendResponse((RequestEvent) evt, Response.OK); in process()
796 mSipHelper.sendResponse((RequestEvent) evt, Response.OK); in processExceptions()
[all …]
DSipHelper.java68 import javax.sip.message.Response;
357 Response response = mMessageFactory.createResponse(Response.RINGING, in sendRinging()
380 Response response = mMessageFactory.createResponse(Response.OK, in sendInviteOk()
407 Response response = mMessageFactory.createResponse( in sendInviteBusyHere()
408 Response.BUSY_HERE, request); in sendInviteBusyHere()
428 Response response = event.getResponse(); in sendInviteAck()
453 Response response = mMessageFactory.createResponse( in sendResponse()
487 Response response = mMessageFactory.createResponse( in sendInviteRequestTerminated()
488 Response.REQUEST_TERMINATED, inviteRequest); in sendInviteRequestTerminated()
/frameworks/support/volley/tests/src/com/android/volley/mock/
DMockResponseDelivery.java20 import com.android.volley.Response;
33 public Response<?> responsePosted = null;
35 public void postResponse(Request<?> request, Response<?> response) { in postResponse()
41 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { in postResponse()
DMockRequest.java21 import com.android.volley.Response;
22 import com.android.volley.Response.ErrorListener;
96 protected Response<byte[]> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
98 return Response.success(response.data, CacheTestUtils.makeRandomCacheEntry(response.data)); in parseNetworkResponse()
DWaitableQueue.java21 import com.android.volley.Response;
64 protected Response<Object> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
/frameworks/base/services/java/com/android/server/
DNativeDaemonConnector.java485 private static class Response { class in NativeDaemonConnector.ResponseQueue
489 public Response(int c, String r) {cmdNum = c; request = r;} in Response() method in NativeDaemonConnector.ResponseQueue.Response
492 private final LinkedList<Response> mResponses;
496 mResponses = new LinkedList<Response>(); in ResponseQueue()
501 Response found = null; in add()
503 for (Response r : mResponses) { in add()
517 Response r = mResponses.remove(); in add()
521 found = new Response(cmdNum, null); in add()
536 Response found = null; in remove()
539 for (Response response : mResponses) { in remove()
[all …]
/frameworks/support/volley/tests/src/com/android/volley/
DResponseDeliveryTest.java32 private Response<byte[]> mSuccessResponse;
44 mSuccessResponse = Response.success(data, cacheEntry); in setUp()
88 Response<byte[]> errorResponse = Response.error(new ServerError()); in testPostError_callsDeliverError()
DRequestQueueTest.java94 protected Response<Object> parseNetworkResponse(NetworkResponse response) { in testAdd_dedupeByCacheKey()
285 protected Response<Object> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
288 return Response.success(new Object(), CacheTestUtils.makeRandomCacheEntry(null)); in parseNetworkResponse()
DRequestTest.java68 protected Response<Object> parseNetworkResponse(NetworkResponse response) {
/frameworks/support/volley/tests/src/com/android/volley/toolbox/
DBasicNetworkTest.java21 import com.android.volley.Response;
53 protected Response<String> parseNetworkResponse(NetworkResponse response) { in testHeadersAndPostParams()
DImageRequestTest.java26 import com.android.volley.Response;
65 Response<Bitmap> response = request.parseNetworkResponse(networkResponse); in verifyResize()
/frameworks/native/include/utils/
DLooper.h330 struct Response { struct
363 Vector<Response> mResponses;
/frameworks/native/libs/utils/
DLooper.cpp161 const Response& response = mResponses.itemAt(mResponseIndex++); in pollOnce()
312 Response& response = mResponses.editItemAt(i); in pollInner()
390 Response response; in pushResponse()

12