/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
D | RequestTest.java | 32 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 …]
|
D | BasicNetworkTest.java | 20 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/ |
D | RequestQueue.java | 45 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 …]
|
D | Request.java | 38 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()
|
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 | 37 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()
|
D | NetworkDispatcher.java | 37 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()
|
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()
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | BackgroundHelper.java | 39 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/ |
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> { 55 super(Request.Method.GET, "", null); in MagicStopRequest()
|
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 | MockRequest.java | 20 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()
|
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/volley/src/test/java/com/android/volley/ |
D | RequestQueueTest.java | 52 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()
|
D | RequestTest.java | 19 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);
|
D | RequestQueueIntegrationTest.java | 19 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/ |
D | DownloadManagerFunctionalTest.java | 20 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/ |
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/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
D | DownloadManagerTestApp.java | 19 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/ |
D | VoiceInteractor.java | 68 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 …]
|
D | DownloadManager.java | 359 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/ |
D | RecentLocationApps.java | 60 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/ |
D | Animator.cpp | 92 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/ |
D | HurlStack.java | 20 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/ |
D | Downloads.java | 557 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;
|