Home
last modified time | relevance | path

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

12345

/frameworks/volley/src/test/java/com/android/volley/toolbox/
DRequestTest.java32 assertNotNull(Request.class.getConstructor(int.class, String.class, in publicMethods()
35 assertNotNull(Request.class.getMethod("getMethod")); in publicMethods()
36 assertNotNull(Request.class.getMethod("setTag", Object.class)); in publicMethods()
37 assertNotNull(Request.class.getMethod("getTag")); in publicMethods()
38 assertNotNull(Request.class.getMethod("getErrorListener")); in publicMethods()
39 assertNotNull(Request.class.getMethod("getTrafficStatsTag")); in publicMethods()
40 assertNotNull(Request.class.getMethod("setRetryPolicy", RetryPolicy.class)); in publicMethods()
41 assertNotNull(Request.class.getMethod("addMarker", String.class)); in publicMethods()
42 assertNotNull(Request.class.getDeclaredMethod("finish", String.class)); in publicMethods()
43 assertNotNull(Request.class.getMethod("setRequestQueue", RequestQueue.class)); in publicMethods()
[all …]
DBasicNetworkTest.java20 import com.android.volley.Request;
49 Request<String> request = new Request<String>(Request.Method.GET, "http://foo", null) { in headersAndPostParams()
/frameworks/volley/src/main/java/com/android/volley/
DRequestQueue.java45 public void onRequestFinished(Request<T> request); in onRequestFinished()
61 private final Map<String, Queue<Request<?>>> mWaitingRequests =
62 new HashMap<String, Queue<Request<?>>>();
69 private final Set<Request<?>> mCurrentRequests = new HashSet<Request<?>>();
72 private final PriorityBlockingQueue<Request<?>> mCacheQueue =
73 new PriorityBlockingQueue<Request<?>>();
76 private final PriorityBlockingQueue<Request<?>> mNetworkQueue =
77 new PriorityBlockingQueue<Request<?>>();
189 public boolean apply(Request<?> request); in apply()
198 for (Request<?> request : mCurrentRequests) { in cancelAll()
[all …]
DRequest.java38 public abstract class Request<T> implements Comparable<Request<T>> { class
115 public Request(String url, Response.ErrorListener listener) { in Request() method in Request
125 public Request(int method, String url, Response.ErrorListener listener) { in Request() method in Request
147 public Request<?> setTag(Object tag) { in setTag()
195 public Request<?> setRetryPolicy(RetryPolicy retryPolicy) { in setRetryPolicy()
245 public Request<?> setRequestQueue(RequestQueue requestQueue) { in setRequestQueue()
255 public final Request<?> setSequence(int sequence) { in setSequence()
290 public Request<?> setCacheEntry(Cache.Entry entry) { in setCacheEntry()
464 public final Request<?> setShouldCache(boolean shouldCache) { in setShouldCache()
573 public int compareTo(Request<T> other) { in compareTo()
DExecutorDelivery.java54 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()
DCacheDispatcher.java37 private final BlockingQueue<Request<?>> mCacheQueue;
40 private final BlockingQueue<Request<?>> mNetworkQueue;
61 BlockingQueue<Request<?>> cacheQueue, BlockingQueue<Request<?>> networkQueue, in CacheDispatcher()
90 final Request<?> request = mCacheQueue.take(); in run()
DNetworkDispatcher.java37 private final BlockingQueue<Request<?>> mQueue;
56 public NetworkDispatcher(BlockingQueue<Request<?>> queue, in NetworkDispatcher()
75 private void addTrafficStatsTag(Request<?> request) { in addTrafficStatsTag()
87 Request<?> request; in run()
148 private void parseAndDeliverNetworkError(Request<?> request, VolleyError error) { in parseAndDeliverNetworkError()
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()
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DBackgroundHelper.java39 static class Request { class in BackgroundHelper
44 Request(Activity activity, Object imageToken) { in Request() method in BackgroundHelper.Request
55 Request mRequest;
58 mRequest = new Request(activity, imageToken); in LoadBackgroundRunnable()
74 class LoadBitmapTask extends AsyncTask<Request, Object, Request> {
76 protected Request doInBackground(Request... params) { in doInBackground()
79 Request request = params[0]; in doInBackground()
87 protected void onPostExecute(Request request) { in onPostExecute()
96 protected void onCancelled(Request request) { in onCancelled()
/frameworks/volley/src/test/java/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> {
55 super(Request.Method.GET, "", null); in MagicStopRequest()
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()
DMockRequest.java20 import com.android.volley.Request;
29 public class MockRequest extends Request<byte[]> {
31 super(Request.Method.GET, "http://foo.com", null); in MockRequest()
35 super(Request.Method.GET, url, listener); in MockRequest()
DMockNetwork.java21 import com.android.volley.Request;
43 public Request<?> requestHandled = null;
46 public NetworkResponse performRequest(Request<?> request) throws VolleyError { in performRequest()
/frameworks/volley/src/test/java/com/android/volley/
DRequestQueueTest.java52 Request req1 = mock(Request.class); in cancelAll_onlyCorrectTag()
54 Request req2 = mock(Request.class); in cancelAll_onlyCorrectTag()
56 Request req3 = mock(Request.class); in cancelAll_onlyCorrectTag()
58 Request req4 = mock(Request.class); in cancelAll_onlyCorrectTag()
DRequestTest.java19 import com.android.volley.Request.Priority;
48 private class TestRequest extends Request<Object> {
51 super(Request.Method.GET, "", null);
83 private class UrlParseRequest extends Request<Object> {
85 super(Request.Method.GET, url, null);
DRequestQueueIntegrationTest.java19 import com.android.volley.Request.Priority;
108 Request req1 = new MockRequest(); in add_dedupeByCacheKey()
109 Request req2 = new MockRequest(); in add_dedupeByCacheKey()
143 Request request = new MockRequest(); in add_requestFinishedListenerCanceled()
171 Request request = new MockRequest(); in add_requestFinishedListenerSuccess()
194 Request request = new MockRequest(); in add_requestFinishedListenerError()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java20 import android.app.DownloadManager.Request;
76 Request request = new Request(uri); in doErrorTest()
160 Request request = new Request(uri); in testDownloadToExternal_fileExists()
197 Request request = new Request(uri); in testDownloadToExternal()
228 Request request = new Request(uri); in testDownloadToProhibitedDirectory()
303 Request request = new Request(uri); in testRelativeRedirect()
347 Request request = new Request(uri); in testSetTitle()
376 Request request = new Request(uri); in testDownloadNoWifi()
377 request.setAllowedNetworkTypes(Request.NETWORK_WIFI); in testDownloadNoWifi()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipHelper.java65 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/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerTestApp.java19 import android.app.DownloadManager.Request;
139 Request request = new Request(remoteUri); in initiateDownload()
230 Request request = new Request(remoteUri); in runLargeDownloadOverWiFi()
278 Request request = new Request(remoteUri); in runDownloadMultipleSwitching()
285 request.setAllowedNetworkTypes(Request.NETWORK_MOBILE | Request.NETWORK_WIFI); in runDownloadMultipleSwitching()
354 Request request = new Request(remoteUri); in runDownloadMultipleWiFiEnableDisable()
361 request.setAllowedNetworkTypes(Request.NETWORK_WIFI); in runDownloadMultipleWiFiEnableDisable()
424 Request request = new Request(remoteUri); in runDownloadMultipleAirplaneModeEnableDisable()
431 request.setAllowedNetworkTypes(Request.NETWORK_WIFI); in runDownloadMultipleAirplaneModeEnableDisable()
489 Request request = new Request(remoteUri); in runDownloadMultipleSimultaneously()
/frameworks/base/core/java/android/app/
DVoiceInteractor.java68 static final Request[] NO_REQUESTS = new Request[0];
81 Request request;
198 final ArrayMap<IBinder, Request> mActiveRequests = new ArrayMap<>();
211 public static abstract class Request { class in VoiceInteractor
217 Request() { in Request() method in VoiceInteractor.Request
327 public static class ConfirmationRequest extends Request {
389 public static class PickOptionRequest extends Request {
604 public static class CompleteVoiceRequest extends Request {
663 public static class AbortVoiceRequest extends Request {
726 public static class CommandRequest extends Request {
[all …]
DDownloadManager.java359 public static class Request { class in DownloadManager
439 public Request(Uri uri) { in Request() method in DownloadManager.Request
450 Request(String uriString) { in Request() method in DownloadManager.Request
467 public Request setDestinationUri(Uri uri) { in setDestinationUri()
485 public Request setDestinationToSystemCache() { in setDestinationToSystemCache()
508 public Request setDestinationInExternalFilesDir(Context context, String dirType, in setDestinationInExternalFilesDir()
543 public Request setDestinationInExternalPublicDir(String dirType, String subPath) { in setDestinationInExternalPublicDir()
586 public Request addRequestHeader(String header, String value) { in addRequestHeader()
606 public Request setTitle(CharSequence title) { in setTitle()
615 public Request setDescription(CharSequence description) { in setDescription()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java60 public List<Request> getAppList() { in getAppList()
69 ArrayList<Request> requests = new ArrayList<>(appOpsCount); in getAppList()
86 Request request = getRequestFromOps(now, ops); in getAppList()
102 private Request getRequestFromOps(long now, in getRequestFromOps()
137 Request request = null; in getRequestFromOps()
158 request = new Request(packageName, userHandle, icon, appLabel, highBattery, in getRequestFromOps()
168 public static class Request { class in RecentLocationApps
176 private Request(String packageName, UserHandle userHandle, Drawable icon, in Request() method in RecentLocationApps.Request
/frameworks/base/libs/hwui/
DAnimator.cpp92 mStagingRequests.push_back(Request::Start); in start()
98 mStagingRequests.push_back(Request::Cancel); in cancel()
104 mStagingRequests.push_back(Request::Reset); in reset()
110 mStagingRequests.push_back(Request::Reverse); in reverse()
116 mStagingRequests.push_back(Request::End); in end()
120 void BaseRenderNodeAnimator::resolveStagingRequest(Request request) { in resolveStagingRequest()
122 case Request::Start: in resolveStagingRequest()
128 case Request::Reverse: in resolveStagingRequest()
134 case Request::Reset: in resolveStagingRequest()
139 case Request::Cancel: in resolveStagingRequest()
[all …]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DHurlStack.java20 import com.android.volley.Request;
21 import com.android.volley.Request.Method;
89 public HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) in performRequest()
139 return requestMethod != Request.Method.HEAD in hasResponseBody()
185 private HttpURLConnection openConnection(URL url, Request<?> request) throws IOException { in openConnection()
204 Request<?> request) throws IOException, AuthFailureError { in setConnectionParametersForRequest()
258 private static void addBodyIfExists(HttpURLConnection connection, Request<?> request) in addBodyIfExists()
/frameworks/base/core/java/android/provider/
DDownloads.java557 return visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED || in isNotificationToBeDisplayed()
558 visibility == DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION; in isNotificationToBeDisplayed()
763 public static final int VISIBILITY_VISIBLE = DownloadManager.Request.VISIBILITY_VISIBLE;
770 DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED;
775 public static final int VISIBILITY_HIDDEN = DownloadManager.Request.VISIBILITY_HIDDEN;

12345