Home
last modified time | relevance | path

Searched refs:req (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/core/java/android/net/http/
DConnection.java158 Request req = null; in processRequests() local
190 req = mRequestFeeder.getRequest(mHost); in processRequests()
192 req = firstRequest; in processRequests()
195 if (req == null) { in processRequests()
199 req.setConnection(this); in processRequests()
202 if (req.mCancelled) { in processRequests()
205 + req); in processRequests()
206 req.complete(); in processRequests()
218 if (!openHttpConnection(req)) { in processRequests()
228 req.mEventHandler.certificate(mCertificate); in processRequests()
[all …]
DHttpsConnection.java163 AndroidHttpClientConnection openConnection(Request req) throws IOException { in openConnection() argument
211 for (Header h : req.mHttpRequest.getAllHeaders()) { in openConnection()
276 req.mEventHandler.status(version.getMajor(), in openConnection()
280 req.mEventHandler.headers(headers); in openConnection()
281 req.mEventHandler.endData(); in openConnection()
324 boolean canHandle = req.getEventHandler().handleSslErrorRequest(error); in openConnection()
DHttpConnection.java47 AndroidHttpClientConnection openConnection(Request req) throws IOException { in openConnection() argument
50 EventHandler eventHandler = req.getEventHandler(); in openConnection()
DRequestQueue.java325 Request req; in queueRequest() local
329 req = new Request(method, httpHost, mProxyHost, uri.getPath(), bodyProvider, in queueRequest()
332 queueRequest(req, false); in queueRequest()
341 req); in queueRequest()
376 Request req = new Request(method, host, mProxyHost, uri.getPath(), in queueSynchronousRequest() local
388 bodyLength, req, conn); in queueSynchronousRequest()
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/
DBluetoothPbapClient.java401 BluetoothPbapRequest req = (BluetoothPbapRequest) msg.obj; in handleMessage() local
403 if (req instanceof BluetoothPbapRequestPullPhoneBookSize) { in handleMessage()
405 } else if (req instanceof BluetoothPbapRequestPullVcardListingSize) { in handleMessage()
407 } else if (req instanceof BluetoothPbapRequestPullPhoneBook) { in handleMessage()
409 } else if (req instanceof BluetoothPbapRequestPullVcardListing) { in handleMessage()
411 } else if (req instanceof BluetoothPbapRequestPullVcardEntry) { in handleMessage()
413 } else if (req instanceof BluetoothPbapRequestSetPath) { in handleMessage()
422 BluetoothPbapRequest req = (BluetoothPbapRequest) msg.obj; in handleMessage() local
424 if (req instanceof BluetoothPbapRequestPullPhoneBookSize) { in handleMessage()
425 int size = ((BluetoothPbapRequestPullPhoneBookSize) req).getSize(); in handleMessage()
[all …]
/frameworks/wilhelm/tests/sandbox/
Dsrcsink.c64 SLboolean req[1] = {SL_BOOLEAN_TRUE}; in main() local
67 &audioSnk, 1, ids, req); in main()
74 &audioSnk, 1, ids, req); in main()
86 &audioSnk, 1, ids, req); in main()
98 &audioSnk, 1, ids, req); in main()
111 &audioSnk, 1, ids, req); in main()
116 &audioSnk, 1, ids, req); in main()
124 &audioSnk, 1, ids, req); in main()
129 &audioSnk, 1, ids, req); in main()
137 &audioSnk, 1, ids, req); in main()
[all …]
Durimime.c79 SLboolean req[1]; in main() local
81 req[0] = SL_BOOLEAN_TRUE; in main()
84 &audioSnk, numInterfaces, ids, req); in main()
90 &audioSnk, numInterfaces, ids, req); in main()
Dconfigbq.c130 SLboolean req[1]; in main() local
132 req[0] = SL_BOOLEAN_TRUE; in main()
135 &audioSnk, numInterfaces, ids, req); in main()
Doutputmix.c130 SLboolean req[10] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_FALSE /*SL_BOOLEAN_TRUE*/, SL_BOOLEAN_TRUE, in main() local
133 result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 10, ids, req); in main()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java100 ArgumentCaptor<SynthesisRequest> req = LittleMock.createCaptor(); in testSetLanguage_availableLanguage() local
101 LittleMock.verify(delegate, LittleMock.times(1)).onSynthesizeText(req.capture(), in testSetLanguage_availableLanguage()
104 assertEquals("eng", req.getValue().getLanguage()); in testSetLanguage_availableLanguage()
105 assertEquals("USA", req.getValue().getCountry()); in testSetLanguage_availableLanguage()
106 assertEquals("", req.getValue().getVariant()); in testSetLanguage_availableLanguage()
107 assertEquals("en-US", req.getValue().getVoiceName()); in testSetLanguage_availableLanguage()
159 ArgumentCaptor<SynthesisRequest> req = LittleMock.createCaptor(); in testDefaultLanguage_setsVoiceName() local
160 LittleMock.verify(delegate, LittleMock.times(1)).onSynthesizeText(req.capture(), in testDefaultLanguage_setsVoiceName()
164 assertEquals(defaultLocale.getISO3Language(), req.getValue().getLanguage()); in testDefaultLanguage_setsVoiceName()
165 assertEquals(defaultLocale.getISO3Country(), req.getValue().getCountry()); in testDefaultLanguage_setsVoiceName()
[all …]
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DTestInteractionActivity.java57 VoiceInteractor.ConfirmationRequest req = new VoiceInteractor.ConfirmationRequest( in onCreate() local
71 mInteractor.submitRequest(req); in onCreate()
82 VoiceInteractor.AbortVoiceRequest req = new VoiceInteractor.AbortVoiceRequest( in onClick() local
95 mInteractor.submitRequest(req); in onClick()
97 VoiceInteractor.CompleteVoiceRequest req = new VoiceInteractor.CompleteVoiceRequest( in onClick() local
110 mInteractor.submitRequest(req); in onClick()
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceRequest.java223 WifiP2pServiceRequest req = (WifiP2pServiceRequest)o; in equals() local
229 if ((req.mProtocolType != mProtocolType) || in equals()
230 (req.mLength != mLength)) { in equals()
234 if (req.mQuery == null && mQuery == null) { in equals()
236 } else if (req.mQuery != null) { in equals()
237 return req.mQuery.equals(mQuery); in equals()
DWifiP2pServiceResponse.java312 WifiP2pServiceResponse req = (WifiP2pServiceResponse)o; in equals() local
314 return (req.mServiceType == mServiceType) && in equals()
315 (req.mStatus == mStatus) && in equals()
316 equals(req.mDevice.deviceAddress, mDevice.deviceAddress) && in equals()
317 Arrays.equals(req.mData, mData); in equals()
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMasClient.java368 BluetoothMasRequestSetPath req = (BluetoothMasRequestSetPath) request; in handleMessage() local
369 switch (req.mDir) { in handleMessage()
381 client.mPath.addLast(req.mName); in handleMessage()
390 … BluetoothMasRequestGetFolderListing req = (BluetoothMasRequestGetFolderListing) request; in handleMessage() local
391 ArrayList<String> folders = req.getList(); in handleMessage()
402 … BluetoothMasRequestGetMessagesListing req = (BluetoothMasRequestGetMessagesListing) request; in handleMessage() local
403 ArrayList<BluetoothMapMessage> msgs = req.getList(); in handleMessage()
408 BluetoothMasRequestGetMessage req = (BluetoothMasRequestGetMessage) request; in handleMessage() local
409 BluetoothMapBmessage bmsg = req.getMessage(); in handleMessage()
417 … BluetoothMasRequestPushMessage req = (BluetoothMasRequestPushMessage) request; in handleMessage() local
[all …]
/frameworks/base/core/java/android/app/
DVoiceInteractor.java360 Request req = mActiveRequests.get(request.asBinder()); in pullRequest() local
361 if (req != null && complete) { in pullRequest()
364 return req; in pullRequest()
389 Request req = reqs.get(i); in attachActivity() local
390 req.mContext = activity; in attachActivity()
391 req.mActivity = activity; in attachActivity()
392 req.onAttached(activity); in attachActivity()
401 Request req = reqs.get(i); in detachActivity() local
402 req.onDetached(); in detachActivity()
403 req.mActivity = null; in detachActivity()
[all …]
/frameworks/av/services/audioflinger/
DAudioWatchdog.cpp99 struct timespec req; in threadLoop() local
100 req.tv_sec = 0; in threadLoop()
101 req.tv_nsec = mPeriodNs; in threadLoop()
102 rc = nanosleep(&req, NULL); in threadLoop()
DStateQueue.cpp98 static const struct timespec req = {0, PUSH_BLOCK_ACK_NS}; in push() local
135 nanosleep(&req, NULL); in push()
175 nanosleep(&req, NULL); in push()
DFastThread.cpp90 const struct timespec req = {0, sleepNs}; in threadLoop() local
91 nanosleep(&req, NULL); in threadLoop()
/frameworks/av/media/mtp/
DMtpDevice.cpp621 struct usb_request* req = mRequestIn1; in readObject() local
628 req->buffer_length = (remaining > sizeof(buffer1) ? sizeof(buffer1) : remaining); in readObject()
629 if (mData.readDataAsync(req)) { in readObject()
634 req = NULL; in readObject()
642 if (req) in readObject()
651 if (req) { in readObject()
657 writeBuffer = req->buffer; in readObject()
660 req = (req == mRequestIn1 ? mRequestIn2 : mRequestIn1); in readObject()
722 struct usb_request* req = mRequestIn1; in readObject() local
729 req->buffer_length = (remaining > sizeof(buffer1) ? sizeof(buffer1) : remaining); in readObject()
[all …]
DMtpDataPacket.cpp493 int MtpDataPacket::readDataAsync(struct usb_request *req) { in readDataAsync() argument
494 if (usb_request_queue(req)) { in readDataAsync()
503 struct usb_request *req = usb_request_wait(device); in readDataWait() local
504 return (req ? req->actual_length : -1); in readDataWait()
/frameworks/base/services/core/java/com/android/server/location/
DGpsXtraDownloader.java127 HttpUriRequest req = new HttpGet(url); in doDownload() local
131 ConnRouteParams.setDefaultProxy(req.getParams(), proxy); in doDownload()
134 req.addHeader( in doDownload()
138 req.addHeader( in doDownload()
142 HttpResponse response = client.execute(req); in doDownload()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionSession.java199 Request req = session.removeRequest(mInterface.asBinder()); in finishRequest() local
200 if (req == null) { in finishRequest()
202 } else if (req != this) { in finishRequest()
203 throw new IllegalStateException("Current active request " + req in finishRequest()
431 Request req = new Request(callback, this); in newRequest() local
432 mActiveRequests.put(req.mInterface.asBinder(), req); in newRequest() local
433 return req; in newRequest()
439 Request req = mActiveRequests.get(reqInterface); in removeRequest() local
440 if (req != null) { in removeRequest()
441 mActiveRequests.remove(req); in removeRequest()
[all …]
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pManager.java865 private static void checkServiceRequest(WifiP2pServiceRequest req) { in checkServiceRequest() argument
866 if (req == null) throw new IllegalArgumentException("service request is null"); in checkServiceRequest()
1222 WifiP2pServiceRequest req, ActionListener listener) { in addServiceRequest() argument
1224 checkServiceRequest(req); in addServiceRequest()
1226 c.putListener(listener), req); in addServiceRequest()
1241 public void removeServiceRequest(Channel c, WifiP2pServiceRequest req, in removeServiceRequest() argument
1244 checkServiceRequest(req); in removeServiceRequest()
1246 c.putListener(listener), req); in removeServiceRequest()
/frameworks/native/cmds/atrace/
Datrace.cpp272 bool req = category.sysfiles[i].required == REQ; in isCategorySupported() local
274 if (req) { in isCategorySupported()
297 bool req = category.sysfiles[i].required == REQ; in isCategorySupportedForRoot() local
299 if (req) { in isCategorySupportedForRoot()
/frameworks/av/media/libnbaio/
DMonoPipe.cpp204 const struct timespec req = {0, static_cast<long>(ns)}; in write() local
205 nanosleep(&req, NULL); in write()

12