/packages/modules/Bluetooth/system/test/mock/ |
D | mock_osi_socket.h | 52 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 …]
|
D | mock_osi_socket.cc | 56 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/ |
D | nnCache.h | 61 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()
|
D | nnCache.cpp | 76 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/ |
D | ResolverStats.h | 53 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()
|
D | doh.h | 27 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/ |
D | socket.h | 68 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/ |
D | socket.cc | 129 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/ |
D | async_data_channel.h | 24 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/ |
D | posix_async_socket.cc | 68 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()
|
D | posix_async_socket.h | 51 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/ |
D | syscall_wrapper_mock.h | 38 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));
|
D | syscall_wrapper_impl.cc | 46 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()
|
D | syscall_wrapper_impl.h | 33 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);
|
D | syscall_wrapper_interface.h | 41 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/ |
D | h4_data_channel_packetizer.cc | 46 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/ |
D | btif_sock_util.cc | 51 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/ |
D | ffi.rs | 24 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/ |
D | uio.h | 33 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/ |
D | tun_forwarder.cpp | 46 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/ |
D | io_vsock.cpp | 63 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/ |
D | posix_socket_unittest.cc | 169 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/ |
D | sysdeps.h | 188 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/ |
D | bta_hh_co.cc | 129 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/ |
D | crashdump.c | 97 ssize_t read_bytes = read(vmcore, buf, BUF_SIZE); in main() 101 ssize_t written_bytes = write(dest, buf, read_bytes); in main()
|