Searched refs:Send (Results 1 - 25 of 34) sorted by relevance

12

/system/core/metricsd/uploader/
H A Dsender.h27 virtual bool Send(const std::string& content, const std::string& hash) = 0;
H A Dsender_http.h33 bool Send(const std::string& content, const std::string& hash) override;
H A Dsender_http.cc29 bool HttpSender::Send(const std::string& content, function in class:HttpSender
/system/core/metricsd/uploader/mock/
H A Dsender_mock.cc23 bool SenderMock::Send(const std::string& content, const std::string& hash) { function in class:SenderMock
H A Dsender_mock.h30 bool Send(const std::string& content, const std::string& hash) override;
45 // If set to true, the Send method will return true to simulate a successful
49 // Count of how many times Send was called since the last reset.
52 // Last message received by Send.
/system/core/trusty/gatekeeper/
H A Dtrusty_gatekeeper.h68 gatekeeper_error_t Send(uint32_t command, const GateKeeperMessage& request,
71 gatekeeper_error_t Send(const EnrollRequest& request, EnrollResponse *response) { function in class:gatekeeper::TrustyGateKeeperDevice
72 return Send(GK_ENROLL, request, response);
75 gatekeeper_error_t Send(const VerifyRequest& request, VerifyResponse *response) { function in class:gatekeeper::TrustyGateKeeperDevice
76 return Send(GK_VERIFY, request, response);
H A Dtrusty_gatekeeper.cpp108 gatekeeper_error_t error = Send(request, &response);
140 gatekeeper_error_t error = Send(request, &response);
160 gatekeeper_error_t TrustyGateKeeperDevice::Send(uint32_t command, const GateKeeperMessage& request, function in class:gatekeeper::TrustyGateKeeperDevice
168 // Send it
/system/core/fastboot/
H A Dsocket.cpp114 bool Send(const void* data, size_t length) override;
115 bool Send(std::vector<cutils_socket_buffer_t> buffers) override;
135 bool UdpSocket::Send(const void* data, size_t length) { function in class:UdpSocket
141 bool UdpSocket::Send(std::vector<cutils_socket_buffer_t> buffers) { function in class:UdpSocket
172 bool Send(const void* data, size_t length) override;
173 bool Send(std::vector<cutils_socket_buffer_t> buffers) override;
182 bool TcpSocket::Send(const void* data, size_t length) { function in class:TcpSocket
196 bool TcpSocket::Send(std::vector<cutils_socket_buffer_t> buffers) { function in class:TcpSocket
H A Dsocket.h64 // calls to Send().
72 virtual bool Send(const void* data, size_t length) = 0;
81 virtual bool Send(std::vector<cutils_socket_buffer_t> buffers) = 0;
H A Dsocket_mock.h59 bool Send(const void* data, size_t length) override;
60 bool Send(std::vector<cutils_socket_buffer_t> buffers) override;
65 // Adds an expectation for Send().
68 // Adds an expectation for Send() that returns false.
92 bool status; // Return value for Send() or timeout status for Receive().
H A Dsocket_mock.cpp41 bool SocketMock::Send(const void* data, size_t length) { function in class:SocketMock
43 ADD_FAILURE() << "Send() was called when no message was expected";
48 ADD_FAILURE() << "Send() was called out-of-order";
54 ADD_FAILURE() << "Send() expected " << events_.front().message << ", but got " << message;
65 bool SocketMock::Send(std::vector<cutils_socket_buffer_t> buffers) { function in class:SocketMock
70 return Send(data.data(), data.size());
H A Dsocket_test.cpp65 return sock->Send(message.c_str(), message.length());
196 EXPECT_TRUE(sock->Send(buffers));
199 EXPECT_FALSE(sock->Send(buffers));
202 EXPECT_FALSE(sock->Send(buffers));
205 EXPECT_FALSE(sock->Send(buffers));
278 EXPECT_EQ(expect_success, sock->Send(buffers));
H A Dtcp.cpp96 if (!socket_->Send(handshake_message.c_str(), kHandshakeLength)) {
163 if (!socket_->Send(std::vector<cutils_socket_buffer_t>{{header, 8}, {data, length}})) {
/system/connectivity/shill/vpn/
H A Dopenvpn_management_server.cc435 void OpenVPNManagementServer::Send(const string& data) { function in class:shill::OpenVPNManagementServer
437 ssize_t len = sockets_->Send(connected_socket_, data.data(), data.size(), 0);
439 << "Send failed.";
444 Send(StringPrintf("state %s\n", state.c_str()));
450 Send(StringPrintf("username \"%s\" %s\n", tag.c_str(), username.c_str()));
456 Send(StringPrintf("password \"%s\" \"%s\"\n",
463 Send(StringPrintf("signal %s\n", signal.c_str()));
468 Send("hold release\n");
H A Dopenvpn_management_server.h91 FRIEND_TEST(OpenVPNManagementServerTest, Send);
106 void Send(const std::string& data);
/system/connectivity/shill/net/
H A Drtnl_handler_unittest.cc259 EXPECT_CALL(*sockets_, Send(kTestSocket, _, _, 0)).WillOnce(Return(-1));
272 EXPECT_CALL(*sockets_, Send(kTestSocket, _, _, 0)).WillOnce(ReturnArg<2>());
284 EXPECT_CALL(*sockets_, Send(kTestSocket, _, _, 0)).WillOnce(ReturnArg<2>());
309 EXPECT_CALL(*sockets_, Send(_, _, _, 0)).WillRepeatedly(ReturnArg<2>());
328 EXPECT_CALL(*sockets_, Send(kTestSocket, _, _, 0)).WillOnce(ReturnArg<2>());
H A Dmock_sockets.h62 MOCK_CONST_METHOD4(Send, ssize_t(int sockfd, const void* buf, size_t len,
H A Dnetlink_socket.cc124 ssize_t result = sockets_->Send(file_descriptor(), out_msg.GetConstData(),
127 PLOG(ERROR) << "Send failed.";
H A Dnetlink_socket_unittest.cc143 // Good Send.
145 Send(kFakeFd, message.GetConstData(), message.GetLength(), 0))
149 // Short Send.
151 Send(kFakeFd, message.GetConstData(), message.GetLength(), 0))
155 // Bad Send.
157 Send(kFakeFd, message.GetConstData(), message.GetLength(), 0))
H A Dsockets.h104 virtual ssize_t Send(int sockfd,
H A Dsockets.cc139 ssize_t Sockets::Send(int sockfd, function in class:shill::Sockets
/system/core/libmemunreachable/
H A DLeakPipe.h105 bool Send(const T& value) { function in class:LeakPipe::LeakPipeSender
121 if (!Send(size)) {
/system/connectivity/shill/
H A Dhttp_proxy_unittest.cc554 EXPECT_CALL(sockets(), Send(kClientFD, _, buf_len, 0))
562 EXPECT_CALL(sockets(), Send(kClientFD, _, 1, 0))
755 EXPECT_CALL(sockets(), Send(kServerFD, _, _, 0))
759 EXPECT_CALL(sockets(), Send(kServerFD, _, _, 0))
776 EXPECT_CALL(sockets(), Send(kClientFD, _, server_result.length(), 0))
789 EXPECT_CALL(sockets(), Send(kClientFD, _, server_result.length() - part, 0))
798 EXPECT_CALL(sockets(), Send(kClientFD, _, _, 0))
808 EXPECT_CALL(sockets(), Send(kServerFD, _, _, 0))
818 EXPECT_CALL(sockets(), Send(kServerFD, _, _, 0))
H A Dhttp_request_unittest.cc444 EXPECT_CALL(sockets(), Send(kServerFD, _, request_data.GetLength(), 0))
448 EXPECT_CALL(sockets(), Send(kServerFD, _, 1, 0))
457 EXPECT_CALL(sockets(), Send(kServerFD, _, request_data.GetLength(), 0))
469 EXPECT_CALL(sockets(), Send(kServerFD, _, request_data.GetLength(), 0))
/system/connectivity/apmanager/
H A Dhostapd_monitor.cc177 if (sockets_->Send(hostapd_socket_, message, length, 0) < 0) {
178 PLOG(ERROR) << "Send to hostapd failed";

Completed in 312 milliseconds

12