Lines Matching refs:ConnectionInterfaceDescriptor

53 using ConnectionInterfaceDescriptor = uint16_t;  typedef
54 constexpr ConnectionInterfaceDescriptor kInvalidConnectionInterfaceDescriptor = 0;
55 constexpr ConnectionInterfaceDescriptor kStartConnectionInterfaceDescriptor = 64;
56 constexpr ConnectionInterfaceDescriptor kMaxConnections = UINT16_MAX - kStartConnectionInterfaceDes…
60 using ConnectionClosed = std::function<void(ConnectionInterfaceDescriptor)>;
81 ConnectionInterfaceDescriptor cid, in ConnectionInterface()
174 const ConnectionInterfaceDescriptor cid_;
195 …void AddConnection(ConnectionInterfaceDescriptor cid, std::unique_ptr<l2cap::classic::DynamicChann…
196 void RemoveConnection(ConnectionInterfaceDescriptor cid);
198 …void SetReadDataReadyCallback(ConnectionInterfaceDescriptor cid, ReadDataReadyCallback on_data_rea…
199 …void SetConnectionClosedCallback(ConnectionInterfaceDescriptor cid, ConnectionClosedCallback on_cl…
201 bool Write(ConnectionInterfaceDescriptor cid, std::unique_ptr<packet::RawBuilder> packet);
210 ConnectionInterfaceDescriptor cid, in ConnectionOpened()
223 …eteCallback on_complete, hci::Address address, l2cap::Psm psm, ConnectionInterfaceDescriptor cid) { in ConnectionFailed()
230 ConnectionInterfaceDescriptor AllocateConnectionInterfaceDescriptor();
231 void FreeConnectionInterfaceDescriptor(ConnectionInterfaceDescriptor cid);
235 ConnectionInterfaceDescriptor current_connection_interface_descriptor_;
238 bool ConnectionExists(ConnectionInterfaceDescriptor id) const;
239 bool CidExists(ConnectionInterfaceDescriptor id) const;
240 …void ConnectionClosed(ConnectionInterfaceDescriptor cid, std::unique_ptr<ConnectionInterface> conn…
242 …std::unordered_map<ConnectionInterfaceDescriptor, std::unique_ptr<ConnectionInterface>> cid_to_int…
243 std::set<ConnectionInterfaceDescriptor> active_cid_set_;
251 bool ConnectionInterfaceManager::ConnectionExists(ConnectionInterfaceDescriptor cid) const { in ConnectionExists()
255 bool ConnectionInterfaceManager::CidExists(ConnectionInterfaceDescriptor cid) const { in CidExists()
259 ConnectionInterfaceDescriptor ConnectionInterfaceManager::AllocateConnectionInterfaceDescriptor() { in AllocateConnectionInterfaceDescriptor()
270 void ConnectionInterfaceManager::FreeConnectionInterfaceDescriptor(ConnectionInterfaceDescriptor ci… in FreeConnectionInterfaceDescriptor()
276 ConnectionInterfaceDescriptor cid, std::unique_ptr<ConnectionInterface> connection) { in ConnectionClosed()
282 ConnectionInterfaceDescriptor cid, std::unique_ptr<l2cap::classic::DynamicChannel> channel) { in AddConnection()
287 cid, std::move(channel), handler_, [this](ConnectionInterfaceDescriptor cid) { in AddConnection()
295 void ConnectionInterfaceManager::RemoveConnection(ConnectionInterfaceDescriptor cid) { in RemoveConnection()
308 ConnectionInterfaceDescriptor cid, ReadDataReadyCallback on_data_ready) { in SetReadDataReadyCallback()
314 ConnectionInterfaceDescriptor cid, ConnectionClosedCallback on_closed) { in SetConnectionClosedCallback()
319 bool ConnectionInterfaceManager::Write(ConnectionInterfaceDescriptor cid, std::unique_ptr<packet::R… in Write()
330 ConnectionInterfaceDescriptor cid, in PendingConnection()
383 const ConnectionInterfaceDescriptor cid_;
408 void CloseConnection(ConnectionInterfaceDescriptor cid);
410 …void SetReadDataReadyCallback(ConnectionInterfaceDescriptor cid, ReadDataReadyCallback on_data_rea…
411 …void SetConnectionClosedCallback(ConnectionInterfaceDescriptor cid, ConnectionClosedCallback on_cl…
413 void Write(ConnectionInterfaceDescriptor cid, std::unique_ptr<packet::RawBuilder> packet);
504ConnectionInterfaceDescriptor cid = connection_interface_manager_->AllocateConnectionInterfaceDesc… in RegisterService()
557ConnectionInterfaceDescriptor cid = connection_interface_manager_.AllocateConnectionInterfaceDescr… in CreateConnection()
590 void L2cap::impl::CloseConnection(ConnectionInterfaceDescriptor cid) { in CloseConnection()
594 void L2cap::impl::SetReadDataReadyCallback(ConnectionInterfaceDescriptor cid, ReadDataReadyCallback… in SetReadDataReadyCallback()
598 void L2cap::impl::SetConnectionClosedCallback(ConnectionInterfaceDescriptor cid, ConnectionClosedCa… in SetConnectionClosedCallback()
602 void L2cap::impl::Write(ConnectionInterfaceDescriptor cid, std::unique_ptr<packet::RawBuilder> pack… in Write()
657 ConnectionInterfaceDescriptor cid(raw_cid); in CloseClassicConnection()
662 ConnectionInterfaceDescriptor cid(raw_cid); in SetReadDataReadyCallback()
668 ConnectionInterfaceDescriptor cid(raw_cid); in SetConnectionClosedCallback()
674 ConnectionInterfaceDescriptor cid(raw_cid); in Write()