Home
last modified time | relevance | path

Searched refs:send (Results 1 – 25 of 160) sorted by relevance

1234567

/system/libbase/
Dcmsg_test.cpp44 android::base::Socketpair(Seqpacket() ? SOCK_SEQPACKET : SOCK_STREAM, &send, &recv)); in SetUp()
57 unique_fd send; member
71 ASSERT_EQ(1, SendFileDescriptors(send.get(), "x", 1, fd1.get())); in TEST_P()
83 ASSERT_EQ(2, SendFileDescriptors(send.get(), "ab", 2, fd1.get(), fd2.get())); in TEST_P()
105 ASSERT_EQ(1, SendFileDescriptors(send.get(), "a", 1, fd1.get(), fd2.get())); in TEST_P()
115 ASSERT_EQ(1, SendFileDescriptors(send.get(), "a", 1, fd1.get())); in TEST_P()
132 ASSERT_EQ(1, TEMP_FAILURE_RETRY(write(send.get(), "a", 1))); in TEST_P()
133 ASSERT_EQ(2, SendFileDescriptors(send.get(), "bc", 2, fd1.get())); in TEST_P()
134 ASSERT_EQ(1, SendFileDescriptors(send.get(), "d", 1, fd2.get())); in TEST_P()
153 ASSERT_EQ(1, SendFileDescriptors(send.get(), "a", 1, fd1.get(), fd2.get())); in TEST_P()
[all …]
/system/netd/server/
DNFLogListener.cpp61 Status cfgCmdPfUnbind(const SendFn& send) { in cfgCmdPfUnbind() argument
76 return send(makeSlice(msg)); in cfgCmdPfUnbind()
82 Status cfgMode(const SendFn& send, uint16_t nfLogGroup, uint32_t range, uint8_t mode) { in cfgMode() argument
99 return send(makeSlice(msg)); in cfgMode()
103 Status cfgCmdBind(const SendFn& send, uint16_t nfLogGroup) { in cfgCmdBind() argument
119 return send(makeSlice(msg)); in cfgCmdBind()
123 Status cfgCmdUnbind(const SendFn& send, uint16_t nfLogGroup) { in cfgCmdUnbind() argument
139 return send(makeSlice(msg)); in cfgCmdUnbind()
169 const auto sendFn = [this](const Slice msg) { return mListener->send(msg); }; in ~NFLogListener()
181 const auto sendFn = [this](const Slice msg) { return mListener->send(msg); }; in subscribe()
[all …]
DNetlinkListener.h43 virtual netdutils::Status send(const netdutils::Slice msg) = 0;
82 netdutils::Status send(const netdutils::Slice msg) override;
/system/bt/gd/l2cap/classic/cert/
Dcert_l2cap.py62 def send(self, packet): member in CertL2capChannel
64 self._acl.send(frame.Serialize())
77 self._acl.send(frame.Serialize())
81 self._acl.send(frame.Serialize())
89 self._control_channel.send(request)
95 self.send(information_request)
109 self._control_channel.send(config_response)
117 self._control_channel.send(config_response)
125 … self._control_channel.send(l2cap_packets.DisconnectionRequestBuilder(1, self._dcid, self._scid))
199 self.control_channel.send(l2cap_packets.ConnectionRequestBuilder(signal_id, psm, scid))
[all …]
Dl2cap_test.py133 dut_channel.send(b'abc')
158 dut_channel.send(b'abc' * 34)
181 dut_channel.send(b'hello')
203 dut_channel.send(b'a' * 48)
328 dut_channel.send(b"a" * 44)
411 self.cert_l2cap.get_control_channel().send(echo_request)
424 self.cert_l2cap.get_control_channel().send(invalid_command_packet)
541 dut_channel.send(b'abc')
555 dut_channel.send(b'abc')
571 dut_channel.send(b'abc')
[all …]
Dl2cap_performance_test.py47 dut_channel.send(b'a' * mtu)
70 dut_channel.send(b'a' * mtu)
84 cert_channel.send(data_packet)
111 dut_channel.send(b'a' * mtu)
176 cert_channel.send(data_packet)
/system/bt/gd/l2cap/le/cert/
Dcert_le_l2cap.py47 def send(self, packet): member in CertLeL2capChannel
49 self._acl.send(frame.Serialize())
54 self._acl.send(frame.Serialize())
59 … self._control_channel.send(l2cap_packets.LeDisconnectionRequestBuilder(1, self._dcid, self._scid))
67 … self._control_channel.send(l2cap_packets.LeFlowControlCreditBuilder(2, self._scid, num_credits))
109 self.control_channel.send(
122 …self.control_channel.send(l2cap_packets.LeCreditBasedConnectionRequestBuilder(1, psm, 0x40, 1000, …
145 self.control_channel.send(reject)
165 self.control_channel.send(response)
180 self.control_channel.send(response)
Dle_l2cap_test.py139 dut_channel.send(b'hello' * 40)
146 cert_channel.send(SAMPLE_PACKET)
174 self.cert_l2cap.get_control_channel().send(
187 self.cert_l2cap.get_control_channel().send(
199 self.cert_l2cap.get_control_channel().send(
210 dut_channel.send(b'hello' * 20 + b'world')
224 dut_channel.send(b'hello' * 40)
232 dut_channel.send(b'hello' * 40)
244 cert_channel.send(SAMPLE_PACKET)
293 self.cert_l2cap.get_control_channel().send(
[all …]
Ddual_l2cap_test.py152 dut_channel.send(b'abc')
155 le_dut_channel.send(b'hello')
177 dut_channel.send(b'abc')
180 le_dut_channel.send(b'hello')
/system/core/init/
Dkeychords_test.cpp56 bool send(struct input_event& e);
57 bool send(uint16_t type, uint16_t code, uint16_t value);
58 bool send(uint16_t code, bool value);
118 bool EventHandler::send(struct input_event& e) { in send() function in android::init::__anon8ab3744a0111::EventHandler
123 bool EventHandler::send(uint16_t type, uint16_t code, uint16_t value) { in send() function in android::init::__anon8ab3744a0111::EventHandler
125 return send(e); in send()
128 bool EventHandler::send(uint16_t code, bool value) { in send() function in android::init::__anon8ab3744a0111::EventHandler
129 return (code < KEY_MAX) && init() && send(EV_KEY, code, value) && send(EV_SYN, SYN_REPORT, 0); in send()
225 EXPECT_TRUE(ev_->send(key, value)); in SetChord()
Dproperty_service_test.cpp51 ASSERT_EQ(static_cast<ssize_t>(sizeof(msg)), send(fd, &msg, sizeof(msg), 0)); in TEST()
52 ASSERT_EQ(static_cast<ssize_t>(sizeof(size)), send(fd, &size, sizeof(size), 0)); in TEST()
/system/netd/client/
DNetdClient.cpp142 if (int error = FwmarkClient().send(&command, acceptedSocket, nullptr)) { in netdClientAccept4()
156 error = FwmarkClient().send(&command, sockfd, &connectInfo); in netdClientConnect()
158 error = FwmarkClient().send(&command, sockfd, nullptr); in netdClientConnect()
179 FwmarkClient().send(&command, sockfd, &connectInfo); in netdClientConnect()
212 FwmarkClient().send(&command, sockfd, &sendmmsgInfo); in netdClientSendmmsg()
227 FwmarkClient().send(&command, sockfd, &sendmsgInfo); in netdClientSendmsg()
240 FwmarkClient().send(&command, sockfd, &sendtoInfo); in netdClientSendto()
479 return FwmarkClient().send(&command, socketFd, nullptr); in setNetworkForSocket()
493 return FwmarkClient().send(&command, socketFd, nullptr); in protectFromVpn()
499 return FwmarkClient().send(&command, socketFd, nullptr); in setNetworkForUser()
[all …]
DFwmarkClient.h37 int send(FwmarkCommand* data, int fd, FwmarkConnectInfo* connectInfo);
/system/memory/libmemunreachable/tests/
DBinder_test.cpp146 Parcel send; in TEST_F() local
149 send.writeStrongBinder(binder); in TEST_F()
150 status_t rv = service->transact(0, send, &reply); in TEST_F()
/system/sepolicy/prebuilts/api/30.0/public/
Dhal_health.te20 # Allow to wake up to send periodic events
26 # Allow to use timerfd to wake itself up periodically to send health info.
/system/sepolicy/prebuilts/api/29.0/public/
Dhal_health.te20 # Allow to wake up to send periodic events
26 # Allow to use timerfd to wake itself up periodically to send health info.
/system/sepolicy/public/
Dhal_health.te20 # Allow to wake up to send periodic events
26 # Allow to use timerfd to wake itself up periodically to send health info.
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp130 Parcel send, reply; in BM_addInts() local
139 send.writeInt32(val1); in BM_addInts()
140 send.writeInt32(val2); in BM_addInts()
145 send, &reply)) != 0) { in BM_addInts()
/system/bt/gd/hci/cert/
Dacl_manager_test.py48 dut_acl.send(b'\x29\x00\x07\x00This is just SomeMoreAclData from the DUT')
62 dut_acl.send(b'\x29\x00\x07\x00This is just SomeMoreAclData from the DUT')
78 dut_acl.send(b'\x29\x00\x07\x00This is just SomeMoreAclData from the DUT')
/system/sepolicy/prebuilts/api/29.0/private/
Dnetd.te24 # Allow netd to send callbacks to network_stack
27 # Allow netd to send dump info to dumpstate
/system/sepolicy/prebuilts/api/30.0/private/
Dnetd.te25 # Allow netd to send callbacks to network_stack
28 # Allow netd to send dump info to dumpstate
/system/bt/tools/hci/
Dmain.c190 if (send(sock, &type, 1, 0) != 1) goto error; in write_hci_command()
192 if (send(sock, &length, 2, 0) != 2) goto error; in write_hci_command()
194 if (send(sock, packet, length, 0) != (ssize_t)length) goto error; in write_hci_command()
/system/ca-certificates/
DOWNERS4 # Only for emergency escalations, do not send reviews here:
/system/bt/hci/src/
Dbtsnoop_net.cc84 OSI_NO_INTR(ret = send(client_socket_, data, length, 0)); in btsnoop_net_write()
140 OSI_NO_INTR(send(client_socket_, "btsnoop\0\0\0\0\1\0\0\x3\xea", 16, 0)); in listen_fn_()
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dhci_socket.py311 self._hci.send(connect)
353 self._hci.send(
367 self._hci.send(set_scan_parameters)
371 self._hci.send(set_scan_enable)
384 self._hci.send(inquiry)

1234567