Home
last modified time | relevance | path

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

123456789

/device/generic/goldfish/dhcp/client/
Dinterface.cpp94 struct ifreq request = createRequest(); in setMtu() local
96 strncpy(request.ifr_name, mInterfaceName.c_str(), sizeof(request.ifr_name)); in setMtu()
97 request.ifr_mtu = mtu; in setMtu()
98 int status = ::ioctl(mSocketFd, SIOCSIFMTU, &request); in setMtu()
114 } request; in setAddress() local
116 memset(&request, 0, sizeof(request)); in setAddress()
118 request.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(request.msg)); in setAddress()
119 request.hdr.nlmsg_type = RTM_NEWADDR; in setAddress()
120 request.hdr.nlmsg_flags = NLM_F_REQUEST | in setAddress()
125 request.msg.ifa_family = AF_INET; in setAddress()
[all …]
Drouter.cpp51 } request; in setDefaultGateway() local
53 memset(&request, 0, sizeof(request)); in setDefaultGateway()
56 request.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(request.msg)); in setDefaultGateway()
57 request.hdr.nlmsg_type = RTM_NEWROUTE; in setDefaultGateway()
58 request.hdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_CREATE; in setDefaultGateway()
60 request.msg.rtm_family = AF_INET; in setDefaultGateway()
61 request.msg.rtm_dst_len = 0; in setDefaultGateway()
62 request.msg.rtm_table = RT_TABLE_MAIN; in setDefaultGateway()
63 request.msg.rtm_protocol = RTPROT_BOOT; in setDefaultGateway()
64 request.msg.rtm_scope = RT_SCOPE_UNIVERSE; in setDefaultGateway()
[all …]
/device/google/cuttlefish/common/libs/net/
Dnetlink_request_test.cpp133 cvd::NetlinkRequest request(RTM_SETLINK, 0); in TEST() local
134 request.AddString(kDummyTag, kLongString); in TEST()
135 EXPECT_THAT(request, RequestDataIs(&expected, sizeof(expected))); in TEST()
149 cvd::NetlinkRequest request(RTM_SETLINK, 0); in TEST() local
150 request.AddInt(kDummyTag, kValue); in TEST()
151 EXPECT_THAT(request, RequestDataIs(&expected, sizeof(expected))); in TEST()
191 cvd::NetlinkRequest request(RTM_SETLINK, 0); in TEST() local
192 request.AddInt<int64_t>(kDummyTag, kValue); in TEST()
193 request.AddInt<int32_t>(kDummyTag + 1, kValue); in TEST()
194 request.AddInt<int16_t>(kDummyTag + 2, kValue); in TEST()
[all …]
Dnetwork_interface_manager.cpp34 NetlinkRequest request(RTM_SETLINK, 0); in BuildLinkRequest() local
35 request.AddIfInfo(interface.Index(), interface.IsOperational()); in BuildLinkRequest()
37 request.AddString(IFLA_IFNAME, interface.Name()); in BuildLinkRequest()
40 return request; in BuildLinkRequest()
45 NetlinkRequest request(RTM_NEWADDR, 0); in BuildAddrRequest() local
46 request.AddAddrInfo(interface.Index(), interface.PrefixLength()); in BuildAddrRequest()
48 request.AddInt(IFA_LOCAL, address); in BuildAddrRequest()
49 request.AddInt(IFA_ADDRESS, address); in BuildAddrRequest()
50 request.AddInt(IFA_BROADCAST, in BuildAddrRequest()
53 return request; in BuildAddrRequest()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DSocketServer.py279 request, client_address = self.get_request()
282 if self.verify_request(request, client_address):
284 self.process_request(request, client_address)
286 self.handle_error(request, client_address)
287 self.shutdown_request(request)
296 def verify_request(self, request, client_address): argument
304 def process_request(self, request, client_address): argument
310 self.finish_request(request, client_address)
311 self.shutdown_request(request)
321 def finish_request(self, request, client_address): argument
[all …]
Dcookielib.py582 def request_host(request): argument
589 url = request.get_full_url()
592 host = request.get_header("Host", "")
598 def eff_request_host(request): argument
604 erhn = req_host = request_host(request)
609 def request_path(request): argument
611 url = request.get_full_url()
619 def request_port(request): argument
620 host = request.get_host()
690 def is_third_party(request): argument
[all …]
/device/generic/goldfish/network/netmgr/
Dbridge.cpp82 struct ifreq request; in createBridge() local
83 memset(&request, 0, sizeof(request)); in createBridge()
85 request.ifr_ifindex = if_nametoindex(mBridgeName.c_str()); in createBridge()
86 if (request.ifr_ifindex == 0) { in createBridge()
91 strlcpy(request.ifr_name, mBridgeName.c_str(), sizeof(request.ifr_name)); in createBridge()
92 res = ::ioctl(mSocketFd, SIOCGIFFLAGS, &request); in createBridge()
98 if ((request.ifr_flags & IFF_UP) != 0) { in createBridge()
104 request.ifr_flags |= IFF_UP; in createBridge()
105 res = ::ioctl(mSocketFd, SIOCSIFFLAGS, &request); in createBridge()
117 struct ifreq request; in doInterfaceOperation() local
[all …]
Dmonitor.cpp155 } request; in requestInterfaces() local
157 memset(&request, 0, sizeof(request)); in requestInterfaces()
159 request.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(request.gen)); in requestInterfaces()
160 request.hdr.nlmsg_type = RTM_GETLINK; in requestInterfaces()
161 request.hdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in requestInterfaces()
162 request.hdr.nlmsg_seq = 1; in requestInterfaces()
163 request.hdr.nlmsg_pid = getpid(); in requestInterfaces()
164 request.gen.rtgen_family = AF_PACKET; in requestInterfaces()
167 &request, in requestInterfaces()
168 request.hdr.nlmsg_len, in requestInterfaces()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DSocketServer.py290 request, client_address = self.get_request()
293 if self.verify_request(request, client_address):
295 self.process_request(request, client_address)
297 self.handle_error(request, client_address)
298 self.shutdown_request(request)
307 def verify_request(self, request, client_address): argument
315 def process_request(self, request, client_address): argument
321 self.finish_request(request, client_address)
322 self.shutdown_request(request)
332 def finish_request(self, request, client_address): argument
[all …]
/device/linaro/poplar/wifi/wifi_hal/
Dgscan.cpp371 int createFeatureRequest(WifiRequest& request, int subcmd, int enable) { in createFeatureRequest() argument
373 int result = request.create(GOOGLE_OUI, subcmd); in createFeatureRequest()
378 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createFeatureRequest()
379 result = request.put_u32(GSCAN_ATTRIBUTE_ENABLE_FEATURE, enable); in createFeatureRequest()
384 request.attr_end(data); in createFeatureRequest()
399 int createRequest(WifiRequest& request, int subcmd, int enable) { in createRequest() argument
400 int result = request.create(GOOGLE_OUI, subcmd); in createRequest()
405 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRequest()
406 result = request.put_u32(GSCAN_ENABLE_FULL_SCAN_RESULTS, enable); in createRequest()
411 request.attr_end(data); in createRequest()
[all …]
Dwifi_logger.cpp161 int createRingRequest(WifiRequest& request) { in createRingRequest() argument
162 int result = request.create(GOOGLE_OUI, LOGGER_START_LOGGING); in createRingRequest()
168 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRingRequest()
170 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_LEVEL, mVerboseLevel); in createRingRequest()
175 result = request.put_u32(LOGGER_ATTRIBUTE_RING_FLAGS, mFlags); in createRingRequest()
180 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_TIME_INTVAL, mMaxIntervalSec); in createRingRequest()
185 result = request.put_u32(LOGGER_ATTRIBUTE_LOG_MIN_DATA_SIZE, mMinDataSize); in createRingRequest()
190 result = request.put_string(LOGGER_ATTRIBUTE_RING_NAME, mRingName); in createRingRequest()
195 request.attr_end(data); in createRingRequest()
200 int createRequest(WifiRequest &request) { in createRequest() argument
[all …]
Dwifi_offload.cpp94 int createRequest(WifiRequest &request) { in createRequest() argument
100 result = request.create(GOOGLE_OUI, WIFI_OFFLOAD_START_MKEEP_ALIVE); in createRequest()
106 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createRequest()
108 result = request.put_u8(MKEEP_ALIVE_ATTRIBUTE_ID, mIndex); in createRequest()
114 result = request.put_u16(MKEEP_ALIVE_ATTRIBUTE_IP_PKT_LEN, mIpPktLen); in createRequest()
120 result = request.put(MKEEP_ALIVE_ATTRIBUTE_IP_PKT, (u8*)mIpPkt, mIpPktLen); in createRequest()
126 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_SRC_MAC_ADDR, mSrcMacAddr); in createRequest()
132 result = request.put_addr(MKEEP_ALIVE_ATTRIBUTE_DST_MAC_ADDR, mDstMacAddr); in createRequest()
138 result = request.put_u32(MKEEP_ALIVE_ATTRIBUTE_PERIOD_MSEC, mPeriodMsec); in createRequest()
144 request.attr_end(data); in createRequest()
[all …]
Drtt.cpp342 int createSetupRequest(WifiRequest& request) { in createSetupRequest() argument
343 int result = request.create(GOOGLE_OUI, RTT_SUBCMD_SET_CONFIG); in createSetupRequest()
348 nlattr *data = request.attr_start(NL80211_ATTR_VENDOR_DATA); in createSetupRequest()
349 result = request.put_u8(RTT_ATTRIBUTE_TARGET_CNT, numRttParams); in createSetupRequest()
353 nlattr *rtt_config = request.attr_start(RTT_ATTRIBUTE_TARGET_INFO); in createSetupRequest()
355 nlattr *attr2 = request.attr_start(i); in createSetupRequest()
360 result = request.put_addr(RTT_ATTRIBUTE_TARGET_MAC, rttParams[i].addr); in createSetupRequest()
365 result = request.put_u8(RTT_ATTRIBUTE_TARGET_TYPE, rttParams[i].type); in createSetupRequest()
370 result = request.put_u8(RTT_ATTRIBUTE_TARGET_PEER, rttParams[i].peer); in createSetupRequest()
375 result = request.put(RTT_ATTRIBUTE_TARGET_CHAN, &rttParams[i].channel, in createSetupRequest()
[all …]
/device/generic/goldfish-opengl/shared/GoldfishAddressSpace/include/
Dgoldfish_address_space_android.impl63 long ioctl_allocate(int fd, struct goldfish_address_space_allocate_block *request)
65 return ::ioctl(fd, GOLDFISH_ADDRESS_SPACE_IOCTL_ALLOCATE_BLOCK, request);
73 long ioctl_ping(int fd, struct goldfish_address_space_ping *request)
75 return ::ioctl(fd, GOLDFISH_ADDRESS_SPACE_IOCTL_PING, request);
80 struct goldfish_address_space_ping request;
81 ::memset(&request, 0, sizeof(request));
82 request.version = sizeof(request);
83 request.metadata = type;
85 long ret = ioctl_ping(fd, &request);
90 return request.metadata;
[all …]
Dgoldfish_address_space_host.impl43 AddressSpaceDevicePingInfo request;
44 ::memset(&request, 0, sizeof(request));
45 request.metadata = subdevice;
47 HostAddressSpaceDevice::get()->ping(m_handle, &request);
255 AddressSpaceDevicePingInfo request;
257 ::memset(&request, 0, sizeof(request));
258 request.size = block->size();
259 request.metadata = HOST_MEMORY_ALLOCATOR_COMMAND_ALLOCATE_ID;
261 HostAddressSpaceDevice::get()->ping(m_provider.m_handle, &request);
263 block->claimShared(&m_provider, request.phys_addr, request.size);
[all …]
/device/google/trout/hal/audiocontrol/2.0/libandroid_audio_controller/
Dandroid_audio_controller.cpp55 aafc_session_id_t AcquireFocus(aafc_audio_focus_request_t&& request);
72 aafc_audio_focus_request_t request; member
101 static void validateRequest(aafc_audio_focus_request_t* request) { in validateRequest() argument
102 if (!request) { in validateRequest()
106 if (!request->is_transient && (request->allow_duck || request->is_exclusive)) { in validateRequest()
110 } else if (request->allow_duck && request->is_exclusive) { in validateRequest()
114 request->allow_duck = false; in validateRequest()
170 aafc_session_id_t AudioFocusControllerImpl::AcquireFocus(aafc_audio_focus_request_t&& request) { in AcquireFocus() argument
171 validateRequest(&request); in AcquireFocus()
199 .request = std::move(request), in AcquireFocus()
[all …]
/device/generic/goldfish/tnc/
Dmain.cpp125 struct ifreq request; in configureBridge() local
126 memset(&request, 0, sizeof(request)); in configureBridge()
127 request.ifr_ifindex = if_nametoindex(ifName); in configureBridge()
128 if (request.ifr_ifindex == 0) { in configureBridge()
134 strlcpy(request.ifr_name, kBridgeName, sizeof(request.ifr_name)); in configureBridge()
135 res = ::ioctl(fd, SIOCBRADDIF, &request); in configureBridge()
144 struct ifreq request; in configureBridge() local
145 memset(&request, 0, sizeof(request)); in configureBridge()
146 request.ifr_ifindex = if_nametoindex(kBridgeName); in configureBridge()
147 if (request.ifr_ifindex == 0) { in configureBridge()
[all …]
/device/google/trout/hal/audiocontrol/2.0/libandroid_audio_controller_test/
Dmain.cpp55 explicit AudioSession(const aafc_audio_focus_request_t& request) { in AudioSession() argument
56 mSession = aafc_acquire_audio_focus(request); in AudioSession()
71 aafc_audio_focus_request_t request = {.audio_usage = AAFC_AUDIO_USAGE_EMERGENCY, in main() local
80 request.allow_duck = !request.allow_duck; in main()
83 request.is_exclusive = !request.is_exclusive; in main()
96 request.is_transient = !request.is_transient; in main()
111 AudioSession session(request); in main()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/
Drpythond.py27 request = ''
32 request = request + data
33 reply = execute(request)
37 def execute(request): argument
43 exec request in {}, {}
/device/google/cuttlefish/host/frontend/gcastv2/https/
DHTTPServer.cpp82 HTTPRequest request; in handleSingleRequest() local
83 request.setTo(data, size); in handleSingleRequest()
89 if (request.initCheck() < 0) { in handleSingleRequest()
91 } else if (request.getMethod() != "GET") { in handleSingleRequest()
93 } else if (request.getVersion() != "HTTP/1.1") { in handleSingleRequest()
98 auto path = request.getPath(); in handleSingleRequest()
120 request, in handleSingleRequest()
138 request, in handleSingleRequest()
181 if (request.getHeaderField("Connection", &value) && value == "close") { in handleSingleRequest()
239 const HTTPRequest &request, in handleWebSocketRequest() argument
[all …]
/device/generic/goldfish/radio/libril/
DrilSocketQueue.h72 void enqueue(T* request);
121 void Ril_queue<T>::enqueue(T* request) { in enqueue() argument
126 this->front = request; in enqueue()
127 request->p_next = NULL; in enqueue()
129 request->p_next = this->front; in enqueue()
130 this->front = request; in enqueue()
DRilSapSocket.cpp48 SapSocketRequest *request = (SapSocketRequest*) t; in sOnRequestComplete() local
50 RLOGD("Socket id:%d", request->socketId); in sOnRequestComplete()
52 sap_socket = getSocketById(request->socketId); in sOnRequestComplete()
58 if (request->curr) { in sOnRequestComplete()
59 free(request->curr); in sOnRequestComplete()
61 free(request); in sOnRequestComplete()
235 SapSocketRequest* request= (SapSocketRequest*)t; in onRequestComplete() local
237 if (!request || !request->curr) { in onRequestComplete()
242 MsgHeader *hdr = request->curr; in onRequestComplete()
245 rsp.token = request->curr->token; in onRequestComplete()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_httpservers.py84 def request(self, uri, method='GET', body=None, headers={}): member in BaseTestCase
86 self.connection.request(method, uri, body, headers)
186 self.con.request('GET', '/')
256 self.con.request('TEST', '/')
261 self.con.request('KEEP', '/')
264 self.con.request('TEST', '/')
268 self.con.request('KEYERROR', '/')
273 self.con.request('CUSTOM', '/')
314 response = self.request(self.tempdir_name + '/test')
316 response = self.request(self.tempdir_name + '/')
[all …]
Dtest_docxmlrpc.py19 self.client.request("GET", "/")
97 self.client.request("GET", "/")
107 self.client.request("GET", "/spam")
122 self.client.request("GET", "/")
138 self.client.request("GET", "/")
161 self.client.request("GET", "/")
191 self.client.request("GET", "/")
/device/google/cuttlefish/guest/hals/ril/libril/
DRilSapSocket.cpp48 SapSocketRequest *request = (SapSocketRequest*) t; in sOnRequestComplete() local
50 RLOGD("Socket id:%d", request->socketId); in sOnRequestComplete()
52 sap_socket = getSocketById(request->socketId); in sOnRequestComplete()
58 if (request->curr) { in sOnRequestComplete()
59 free(request->curr); in sOnRequestComplete()
61 free(request); in sOnRequestComplete()
235 SapSocketRequest* request= (SapSocketRequest*)t; in onRequestComplete() local
237 if (!request || !request->curr) { in onRequestComplete()
242 MsgHeader *hdr = request->curr; in onRequestComplete()
245 rsp.token = request->curr->token; in onRequestComplete()
[all …]

123456789