Home
last modified time | relevance | path

Searched refs:Cid (Results 1 – 25 of 69) sorted by relevance

123

/system/bt/gd/l2cap/
Dcid.h24 using Cid = uint16_t; variable
26 constexpr Cid kInvalidCid = 0;
27 constexpr Cid kFirstFixedChannel = 1;
28 constexpr Cid kLastFixedChannel = 63;
29 constexpr Cid kFirstDynamicChannel = kLastFixedChannel + 1;
30 constexpr Cid kLastDynamicChannel = (uint16_t)(0xffff);
32 constexpr Cid kClassicSignallingCid = 1;
33 constexpr Cid kConnectionlessCid = 2;
34 constexpr Cid kLeAttributeCid = 4;
35 constexpr Cid kLeSignallingCid = 5;
[all …]
/system/bt/gd/l2cap/classic/internal/
Dsignalling_manager.h47 Cid source_cid_;
48 Cid destination_cid_;
67 void SendConnectionRequest(Psm psm, Cid local_cid);
69 void SendInitialConfigRequest(Cid local_cid);
71 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid);
79 void OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid);
81 …void OnConnectionResponse(SignalId signal_id, Cid remote_cid, Cid cid, ConnectionResponseResult re…
84 void OnDisconnectionRequest(SignalId signal_id, Cid cid, Cid remote_cid);
86 void OnDisconnectionResponse(SignalId signal_id, Cid cid, Cid remote_cid);
88 void OnConfigurationRequest(SignalId signal_id, Cid cid, Continuation is_continuation,
[all …]
Dlink.h65 Cid cid_;
97 std::shared_ptr<FixedChannelImpl> AllocateFixedChannel(Cid cid);
99 virtual bool IsFixedChannelAllocated(Cid cid);
103 virtual Cid ReserveDynamicChannel();
105 virtual void SendConnectionRequest(Psm psm, Cid local_cid);
106 virtual void SendConnectionRequest(Psm psm, Cid local_cid,
114 …virtual void OnOutgoingConnectionRequestFail(Cid local_cid, DynamicChannelManager::ConnectionResul…
116 virtual void SendInitialConfigRequestOrQueue(Cid local_cid);
120 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override;
122 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid r…
[all …]
Dfixed_channel_service_manager_impl.h39 virtual void Register(Cid cid, FixedChannelServiceImpl::PendingRegistration pending_registration);
40 …virtual void Unregister(Cid cid, FixedChannelService::OnUnregisteredCallback callback, os::Handler…
41 virtual bool IsServiceRegistered(Cid cid) const;
42 virtual FixedChannelServiceImpl* GetService(Cid cid);
43 virtual std::vector<std::pair<Cid, FixedChannelServiceImpl*>> GetRegisteredServices();
48 std::unordered_map<Cid, FixedChannelServiceImpl> service_map_;
Dfixed_channel_service_manager_impl_mock.h33 …MOCK_METHOD(void, Register, (Cid cid, FixedChannelServiceImpl::PendingRegistration pending_registr…
34 …MOCK_METHOD(void, Unregister, (Cid cid, FixedChannelService::OnUnregisteredCallback callback, os::…
36 MOCK_METHOD(bool, IsServiceRegistered, (Cid cid), (const, override));
37 MOCK_METHOD(FixedChannelServiceImpl*, GetService, (Cid cid), (override));
38 …MOCK_METHOD((std::vector<std::pair<Cid, FixedChannelServiceImpl*>>), GetRegisteredServices, (), (o…
Dfixed_channel_service_manager_impl.cc29 void FixedChannelServiceManagerImpl::Register(Cid cid, in Register()
52 void FixedChannelServiceManagerImpl::Unregister(Cid cid, FixedChannelService::OnUnregisteredCallbac… in Unregister()
62 bool FixedChannelServiceManagerImpl::IsServiceRegistered(Cid cid) const { in IsServiceRegistered()
66 FixedChannelServiceImpl* FixedChannelServiceManagerImpl::GetService(Cid cid) { in GetService()
71 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> FixedChannelServiceManagerImpl::GetRegistered… in GetRegisteredServices()
72 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in GetRegisteredServices()
89 Cid cid = elem.first; in GetSupportedFixedChannelMask()
Dlink.cc116 std::shared_ptr<FixedChannelImpl> Link::AllocateFixedChannel(Cid cid) { in AllocateFixedChannel()
122 bool Link::IsFixedChannelAllocated(Cid cid) { in IsFixedChannelAllocated()
126 Cid Link::ReserveDynamicChannel() { in ReserveDynamicChannel()
130 void Link::SendConnectionRequest(Psm psm, Cid local_cid) { in SendConnectionRequest()
134 void Link::SendConnectionRequest(Psm psm, Cid local_cid, in SendConnectionRequest()
184 void Link::OnOutgoingConnectionRequestFail(Cid local_cid, ConnectionResult result) { in OnOutgoingConnectionRequestFail()
192 void Link::SendInitialConfigRequestOrQueue(Cid local_cid) { in SendInitialConfigRequestOrQueue()
200 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest()
208 std::shared_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChannel(Psm psm, Cid remo… in AllocateDynamicChannel()
217 std::shared_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateReservedDynamicChannel(Cid reser… in AllocateReservedDynamicChannel()
[all …]
Dfixed_channel_impl.h36 FixedChannelImpl(Cid cid, Link* link, os::Handler* l2cap_handler);
70 Cid GetCid() const { in GetCid()
74 Cid GetRemoteCid() const { in GetRemoteCid()
81 const Cid cid_;
/system/bt/gd/l2cap/internal/
Ddynamic_channel_allocator.h48 std::shared_ptr<DynamicChannelImpl> AllocateChannel(Psm psm, Cid remote_cid);
50 …std::shared_ptr<DynamicChannelImpl> AllocateReservedChannel(Cid reserved_cid, Psm psm, Cid remote_…
54 Cid ReserveChannel();
57 void FreeChannel(Cid cid);
61 std::shared_ptr<DynamicChannelImpl> FindChannelByCid(Cid cid);
62 std::shared_ptr<DynamicChannelImpl> FindChannelByRemoteCid(Cid cid);
72 std::unordered_set<Cid> used_cid_;
73 std::unordered_map<Cid, std::shared_ptr<DynamicChannelImpl>> channels_;
74 std::unordered_set<Cid> used_remote_cid_;
Ddata_pipeline_manager.h64 virtual void AttachChannel(Cid cid, std::shared_ptr<ChannelImpl> channel, ChannelMode mode);
65 virtual void DetachChannel(Cid cid);
66 virtual DataController* GetDataController(Cid cid);
67 virtual void OnPacketSent(Cid cid);
68 …virtual void UpdateClassicConfiguration(Cid cid, classic::internal::ChannelConfigurationState conf…
74 std::unordered_map<Cid, Sender> sender_map_;
Ddynamic_channel_allocator.cc30 std::shared_ptr<DynamicChannelImpl> DynamicChannelAllocator::AllocateChannel(Psm psm, Cid remote_ci… in AllocateChannel()
37 Cid cid = kFirstDynamicChannel; in AllocateChannel()
55 std::shared_ptr<DynamicChannelImpl> DynamicChannelAllocator::AllocateReservedChannel(Cid reserved_c… in AllocateReservedChannel()
56Cid remote_cid) { in AllocateReservedChannel()
72 Cid DynamicChannelAllocator::ReserveChannel() { in ReserveChannel()
73 Cid cid = kFirstDynamicChannel; in ReserveChannel()
85 void DynamicChannelAllocator::FreeChannel(Cid cid) { in FreeChannel()
105 std::shared_ptr<DynamicChannelImpl> DynamicChannelAllocator::FindChannelByCid(Cid cid) { in FindChannelByCid()
113 std::shared_ptr<DynamicChannelImpl> DynamicChannelAllocator::FindChannelByRemoteCid(Cid remote_cid)… in FindChannelByRemoteCid()
Ddynamic_channel_impl.h37 …DynamicChannelImpl(Psm psm, Cid cid, Cid remote_cid, l2cap::internal::ILink* link, os::Handler* l2…
57 virtual Cid GetCid() const { in GetCid()
61 virtual Cid GetRemoteCid() const { in GetRemoteCid()
74 const Cid cid_;
75 const Cid remote_cid_;
Ddata_pipeline_manager_mock.h36 MOCK_METHOD(void, AttachChannel, (Cid, std::shared_ptr<ChannelImpl>, ChannelMode), (override));
37 MOCK_METHOD(void, DetachChannel, (Cid), (override));
38 MOCK_METHOD(DataController*, GetDataController, (Cid), (override));
39 MOCK_METHOD(void, OnPacketSent, (Cid), (override));
Ddata_pipeline_manager.cc30 void DataPipelineManager::AttachChannel(Cid cid, std::shared_ptr<ChannelImpl> channel, ChannelMode … in AttachChannel()
36 void DataPipelineManager::DetachChannel(Cid cid) { in DetachChannel()
41 DataController* DataPipelineManager::GetDataController(Cid cid) { in GetDataController()
48 void DataPipelineManager::OnPacketSent(Cid cid) { in OnPacketSent()
53 void DataPipelineManager::UpdateClassicConfiguration(Cid cid, classic::internal::ChannelConfigurati… in UpdateClassicConfiguration()
Dilink.h32 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) = 0;
36 virtual void SendLeCredit(Cid local_cid, uint16_t credit) = 0;
Dilink_mock.h32 MOCK_METHOD(void, SendDisconnectionRequest, (Cid, Cid), (override));
33 MOCK_METHOD(void, SendLeCredit, (Cid, uint16_t), (override));
Dbasic_mode_channel_data_controller.h44 …BasicModeDataController(Cid cid, Cid remote_cid, UpperQueueDownEnd* channel_queue_end, os::Handler…
59 Cid cid_;
60 Cid remote_cid_;
Dfixed_channel_allocator.h45 virtual std::shared_ptr<FixedChannelImplType> AllocateChannel(Cid cid) { in AllocateChannel()
55 virtual void FreeChannel(Cid cid) { in FreeChannel()
60 virtual bool IsChannelAllocated(Cid cid) const { in IsChannelAllocated()
64 virtual std::shared_ptr<FixedChannelImplType> FindChannel(Cid cid) { in FindChannel()
92 std::unordered_map<Cid, std::shared_ptr<FixedChannelImplType>> channels_;
Ddynamic_channel_allocator_test.cc68 Cid remote_cid = kFirstDynamicChannel; in TEST_F()
70 Cid local_cid = channel->GetCid(); in TEST_F()
79 Cid remote_cid = kFirstDynamicChannel; in TEST_F()
80 Cid reserved = channel_allocator_->ReserveChannel(); in TEST_F()
82 Cid local_cid = channel->GetCid(); in TEST_F()
/system/bt/gd/l2cap/le/internal/
Dsignalling_manager.h47 Cid source_cid_;
48 Cid destination_cid_;
57 …static PendingCommand CreditBasedConnectionRequest(SignalId signal_id, Psm psm, Cid scid, Mtu mtu,… in CreditBasedConnectionRequest()
70 static PendingCommand DisconnectionRequest(SignalId signal_id, Cid scid, Cid dcid) { in DisconnectionRequest()
102 void SendConnectionRequest(Psm psm, Cid local_cid, Mtu mtu);
104 void SendDisconnectRequest(Cid local_cid, Cid remote_cid);
112 void SendCredit(Cid local_cid, uint16_t credits);
122 void OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu, uint16_t mps,
125 …void OnConnectionResponse(SignalId signal_id, Cid remote_cid, Mtu mtu, uint16_t mps, uint16_t init…
128 void OnDisconnectionRequest(SignalId signal_id, Cid cid, Cid remote_cid);
[all …]
Dlink.h96 …virtual std::shared_ptr<FixedChannelImpl> AllocateFixedChannel(Cid cid, SecurityPolicy security_po…
98 virtual bool IsFixedChannelAllocated(Cid cid);
102 virtual Cid ReserveDynamicChannel();
106 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override;
109 …virtual void OnOutgoingConnectionRequestFail(Cid local_cid, LeCreditBasedConnectionResponseResult …
111 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid r…
113 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateReservedDynamicChannel(Cid re…
114Cid remote_cid);
116 virtual void FreeDynamicChannel(Cid cid);
121 void NotifyChannelCreation(Cid cid, std::unique_ptr<DynamicChannel> user_channel);
[all …]
Dfixed_channel_service_manager_impl.h39 virtual void Register(Cid cid, FixedChannelServiceImpl::PendingRegistration pending_registration);
40 …virtual void Unregister(Cid cid, FixedChannelService::OnUnregisteredCallback callback, os::Handler…
41 virtual bool IsServiceRegistered(Cid cid) const;
42 virtual FixedChannelServiceImpl* GetService(Cid cid);
43 virtual std::vector<std::pair<Cid, FixedChannelServiceImpl*>> GetRegisteredServices();
47 std::unordered_map<Cid, FixedChannelServiceImpl> service_map_;
Dfixed_channel_service_manager_impl_mock.h33 …MOCK_METHOD(void, Register, (Cid cid, FixedChannelServiceImpl::PendingRegistration pending_registr…
34 …MOCK_METHOD(void, Unregister, (Cid cid, FixedChannelService::OnUnregisteredCallback callback, os::…
36 MOCK_METHOD(bool, IsServiceRegistered, (Cid cid), (const, override));
37 MOCK_METHOD(FixedChannelServiceImpl*, GetService, (Cid cid), (override));
38 …MOCK_METHOD((std::vector<std::pair<Cid, FixedChannelServiceImpl*>>), GetRegisteredServices, (), (o…
Dfixed_channel_service_manager_impl.cc29 void FixedChannelServiceManagerImpl::Register(Cid cid, in Register()
52 void FixedChannelServiceManagerImpl::Unregister(Cid cid, FixedChannelService::OnUnregisteredCallbac… in Unregister()
62 bool FixedChannelServiceManagerImpl::IsServiceRegistered(Cid cid) const { in IsServiceRegistered()
66 FixedChannelServiceImpl* FixedChannelServiceManagerImpl::GetService(Cid cid) { in GetService()
71 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> FixedChannelServiceManagerImpl::GetRegistered… in GetRegisteredServices()
72 std::vector<std::pair<Cid, FixedChannelServiceImpl*>> results; in GetRegisteredServices()
Dlink.cc137 std::shared_ptr<FixedChannelImpl> Link::AllocateFixedChannel(Cid cid, SecurityPolicy security_polic… in AllocateFixedChannel()
143 bool Link::IsFixedChannelAllocated(Cid cid) { in IsFixedChannelAllocated()
147 Cid Link::ReserveDynamicChannel() { in ReserveDynamicChannel()
162 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest()
170 void Link::OnOutgoingConnectionRequestFail(Cid local_cid, LeCreditBasedConnectionResponseResult res… in OnOutgoingConnectionRequestFail()
185 std::shared_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChannel(Psm psm, Cid remo… in AllocateDynamicChannel()
196 std::shared_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateReservedDynamicChannel(Cid reser… in AllocateReservedDynamicChannel()
197Cid remote_cid) { in AllocateReservedDynamicChannel()
208 void Link::FreeDynamicChannel(Cid cid) { in FreeDynamicChannel()
230 void Link::NotifyChannelCreation(Cid cid, std::unique_ptr<DynamicChannel> user_channel) { in NotifyChannelCreation()
[all …]

123