Home
last modified time | relevance | path

Searched refs:socket_ (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Bluetooth/system/gd/hal/
Dsnoop_logger_socket_thread.cc42 socket_ = std::move(socket); in SnoopLoggerSocketThread()
64 socket_->NotifySocketListener(); in Stop()
73 socket_->Write(data, length); in Write()
81 return socket_.get(); in GetSocket()
87 if (socket_->InitializeCommunications() != 0) { in Run()
94 while (!stop_thread_ && socket_->ProcessIncomingRequest()) { in Run()
97 socket_->Cleanup(); in Run()
Dsnoop_logger_socket_thread.h50 std::unique_ptr<SnoopLoggerSocket> socket_; variable
Dsnoop_logger.cc521 socket_ = nullptr; in SnoopLogger()
1258 if (socket_ != nullptr) { in Capture()
1259 socket_->Write(&header, sizeof(PacketHeaderType)); in Capture()
1260 socket_->Write(packet.data(), (size_t)(length - 1)); in Capture()
1358 socket_ = nullptr; in Stop()
1442 socket_ = socket; in RegisterSocket()
Dsnoop_logger.h351 SnoopLoggerSocketInterface* socket_; variable
/packages/modules/Bluetooth/tools/rootcanal/model/devices/
Dlink_layer_socket_device.cc39 : socket_(socket_fd), in LinkLayerSocketDevice()
46 socket_->Recv(size_bytes_->data() + offset_, kSizeBytes); in Tick()
69 socket_->Recv(received_->data() + offset_, bytes_left_); in Tick()
92 if (socket_) { in Close()
93 socket_->Close(); in Close()
105 if (socket_->Send(size_bytes.data(), size_bytes.size()) == kSizeBytes) { in ReceiveLinkLayerPacket()
106 socket_->Send(packet_bytes.data(), packet_bytes.size()); in ReceiveLinkLayerPacket()
Dlink_layer_socket_device.h60 std::shared_ptr<AsyncDataChannel> socket_;
/packages/modules/Bluetooth/tools/rootcanal/model/hci/
Dhci_socket_transport.cc24 : socket_(socket) {} in HciSocketTransport()
30 socket_, in RegisterCallbacks()
57 void HciSocketTransport::Tick() { h4_.OnDataReady(socket_); } in Tick()
61 if (!socket_ || !socket_->Connected()) { in Send()
70 void HciSocketTransport::Close() { socket_->Close(); } in Close()
Dhci_socket_transport.h49 std::shared_ptr<AsyncDataChannel> socket_;
50 H4DataChannelPacketizer h4_{socket_,
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp122 socket_ = std::move(s); in startServer()
126 if (listen(socket_.get(), 1) < 0) { in startServer()
127 PLOG(INFO) << "failed to listen socket " << socket_.get(); in startServer()
173 {.fd = socket_.get(), .events = POLLIN}}; in requestHandler()
193 accept4(socket_.get(), reinterpret_cast<sockaddr*>(&addr), &len, SOCK_CLOEXEC)); in requestHandler()
329 socket_.reset(); in stopServer()
Ddns_tls_frontend.h53 bool running() const { return socket_ != -1; } in running()
93 android::base::unique_fd socket_; variable