Searched refs:request (Results 1 - 25 of 166) sorted by relevance

1234567

/frameworks/base/core/jni/
H A Dandroid_hardware_UsbRequest.cpp62 struct usb_request* request = usb_request_new(device, &desc); local
63 if (request)
64 env->SetIntField(thiz, field_context, (int)request);
65 return (request != NULL);
72 struct usb_request* request = get_request_from_object(env, thiz); local
73 if (request) {
74 usb_request_free(request);
83 struct usb_request* request = get_request_from_object(env, thiz); local
84 if (!request) {
85 ALOGE("request i
121 struct usb_request* request = get_request_from_object(env, thiz); local
140 struct usb_request* request = get_request_from_object(env, thiz); local
170 struct usb_request* request = get_request_from_object(env, thiz); local
183 struct usb_request* request = get_request_from_object(env, thiz); local
[all...]
/frameworks/support/volley/src/com/android/volley/
H A DNetworkDispatcher.java74 Request request;
77 // Take a request from the queue.
78 request = mQueue.take();
88 request.addMarker("network-queue-take");
90 // If the request was cancelled already, do not perform the
91 // network request.
92 if (request.isCanceled()) {
93 request.finish("network-discard-cancelled");
97 // Perform the network request.
98 NetworkResponse networkResponse = mNetwork.performRequest(request);
131 parseAndDeliverNetworkError(Request<?> request, VolleyError error) argument
[all...]
H A DCacheDispatcher.java89 // Get a request from the cache triage queue, blocking until
91 final Request request = mCacheQueue.take();
92 request.addMarker("cache-queue-take");
94 // If the request has been canceled, don't bother dispatching it.
95 if (request.isCanceled()) {
96 request.finish("cache-discard-canceled");
101 Cache.Entry entry = mCache.get(request.getCacheKey());
103 request.addMarker("cache-miss");
105 mNetworkQueue.put(request);
111 request
[all...]
H A DNetwork.java24 * Performs the specified request.
25 * @param request Request to process
29 public NetworkResponse performRequest(Request<?> request) throws VolleyError; argument
H A DResponseDelivery.java23 public void postResponse(Request<?> request, Response<?> response); argument
29 public void postResponse(Request<?> request, Response<?> response, Runnable runnable); argument
32 * Posts an error for the given request.
34 public void postError(Request<?> request, VolleyError error); argument
H A DExecutorDelivery.java54 public void postResponse(Request<?> request, Response<?> response) { argument
55 postResponse(request, response, null);
59 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { argument
60 request.markDelivered();
61 request.addMarker("post-response");
62 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, runnable));
66 public void postError(Request<?> request, VolleyError error) { argument
67 request.addMarker("post-error");
69 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, null));
82 public ResponseDeliveryRunnable(Request request, Respons argument
[all...]
H A DRequestQueue.java32 * A request dispatch queue with a thread pool of dispatchers.
45 * Staging area for requests that already have a duplicate request in flight.
48 * <li>containsKey(cacheKey) indicates that there is a request in flight for the given cache
50 * <li>get(cacheKey) returns waiting requests for the given cache key. The in flight request
72 /** Number of network request dispatcher threads to start. */
172 public boolean apply(Request<?> request); argument
181 for (Request<?> request : mCurrentRequests) {
182 if (filter.apply(request)) {
183 request.cancel();
199 public boolean apply(Request<?> request) {
210 add(Request request) argument
258 finish(Request request) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpRequestPacket.cpp50 int MtpRequestPacket::write(struct usb_request *request) argument
54 request->buffer = mBuffer;
55 request->buffer_length = mPacketSize;
56 return transfer(request);
H A DMtpResponsePacket.cpp47 int MtpResponsePacket::read(struct usb_request *request) { argument
48 request->buffer = mBuffer;
49 request->buffer_length = mBufferSize;
50 int ret = transfer(request);
H A DMtpEventPacket.cpp57 int MtpEventPacket::read(struct usb_request *request) { argument
58 request->buffer = mBuffer;
59 request->buffer_length = mBufferSize;
60 int ret = transfer(request);
/frameworks/base/core/java/android/ddm/
H A DDdmHandleNativeHeap.java60 public Chunk handleChunk(Chunk request) { argument
61 Log.i("ddm-nativeheap", "Handling " + name(request.type) + " chunk");
62 int type = request.type;
65 return handleNHGT(request);
73 * Handle a "Native Heap GeT" request.
75 private Chunk handleNHGT(Chunk request) { argument
76 //ByteBuffer in = wrapChunk(request);
H A DDdmHandleHeap.java79 public Chunk handleChunk(Chunk request) { argument
81 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk");
82 int type = request.type;
85 return handleHPIF(request);
87 return handleHPSGNHSG(request, false);
89 return handleHPDU(request);
91 return handleHPDS(request);
93 return handleHPSGNHSG(request, true);
95 return handleHPGC(request);
97 return handleREAE(request);
111 handleHPIF(Chunk request) argument
129 handleHPSGNHSG(Chunk request, boolean isNative) argument
155 handleHPDU(Chunk request) argument
189 handleHPDS(Chunk request) argument
217 handleHPGC(Chunk request) argument
230 handleREAE(Chunk request) argument
247 handleREAQ(Chunk request) argument
258 handleREAL(Chunk request) argument
[all...]
H A DDdmHandleProfiling.java70 public Chunk handleChunk(Chunk request) { argument
72 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk");
73 int type = request.type;
76 return handleMPRS(request);
78 return handleMPRE(request);
80 return handleMPSS(request);
82 return handleMPSE(request);
84 return handleMPRQ(request);
92 * Handle a "Method PRofiling Start" request.
94 private Chunk handleMPRS(Chunk request) { argument
116 handleMPRE(Chunk request) argument
136 handleMPSS(Chunk request) argument
157 handleMPSE(Chunk request) argument
180 handleMPRQ(Chunk request) argument
[all...]
H A DDdmHandleExit.java60 public Chunk handleChunk(Chunk request) { argument
62 Log.v("ddm-exit", "Handling " + name(request.type) + " chunk");
65 * Process the request.
67 ByteBuffer in = wrapChunk(request);
H A DDdmHandleThread.java67 public Chunk handleChunk(Chunk request) { argument
69 Log.v("ddm-thread", "Handling " + name(request.type) + " chunk");
70 int type = request.type;
73 return handleTHEN(request);
75 return handleTHST(request);
77 return handleSTKL(request);
85 * Handle a "THread notification ENable" request.
87 private Chunk handleTHEN(Chunk request) { argument
88 ByteBuffer in = wrapChunk(request);
98 * Handle a "THread STatus" request
100 handleTHST(Chunk request) argument
123 handleSTKL(Chunk request) argument
[all...]
/frameworks/base/obex/javax/obex/
H A DServerRequestHandler.java59 * A CREATE-EMPTY request allows clients to create empty objects on the server.
60 * When a CREATE-EMPTY request is received, the <code>onPut()</code> method will
62 * request and a CREATE-EMPTY request, an application must open the
64 * <code>onPut()</code> method. For a PUT request, the application will be able
66 * request, there will be no Body data to read. Therefore, a call to
109 * Called when a CONNECT request is received.
115 * The headers received in the request can be retrieved from the
116 * <code>request</code> argument. The headers that should be sent in the
118 * @param request contain
127 onConnect(HeaderSet request, HeaderSet reply) argument
142 onDisconnect(HeaderSet request, HeaderSet reply) argument
171 onSetPath(HeaderSet request, HeaderSet reply, boolean backup, boolean create) argument
195 onDelete(HeaderSet request, HeaderSet reply) argument
202 onAbort(HeaderSet request, HeaderSet reply) argument
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DUsbDeviceConnection.java106 * The direction of the transfer is determined by the request type.
112 * @param requestType request type for this transaction
113 * @param request request ID for this transaction
123 public int controlTransfer(int requestType, int request, int value, argument
125 return native_control_request(requestType, request, value, index, buffer, length, timeout);
151 * @return a completed USB request, or null if an error occurred
154 UsbRequest request = native_request_wait();
155 if (request != null) {
156 request
177 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument
[all...]
/frameworks/base/location/java/com/android/internal/location/
H A DProviderRequest.java39 * is a high power slow interval request and a
40 * low power fast interval request.
50 ProviderRequest request = new ProviderRequest();
51 request.reportLocation = in.readInt() == 1;
52 request.interval = in.readLong();
55 request.locationRequests.add(LocationRequest.CREATOR.createFromParcel(in));
57 return request;
75 for (LocationRequest request : locationRequests) {
76 request.writeToParcel(parcel, flags);
/frameworks/base/core/java/android/net/http/
H A DRequestFeeder.java34 * @return true if a request for this host is available
39 * Put request back on head of queue
41 void requeueRequest(Request request); argument
H A DConnectionThread.java78 // next request starts.
87 Request request;
89 /* Get a request to process */
90 request = mRequestFeeder.getRequest();
93 if (request == null) {
108 if (HttpLog.LOGV) HttpLog.v("ConnectionThread: new request " +
109 request.mHost + " " + request );
112 request.mHost);
113 mConnection.processRequests(request);
[all...]
/frameworks/testing/androidtestlib/src/com/android/test/runner/
H A DTestRequest.java31 public TestRequest(List<Failure> requestBuildFailures, Request request) { argument
32 mRequest = request;
/frameworks/testing/androidtestlib/tests/src/com/android/test/runner/
H A DTestRequestBuilderTest.java70 TestRequest request = b.build(mInstr);
72 Result result = testRunner.run(request.getRequest());
84 TestRequest request = b.build(mInstr);
86 Result result = testRunner.run(request.getRequest());
99 TestRequest request = b.build(mInstr);
101 Result result = testRunner.run(request.getRequest());
114 TestRequest request = b.build(mInstr);
116 Result result = testRunner.run(request.getRequest());
129 TestRequest request = b.build(mInstr);
131 Result result = testRunner.run(request
[all...]
/frameworks/support/volley/tests/src/com/android/volley/mock/
H A DMockHttpStack.java55 public HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) argument
57 mLastUrl = request.getUrl();
59 if (request.getHeaders() != null) {
60 mLastHeaders.putAll(request.getHeaders());
66 mLastPostBody = request.getPostBody();
H A DMockResponseDelivery.java35 public void postResponse(Request<?> request, Response<?> response) { argument
41 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { argument
48 public void postError(Request<?> request, VolleyError error) { argument
/frameworks/av/media/libstagefright/rtsp/
H A DMyTransmitter.h217 AString request; local
218 request.append("ANNOUNCE ");
219 request.append(mStreamURL);
220 request.append(" RTSP/1.0\r\n");
222 addAuthentication(&request, "ANNOUNCE", mStreamURL.c_str());
224 request.append("Content-Type: application/sdp\r\n");
225 request.append("Content-Length: ");
226 request.append(sdp.size());
227 request.append("\r\n");
229 request
289 addAuthentication( AString *request, const char *method, const char *url) argument
403 AString request; local
526 AString request; local
577 AString request; local
693 AString request; local
744 AString request; local
[all...]

Completed in 265 milliseconds

1234567