/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
D | JsonRequestTest.java | 19 import com.android.volley.Response; 35 Response.Listener.class, Response.ErrorListener.class)); in publicMethods() 37 Response.Listener.class, Response.ErrorListener.class)); in publicMethods() 40 Response.Listener.class, Response.ErrorListener.class)); in publicMethods() 42 Response.Listener.class, Response.ErrorListener.class)); in publicMethods() 45 Response.Listener.class, Response.ErrorListener.class)); in publicMethods() 47 JSONObject.class, Response.Listener.class, Response.ErrorListener.class)); in publicMethods()
|
D | ResponseTest.java | 21 import com.android.volley.Response; 37 assertNotNull(Response.class.getMethod("success", Object.class, Cache.Entry.class)); in publicMethods() 38 assertNotNull(Response.class.getMethod("error", VolleyError.class)); in publicMethods() 39 assertNotNull(Response.class.getMethod("isSuccess")); in publicMethods() 41 assertNotNull(Response.Listener.class.getDeclaredMethod("onResponse", Object.class)); in publicMethods() 43 assertNotNull(Response.ErrorListener.class.getDeclaredMethod("onErrorResponse", in publicMethods()
|
D | StringRequestTest.java | 19 import com.android.volley.Response; 32 assertNotNull(StringRequest.class.getConstructor(String.class, Response.Listener.class, in publicMethods() 33 Response.ErrorListener.class)); in publicMethods() 35 Response.Listener.class, Response.ErrorListener.class)); in publicMethods()
|
D | ImageRequestTest.java | 24 import com.android.volley.Response; 130 Response<Bitmap> response = request.parseNetworkResponse(networkResponse); in verifyResize() 167 assertNotNull(ImageRequest.class.getConstructor(String.class, Response.Listener.class, in publicMethods() 168 int.class, int.class, Bitmap.Config.class, Response.ErrorListener.class)); in publicMethods() 169 assertNotNull(ImageRequest.class.getConstructor(String.class, Response.Listener.class, in publicMethods() 171 Response.ErrorListener.class)); in publicMethods()
|
D | JsonRequestCharsetTest.java | 20 import com.android.volley.Response; 61 Response<JSONObject> objectResponse = objectRequest.parseNetworkResponse(network); in defaultCharsetJsonObject() 74 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network); in defaultCharsetJsonArray() 88 Response<JSONObject> objectResponse = objectRequest.parseNetworkResponse(network); in specifiedCharsetJsonObject() 102 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network); in specifiedCharsetJsonArray()
|
D | BasicNetworkTest.java | 21 import com.android.volley.Response; 52 protected Response<String> parseNetworkResponse(NetworkResponse response) { in headersAndPostParams()
|
/frameworks/volley/src/main/java/com/android/volley/ |
D | Response.java | 24 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
|
D | ExecutorDelivery.java | 54 public void postResponse(Request<?> request, Response<?> response) { in postResponse() 59 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { in postResponse() 68 Response<?> response = Response.error(error); in postError() 79 private final Response mResponse; 82 public ResponseDeliveryRunnable(Request request, Response response, Runnable runnable) { in ResponseDeliveryRunnable()
|
D | ResponseDelivery.java | 23 public void postResponse(Request<?> request, Response<?> response); in postResponse() 29 public void postResponse(Request<?> request, Response<?> response, Runnable runnable); in postResponse()
|
D | Request.java | 76 private final Response.ErrorListener mErrorListener; 115 public Request(String url, Response.ErrorListener listener) { in Request() 125 public Request(int method, String url, Response.ErrorListener listener) { in Request() 163 public Response.ErrorListener getErrorListener() { in getErrorListener() 533 abstract protected Response<T> parseNetworkResponse(NetworkResponse response); in parseNetworkResponse()
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
D | JsonArrayRequest.java | 21 import com.android.volley.Response; 22 import com.android.volley.Response.ErrorListener; 23 import com.android.volley.Response.Listener; 61 protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse() 65 return Response.success(new JSONArray(jsonString), in parseNetworkResponse() 68 return Response.error(new ParseError(e)); in parseNetworkResponse() 70 return Response.error(new ParseError(je)); in parseNetworkResponse()
|
D | JsonObjectRequest.java | 21 import com.android.volley.Response; 22 import com.android.volley.Response.ErrorListener; 23 import com.android.volley.Response.Listener; 64 protected Response<JSONObject> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse() 68 return Response.success(new JSONObject(jsonString), in parseNetworkResponse() 71 return Response.error(new ParseError(e)); in parseNetworkResponse() 73 return Response.error(new ParseError(je)); in parseNetworkResponse()
|
D | ImageRequest.java | 28 import com.android.volley.Response; 45 private final Response.Listener<Bitmap> mListener; 72 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, in ImageRequest() 73 ScaleType scaleType, Config decodeConfig, Response.ErrorListener errorListener) { in ImageRequest() 89 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, in ImageRequest() 90 Config decodeConfig, Response.ErrorListener errorListener) { in ImageRequest() 155 protected Response<Bitmap> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse() 162 return Response.error(new ParseError(e)); in parseNetworkResponse() 170 private Response<Bitmap> doParse(NetworkResponse response) { in doParse() 211 return Response.error(new ParseError(response)); in doParse() [all …]
|
D | StringRequest.java | 21 import com.android.volley.Response; 22 import com.android.volley.Response.ErrorListener; 23 import com.android.volley.Response.Listener; 64 protected Response<String> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse() 71 return Response.success(parsed, HttpHeaderParser.parseCacheHeaders(response)); in parseNetworkResponse()
|
D | JsonRequest.java | 21 import com.android.volley.Response; 22 import com.android.volley.Response.ErrorListener; 23 import com.android.volley.Response.Listener; 69 abstract protected Response<T> parseNetworkResponse(NetworkResponse response); in parseNetworkResponse()
|
D | RequestFuture.java | 20 import com.android.volley.Response; 54 public class RequestFuture<T> implements Future<T>, Response.Listener<T>, 55 Response.ErrorListener {
|
D | ClearCacheRequest.java | 22 import com.android.volley.Response; 63 protected Response<Object> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipSessionGroup.java | 79 import javax.sip.message.Response; 397 Response response = evt.getResponse(); in extractExternalAddress() 450 return Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST; in processInviteWithReplaces() 454 if (dialog == null) return Response.DECLINE; in processInviteWithReplaces() 459 return Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST; in processInviteWithReplaces() 466 return Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST; in processInviteWithReplaces() 468 return Response.OK; in processInviteWithReplaces() 482 if (response == Response.OK) { in processNewInviteRequest() 515 mSipHelper.sendResponse((RequestEvent) evt, Response.OK); in process() 822 mSipHelper.sendResponse((RequestEvent) evt, Response.OK); in processExceptions() [all …]
|
D | SipHelper.java | 66 import javax.sip.message.Response; 355 Response response = mMessageFactory.createResponse(Response.RINGING, in sendRinging() 378 Response response = mMessageFactory.createResponse(Response.OK, in sendInviteOk() 405 Response response = mMessageFactory.createResponse( in sendInviteBusyHere() 406 Response.BUSY_HERE, request); in sendInviteBusyHere() 426 Response response = event.getResponse(); in sendInviteAck() 451 Response response = mMessageFactory.createResponse( in sendResponse() 485 Response response = mMessageFactory.createResponse( in sendInviteRequestTerminated() 486 Response.REQUEST_TERMINATED, inviteRequest); in sendInviteRequestTerminated()
|
/frameworks/volley/src/test/java/com/android/volley/mock/ |
D | MockResponseDelivery.java | 20 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()
|
D | MockRequest.java | 21 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()
|
D | TestRequest.java | 21 import com.android.volley.Response; 32 public Base(String url, Response.ErrorListener listener) { in Base() 36 public Base(int method, String url, Response.ErrorListener listener) { in Base() 41 protected Response<byte[]> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
|
D | WaitableQueue.java | 21 import com.android.volley.Response; 64 protected Response<Object> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
|
/frameworks/volley/src/test/java/com/android/volley/ |
D | ResponseDeliveryTest.java | 36 private Response<byte[]> mSuccessResponse; 45 mSuccessResponse = Response.success(data, cacheEntry); in setUp() 62 Response<byte[]> errorResponse = Response.error(new ServerError()); in postErrorCallsDeliverError()
|
/frameworks/base/docs/html/training/volley/ |
D | request-custom.jd | 53 <p>A {@code Response} encapsulates a parsed response for delivery, for a given type 59 protected Response<T> parseNetworkResponse( 64 return Response.success(gson.fromJson(json, clazz), 77 <li>Your implementation must return a {@code Response<T>}, which contains your typed 84 <pre>return Response.success(myDecodedObject, 144 protected Response<T> parseNetworkResponse(NetworkResponse response) { 149 return Response.success( 153 return Response.error(new ParseError(e)); 155 return Response.error(new ParseError(e));
|