Home
last modified time | relevance | path

Searched refs:ssize_t (Results 1 – 25 of 98) sorted by relevance

1234

/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_socket.h52 ssize_t return_value{0};
53 std::function<ssize_t(const socket_t* socket)> body{
55 ssize_t operator()(const socket_t* socket) { return body(socket); }; in operator()
108 ssize_t return_value{0};
109 std::function<ssize_t(const socket_t* socket, void* buf, size_t count)> body{
112 ssize_t operator()(const socket_t* socket, void* buf, size_t count) { in operator()
147 ssize_t return_value{0};
148 std::function<ssize_t(const socket_t* socket, const void* buf, size_t count)>
151 ssize_t operator()(const socket_t* socket, const void* buf, size_t count) { in operator()
161 ssize_t return_value{0};
[all …]
Dmock_osi_socket.cc56 ssize_t socket_bytes_available(const socket_t* socket) { in socket_bytes_available()
76 ssize_t socket_read(const socket_t* socket, void* buf, size_t count) { in socket_read()
90 ssize_t socket_write(const socket_t* socket, const void* buf, size_t count) { in socket_write()
94 ssize_t socket_write_and_transfer_fd(const socket_t* socket, const void* buf, in socket_write_and_transfer_fd()
/packages/modules/NeuralNetworks/driver/cache/nnCache/
DnnCache.h61 void setBlob(const void* key, ssize_t keySize, const void* value, ssize_t valueSize);
65 ssize_t getBlob(const void* key, ssize_t keySize, void* value, ssize_t valueSize);
66 ssize_t getBlob(const void* key, ssize_t keySize, void** value,
69 ssize_t getBlob(const void* key, size_t keySize, T** value, in getBlob()
72 const ssize_t size = getBlob(key, keySize, &valueVoid, alloc); in getBlob()
DnnCache.cpp76 void NNCache::setBlob(const void* key, ssize_t keySize, const void* value, ssize_t valueSize) { in setBlob()
103 ssize_t NNCache::getBlob(const void* key, ssize_t keySize, void* value, ssize_t valueSize) { in getBlob()
118 ssize_t NNCache::getBlob(const void* key, ssize_t keySize, void** value, in getBlob()
/packages/modules/DnsResolver/
DResolverStats.h53 ssize_t decode(const std::vector<int32_t>& in, ssize_t ofs);
78 inline ssize_t ResolverStats::decode(const std::vector<int32_t>& in, ssize_t ofs) { in decode()
103 ssize_t size = in.size(); in decodeAll()
108 ssize_t ofs = 0; in decodeAll()
Ddoh.h27 static const ssize_t DOH_RESULT_INTERNAL_ERROR = -1;
30 static const ssize_t DOH_RESULT_CAN_NOT_SEND = -2;
33 static const ssize_t DOH_RESULT_TIMEOUT = -255;
105 ssize_t doh_query(DohDispatcher* doh, uint32_t net_id, uint8_t* dns_query, size_t dns_query_len,
/packages/modules/Bluetooth/system/osi/include/
Dsocket.h68 ssize_t socket_read(const socket_t* socket, void* buf, size_t count);
80 ssize_t socket_write(const socket_t* socket, const void* buf, size_t count);
87 ssize_t socket_write_and_transfer_fd(const socket_t* socket, const void* buf,
97 ssize_t socket_bytes_available(const socket_t* socket);
/packages/modules/Bluetooth/system/osi/src/
Dsocket.cc129 ssize_t socket_read(const socket_t* socket, void* buf, size_t count) { in socket_read()
133 ssize_t ret; in socket_read()
139 ssize_t socket_write(const socket_t* socket, const void* buf, size_t count) { in socket_write()
143 ssize_t ret; in socket_write()
149 ssize_t socket_write_and_transfer_fd(const socket_t* socket, const void* buf, in socket_write_and_transfer_fd()
176 ssize_t ret; in socket_write_and_transfer_fd()
183 ssize_t socket_bytes_available(const socket_t* socket) { in socket_bytes_available()
/packages/modules/Bluetooth/tools/rootcanal/net/
Dasync_data_channel.h24 typedef SSIZE_T ssize_t; typedef
58 virtual ssize_t Recv(uint8_t* buffer, uint64_t bufferSize) = 0;
71 virtual ssize_t Send(const uint8_t* buffer, uint64_t bufferSize) = 0;
/packages/modules/Bluetooth/tools/rootcanal/net/posix/
Dposix_async_socket.cc68 ssize_t PosixAsyncSocket::Recv(uint8_t* buffer, uint64_t bufferSize) { in Recv()
75 ssize_t res = 0; in Recv()
85 ssize_t PosixAsyncSocket::Send(const uint8_t* buffer, uint64_t bufferSize) { in Send()
87 ssize_t res = 0; in Send()
Dposix_async_socket.h51 ssize_t Recv(uint8_t* buffer, uint64_t bufferSize) override;
57 ssize_t Send(const uint8_t* buffer, uint64_t bufferSize) override;
/packages/modules/Bluetooth/system/gd/hal/
Dsyscall_wrapper_mock.h38 MOCK_METHOD(ssize_t, Send, (int, const void*, size_t, int));
40 MOCK_METHOD(ssize_t, Recv, (int, void*, size_t, int));
48 MOCK_METHOD(ssize_t, Write, (int, const void*, size_t));
Dsyscall_wrapper_impl.cc46 ssize_t SyscallWrapperImpl::Send(int fd, const void* buf, size_t n, int flags) { in Send()
52 ssize_t SyscallWrapperImpl::Recv(int fd, void* buf, size_t n, int flags) { in Recv()
76 ssize_t SyscallWrapperImpl::Write(int fd, const void* buf, size_t count) { in Write()
77 ssize_t ret = write(fd, buf, count); in Write()
Dsyscall_wrapper_impl.h33 ssize_t Send(int fd, const void* buf, size_t n, int flags);
35 ssize_t Recv(int fd, void* buf, size_t n, int flags);
43 ssize_t Write(int, const void*, size_t);
Dsyscall_wrapper_interface.h41 virtual ssize_t Send(int fd, const void* buf, size_t n, int flags) = 0;
44 virtual ssize_t Recv(int fd, void* buf, size_t n, int flags) = 0;
62 virtual ssize_t Write(int, const void*, size_t) = 0;
/packages/modules/Bluetooth/tools/rootcanal/model/hci/
Dh4_data_channel_packetizer.cc46 ssize_t ret = uart_socket_->Send(&type, sizeof(type)); in Send()
72 ssize_t bytes_to_read = h4_parser_.BytesRequested(); in OnDataReady()
75 ssize_t bytes_read = socket->Recv(buffer.data(), bytes_to_read); in OnDataReady()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_util.cc51 ssize_t ret; in sock_send_all()
66 ssize_t ret; in sock_recv_all()
109 ssize_t ret; in sock_send_fd()
/packages/modules/DnsResolver/doh/
Dffi.rs24 use libc::{c_char, int32_t, size_t, ssize_t, uint32_t, uint64_t};
106 pub const DOH_RESULT_INTERNAL_ERROR: ssize_t = -1;
108 pub const DOH_RESULT_CAN_NOT_SEND: ssize_t = -2;
110 pub const DOH_RESULT_TIMEOUT: ssize_t = -255;
281 ) -> ssize_t { in doh_query() argument
319 answer.len() as ssize_t in doh_query()
/packages/modules/adb/sysdeps/
Duio.h33 ssize_t adb_writev(borrowed_fd fd, const adb_iovec* iov, int iovcnt);
39 inline ssize_t adb_writev(borrowed_fd fd, const adb_iovec* iov, int iovcnt) { in adb_writev()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp46 static constexpr ssize_t TUN_HDRLEN = sizeof(struct tun_pi);
47 static constexpr ssize_t IP4_HDRLEN = sizeof(struct iphdr);
48 static constexpr ssize_t IP6_HDRLEN = sizeof(struct ip6_hdr);
49 static constexpr ssize_t TCP_HDRLEN = sizeof(struct tcphdr);
50 static constexpr ssize_t UDP_HDRLEN = sizeof(struct udphdr);
195 ssize_t readlen = read(fd, buf, std::size(buf)); in handlePacket()
/packages/modules/Virtualization/tests/benchmark/src/native/
Dio_vsock.cpp63 ssize_t total = 0; in run_vsock_server_and_receive_data()
66 ssize_t n = TEMP_FAILURE_RETRY(read(client_fd.get(), buf, sizeof(buf))); in run_vsock_server_and_receive_data()
/packages/modules/Bluetooth/tools/rootcanal/test/
Dposix_socket_unittest.cc169 ssize_t snd = sock1->Send((uint8_t*)word.data(), word.size()); in TEST_F()
170 ASSERT_EQ((ssize_t)word.size(), snd); in TEST_F()
206 ssize_t snd = sock1->Send((uint8_t*)word.data(), word.size()); in TEST_F()
207 ASSERT_EQ((ssize_t)word.size(), snd); in TEST_F()
/packages/modules/adb/
Dsysdeps.h188 std::optional<ssize_t> network_peek(borrowed_fd fd);
225 ssize_t adb_sendmsg(borrowed_fd fd, const adb_msghdr* msg, int flags);
226 ssize_t adb_recvmsg(borrowed_fd fd, adb_msghdr* msg, int flags);
610 inline std::optional<ssize_t> network_peek(borrowed_fd fd) { in network_peek()
611 ssize_t ret = recv(fd.get(), nullptr, 0, MSG_PEEK | MSG_TRUNC); in network_peek()
697 inline ssize_t adb_sendmsg(borrowed_fd fd, const adb_msghdr* msg, int flags) { in adb_sendmsg()
701 inline ssize_t adb_recvmsg(borrowed_fd fd, adb_msghdr* msg, int flags) { in adb_recvmsg()
/packages/modules/Bluetooth/system/btif/co/
Dbta_hh_co.cc129 ssize_t ret; in uhid_write()
136 } else if (ret != (ssize_t)sizeof(*ev)) { in uhid_write()
151 ssize_t ret; in uhid_read_event()
180 if (ret < (ssize_t)(sizeof(ev.type) + sizeof(ev.u.output))) { in uhid_read_event()
199 if (ret < (ssize_t)(sizeof(ev.type) + sizeof(ev.u.output_ev))) { in uhid_read_event()
208 if (ret < (ssize_t)(sizeof(ev.type) + sizeof(ev.u.feature))) { in uhid_read_event()
222 if (ret < (ssize_t)(sizeof(ev.type) + sizeof(ev.u.set_report))) { in uhid_read_event()
/packages/modules/Virtualization/microdroid/kdump/
Dcrashdump.c97 ssize_t read_bytes = read(vmcore, buf, BUF_SIZE); in main()
101 ssize_t written_bytes = write(dest, buf, read_bytes); in main()

1234