Home
last modified time | relevance | path

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

12345

/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiNanIfaceHidlImpl.java432 android.hardware.wifi.V1_4.NanEnableRequest req = in enableAndConfigureInternal() local
435 req.operateInBand[NanBandIndex.NAN_BAND_24GHZ] = true; in enableAndConfigureInternal()
436 req.operateInBand[NanBandIndex.NAN_BAND_5GHZ] = configRequest.mSupport5gBand; in enableAndConfigureInternal()
437 req.operateInBand[android.hardware.wifi.V1_4.NanBandIndex.NAN_BAND_6GHZ] = in enableAndConfigureInternal()
439 req.hopCountMax = 2; in enableAndConfigureInternal()
440 req.configParams.masterPref = (byte) configRequest.mMasterPreference; in enableAndConfigureInternal()
441 req.configParams.disableDiscoveryAddressChangeIndication = in enableAndConfigureInternal()
443 req.configParams.disableStartedClusterIndication = !notifyIdentityChange; in enableAndConfigureInternal()
444 req.configParams.disableJoinedClusterIndication = !notifyIdentityChange; in enableAndConfigureInternal()
445 req.configParams.includePublishServiceIdsInBeacon = true; in enableAndConfigureInternal()
[all …]
DWifiNanIfaceAidlImpl.java190 NanEnableRequest req = createNanEnableRequest( in enableAndConfigure() local
193 mWifiNanIface.enableRequest((char) transactionId, req, supplemental); in enableAndConfigure() local
195 NanConfigRequest req = createNanConfigRequest( in enableAndConfigure() local
198 mWifiNanIface.configRequest((char) transactionId, req, supplemental); in enableAndConfigure() local
239 NanPublishRequest req = createNanPublishRequest(publishId, publishConfig, in publish()
241 mWifiNanIface.startPublishRequest((char) transactionId, req); in publish() local
263 NanSubscribeRequest req = createNanSubscribeRequest(subscribeId, subscribeConfig, in subscribe()
265 mWifiNanIface.startSubscribeRequest((char) transactionId, req); in subscribe() local
286 NanTransmitFollowupRequest req = createNanTransmitFollowupRequest( in sendMessage()
288 mWifiNanIface.transmitFollowupRequest((char) transactionId, req); in sendMessage() local
[all …]
/packages/providers/MediaProvider/jni/
DFuseDaemon.cpp480 static struct fuse* get_fuse(fuse_req_t req) { in get_fuse() argument
481 return reinterpret_cast<struct fuse*>(fuse_req_userdata(req)); in get_fuse()
546 const std::string& path, const std::string& name, fuse_req_t req, int* error_code, in validate_node_path() argument
548 struct fuse* fuse = get_fuse(req); in validate_node_path()
549 const struct fuse_ctx* ctx = fuse_req_ctx(req); in validate_node_path()
588 fuse->mp->FileLookup(path, req->ctx.uid, req->ctx.pid); in validate_node_path()
607 static node* make_node_entry(fuse_req_t req, node* parent, const string& name, in make_node_entry() argument
610 struct fuse* fuse = get_fuse(req); in make_node_entry()
611 const struct fuse_ctx* ctx = fuse_req_ctx(req); in make_node_entry()
617 validate_node_path(path, name, req, error_code, e, op); in make_node_entry()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java106 for (ScanRequest req : mPending.values()) { in hasPendingScans()
107 if (nowRealtime < req.requestRealtime + SCAN_TIMEOUT) { in hasPendingScans()
122 public void requestScan(ScanRequest req) { in requestScan() argument
123 if (LOGV) Log.v(TAG, "requestScan() for " + req.path); in requestScan()
125 mPending.put(req.path, req); in requestScan()
128 req.exec(mConnection); in requestScan()
142 for (ScanRequest req : mPending.values()) { in onMediaScannerConnected()
143 req.exec(mConnection); in onMediaScannerConnected()
150 final ScanRequest req; in onScanCompleted() local
152 req = mPending.remove(path); in onScanCompleted()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdManagerTest.java184 int key1 = getRequestKey(req -> verify(mServiceConn).resolveService(req.capture(), any())); in doTestResolveService()
190 int key2 = getRequestKey(req -> in doTestResolveService()
191 verify(mServiceConn, times(2)).resolveService(req.capture(), any())); in doTestResolveService()
206 int key1 = getRequestKey(req -> verify(mServiceConn).resolveService(req.capture(), any())); in doTestParallelResolveService()
209 int key2 = getRequestKey(req -> in doTestParallelResolveService()
210 verify(mServiceConn, times(2)).resolveService(req.capture(), any())); in doTestParallelResolveService()
230 int key4 = getRequestKey(req -> verify(mServiceConn).registerService(req.capture(), any())); in testRegisterServiceWithAdvertisingRequest()
248 req -> verify(mServiceConn).registerService(anyInt(), req.capture())); in testRegisterServiceWithCustomTtl()
264 int key1 = getRequestKey(req -> verify(mServiceConn).registerService(req.capture(), any())); in doTestRegisterService()
267 int key2 = getRequestKey(req -> in doTestRegisterService()
[all …]
/packages/modules/Connectivity/staticlibs/native/tcutils/
Dtcutils.cpp364 int sendAndProcessNetlinkResponse(const void *req, int len) { in sendAndProcessNetlinkResponse() argument
403 int rv = send(fd, req, len, 0); in sendAndProcessNetlinkResponse()
536 } req = { in doTcQdiscClsact() local
539 .nlmsg_len = sizeof(req), in doTcQdiscClsact()
563 return sendAndProcessNetlinkResponse(&req, sizeof(req)); in doTcQdiscClsact()
600 } req = { in tcAddBpfFilter() local
603 .nlmsg_len = sizeof(req), in tcAddBpfFilter()
622 .nla_len = sizeof(req.kind), in tcAddBpfFilter()
631 .nla_len = sizeof(req.options), in tcAddBpfFilter()
638 .nla_len = sizeof(req.options.fd), in tcAddBpfFilter()
[all …]
/packages/modules/adb/client/
Dusb_osx.cpp247 IOUSBDevRequest req; in AndroidInterfaceAdded() local
253 req.bmRequestType = in AndroidInterfaceAdded()
255 req.bRequest = kUSBRqGetDescriptor; in AndroidInterfaceAdded()
256 req.wValue = (kUSBStringDesc << 8) | 0; in AndroidInterfaceAdded()
257 req.wIndex = 0; in AndroidInterfaceAdded()
258 req.pData = languages; in AndroidInterfaceAdded()
259 req.wLength = sizeof(languages); in AndroidInterfaceAdded()
260 kr = (*dev)->DeviceRequest(dev, &req); in AndroidInterfaceAdded()
262 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in AndroidInterfaceAdded()
264 int langCount = (req.wLenDone - 2) / 2, lang; in AndroidInterfaceAdded()
[all …]
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/
Dhfp_service.rs65 fn start_slc(&mut self, ctx: RpcContext<'_>, req: StartSlcRequest, sink: UnarySink<Empty>) { in start_slc()
68 let addr_bytes = &req.connection.unwrap().cookie; in start_slc()
84 fn stop_slc(&mut self, ctx: RpcContext<'_>, req: StopSlcRequest, sink: UnarySink<Empty>) { in stop_slc()
87 let addr_bytes = &req.connection.unwrap().cookie; in stop_slc()
106 req: ConnectAudioRequest, in connect_audio()
111 let addr_bytes = &req.connection.unwrap().cookie; in connect_audio()
116 req.is_sco_offload_enabled, in connect_audio()
117 req.disabled_codecs, in connect_audio()
135 req: DisconnectAudioRequest, in disconnect_audio()
140 let addr_bytes = &req.connection.unwrap().cookie; in disconnect_audio()
[all …]
Dsecurity_service.rs33 fn remove_bond(&mut self, ctx: RpcContext<'_>, req: RemoveBondRequest, sink: UnarySink<Empty>) { in remove_bond()
34 let raw_address = RawAddress::from_string(req.address).unwrap(); in remove_bond()
44 req: GenerateOobDataRequest, in generate_local_oob_data()
47 self.btif_intf.lock().unwrap().generate_local_oob_data(req.transport); in generate_local_oob_data()
56 req: CreateBondRequest, in create_bond()
61 let bt_addr = &req.address; in create_bond()
64 btif.lock().unwrap().create_bond(&addr, BtTransport::from(req.transport)); in create_bond()
Dhf_client_service.rs43 req: StartSlcRequest, in start_slc()
48 let addr_bytes = &req.connection.unwrap().cookie; in start_slc()
69 req: StopSlcRequest, in stop_slc()
74 let addr_bytes = &req.connection.unwrap().cookie; in stop_slc()
95 req: ConnectAudioRequest, in connect_audio()
100 let addr_bytes = &req.connection.unwrap().cookie; in connect_audio()
121 req: DisconnectAudioRequest, in disconnect_audio()
126 let addr_bytes = &req.connection.unwrap().cookie; in disconnect_audio()
Dmedia_service.rs62 req: StartA2dpRequest, in start_a2dp()
65 if req.start_a2dp_source { in start_a2dp()
69 } else if req.start_a2dp_sink { in start_a2dp()
80 req: A2dpSourceConnectRequest, in a2dp_source_connect()
85 if let Some(addr) = RawAddress::from_string(req.address.clone()) { in a2dp_source_connect()
92 format!("Invalid Request Address: {}", req.address), in a2dp_source_connect()
Dadapter_service.rs226 req: ToggleStackRequest, in toggle_stack()
229 match req.start_stack { in toggle_stack()
241 req: SetDiscoveryModeRequest, in set_discovery_mode()
244 let scan_mode = if req.enable_inquiry_scan { in set_discovery_mode()
246 } else if req.enable_page_scan { in set_discovery_mode()
326 req: SetDefaultEventMaskExceptRequest, in set_default_event_mask_except()
329 self.btif_intf.lock().unwrap().set_default_event_mask_except(req.mask, req.le_mask); in set_default_event_mask_except()
362 req: SetLocalIoCapsRequest, in set_local_io_caps()
367 BtIoCap::from_i32(req.io_capability).unwrap_or(BtIoCap::Unknown), in set_local_io_caps()
380 req: ToggleDiscoveryRequest, in toggle_discovery()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBlobCache.java442 public boolean lookup(LookupRequest req) throws IOException { in lookup() argument
444 if (lookupInternal(req.key, mActiveHashStart)) { in lookup()
445 if (getBlob(mActiveDataFile, mFileOffset, req)) { in lookup()
456 if (lookupInternal(req.key, mInactiveHashStart)) { in lookup()
457 if (getBlob(mInactiveDataFile, mFileOffset, req)) { in lookup()
460 if (mActiveBytes + BLOB_HEADER_SIZE + req.length > mMaxBytes in lookup()
467 insertInternal(req.key, req.buffer, req.length); in lookup()
489 LookupRequest req) throws IOException { in getBlob() argument
502 if (blobKey != req.key) { in getBlob()
517 if (req.buffer == null || req.buffer.length < length) { in getBlob()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTestConnectivityManager.java199 static boolean looksLikeDefaultRequest(NetworkRequest req) { in looksLikeDefaultRequest() argument
200 return req.hasCapability(NET_CAPABILITY_INTERNET) in looksLikeDefaultRequest()
201 && !req.hasCapability(NET_CAPABILITY_DUN) in looksLikeDefaultRequest()
202 && !req.hasTransport(TRANSPORT_CELLULAR); in looksLikeDefaultRequest()
206 public void requestNetwork(NetworkRequest req, NetworkCallback cb, Handler h) { in requestNetwork() argument
209 if (looksLikeDefaultRequest(req)) { in requestNetwork()
216 mRequested.put(cb, new NetworkRequestInfo(req, h)); in requestNetwork()
234 public void requestNetwork(NetworkRequest req, NetworkCallback cb) { in requestNetwork() argument
239 public void requestNetwork(NetworkRequest req, in requestNetwork() argument
242 NetworkRequest newReq = new NetworkRequest(req.networkCapabilities, legacyType, in requestNetwork()
[all …]
/packages/modules/Virtualization/vmbase/
Dcommon.h21 .macro adr_l, reg:req, sym:req
26 .macro mov_i, reg:req, imm:req
33 .macro hvc_call func_id:req
/packages/modules/Bluetooth/system/btif/co/
Dbta_hh_co.cc72 struct uhid_feature_req& req) { in uhid_feature_req_handler() argument
73 log::debug("Report type = {}, id = {}", req.rtype, req.rnum); in uhid_feature_req_handler()
75 if (req.rtype > UHID_INPUT_REPORT) { in uhid_feature_req_handler()
76 log::error("Invalid report type {}", req.rtype); in uhid_feature_req_handler()
86 *context = req.id; in uhid_feature_req_handler()
90 log::error("Queue is full, dropping event {}", req.id); in uhid_feature_req_handler()
94 btif_hh_getreport(p_uhid, map_rtype_uhid_hh[req.rtype], req.rnum, 0); in uhid_feature_req_handler()
100 struct uhid_set_report_req& req) { in uhid_set_report_req_handler() argument
101 log::debug("Report type = {}, id = {}", req.rtype, req.rnum); in uhid_set_report_req_handler()
103 if (req.rtype > UHID_INPUT_REPORT) { in uhid_set_report_req_handler()
[all …]
/packages/apps/Car/DebuggingRestrictionController/server/
Dgenkey.sh40 req="$folder/token_signing-${date}.req"
56 openssl req -nodes -newkey rsa:2048 -sha256 -keyout "${key}" -out "${req}"
59 openssl x509 -req \
60 -in "$req" -out "$signed" -CA "$ca_cert" -CAkey "$ca_key" \
/packages/modules/Bluetooth/system/btif/src/
Dbtif_gatt_server.cc191 const auto& req = p_data->req_data.p_data->write_req; in btapp_gatts_handle_cback() local
194 p_data->req_data.remote_bda, req.handle, req.offset, in btapp_gatts_handle_cback()
195 req.need_rsp, req.is_prep, req.value, req.len); in btapp_gatts_handle_cback()
200 const auto& req = p_data->req_data.p_data->write_req; in btapp_gatts_handle_cback() local
203 p_data->req_data.remote_bda, req.handle, req.offset, in btapp_gatts_handle_cback()
204 req.need_rsp, req.is_prep, req.value, req.len); in btapp_gatts_handle_cback()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceRequest.java226 WifiP2pServiceRequest req = (WifiP2pServiceRequest)o; in equals() local
232 if ((req.mProtocolType != mProtocolType) || in equals()
233 (req.mLength != mLength)) { in equals()
237 if (req.mQuery == null && mQuery == null) { in equals()
239 } else if (req.mQuery != null) { in equals()
240 return req.mQuery.equals(mQuery); in equals()
/packages/modules/NetworkStack/jni/
Dnetwork_stack_utils_jni.cpp57 arpreq req = {}; in network_stack_utils_addArpEntry() local
58 sockaddr_in& netAddrStruct = *reinterpret_cast<sockaddr_in*>(&req.arp_pa); in network_stack_utils_addArpEntry()
59 sockaddr& ethAddrStruct = req.arp_ha; in network_stack_utils_addArpEntry()
79 env->GetStringUTFRegion(ifname, 0, ifLen, req.arp_dev); in network_stack_utils_addArpEntry()
81 req.arp_flags = ATF_COM; // Completed entry (ha valid) in network_stack_utils_addArpEntry()
88 if (ioctl(fd, SIOCSARP, &req)) { in network_stack_utils_addArpEntry()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DChildSessionParamsTest.java219 for (TunnelModeChildConfigRequest req : childParams.getConfigurationRequests()) { in verifySpecificV4AddrConfigReq()
220 if (req instanceof ConfigRequestIpv4Address in verifySpecificV4AddrConfigReq()
221 && ((ConfigRequestIpv4Address) req).getAddress() != null) { in verifySpecificV4AddrConfigReq()
222 Inet4Address address = ((ConfigRequestIpv4Address) req).getAddress(); in verifySpecificV4AddrConfigReq()
235 for (TunnelModeChildConfigRequest req : childParams.getConfigurationRequests()) { in verifySpecificV6AddrConfigReq()
236 if (req instanceof ConfigRequestIpv6Address in verifySpecificV6AddrConfigReq()
237 && ((ConfigRequestIpv6Address) req).getAddress() != null) { in verifySpecificV6AddrConfigReq()
238 ConfigRequestIpv6Address ipv6AddrReq = (ConfigRequestIpv6Address) req; in verifySpecificV6AddrConfigReq()
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java348 UsbRequest req = mUsbConnection.requestWait(); in drainRequests() local
349 if (req == null) { in drainRequests()
353 req.close(); in drainRequests()
374 UsbRequest req = mUsbConnection.requestWait(); in writeBufferSize() local
375 if (req == null) { in writeBufferSize()
379 req.close(); in writeBufferSize()
421 UsbRequest req = mUsbConnection.requestWait(); in run() local
422 if (req == null) { in run()
426 req.close(); in run()
/packages/services/DeviceAsWebcam/tests/
Dlinux_webcam_test.py261 req = v4l2.v4l2_requestbuffers()
262 req.count = _REQUEST_BUFFER_COUNT
263 req.type = v4l2.V4L2_BUF_TYPE_VIDEO_CAPTURE
264 req.memory = v4l2.V4L2_MEMORY_MMAP
266 ioctl_retry_error(video_device, v4l2.VIDIOC_REQBUFS, req,
270 for i in range(req.count):
309 req.count = 0
310 ioctl_retry_error(video_device, v4l2.VIDIOC_REQBUFS, req,
/packages/modules/Connectivity/service-t/src/com/android/server/
DIpSecXfrmController.java139 private NetlinkMessage sendRequestAndGetResponse(String methodTag, byte[] req) in sendRequestAndGetResponse() argument
143 logD(methodTag + ": send request " + req.length + " bytes"); in sendRequestAndGetResponse()
144 logV(HexDump.dumpHexString(req)); in sendRequestAndGetResponse()
145 mDependencies.sendMessage(mNetlinkSocket, req); in sendRequestAndGetResponse()
173 final byte[] req = in ipSecGetSa()
177 final NetlinkMessage msg = sendRequestAndGetResponse("ipSecGetSa", req); in ipSecGetSa()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSNetworkRequestStateStatsMetricsTests.kt58 argThat{req -> req.networkCapabilities.equals( in <lambda>() method
80 argThat{req -> req.networkCapabilities.equals( in <lambda>() method

12345