Home
last modified time | relevance | path

Searched refs:request (Results 1 – 25 of 567) sorted by relevance

12345678910>>...23

/frameworks/base/core/jni/
Dandroid_hardware_UsbRequest.cpp62 struct usb_request* request = usb_request_new(device, &desc); in android_hardware_UsbRequest_init() local
63 if (request) in android_hardware_UsbRequest_init()
64 env->SetLongField(thiz, field_context, (jlong)request); in android_hardware_UsbRequest_init()
65 return (request != NULL); in android_hardware_UsbRequest_init()
72 struct usb_request* request = get_request_from_object(env, thiz); in android_hardware_UsbRequest_close() local
73 if (request) { in android_hardware_UsbRequest_close()
74 usb_request_free(request); in android_hardware_UsbRequest_close()
83 struct usb_request* request = get_request_from_object(env, thiz); in android_hardware_UsbRequest_queue_array() local
84 if (!request) { in android_hardware_UsbRequest_queue_array()
90 request->buffer = malloc(length); in android_hardware_UsbRequest_queue_array()
[all …]
/frameworks/volley/src/test/java/com/android/volley/toolbox/
DHttpClientStackTest.java42 TestRequest.DeprecatedGet request = new TestRequest.DeprecatedGet(); in createDeprecatedGetRequest() local
43 assertEquals(request.getMethod(), Method.DEPRECATED_GET_OR_POST); in createDeprecatedGetRequest()
45 HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null); in createDeprecatedGetRequest()
50 TestRequest.DeprecatedPost request = new TestRequest.DeprecatedPost(); in createDeprecatedPostRequest() local
51 assertEquals(request.getMethod(), Method.DEPRECATED_GET_OR_POST); in createDeprecatedPostRequest()
53 HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null); in createDeprecatedPostRequest()
58 TestRequest.Get request = new TestRequest.Get(); in createGetRequest() local
59 assertEquals(request.getMethod(), Method.GET); in createGetRequest()
61 HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null); in createGetRequest()
66 TestRequest.Post request = new TestRequest.Post(); in createPostRequest() local
[all …]
DHurlStackTest.java40 TestRequest.DeprecatedGet request = new TestRequest.DeprecatedGet(); in connectionForDeprecatedGetRequest() local
41 assertEquals(request.getMethod(), Method.DEPRECATED_GET_OR_POST); in connectionForDeprecatedGetRequest()
43 HurlStack.setConnectionParametersForRequest(mMockConnection, request); in connectionForDeprecatedGetRequest()
49 TestRequest.DeprecatedPost request = new TestRequest.DeprecatedPost(); in connectionForDeprecatedPostRequest() local
50 assertEquals(request.getMethod(), Method.DEPRECATED_GET_OR_POST); in connectionForDeprecatedPostRequest()
52 HurlStack.setConnectionParametersForRequest(mMockConnection, request); in connectionForDeprecatedPostRequest()
58 TestRequest.Get request = new TestRequest.Get(); in connectionForGetRequest() local
59 assertEquals(request.getMethod(), Method.GET); in connectionForGetRequest()
61 HurlStack.setConnectionParametersForRequest(mMockConnection, request); in connectionForGetRequest()
67 TestRequest.Post request = new TestRequest.Post(); in connectionForPostRequest() local
[all …]
/frameworks/base/libs/androidfw/tests/
DConfigLocale_test.cpp388 ResTable_config config1, config2, request; in TEST() local
390 fillIn(NULL, NULL, NULL, NULL, &request); in TEST()
393 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
394 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
396 fillIn("fr", "CA", NULL, NULL, &request); in TEST()
399 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
400 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
402 fillIn("fr", "CA", NULL, NULL, &request); in TEST()
405 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
406 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
[all …]
/frameworks/volley/src/main/java/com/android/volley/
DNetworkDispatcher.java75 private void addTrafficStatsTag(Request<?> request) { in addTrafficStatsTag() argument
78 TrafficStats.setThreadStatsTag(request.getTrafficStatsTag()); in addTrafficStatsTag()
87 Request<?> request; in run() local
90 request = mQueue.take(); in run()
100 request.addMarker("network-queue-take"); in run()
104 if (request.isCanceled()) { in run()
105 request.finish("network-discard-cancelled"); in run()
109 addTrafficStatsTag(request); in run()
112 NetworkResponse networkResponse = mNetwork.performRequest(request); in run()
113 request.addMarker("network-http-complete"); in run()
[all …]
DCacheDispatcher.java90 final Request<?> request = mCacheQueue.take(); in run() local
91 request.addMarker("cache-queue-take"); in run()
94 if (request.isCanceled()) { in run()
95 request.finish("cache-discard-canceled"); in run()
100 Cache.Entry entry = mCache.get(request.getCacheKey()); in run()
102 request.addMarker("cache-miss"); in run()
104 mNetworkQueue.put(request); in run()
110 request.addMarker("cache-hit-expired"); in run()
111 request.setCacheEntry(entry); in run()
112 mNetworkQueue.put(request); in run()
[all …]
DRequestQueue.java45 public void onRequestFinished(Request<T> request); in onRequestFinished() argument
189 public boolean apply(Request<?> request); in apply() argument
198 for (Request<?> request : mCurrentRequests) { in cancelAll()
199 if (filter.apply(request)) { in cancelAll()
200 request.cancel(); in cancelAll()
216 public boolean apply(Request<?> request) { in cancelAll()
217 return request.getTag() == tag; in cancelAll()
227 public <T> Request<T> add(Request<T> request) { in add() argument
229 request.setRequestQueue(this); in add()
231 mCurrentRequests.add(request); in add()
[all …]
DExecutorDelivery.java54 public void postResponse(Request<?> request, Response<?> response) { in postResponse() argument
55 postResponse(request, response, null); in postResponse()
59 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { in postResponse() argument
60 request.markDelivered(); in postResponse()
61 request.addMarker("post-response"); in postResponse()
62 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, runnable)); in postResponse()
66 public void postError(Request<?> request, VolleyError error) { in postError() argument
67 request.addMarker("post-error"); in postError()
69 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, null)); in postError()
82 public ResponseDeliveryRunnable(Request request, Response response, Runnable runnable) { in ResponseDeliveryRunnable() argument
[all …]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMasClient.java358 BluetoothMasRequest request = (BluetoothMasRequest) msg.obj; in handleMessage() local
359 int status = request.isSuccess() ? STATUS_OK : STATUS_FAILED; in handleMessage()
362 + request.getClass().getName()); in handleMessage()
364 if (request instanceof BluetoothMasRequestUpdateInbox) { in handleMessage()
365 client.sendToClient(EVENT_UPDATE_INBOX, request.isSuccess()); in handleMessage()
367 } else if (request instanceof BluetoothMasRequestSetPath) { in handleMessage()
368 if (request.isSuccess()) { in handleMessage()
369 BluetoothMasRequestSetPath req = (BluetoothMasRequestSetPath) request; in handleMessage()
387 client.sendToClient(EVENT_SET_PATH, request.isSuccess(), in handleMessage()
390 } else if (request instanceof BluetoothMasRequestGetFolderListing) { in handleMessage()
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DAsyncLayoutInflater.java86 InflateRequest request = mInflateThread.obtainRequest(); in inflate() local
87 request.inflater = this; in inflate()
88 request.resid = resid; in inflate()
89 request.parent = parent; in inflate()
90 request.callback = callback; in inflate()
91 mInflateThread.enqueue(request); in inflate()
97 InflateRequest request = (InflateRequest) msg.obj;
98 if (request.view == null) {
99 request.view = mInflater.inflate(
100 request.resid, request.parent, false);
[all …]
/frameworks/av/media/libstagefright/rtsp/
DMyTransmitter.h220 AString request; in issueAnnounce() local
221 request.append("ANNOUNCE "); in issueAnnounce()
222 request.append(mStreamURL); in issueAnnounce()
223 request.append(" RTSP/1.0\r\n"); in issueAnnounce()
225 addAuthentication(&request, "ANNOUNCE", mStreamURL.c_str()); in issueAnnounce()
227 request.append("Content-Type: application/sdp\r\n"); in issueAnnounce()
228 request.append("Content-Length: "); in issueAnnounce()
229 request.append(sdp.size()); in issueAnnounce()
230 request.append("\r\n"); in issueAnnounce()
232 request.append("\r\n"); in issueAnnounce()
[all …]
/frameworks/base/core/java/android/ddm/
DDdmHandleHeap.java79 public Chunk handleChunk(Chunk request) { in handleChunk() argument
81 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk()
82 int type = request.type; in handleChunk()
85 return handleHPIF(request); in handleChunk()
87 return handleHPSGNHSG(request, false); in handleChunk()
89 return handleHPDU(request); in handleChunk()
91 return handleHPDS(request); in handleChunk()
93 return handleHPSGNHSG(request, true); in handleChunk()
95 return handleHPGC(request); in handleChunk()
97 return handleREAE(request); in handleChunk()
[all …]
DDdmHandleProfiling.java74 public Chunk handleChunk(Chunk request) { in handleChunk() argument
76 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk()
77 int type = request.type; in handleChunk()
80 return handleMPRS(request); in handleChunk()
82 return handleMPRE(request); in handleChunk()
84 return handleMPSS(request); in handleChunk()
86 return handleMPSEOrSPSE(request, "Method"); in handleChunk()
88 return handleMPRQ(request); in handleChunk()
90 return handleSPSS(request); in handleChunk()
92 return handleMPSEOrSPSE(request, "Sample"); in handleChunk()
[all …]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DHttpClientStack.java75 public HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) in performRequest() argument
77 HttpUriRequest httpRequest = createHttpRequest(request, additionalHeaders); in performRequest()
79 addHeaders(httpRequest, request.getHeaders()); in performRequest()
82 int timeoutMs = request.getTimeoutMs(); in performRequest()
94 /* protected */ static HttpUriRequest createHttpRequest(Request<?> request, in createHttpRequest() argument
96 switch (request.getMethod()) { in createHttpRequest()
101 byte[] postBody = request.getPostBody(); in createHttpRequest()
103 HttpPost postRequest = new HttpPost(request.getUrl()); in createHttpRequest()
104 postRequest.addHeader(HEADER_CONTENT_TYPE, request.getPostBodyContentType()); in createHttpRequest()
110 return new HttpGet(request.getUrl()); in createHttpRequest()
[all …]
DImageLoader.java232 BatchedImageRequest request = mInFlightRequests.get(cacheKey);
233 if (request != null) {
235 request.addContainer(imageContainer);
284 BatchedImageRequest request = mInFlightRequests.remove(cacheKey);
286 if (request != null) {
288 request.mResponseBitmap = response;
291 batchResponse(cacheKey, request);
302 BatchedImageRequest request = mInFlightRequests.remove(cacheKey);
304 if (request != null) {
306 request.setError(error);
[all …]
/frameworks/base/obex/javax/obex/
DServerSession.java166 HeaderSet request = new HeaderSet(); in handleAbortRequest() local
177 code = mListener.onAbort(request, reply); in handleAbortRequest()
306 HeaderSet request = new HeaderSet(); in handleSetPathRequest() local
327 ObexHelper.updateHeaderSet(request, headers); in handleSetPathRequest()
329 if (mListener.getConnectionId() != -1 && request.mConnectionID != null) { in handleSetPathRequest()
330 mListener.setConnectionId(ObexHelper.convertToLong(request.mConnectionID)); in handleSetPathRequest()
335 if (request.mAuthResp != null) { in handleSetPathRequest()
336 if (!handleAuthResp(request.mAuthResp)) { in handleSetPathRequest()
339 request.mAuthResp)); in handleSetPathRequest()
341 request.mAuthResp = null; in handleSetPathRequest()
[all …]
/frameworks/base/core/java/android/net/
DNetworkFactory.java156 public final NetworkRequest request; field in NetworkFactory.NetworkRequestInfo
160 public NetworkRequestInfo(NetworkRequest request, int score) { in NetworkRequestInfo() argument
161 this.request = request; in NetworkRequestInfo()
168 return "{" + request + ", score=" + score + ", requested=" + requested + "}"; in toString()
173 protected void handleAddRequest(NetworkRequest request, int score) { in handleAddRequest() argument
174 NetworkRequestInfo n = mNetworkRequests.get(request.requestId); in handleAddRequest()
176 if (DBG) log("got request " + request + " with score " + score); in handleAddRequest()
177 n = new NetworkRequestInfo(request, score); in handleAddRequest()
178 mNetworkRequests.put(n.request.requestId, n); in handleAddRequest()
180 if (VDBG) log("new score " + score + " for exisiting request " + request); in handleAddRequest()
[all …]
/frameworks/av/include/camera/ndk/
DNdkCaptureRequest.h122 camera_status_t ACaptureRequest_addTarget(ACaptureRequest* request,
137 camera_status_t ACaptureRequest_removeTarget(ACaptureRequest* request,
158 const ACaptureRequest* request, uint32_t tag, ACameraMetadata_const_entry* entry);
179 const ACaptureRequest* request, /*out*/int32_t* numTags, /*out*/const uint32_t** tags);
198 ACaptureRequest* request, uint32_t tag, uint32_t count, const uint8_t* data);
217 ACaptureRequest* request, uint32_t tag, uint32_t count, const int32_t* data);
236 ACaptureRequest* request, uint32_t tag, uint32_t count, const float* data);
255 ACaptureRequest* request, uint32_t tag, uint32_t count, const int64_t* data);
274 ACaptureRequest* request, uint32_t tag, uint32_t count, const double* data);
293 ACaptureRequest* request, uint32_t tag, uint32_t count,
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsObserversTest.java139 DataUsageRequest request = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testRegister_thresholdTooLow_setsDefaultThreshold() local
141 assertTrue(request.requestId > 0); in testRegister_thresholdTooLow_setsDefaultThreshold()
142 assertTrue(Objects.equals(sTemplateWifi, request.template)); in testRegister_thresholdTooLow_setsDefaultThreshold()
143 assertEquals(THRESHOLD_BYTES, request.thresholdInBytes); in testRegister_thresholdTooLow_setsDefaultThreshold()
151 DataUsageRequest request = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testRegister_highThreshold_accepted() local
153 assertTrue(request.requestId > 0); in testRegister_highThreshold_accepted()
154 assertTrue(Objects.equals(sTemplateWifi, request.template)); in testRegister_highThreshold_accepted()
155 assertEquals(highThresholdBytes, request.thresholdInBytes); in testRegister_highThreshold_accepted()
186 DataUsageRequest request = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testUnregister_knownRequest_releasesCaller() local
188 assertTrue(request.requestId > 0); in testUnregister_knownRequest_releasesCaller()
[all …]
/frameworks/base/core/java/android/app/
DVoiceInteractor.java81 Request request;
85 request = pullRequest((IVoiceInteractorRequest)args.arg1, true);
87 + ((IVoiceInteractorRequest)args.arg1).asBinder() + "/" + request
89 if (request != null) {
90 ((ConfirmationRequest)request).onConfirmationResult(msg.arg1 != 0,
92 request.clear();
97 request = pullRequest((IVoiceInteractorRequest)args.arg1, complete);
99 + ((IVoiceInteractorRequest)args.arg1).asBinder() + "/" + request
102 if (request != null) {
103 ((PickOptionRequest)request).onPickOptionResult(complete,
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraDeviceBinderTest.java184 CaptureRequest.Builder request = new CaptureRequest.Builder(metadata, /*reprocess*/false, in createDefaultBuilder() local
186 assertFalse(request.isEmpty()); in createDefaultBuilder()
191 request.addTarget(mSurface); in createDefaultBuilder()
193 return request; in createDefaultBuilder()
196 …private SubmitInfo submitCameraRequest(CaptureRequest request, boolean streaming) throws Exception… in submitCameraRequest() argument
197 SubmitInfo requestInfo = mCameraUser.submitRequest(request, streaming); in submitCameraRequest()
346 CaptureRequest request = builder.build(); in testSubmitGoodRequest() local
349 SubmitInfo requestInfo1 = submitCameraRequest(request, /* streaming */false); in testSubmitGoodRequest()
350 SubmitInfo requestInfo2 = submitCameraRequest(request, /* streaming */false); in testSubmitGoodRequest()
361 CaptureRequest request = builder.build(); in testSubmitStreamingRequest() local
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java84 DataUsageRequest request = buildRequest(inputRequest); in register() local
85 RequestInfo requestInfo = buildRequestInfo(request, messenger, binder, callingUid, in register()
88 if (LOGV) Slog.v(TAG, "Registering observer for " + request); in register()
90 return request; in register()
98 public void unregister(DataUsageRequest request, int callingUid) { in unregister() argument
100 request)); in unregister()
173 private void handleUnregister(DataUsageRequest request, int callingUid) { in handleUnregister() argument
175 requestInfo = mDataUsageRequests.get(request.requestId); in handleUnregister()
177 if (LOGV) Slog.v(TAG, "Trying to unregister unknown request " + request); in handleUnregister()
181 Slog.w(TAG, "Caller uid " + callingUid + " is not owner of " + request); in handleUnregister()
[all …]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipHelper.java198 Request request = (caller == callee) in sendOptions() local
203 mSipProvider.getNewClientTransaction(request); in sendOptions()
214 Request request = createRequest(Request.REGISTER, userProfile, tag); in sendRegister() local
218 request.addHeader(createWildcardContactHeader()); in sendRegister()
220 request.addHeader(createContactHeader(userProfile)); in sendRegister()
222 request.addHeader(mHeaderFactory.createExpiresHeader(expiry)); in sendRegister()
225 mSipProvider.getNewClientTransaction(request); in sendRegister()
246 Request request = mMessageFactory.createRequest(requestURI, in createRequest() local
251 request.addHeader(userAgentHeader); in createRequest()
252 return request; in createRequest()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/http/
DAbstractProxyTest.java79 RecordedRequest request = server.takeRequest(); in testConnectToHttps() local
80 assertEquals("GET /foo HTTP/1.1", request.getRequestLine()); in testConnectToHttps()
121 HttpGet request = new HttpGet("http://android.com/foo"); in testConnectViaProxy() local
122 proxyConfig.configure(server, httpProxyClient, request); in testConnectViaProxy()
124 HttpResponse response = httpProxyClient.execute(request); in testConnectViaProxy()
166 HttpGet request = new HttpGet("https://android.com/foo"); in testConnectViaHttpProxyToHttps() local
167 proxyConfig.configure(server, httpProxyClient, request); in testConnectViaHttpProxyToHttps()
169 HttpResponse response = httpProxyClient.execute(request); in testConnectViaHttpProxyToHttps()
197 HttpGet request = new HttpGet("http://origin.foo/bar"); in testParamPreferredOverSystemProperty() local
198 proxyConfig.configure(server, client, request); in testParamPreferredOverSystemProperty()
[all …]
/frameworks/base/location/java/android/location/
DLocationRequest.java166 LocationRequest request = new LocationRequest(); in create() local
167 return request; in create()
186 LocationRequest request = new LocationRequest() in createFromDeprecatedProvider() local
192 if (singleShot) request.setNumUpdates(1); in createFromDeprecatedProvider()
193 return request; in createFromDeprecatedProvider()
222 LocationRequest request = new LocationRequest() in createFromDeprecatedCriteria() local
227 if (singleShot) request.setNumUpdates(1); in createFromDeprecatedCriteria()
228 return request; in createFromDeprecatedCriteria()
592 LocationRequest request = new LocationRequest();
593 request.setQuality(in.readInt());
[all …]

12345678910>>...23