Home
last modified time | relevance | path

Searched refs:Request (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/support/volley/src/com/android/volley/
DRequestQueue.java56 private final Map<String, Queue<Request>> mWaitingRequests =
57 new HashMap<String, Queue<Request>>();
64 private final Set<Request> mCurrentRequests = new HashSet<Request>();
67 private final PriorityBlockingQueue<Request> mCacheQueue =
68 new PriorityBlockingQueue<Request>();
71 private final PriorityBlockingQueue<Request> mNetworkQueue =
72 new PriorityBlockingQueue<Request>();
174 public boolean apply(Request<?> request); in apply()
183 for (Request<?> request : mCurrentRequests) { in cancelAll()
201 public boolean apply(Request<?> request) { in cancelAll()
[all …]
DCacheDispatcher.java36 private final BlockingQueue<Request> mCacheQueue;
39 private final BlockingQueue<Request> mNetworkQueue;
60 BlockingQueue<Request> cacheQueue, BlockingQueue<Request> networkQueue, in CacheDispatcher()
88 final Request request = mCacheQueue.take(); in run()
DExecutorDelivery.java57 public void postResponse(Request<?> request, Response<?> response) { in postResponse()
62 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { in postResponse()
69 public void postError(Request<?> request, VolleyError error) { in postError()
86 private final Request mRequest;
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()
34 public void postError(Request<?> request, VolleyError error); in postError()
DNetworkDispatcher.java32 private final BlockingQueue<Request> mQueue;
51 public NetworkDispatcher(BlockingQueue<Request> queue, in NetworkDispatcher()
71 Request request; in run()
128 private void parseAndDeliverNetworkError(Request<?> request, VolleyError error) { in parseAndDeliverNetworkError()
DRequest.java35 public abstract class Request<T> implements Comparable<Request<T>> { class
92 public Request(String url, Response.ErrorListener listener) { in Request() method in Request
436 public int compareTo(Request<T> other) { in compareTo()
/frameworks/base/core/java/android/net/http/
DRequestQueue.java56 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 …]
DRequestFeeder.java30 Request getRequest(); in getRequest()
31 Request getRequest(HttpHost host); in getRequest()
41 void requeueRequest(Request request); in requeueRequest()
DConnection.java158 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/support/volley/tests/src/com/android/volley/mock/
DWaitableQueue.java20 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> {
DMockResponseDelivery.java19 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()
DMockNetwork.java21 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/
DDownloadManagerTestApp.java19 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/base/voip/java/com/android/server/sip/
DSipHelper.java67 import javax.sip.message.Request;
200 Request request = (caller == callee) in sendOptions()
201 ? createRequest(Request.OPTIONS, caller, tag) in sendOptions()
202 : createRequest(Request.OPTIONS, caller, callee, tag); in sendOptions()
216 Request request = createRequest(Request.REGISTER, userProfile, tag); in sendRegister()
235 private Request createRequest(String requestType, SipProfile userProfile, in createRequest()
248 Request request = mMessageFactory.createRequest(requestURI, in createRequest()
271 private Request createRequest(String requestType, SipProfile caller, in createRequest()
281 Request request = mMessageFactory.createRequest(requestURI, in createRequest()
293 Request request = createRequest(Request.INVITE, caller, callee, tag); in sendInvite()
[all …]
DSipSessionGroup.java82 import javax.sip.message.Request;
336 if (isRequestEvent(Request.INVITE, event)) { in processRequest()
508 if (isRequestEvent(Request.INVITE, evt)) { in process()
511 } else if (isRequestEvent(Request.OPTIONS, evt)) { in process()
794 if (isRequestEvent(Request.BYE, evt)) { in processExceptions()
799 } else if (isRequestEvent(Request.CANCEL, evt)) { in processExceptions()
813 } else if (isRequestEvent(Request.OPTIONS, evt)) { in processExceptions()
855 Request request = transaction.getRequest(); in toString()
923 if (expectResponse(Request.REGISTER, evt)) { in registeringToReady()
1089 } else if (isRequestEvent(Request.CANCEL, evt)) {
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java20 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/base/core/java/android/app/
DDownloadManager.java334 public static class Request { class in DownloadManager
405 public Request(Uri uri) { in Request() method in DownloadManager.Request
416 Request(String uriString) { in Request() method in DownloadManager.Request
433 public Request setDestinationUri(Uri uri) { in setDestinationUri()
451 public Request setDestinationToSystemCache() { in setDestinationToSystemCache()
468 public Request setDestinationInExternalFilesDir(Context context, String dirType, in setDestinationInExternalFilesDir()
487 public Request setDestinationInExternalPublicDir(String dirType, String subPath) { in setDestinationInExternalPublicDir()
528 public Request addRequestHeader(String header, String value) { in addRequestHeader()
548 public Request setTitle(CharSequence title) { in setTitle()
557 public Request setDescription(CharSequence description) { in setDescription()
[all …]
/frameworks/base/core/java/android/provider/
DDownloads.java547 return visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED || in isNotificationToBeDisplayed()
548 visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION; in isNotificationToBeDisplayed()
753 public static final int VISIBILITY_VISIBLE = DownloadManager.Request.VISIBILITY_VISIBLE;
760 DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED;
765 public static final int VISIBILITY_HIDDEN = DownloadManager.Request.VISIBILITY_HIDDEN;
/frameworks/support/volley/tests/src/com/android/volley/
DRequestQueueTest.java19 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()
272 private class DelayedRequest extends Request<Object> {
DCacheDispatcherTest.java78 Request request = mNetworkQueue.take(); in testCacheMiss()
101 Request request = mNetworkQueue.take(); in testSoftExpiredCacheHit()
113 Request request = mNetworkQueue.take(); in testExpiredCacheHit()
/frameworks/native/include/utils/
DLooper.h323 struct Request { struct
332 Request request; argument
359 KeyedVector<int, Request> mRequests; // guarded by mLock
369 void pushResponse(int events, const Request& request);
/frameworks/support/volley/tests/src/com/android/volley/toolbox/
DBasicNetworkTest.java20 import com.android.volley.Request;
50 Request<String> request = new Request<String>("http://foo", null) { in testHeadersAndPostParams()
/frameworks/support/volley/src/com/android/volley/toolbox/
DHttpStack.java20 import com.android.volley.Request;
42 public HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) in performRequest()
DHurlStack.java20 import com.android.volley.Request;
72 public HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) in performRequest()
138 private HttpURLConnection openConnection(URL url, Request<?> request) throws IOException { in openConnection()
149 private void handlePost(HttpURLConnection connection, Request<?> request) in handlePost()
DClearCacheRequest.java21 import com.android.volley.Request;
30 public class ClearCacheRequest extends Request<Object> {

123