Home
last modified time | relevance | path

Searched refs:fd_ (Results 1 – 12 of 12) sorted by relevance

/packages/modules/adb/client/openscreen/platform/
Dudp_socket.cpp161 : client_(client), local_endpoint_(local_endpoint), fd_(std::move(fd)) { in AdbUdpSocket()
164 fde_ = fdevent_create(fd_.get(), OnFdeventResult, this); in AdbUdpSocket()
170 LOG(INFO) << __func__ << " fd=" << fd_.get(); in AdbUdpSocket()
194 if (adb_getsockname(fd_, reinterpret_cast<struct sockaddr*>(&address), in GetLocalEndpoint()
208 if (adb_getsockname(fd_, reinterpret_cast<struct sockaddr*>(&address), in GetLocalEndpoint()
266 if (!fd_.ok()) { in SetMulticastOutboundInterface()
283 if (getsockopt(fd_.get(), IPPROTO_IP, IP_MULTICAST_IF, &default_addr, &buf_size) != in SetMulticastOutboundInterface()
291 if (adb_setsockopt(fd_, IPPROTO_IP, IP_MULTICAST_IF, &multicast_properties, in SetMulticastOutboundInterface()
300 if (getsockopt(fd_.get(), IPPROTO_IP, IP_MULTICAST_IF, &default_addr, &buf_size) != in SetMulticastOutboundInterface()
313 if (adb_setsockopt(fd_, IPPROTO_IPV6, IPV6_MULTICAST_IF, &index, sizeof(index)) == in SetMulticastOutboundInterface()
[all …]
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Dapk_archive.cpp70 fd_.reset(adb_open(path_.c_str(), O_RDONLY)); in ApkArchive()
71 if (fd_ == -1) { in ApkArchive()
115 FileRegion mapped(fd_, readOffset, sizeToRead); in FindEndOfCDRecord()
165 FileRegion mapped(fd_, eocdRecord, cdEntryHeaderSizeBytes); in GetCDLocation()
187 FileRegion mapped(fd_, signatureOffset, endOfSignatureSize); in GetSignatureLocation()
205 FileRegion mapped(fd_, loc.offset, loc.size); in ReadMetadata()
342 FileRegion lfhMapped(fd_, localFileHeaderOffset, sizeof(LocalFileHeader)); in CalculateLocalFileEntrySize()
383 FileRegion ddMapped(fd_, ddOffset, sizeof(uint32_t) + sizeof(DataDescriptor)); in CalculateLocalFileEntrySize()
Dapk_archive.h75 bool ready() const { return fd_ >= 0; } in ready()
79 unique_fd fd_; variable
/packages/modules/adb/
Dshell_service_protocol.cpp25 ShellProtocol::ShellProtocol(borrowed_fd fd) : fd_(fd) { in ShellProtocol()
35 if (!ReadFdExactly(fd_, buffer_, kHeaderSize)) { in Read()
46 if (read_length && !ReadFdExactly(fd_, data(), read_length)) { in Read()
61 return WriteFdExactly(fd_, buffer_, kHeaderSize + length); in Write()
Dtransport_fd.cpp47 NonblockingFdConnection(unique_fd fd) : started_(false), fd_(std::move(fd)) { in NonblockingFdConnection()
48 set_file_block_mode(fd_.get(), false); in NonblockingFdConnection()
66 {.fd = fd_.get(), .events = POLLIN}, in Run()
97 rc = adb_read(fd_.get(), &block[0], block.size()); in Run()
179 ssize_t rc = adb_writev(fd_.get(), iovs.data(), iovs.size()); in DispatchWrites()
228 unique_fd fd_; member
Dtransport.cpp434 FdConnection::FdConnection(unique_fd fd) : fd_(std::move(fd)) {} in FdConnection()
447 return ReadFdExactly(fd_.get(), buf, len); in DispatchRead()
459 return WriteFdExactly(fd_.get(), buf, len); in DispatchWrite()
509 int osh = cast_handle_to_int(adb_get_os_handle(fd_)); in DoTlsHandshake()
546 adb_shutdown(fd_.get()); in Close()
547 fd_.reset(); in Close()
Dshell_protocol.h107 borrowed_fd fd_; variable
Dtransport.h212 unique_fd fd_; member
/packages/modules/adb/pairing_connection/
Dpairing_connection.cpp148 unique_fd fd_; member
161 fd_.reset(); in ~PairingConnectionCtx()
173 fd_); in SetupTlsConnection()
176 LOG(ERROR) << "Unable to start TlsConnection. Unable to pair fd=" << fd_.get(); in SetupTlsConnection()
186 LOG(ERROR) << "Failed to handshake with the peer fd=" << fd_.get(); in SetupTlsConnection()
273 cb_(p, fd_.get(), opaque_); in NotifyResult()
281 fd_.reset(fd); in Start()
/packages/modules/adb/daemon/
Dabb.cpp33 explicit AdbFdTextOutput(borrowed_fd fd) : fd_(fd) {} in AdbFdTextOutput()
37 return WriteFdExactly(fd_, txt, len) ? android::OK : -errno; in print()
48 borrowed_fd fd_; member in __anon1378a0cb0111::AdbFdTextOutput
/packages/modules/adb/tls/
Dtls_connection.cpp78 borrowed_fd fd_; member in adb::tls::__anon7409db670111::TlsConnectionImpl
85 : role_(role), fd_(fd) { in TlsConnectionImpl()
266 if (!SSL_set_fd(ssl_.get(), fd_.get())) { in DoHandshake()
/packages/modules/adb/client/
Dincremental_server.cpp155 this->fd_ = std::move(fd); in File()
157 priority_blocks_ = PriorityBlocksForFile(filepath, fd_.get(), size); in File()
162 bytes_read = adb_pread(fd_, buf, kBlockSize, offsetStart); in ReadDataBlock()
191 unique_fd fd_; member in incremental::File