Searched refs:Receive (Results 1 - 9 of 9) sorted by relevance

/system/core/fastboot/
H A Dsocket.cpp55 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms);
116 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
151 ssize_t UdpSocket::Receive(void* data, size_t length, int timeout_ms) { function in class:UdpSocket
174 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
230 ssize_t TcpSocket::Receive(void* data, size_t length, int timeout_ms) { function in class:TcpSocket
H A Dsocket_test.cpp98 EXPECT_EQ(-1, server->Receive(buffer, sizeof(buffer), kShortTimeoutMs));
101 EXPECT_EQ(-1, client->Receive(buffer, sizeof(buffer), kShortTimeoutMs));
108 EXPECT_EQ(-1, client->Receive(buffer, sizeof(buffer), kShortTimeoutMs));
120 EXPECT_EQ(-1, server->Receive(buffer, sizeof(buffer), kTestTimeoutMs));
124 EXPECT_EQ(-1, client->Receive(buffer, sizeof(buffer), kTestTimeoutMs));
131 EXPECT_EQ(0, client->Receive(buffer, sizeof(buffer), kTestTimeoutMs));
165 ssize_t bytes = server->Receive(buffer, 5, kTestTimeoutMs);
356 EXPECT_NONFATAL_FAILURE(mock->Receive(&c, 1, 0), "not enough bytes (1) for foo");
H A Dsocket.h63 // A UDP server saves sender addresses in Receive(), and uses the most recent address during
86 virtual ssize_t Receive(void* data, size_t length, int timeout_ms) = 0;
88 // Calls Receive() until exactly |length| bytes have been received or an error occurs.
91 // Returns true if the last Receive() call timed out normally and can be retried; fatal errors
H A Dsocket_mock.h61 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
71 // Adds data to provide for Receive().
74 // Adds a Receive() timeout after which ReceiveTimedOut() will return true.
77 // Adds a Receive() failure after which ReceiveTimedOut() will return false.
92 bool status; // Return value for Send() or timeout status for Receive().
H A Dsocket_mock.cpp73 ssize_t SocketMock::Receive(void* data, size_t length, int /*timeout_ms*/) { function in class:SocketMock
75 ADD_FAILURE() << "Receive() was called when no message was ready";
81 ADD_FAILURE() << "Receive() was called out-of-order";
87 ADD_FAILURE() << "Receive(): not enough bytes (" << length << ") for " << message;
H A Dudp.cpp268 bytes = socket_->Receive(rx_packet_.data(), rx_packet_.size(), kResponseTimeoutMs);
/system/core/libmemunreachable/
H A DLeakPipe.h143 bool Receive(T* value) { function in class:LeakPipe::LeakPipeReceiver
159 if (!Receive(&size)) {
H A DMemUnreachable.cpp391 ok = ok && pipe.Receiver().Receive(&info.num_allocations);
392 ok = ok && pipe.Receiver().Receive(&info.allocation_bytes);
393 ok = ok && pipe.Receiver().Receive(&info.num_leaks);
394 ok = ok && pipe.Receiver().Receive(&info.leak_bytes);
/system/connectivity/shill/
H A Darp_client_unittest.cc213 TEST_F(ArpClientTest, Receive) {

Completed in 60 milliseconds