Home
last modified time | relevance | path

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

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeApi.java120 NanEnableRequest req = new NanEnableRequest(); in enableAndConfigure() local
122 req.operateInBand[NanBandIndex.NAN_BAND_24GHZ] = true; in enableAndConfigure()
123 req.operateInBand[NanBandIndex.NAN_BAND_5GHZ] = configRequest.mSupport5gBand; in enableAndConfigure()
124 req.hopCountMax = 2; in enableAndConfigure()
125 req.configParams.masterPref = (byte) configRequest.mMasterPreference; in enableAndConfigure()
126 req.configParams.disableDiscoveryAddressChangeIndication = !notifyIdentityChange; in enableAndConfigure()
127 req.configParams.disableStartedClusterIndication = !notifyIdentityChange; in enableAndConfigure()
128 req.configParams.disableJoinedClusterIndication = !notifyIdentityChange; in enableAndConfigure()
129 req.configParams.includePublishServiceIdsInBeacon = true; in enableAndConfigure()
130 req.configParams.numberOfPublishServiceIdsInBeacon = 0; in enableAndConfigure()
[all …]
/frameworks/av/camera/ndk/
DNdkCaptureRequest.cpp51 ACaptureRequest* req, const ACameraOutputTarget* target) { in ACaptureRequest_addTarget() argument
53 if (req == nullptr || req->targets == nullptr || target == nullptr) { in ACaptureRequest_addTarget()
55 if (req != nullptr) in ACaptureRequest_addTarget()
56 req_targets = req->targets; in ACaptureRequest_addTarget()
60 __FUNCTION__, req, req_targets, target); in ACaptureRequest_addTarget()
63 auto pair = req->targets->mOutputs.insert(*target); in ACaptureRequest_addTarget()
72 ACaptureRequest* req, const ACameraOutputTarget* target) { in ACaptureRequest_removeTarget() argument
74 if (req == nullptr || req->targets == nullptr || target == nullptr) { in ACaptureRequest_removeTarget()
76 if (req != nullptr) in ACaptureRequest_removeTarget()
77 req_targets = req->targets; in ACaptureRequest_removeTarget()
[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()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java110 ArgumentCaptor<SynthesisRequest> req = ArgumentCaptor.forClass(SynthesisRequest.class); in testSetLanguage_availableLanguage() local
111 Mockito.verify(delegate, Mockito.times(1)).onSynthesizeText(req.capture(), in testSetLanguage_availableLanguage()
114 assertEquals("eng", req.getValue().getLanguage()); in testSetLanguage_availableLanguage()
115 assertEquals("USA", req.getValue().getCountry()); in testSetLanguage_availableLanguage()
116 assertEquals("", req.getValue().getVariant()); in testSetLanguage_availableLanguage()
117 assertEquals("en-US", req.getValue().getVoiceName()); in testSetLanguage_availableLanguage()
177 ArgumentCaptor<SynthesisRequest> req = ArgumentCaptor.forClass(SynthesisRequest.class); in testDefaultLanguage_setsVoiceName() local
178 Mockito.verify(delegate, Mockito.times(1)).onSynthesizeText(req.capture(), in testDefaultLanguage_setsVoiceName()
181 assertEquals(defaultLocale.getISO3Language(), req.getValue().getLanguage()); in testDefaultLanguage_setsVoiceName()
182 assertEquals(defaultLocale.getISO3Country(), req.getValue().getCountry()); in testDefaultLanguage_setsVoiceName()
[all …]
/frameworks/av/media/mtp/
DMtpEventPacket.cpp65 struct usb_request* const req = usb_request_wait(device, -1); in readResponse() local
66 if (req) { in readResponse()
67 mPacketSize = req->actual_length; in readResponse()
68 return req->actual_length; in readResponse()
DMtpDevice.cpp756 struct usb_request* req = NULL; in readData() local
762 if (req) { in readData()
768 writeBuffer = req->buffer; in readData()
777 req = (req == mRequestIn1 ? mRequestIn2 : mRequestIn1); in readData()
778 req->buffer_length = remaining > MTP_BUFFER_SIZE ? in readData()
780 if (mData.readDataAsync(req) != 0) { in readData()
DMtpDataPacket.cpp513 int MtpDataPacket::readDataAsync(struct usb_request *req) { in readDataAsync() argument
514 if (usb_request_queue(req)) { in readDataAsync()
523 struct usb_request *req = usb_request_wait(device, -1); in readDataWait() local
524 return (req ? req->actual_length : -1); in readDataWait()
/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.java304 WifiP2pServiceResponse req = (WifiP2pServiceResponse)o; in equals() local
306 return (req.mServiceType == mServiceType) && in equals()
307 (req.mStatus == mStatus) && in equals()
308 equals(req.mDevice.deviceAddress, mDevice.deviceAddress) && in equals()
309 Arrays.equals(req.mData, mData); in equals()
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMasClient.java369 BluetoothMasRequestSetPath req = (BluetoothMasRequestSetPath) request; in handleMessage() local
370 switch (req.mDir) { in handleMessage()
382 client.mPath.addLast(req.mName); in handleMessage()
391 … BluetoothMasRequestGetFolderListing req = (BluetoothMasRequestGetFolderListing) request; in handleMessage() local
392 ArrayList<String> folders = req.getList(); in handleMessage()
403 … BluetoothMasRequestGetMessagesListing req = (BluetoothMasRequestGetMessagesListing) request; in handleMessage() local
404 ArrayList<BluetoothMapMessage> msgs = req.getList(); in handleMessage()
409 BluetoothMasRequestGetMessage req = (BluetoothMasRequestGetMessage) request; in handleMessage() local
410 BluetoothMapBmessage bmsg = req.getMessage(); in handleMessage()
418 … BluetoothMasRequestPushMessage req = (BluetoothMasRequestPushMessage) request; in handleMessage() local
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java273 for (NetworkRequest req : listening.values()) { in isListeningForAll()
274 if (req.networkCapabilities.equalRequestableCapabilities(empty)) { in isListeningForAll()
282 for (NetworkRequest req : requested.values()) { in isDunRequested()
283 if (req.networkCapabilities.hasCapability(NET_CAPABILITY_DUN)) { in isDunRequested()
291 public void requestNetwork(NetworkRequest req, NetworkCallback cb, Handler h) { in requestNetwork() argument
295 requested.put(cb, req); in requestNetwork()
299 public void requestNetwork(NetworkRequest req, NetworkCallback cb) { in requestNetwork() argument
304 public void requestNetwork(NetworkRequest req, NetworkCallback cb, in requestNetwork() argument
309 requested.put(cb, req); in requestNetwork()
317 public void registerNetworkCallback(NetworkRequest req, NetworkCallback cb, Handler h) { in registerNetworkCallback() argument
[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.cpp99 const struct timespec req = {0, mSleepNs}; in threadLoop() local
100 nanosleep(&req, NULL); in threadLoop()
/frameworks/base/core/java/android/app/
DVoiceInteractor.java894 Request req = mActiveRequests.get(request.asBinder()); in pullRequest() local
895 if (req != null && complete) { in pullRequest()
898 return req; in pullRequest()
924 Request req = reqs.get(i); in attachActivity() local
925 req.mContext = activity; in attachActivity()
926 req.mActivity = activity; in attachActivity()
927 req.onAttached(activity); in attachActivity()
940 Request req = reqs.get(i); in detachActivity() local
941 req.onDetached(); in detachActivity()
942 req.mActivity = null; in detachActivity()
[all …]
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DTestInteractionActivity.java135 VoiceInteractor.AbortVoiceRequest req = new TestAbortVoice(); in onClick() local
136 mInteractor.submitRequest(req, REQUEST_ABORT); in onClick()
138 VoiceInteractor.CompleteVoiceRequest req = new TestCompleteVoice(); in onClick() local
139 mInteractor.submitRequest(req, REQUEST_COMPLETE); in onClick()
141 VoiceInteractor.CommandRequest req = new TestCommand("Some arg"); in onClick() local
142 mInteractor.submitRequest(req, REQUEST_COMMAND); in onClick()
151 VoiceInteractor.PickOptionRequest req = new TestPickOption(options); in onClick() local
152 mInteractor.submitRequest(req, REQUEST_PICK); in onClick()
DStartVoiceInteractionActivity.java74 VoiceInteractor.CommandRequest req = new TestCommand("Some arg"); in onClick() local
75 mInteractor.submitRequest(req, REQUEST_COMMAND); in onClick()
84 VoiceInteractor.PickOptionRequest req = new TestPickOption(options); in onClick() local
85 mInteractor.submitRequest(req, REQUEST_PICK); in onClick()
/frameworks/av/camera/ndk/impl/
DACameraDevice.cpp216 sp<CaptureRequest> req; in submitRequestsLocked() local
217 ret = allocateCaptureRequest(requests[i], req); in submitRequestsLocked()
222 if (req->mSurfaceList.empty()) { in submitRequestsLocked()
226 requestList.push_back(*(req.get())); in submitRequestsLocked()
227 requestsV.push_back(req); in submitRequestsLocked()
282 sp<CaptureRequest> req(new CaptureRequest()); in allocateCaptureRequest() local
283 req->mMetadata = request->settings->getInternalData(); in allocateCaptureRequest()
284 req->mIsReprocess = false; // NDK does not support reprocessing yet in allocateCaptureRequest()
294 req->mSurfaceList.push_back(surface); in allocateCaptureRequest()
296 outReq = req; in allocateCaptureRequest()
[all …]
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pManager.java871 private static void checkServiceRequest(WifiP2pServiceRequest req) { in checkServiceRequest() argument
872 if (req == null) throw new IllegalArgumentException("service request is null"); in checkServiceRequest()
1228 WifiP2pServiceRequest req, ActionListener listener) { in addServiceRequest() argument
1230 checkServiceRequest(req); in addServiceRequest()
1232 c.putListener(listener), req); in addServiceRequest()
1247 public void removeServiceRequest(Channel c, WifiP2pServiceRequest req, in removeServiceRequest() argument
1250 checkServiceRequest(req); in removeServiceRequest()
1252 c.putListener(listener), req); in removeServiceRequest()
/frameworks/av/media/libnbaio/
DMonoPipe.cpp148 const struct timespec req = {0, static_cast<long>(ns)}; in write() local
149 nanosleep(&req, NULL); in write()
/frameworks/base/services/core/java/com/android/server/
DTextServicesManagerService.java784 final SessionRequest req = grp.mPendingSessionRequests.get(i); in dump() local
786 pw.println(" " + "mTsListener=" + req.mTsListener); in dump()
787 pw.println(" " + "mScListener=" + req.mScListener); in dump()
788 pw.println(" " + "mScLocale=" + req.mLocale + " mUid=" + req.mUserId); in dump()
792 final SessionRequest req = grp.mOnGoingSessionRequests.get(i); in dump() local
795 pw.println(" " + "mTsListener=" + req.mTsListener); in dump()
796 pw.println(" " + "mScListener=" + req.mScListener); in dump()
798 " " + "mScLocale=" + req.mLocale + " mUid=" + req.mUserId); in dump()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionSession.java378 Request req = session.removeRequest(mInterface.asBinder()); in finishRequest() local
379 if (req == null) { in finishRequest()
381 } else if (req != this) { in finishRequest()
382 throw new IllegalStateException("Current active request " + req in finishRequest()
972 void addRequest(Request req) { in addRequest() argument
974 mActiveRequests.put(req.mInterface.asBinder(), req); in addRequest() local
1731 Request req = mActiveRequests.valueAt(i); in dump() local
1734 writer.println(req); in dump()
1735 req.dump(innerPrefix, fd, writer, args); in dump()
/frameworks/base/cmds/bootanimation/
Daudioplay.cpp175 const SLboolean req[3] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE}; in createBufferQueueAudioPlayer() local
177 3, ids, req); in createBufferQueueAudioPlayer()

12