Home
last modified time | relevance | path

Searched refs:VolleyError (Results 1 – 25 of 30) sorted by relevance

12

/external/volley/src/test/java/com/android/volley/toolbox/
DBasicNetworkTest.java39 import com.android.volley.VolleyError;
169 doThrow(new VolleyError()).when(mMockRetryPolicy).retry(any(VolleyError.class)); in socketTimeout()
172 } catch (VolleyError e) { in socketTimeout()
186 doThrow(new VolleyError()).when(mMockRetryPolicy).retry(any(VolleyError.class)); in noConnectionDefault()
189 } catch (VolleyError e) { in noConnectionDefault()
193 verify(mMockRetryPolicy, never()).retry(any(VolleyError.class)); in noConnectionDefault()
204 doThrow(new VolleyError()).when(mMockRetryPolicy).retry(any(VolleyError.class)); in noConnectionRetry()
207 } catch (VolleyError e) { in noConnectionRetry()
223 doThrow(new VolleyError()).when(mMockRetryPolicy).retry(any(VolleyError.class)); in noConnectionNoRetry()
226 } catch (VolleyError e) { in noConnectionNoRetry()
[all …]
DBasicAsyncNetworkTest.java41 import com.android.volley.VolleyError;
207 doThrow(new VolleyError()).when(mMockRetryPolicy).retry(any(VolleyError.class)); in socketTimeout()
209 verify(mockCallback, times(1)).onError(any(VolleyError.class)); in socketTimeout()
224 doThrow(new VolleyError()).when(mMockRetryPolicy).retry(any(VolleyError.class)); in noConnectionDefault()
226 verify(mockCallback, times(1)).onError(any(VolleyError.class)); in noConnectionDefault()
229 verify(mMockRetryPolicy, never()).retry(any(VolleyError.class)); in noConnectionDefault()
242 doThrow(new VolleyError()).when(mMockRetryPolicy).retry(any(VolleyError.class)); in noConnectionRetry()
244 verify(mockCallback, times(1)).onError(any(VolleyError.class)); in noConnectionRetry()
260 doThrow(new VolleyError()).when(mMockRetryPolicy).retry(any(VolleyError.class)); in noConnectionNoRetry()
262 verify(mockCallback, times(1)).onError(any(VolleyError.class)); in noConnectionNoRetry()
[all …]
DResponseTest.java24 import com.android.volley.VolleyError;
37 assertNotNull(Response.class.getMethod("error", VolleyError.class)); in publicMethods()
44 "onErrorResponse", VolleyError.class)); in publicMethods()
DRequestTest.java27 import com.android.volley.VolleyError;
73 assertNotNull(Request.class.getDeclaredMethod("parseNetworkError", VolleyError.class)); in publicMethods()
75 assertNotNull(Request.class.getMethod("deliverError", VolleyError.class)); in publicMethods()
/external/volley/src/main/java/com/android/volley/
DVolleyError.java21 public class VolleyError extends Exception { class
25 public VolleyError() { in VolleyError() method in VolleyError
29 public VolleyError(NetworkResponse response) { in VolleyError() method in VolleyError
33 public VolleyError(String exceptionMessage) { in VolleyError() method in VolleyError
38 public VolleyError(String exceptionMessage, Throwable reason) { in VolleyError() method in VolleyError
43 public VolleyError(Throwable cause) { in VolleyError() method in VolleyError
DAsyncNetwork.java39 void onError(VolleyError volleyError); in onError()
58 public NetworkResponse performRequest(Request<?> request) throws VolleyError { in performRequest()
61 final AtomicReference<VolleyError> error = new AtomicReference<>(); in performRequest()
72 public void onError(VolleyError volleyError) { in performRequest()
82 throw new VolleyError(e); in performRequest()
90 throw new VolleyError("Neither response entry was set"); in performRequest()
DResponse.java40 void onErrorResponse(VolleyError error); in onErrorResponse()
52 public static <T> Response<T> error(VolleyError error) { in error()
63 @Nullable public final VolleyError error;
79 private Response(VolleyError error) { in Response()
DNetworkDispatcher.java158 } catch (VolleyError volleyError) { in processRequest()
164 VolleyError volleyError = new VolleyError(e); in processRequest()
173 private void parseAndDeliverNetworkError(Request<?> request, VolleyError error) { in parseAndDeliverNetworkError()
DRetryPolicy.java55 void retry(VolleyError error) throws VolleyError; in retry()
DDefaultRetryPolicy.java83 public void retry(VolleyError error) throws VolleyError { in retry()
DTimeoutError.java21 public class TimeoutError extends VolleyError {}
DNetwork.java28 NetworkResponse performRequest(Request<?> request) throws VolleyError; in performRequest()
DServerError.java21 public class ServerError extends VolleyError {
DAsyncRequestQueue.java304 VolleyError volleyError;
306 ParseErrorTask(Request<T> request, VolleyError volleyError) { in ParseErrorTask()
313 VolleyError parsedError = mRequest.parseNetworkError(volleyError); in run()
362 public void onError(final VolleyError volleyError) { in run()
DNetworkError.java21 public class NetworkError extends VolleyError {
DParseError.java21 public class ParseError extends VolleyError {
DResponseDelivery.java30 void postError(Request<?> request, VolleyError error); in postError()
DRequest.java623 protected VolleyError parseNetworkError(VolleyError volleyError) { in parseNetworkError()
642 public void deliverError(VolleyError error) { in deliverError()
DAuthFailureError.java23 public class AuthFailureError extends VolleyError {
/external/volley/src/main/java/com/android/volley/toolbox/
DNetworkUtility.java32 import com.android.volley.VolleyError;
121 final String logPrefix, final Request<?> request, final VolleyError exception) in attemptRetryOnException()
122 throws VolleyError { in attemptRetryOnException()
127 } catch (VolleyError e) { in attemptRetryOnException()
145 throws VolleyError { in handleException()
DImageLoader.java29 import com.android.volley.VolleyError;
104 public void onErrorResponse(VolleyError error) { in getImageListener()
285 public void onErrorResponse(VolleyError error) {
328 protected void onGetImageError(String cacheKey, VolleyError error) {
429 private VolleyError mError;
446 public void setError(VolleyError error) {
451 public VolleyError getError() {
DRequestFuture.java22 import com.android.volley.VolleyError;
59 private VolleyError mException;
155 public synchronized void onErrorResponse(VolleyError error) { in onErrorResponse()
DBasicNetwork.java24 import com.android.volley.VolleyError;
93 public NetworkResponse performRequest(Request<?> request) throws VolleyError { in performRequest()
DNetworkImageView.java25 import com.android.volley.VolleyError;
249 public void onErrorResponse(VolleyError error) { in loadImageIfNecessary()
/external/volley/src/test/java/com/android/volley/mock/
DMockRequest.java23 import com.android.volley.VolleyError;
70 public void deliverError(VolleyError error) { in deliverError()

12