/frameworks/volley/src/com/android/volley/ |
D | RequestQueue.java | 54 private final Map<String, Queue<Request>> mWaitingRequests = 55 new HashMap<String, Queue<Request>>(); 62 private final Set<Request> mCurrentRequests = new HashSet<Request>(); 65 private final PriorityBlockingQueue<Request> mCacheQueue = 66 new PriorityBlockingQueue<Request>(); 69 private final PriorityBlockingQueue<Request> mNetworkQueue = 70 new PriorityBlockingQueue<Request>(); 179 public boolean apply(Request<?> request); in apply() 188 for (Request<?> request : mCurrentRequests) { in cancelAll() 206 public boolean apply(Request<?> request) { in cancelAll() [all …]
|
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() 66 public void postError(Request<?> request, VolleyError error) { in postError() 78 private final Request mRequest; 82 public ResponseDeliveryRunnable(Request request, Response response, Runnable runnable) { in ResponseDeliveryRunnable()
|
D | CacheDispatcher.java | 38 private final BlockingQueue<Request> mCacheQueue; 41 private final BlockingQueue<Request> mNetworkQueue; 62 BlockingQueue<Request> cacheQueue, BlockingQueue<Request> networkQueue, in CacheDispatcher() 91 final Request request = mCacheQueue.take(); in run()
|
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() 34 public void postError(Request<?> request, VolleyError error); in postError()
|
D | NetworkDispatcher.java | 36 private final BlockingQueue<Request> mQueue; 55 public NetworkDispatcher(BlockingQueue<Request> queue, in NetworkDispatcher() 76 Request request; in run() 138 private void parseAndDeliverNetworkError(Request<?> request, VolleyError error) { in parseAndDeliverNetworkError()
|
D | Request.java | 38 public abstract class Request<T> implements Comparable<Request<T>> { class 113 public Request(String url, Response.ErrorListener listener) { in Request() method in Request 123 public Request(int method, String url, Response.ErrorListener listener) { in Request() method in Request 526 public int compareTo(Request<T> other) { in compareTo()
|
/frameworks/base/core/java/android/net/http/ |
D | RequestQueue.java | 56 private final LinkedHashMap<HttpHost, LinkedList<Request>> mPending; 215 mPending = new LinkedHashMap<HttpHost, LinkedList<Request>>(32); in RequestQueue() 329 Request req; in queueRequest() 333 req = new Request(method, httpHost, mProxyHost, uri.getPath(), bodyProvider, in queueRequest() 351 private Request mRequest; 354 public Request getRequest() { in getRequest() 355 Request r = mRequest; in getRequest() 359 public Request getRequest(HttpHost host) { in getRequest() 365 public void requeueRequest(Request r) { in requeueRequest() 380 Request req = new Request(method, host, mProxyHost, uri.getPath(), in queueSynchronousRequest() [all …]
|
D | RequestFeeder.java | 30 Request getRequest(); in getRequest() 31 Request getRequest(HttpHost host); in getRequest() 41 void requeueRequest(Request request); in requeueRequest()
|
D | Connection.java | 158 void processRequests(Request firstRequest) { in processRequests() 159 Request req = null; in processRequests() 164 LinkedList<Request> pipe = new LinkedList<Request>(); in processRequests() 278 req = (Request)pipe.removeFirst(); in processRequests() 328 private boolean clearPipe(LinkedList<Request> pipe) { in clearPipe() 333 Request tReq; in clearPipe() 335 tReq = (Request)pipe.removeLast(); in clearPipe() 349 private boolean openHttpConnection(Request req) { in openHttpConnection() 428 private boolean httpFailure(Request req, int errorId, Exception e) { in httpFailure() 506 abstract AndroidHttpClientConnection openConnection(Request req) throws IOException; in openConnection()
|
/frameworks/volley/tests/src/com/android/volley/mock/ |
D | WaitableQueue.java | 20 import com.android.volley.Request; 30 public class WaitableQueue extends PriorityBlockingQueue<Request> { 31 private final Request<?> mStopRequest = new MagicStopRequest(); 44 public Request<?> take() throws InterruptedException { in take() 45 Request<?> item = super.take(); in take() 53 private static class MagicStopRequest extends Request<Object> {
|
D | MockResponseDelivery.java | 19 import com.android.volley.Request; 35 public void postResponse(Request<?> request, Response<?> response) { in postResponse() 41 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { in postResponse() 48 public void postError(Request<?> request, VolleyError error) { in postError()
|
D | MockNetwork.java | 21 import com.android.volley.Request; 43 public Request<?> requestHandled = null; 46 public NetworkResponse performRequest(Request<?> request) throws VolleyError { in performRequest()
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
D | DownloadManagerTestApp.java | 19 import android.app.DownloadManager.Request; 142 Request request = new Request(remoteUri); in initiateDownload() 235 Request request = new Request(remoteUri); in runLargeDownloadOverWiFi() 283 Request request = new Request(remoteUri); in runDownloadMultipleSwitching() 290 request.setAllowedNetworkTypes(Request.NETWORK_MOBILE | Request.NETWORK_WIFI); in runDownloadMultipleSwitching() 357 Request request = new Request(remoteUri); in runDownloadMultipleWiFiEnableDisable() 364 request.setAllowedNetworkTypes(Request.NETWORK_WIFI); in runDownloadMultipleWiFiEnableDisable() 427 Request request = new Request(remoteUri); in runDownloadMultipleAirplaneModeEnableDisable() 434 request.setAllowedNetworkTypes(Request.NETWORK_WIFI); in runDownloadMultipleAirplaneModeEnableDisable() 493 Request request = new Request(remoteUri); in runDownloadMultipleSimultaneously()
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipHelper.java | 65 import javax.sip.message.Request; 198 Request request = (caller == callee) in sendOptions() 199 ? createRequest(Request.OPTIONS, caller, tag) in sendOptions() 200 : createRequest(Request.OPTIONS, caller, callee, tag); in sendOptions() 214 Request request = createRequest(Request.REGISTER, userProfile, tag); in sendRegister() 233 private Request createRequest(String requestType, SipProfile userProfile, in createRequest() 246 Request request = mMessageFactory.createRequest(requestURI, in createRequest() 269 private Request createRequest(String requestType, SipProfile caller, in createRequest() 279 Request request = mMessageFactory.createRequest(requestURI, in createRequest() 291 Request request = createRequest(Request.INVITE, caller, callee, tag); in sendInvite() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerFunctionalTest.java | 20 import android.app.DownloadManager.Request; 76 Request request = new Request(uri); in doErrorTest() 158 Request request = new Request(uri); in testDownloadToExternal_fileExists() 196 Request request = new Request(uri); in testDownloadToExternal() 227 Request request = new Request(uri); in testDownloadToProhibitedDirectory() 336 Request request = new Request(uri); in testSetTitle() 365 Request request = new Request(uri); in testDownloadNoWifi() 366 request.setAllowedNetworkTypes(Request.NETWORK_WIFI); in testDownloadNoWifi()
|
/frameworks/testing/androidtestlib/src/com/android/test/runner/ |
D | TestRequest.java | 18 import org.junit.runner.Request; 29 private final Request mRequest; 31 public TestRequest(List<Failure> requestBuildFailures, Request request) { in TestRequest() 40 public Request getRequest() { in getRequest()
|
/frameworks/base/core/java/android/app/ |
D | DownloadManager.java | 345 public static class Request { class in DownloadManager 423 public Request(Uri uri) { in Request() method in DownloadManager.Request 434 Request(String uriString) { in Request() method in DownloadManager.Request 451 public Request setDestinationUri(Uri uri) { in setDestinationUri() 469 public Request setDestinationToSystemCache() { in setDestinationToSystemCache() 492 public Request setDestinationInExternalFilesDir(Context context, String dirType, in setDestinationInExternalFilesDir() 527 public Request setDestinationInExternalPublicDir(String dirType, String subPath) { in setDestinationInExternalPublicDir() 570 public Request addRequestHeader(String header, String value) { in addRequestHeader() 590 public Request setTitle(CharSequence title) { in setTitle() 599 public Request setDescription(CharSequence description) { in setDescription() [all …]
|
/frameworks/volley/tests/src/com/android/volley/ |
D | RequestQueueTest.java | 19 import com.android.volley.Request.Priority; 54 Request.Priority[] allPriorities = Request.Priority.values(); in makeRequests() 60 Request.Priority priority = allPriorities[random.nextInt(allPriorities.length)]; in makeRequests() 75 for (Request<?> request : makeRequests(requestsToMake)) { in testAdd_requestProcessedInCorrectOrder() 154 public NetworkResponse performRequest(Request<?> request) { in performRequest() 175 private class DelayedRequest extends Request<Object> {
|
/frameworks/base/core/java/android/provider/ |
D | Downloads.java | 552 return visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED || in isNotificationToBeDisplayed() 553 visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION; in isNotificationToBeDisplayed() 758 public static final int VISIBILITY_VISIBLE = DownloadManager.Request.VISIBILITY_VISIBLE; 765 DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED; 770 public static final int VISIBILITY_HIDDEN = DownloadManager.Request.VISIBILITY_HIDDEN;
|
/frameworks/volley/src/com/android/volley/toolbox/ |
D | HttpClientStack.java | 20 import com.android.volley.Request; 21 import com.android.volley.Request.Method; 71 public HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) in performRequest() 90 /* protected */ static HttpUriRequest createHttpRequest(Request<?> request, in createHttpRequest() 131 Request<?> request) throws AuthFailureError { in setEntityIfNonEmptyBody()
|
D | HurlStack.java | 20 import com.android.volley.Request; 21 import com.android.volley.Request.Method; 88 public HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) in performRequest() 161 private HttpURLConnection openConnection(URL url, Request<?> request) throws IOException { in openConnection() 180 Request<?> request) throws IOException, AuthFailureError { in setConnectionParametersForRequest() 221 private static void addBodyIfExists(HttpURLConnection connection, Request<?> request) in addBodyIfExists()
|
D | HttpStack.java | 20 import com.android.volley.Request; 42 public HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) in performRequest()
|
D | RequestFuture.java | 19 import com.android.volley.Request; 56 private Request<?> mRequest; 67 public void setRequest(Request<?> request) { in setRequest()
|
D | ClearCacheRequest.java | 21 import com.android.volley.Request; 30 public class ClearCacheRequest extends Request<Object> {
|
/frameworks/volley/tests/src/com/android/volley/toolbox/ |
D | BasicNetworkTest.java | 20 import com.android.volley.Request; 50 Request<String> request = new Request<String>("http://foo", null) { in testHeadersAndPostParams()
|