/system/bt/gd/att/ |
D | att_module.cc | 36 l2cap::le::FixedChannelManager::RegistrationResult result, in OnAttRegistrationCompleteLe() 37 std::unique_ptr<l2cap::le::FixedChannelService> le_smp_service) { in OnAttRegistrationCompleteLe() 41 void OnAttConnectionOpenLe(std::unique_ptr<l2cap::le::FixedChannel> channel) { in OnAttConnectionOpenLe() 49 l2cap::le::L2capLeModule* l2cap_le_module, in impl() 50 l2cap::classic::L2capClassicModule* l2cap_classic_module) in impl() 53 std::unique_ptr<bluetooth::l2cap::le::FixedChannelManager> l2cap_manager_le_( in impl() 66 l2cap::le::L2capLeModule* l2cap_le_module_; 67 l2cap::classic::L2capClassicModule* l2cap_classic_module_; 71 list->add<l2cap::le::L2capLeModule>(); in ListDependencies() 72 list->add<l2cap::classic::L2capClassicModule>(); in ListDependencies() [all …]
|
/system/bt/gd/shim/ |
D | l2cap_test.cc | 49 class TestDynamicChannelService : public l2cap::classic::DynamicChannelService { 52 …l2cap::Psm psm, l2cap::classic::internal::DynamicChannelServiceManagerImpl* manager, os::Handler* … in TestDynamicChannelService() 56 class TestLink : public l2cap::internal::ILink { 63 void SendLeCredit(l2cap::Cid local_cid, uint16_t credit) {} in SendLeCredit() 65 void SendDisconnectionRequest(l2cap::Cid cid, l2cap::Cid remote_cid) { in SendDisconnectionRequest() 75 l2cap::classic::DynamicChannelConfigurationOption configuration_option, in ConnectChannel() 76 l2cap::Psm psm, in ConnectChannel() 77 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback, in ConnectChannel() 78 l2cap::classic::DynamicChannelManager::OnConnectionFailureCallback on_fail_callback) { in ConnectChannel() 88 l2cap::Psm psm, in RegisterService() [all …]
|
D | l2cap.cc | 61 using PendingConnectionOpen = std::function<void(std::unique_ptr<l2cap::classic::DynamicChannel>)>; 62 using PendingConnectionFail = std::function<void(l2cap::classic::DynamicChannelManager::ConnectionR… 63 using RegisterServiceComplete = std::function<void(l2cap::Psm, bool is_registered)>; 66 … std::function<void(ConnectionCompleteCallback, std::unique_ptr<l2cap::classic::DynamicChannel>)>; 82 std::unique_ptr<l2cap::classic::DynamicChannel> channel, in ConnectionInterface() 175 const std::unique_ptr<l2cap::classic::DynamicChannel> channel_; 195 …void AddConnection(ConnectionInterfaceDescriptor cid, std::unique_ptr<l2cap::classic::DynamicChann… 209 l2cap::Psm psm, in ConnectionOpened() 211 l2cap::Cid remote_cid) { in ConnectionOpened() 223 …ConnectionCompleteCallback on_complete, hci::Address address, l2cap::Psm psm, ConnectionInterfaceD… in ConnectionFailed() [all …]
|
/system/bt/gd/l2cap/classic/cert/ |
D | pts_l2cap_test.py | 23 from l2cap.classic import facade_pb2 as l2cap_facade_pb2 52 return EventStream(self.device_under_test.l2cap.FetchConnectionComplete(empty_pb2.Empty())) 55 return EventStream(self.device_under_test.l2cap.FetchConnectionClose(empty_pb2.Empty())) 72 …self.device_under_test.l2cap.OpenChannel(l2cap_facade_pb2.OpenChannelRequest(remote=self.pts_addre… 83 self.device_under_test.l2cap.SetDynamicChannel( 96 self.device_under_test.l2cap.SetDynamicChannel( 108 self.device_under_test.l2cap.SetDynamicChannel( 121 self.device_under_test.l2cap.SetDynamicChannel( 134 self.device_under_test.l2cap.SetDynamicChannel( 148 self.device_under_test.l2cap.SetDynamicChannel( [all …]
|
/system/bt/gd/security/ |
D | l2cap_security_module_interface.cc | 27 hci::AddressWithType remote, l2cap::classic::SecurityPolicy policy, in Enforce() 28 l2cap::classic::SecurityEnforcementInterface::ResultCallback result_callback) { in Enforce() 31 … std::forward<hci::AddressWithType>(remote), std::forward<l2cap::classic::SecurityPolicy>(policy), in Enforce() 32 std::forward<l2cap::classic::SecurityEnforcementInterface::ResultCallback>(result_callback))); in Enforce() 35 void L2capSecurityModuleInterface::Enforce(hci::AddressWithType remote, l2cap::le::SecurityPolicy p… in Enforce() 36 … l2cap::le::SecurityEnforcementInterface::ResultCallback result_callback) { in Enforce() 39 std::forward<hci::AddressWithType>(remote), std::forward<l2cap::le::SecurityPolicy>(policy), in Enforce() 40 std::forward<l2cap::le::SecurityEnforcementInterface::ResultCallback>(result_callback))); in Enforce()
|
D | l2cap_security_module_interface.h | 25 class L2capSecurityModuleInterface : public l2cap::classic::SecurityEnforcementInterface, 26 public l2cap::le::SecurityEnforcementInterface { 29 void Enforce(hci::AddressWithType remote, l2cap::classic::SecurityPolicy policy, 30 … l2cap::classic::SecurityEnforcementInterface::ResultCallback result_callback) override; 31 void Enforce(hci::AddressWithType remote, l2cap::le::SecurityPolicy policy, 32 l2cap::le::SecurityEnforcementInterface::ResultCallback result_callback) override;
|
D | security_module.cc | 42 l2cap::le::L2capLeModule* l2cap_le_module, in impl() 43 l2cap::classic::L2capClassicModule* l2cap_classic_module, in impl() 62 l2cap::classic::L2capClassicModule* l2cap_classic_module_; 63 l2cap::le::L2capLeModule* l2cap_le_module_; 81 list->add<l2cap::le::L2capLeModule>(); in ListDependencies() 82 list->add<l2cap::classic::L2capClassicModule>(); in ListDependencies() 91 GetDependency<l2cap::le::L2capLeModule>(), in Start() 92 GetDependency<l2cap::classic::L2capClassicModule>(), in Start()
|
/system/bt/gd/security/test/ |
D | fake_security_interface.h | 24 class FakeLinkSecurityInterface : public l2cap::classic::LinkSecurityInterface { 26 …FakeLinkSecurityInterface(l2cap::classic::LinkSecurityInterfaceListener* listener, hci::Address ad… in FakeLinkSecurityInterface() 43 l2cap::classic::LinkSecurityInterfaceListener* listener_ = nullptr; 47 class FakeSecurityInterface : public l2cap::classic::SecurityInterface { 49 …FakeSecurityInterface(os::Handler* handler, l2cap::classic::LinkSecurityInterfaceListener* listene… in FakeSecurityInterface() 59 l2cap::classic::LinkSecurityInterfaceListener* listener_ __attribute__((unused));
|
/system/bt/gd/security/internal/ |
D | security_manager_impl.h | 48 std::unique_ptr<l2cap::le::FixedChannel> channel_; 56 l2cap::le::L2capLeModule* l2cap_le_module, 182 void EnforceSecurityPolicy(hci::AddressWithType remote, l2cap::classic::SecurityPolicy policy, 183 … l2cap::classic::SecurityEnforcementInterface::ResultCallback result_callback); 184 void EnforceLeSecurityPolicy(hci::AddressWithType remote, l2cap::le::SecurityPolicy policy, 185 … l2cap::le::SecurityEnforcementInterface::ResultCallback result_callback); 201 void OnL2capRegistrationCompleteLe(l2cap::le::FixedChannelManager::RegistrationResult result, 202 … std::unique_ptr<l2cap::le::FixedChannelService> le_smp_service); 204 void OnConnectionOpenLe(std::unique_ptr<l2cap::le::FixedChannel> channel); 206 void OnConnectionFailureLe(bluetooth::l2cap::le::FixedChannelManager::ConnectionResult result); [all …]
|
D | security_manager_impl.cc | 373 l2cap::le::FixedChannelManager::RegistrationResult result, in OnL2capRegistrationCompleteLe() 374 std::unique_ptr<l2cap::le::FixedChannelService> le_smp_service) { in OnL2capRegistrationCompleteLe() 375 ASSERT_LOG(result == bluetooth::l2cap::le::FixedChannelManager::RegistrationResult::SUCCESS, in OnL2capRegistrationCompleteLe() 405 std::unique_ptr<l2cap::le::FixedChannel>& channel = stored_chan->channel_; in OnSmpCommandLe() 486 void SecurityManagerImpl::OnConnectionOpenLe(std::unique_ptr<l2cap::le::FixedChannel> channel_param… in OnConnectionOpenLe() 570 void SecurityManagerImpl::OnConnectionFailureLe(bluetooth::l2cap::le::FixedChannelManager::Connecti… in OnConnectionFailureLe() 572 … bluetooth::l2cap::le::FixedChannelManager::ConnectionResultCode::FAIL_ALL_SERVICES_HAVE_CHANNEL) { in OnConnectionFailureLe() 582 l2cap::le::L2capLeModule* l2cap_le_module, in SecurityManagerImpl() 598 bluetooth::l2cap::kSmpCid, in SecurityManagerImpl() 674 l2cap::classic::SecurityPolicy policy, in InternalEnforceSecurityPolicy() [all …]
|
/system/bt/gd/l2cap/le/ |
D | dynamic_channel.h | 23 namespace l2cap { 29 class DynamicChannel : public l2cap::DynamicChannel { 31 …DynamicChannel(std::shared_ptr<l2cap::internal::DynamicChannelImpl> impl, os::Handler* l2cap_handl… in DynamicChannel() 33 : l2cap::DynamicChannel(impl, l2cap_handler), link_(link) {} in DynamicChannel()
|
/system/bt/gd/l2cap/le/internal/ |
D | link.h | 38 namespace l2cap { 44 class Link : public l2cap::internal::ILink, public hci::acl_manager::LeConnectionManagementCallback… 47 l2cap::internal::ParameterProvider* parameter_provider, 111 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid r… 113 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateReservedDynamicChannel(Cid re… 140 …l2cap::internal::FixedChannelAllocator<FixedChannelImpl, Link> fixed_channel_allocator_{this, l2ca… 141 l2cap::internal::DynamicChannelAllocator dynamic_channel_allocator_{this, l2cap_handler_}; 143 l2cap::internal::DataPipelineManager data_pipeline_manager_; 144 l2cap::internal::ParameterProvider* parameter_provider_;
|
/system/bt/gd/security/channel/ |
D | security_manager_channel.h | 48 class SecurityManagerChannel : public l2cap::classic::LinkSecurityInterfaceListener { 95 void SetSecurityInterface(l2cap::classic::SecurityInterface* security_interface) { in SetSecurityInterface() 114 void OnLinkConnected(std::unique_ptr<l2cap::classic::LinkSecurityInterface> link) override; 121 l2cap::classic::SecurityInterface* l2cap_security_interface_{nullptr}; 122 …std::unordered_map<hci::Address, std::unique_ptr<l2cap::classic::LinkSecurityInterface>> link_map_;
|
/system/bt/gd/docs/testing/ |
D | gtest.md | 126 * [l2cap/classic/internal/fixed_channel_impl.h](https://android.googlesource.com/platform/system/… 132 #include "l2cap/cid.h" 133 #include "l2cap/classic/fixed_channel.h" 134 #include "l2cap/internal/channel_impl.h" 135 #include "l2cap/l2cap_packets.h" 140 namespace l2cap { 146 class FixedChannelImpl : public l2cap::internal::ChannelImpl { 167 } // namespace l2cap 171 * [system/bt/gd/l2cap/classic/internal/fixed_channel_impl.cc](https://android.googlesource.com/pl… 175 * [l2cap/classic/internal/fixed_channel_impl_mock.h](https://android.googlesource.com/platform/sy… [all …]
|
/system/bt/gd/l2cap/classic/internal/ |
D | link_mock.h | 27 namespace l2cap { 36 explicit MockLink(os::Handler* handler, l2cap::internal::ParameterProvider* parameter_provider) in MockLink() 38 explicit MockLink(os::Handler* handler, l2cap::internal::ParameterProvider* parameter_provider, in MockLink() 44 …MOCK_METHOD(std::shared_ptr<l2cap::internal::DynamicChannelImpl>, AllocateDynamicChannel, (Psm psm…
|
D | link.h | 39 namespace l2cap { 45 class Link : public l2cap::internal::ILink, public hci::acl_manager::ConnectionManagementCallbacks { 48 l2cap::internal::ParameterProvider* parameter_provider, 122 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid r… 124 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateReservedDynamicChannel(Cid re… 184 …l2cap::internal::FixedChannelAllocator<FixedChannelImpl, Link> fixed_channel_allocator_{this, l2ca… 185 l2cap::internal::DynamicChannelAllocator dynamic_channel_allocator_{this, l2cap_handler_}; 187 l2cap::internal::DataPipelineManager data_pipeline_manager_; 188 l2cap::internal::ParameterProvider* parameter_provider_;
|
D | signalling_manager.h | 39 namespace l2cap { 58 l2cap::internal::DataPipelineManager* data_pipeline_manager, 60 l2cap::internal::DynamicChannelAllocator* channel_allocator, 119 l2cap::internal::DataPipelineManager* data_pipeline_manager_; 122 l2cap::internal::DynamicChannelAllocator* channel_allocator_;
|
/system/bt/gd/l2cap/ |
D | dynamic_channel.cc | 22 namespace l2cap { namespace 30 …impl_.get(), &l2cap::internal::DynamicChannelImpl::RegisterOnCloseCallback, std::move(on_close_cal… in RegisterOnCloseCallback() 34 l2cap_handler_->CallOn(impl_.get(), &l2cap::internal::DynamicChannelImpl::Close); in Close()
|
D | dynamic_channel.h | 27 namespace l2cap { 40 …DynamicChannel(std::shared_ptr<l2cap::internal::DynamicChannelImpl> impl, os::Handler* l2cap_handl… in DynamicChannel() 76 std::shared_ptr<l2cap::internal::DynamicChannelImpl> impl_;
|
/system/bt/gd/l2cap/internal/ |
D | dynamic_channel_impl.h | 32 namespace l2cap { 35 class DynamicChannelImpl : public l2cap::internal::ChannelImpl { 37 …DynamicChannelImpl(Psm psm, Cid cid, Cid remote_cid, l2cap::internal::ILink* link, os::Handler* l2… 76 l2cap::internal::ILink* link_;
|
D | dynamic_channel_allocator_fuzz_test.cc | 24 namespace l2cap { namespace 29 using l2cap::internal::testing::MockParameterProvider; 30 using l2cap::internal::testing::MockScheduler; 84 bluetooth::l2cap::internal::L2capClassicDynamicChannelAllocatorFuzzTest test; in RunL2capClassicDynamicChannelAllocatorFuzzTest()
|
D | dynamic_channel_allocator.h | 31 namespace l2cap { 40 DynamicChannelAllocator(l2cap::internal::ILink* link, os::Handler* l2cap_handler) in DynamicChannelAllocator() 70 l2cap::internal::ILink* link_;
|
/system/bt/gd/cert/ |
D | py_l2cap.py | 19 from l2cap.classic import facade_pb2 as l2cap_facade_pb2 20 from l2cap.le import facade_pb2 as l2cap_le_facade_pb2 21 from l2cap.le.facade_pb2 import SecurityLevel 44 self._device.l2cap.SendDynamicChannelPacket( 48 self._device.l2cap.CloseChannel(l2cap_facade_pb2.CloseChannelRequest(psm=self._psm)) 51 …self._device.l2cap.SetTrafficPaused(l2cap_facade_pb2.SetTrafficPausedRequest(psm=self._psm, paused… 75 self._l2cap_stream = EventStream(self._device.l2cap.FetchL2capData(empty_proto.Empty())) 81 self._device.l2cap.SetDynamicChannel( 91 response_future = self._device.l2cap.OpenChannel.future( 97 return self._device.l2cap.GetChannelQueueDepth(empty_proto.Empty()).size
|
/system/bt/gd/ |
D | Android.bp | 438 "l2cap/l2cap_packets.pdl", 443 "l2cap/l2cap_packets.h", 489 "l2cap/l2cap_packets.pdl", 504 "l2cap/l2cap_packets_python3.cc", 505 "l2cap/l2cap_packets_python3_shard_0.cc", 506 "l2cap/l2cap_packets_python3_shard_1.cc", 507 "l2cap/l2cap_packets_python3_shard_2.cc", 508 "l2cap/l2cap_packets_python3_shard_3.cc", 509 "l2cap/l2cap_packets_python3_shard_4.cc", 510 "l2cap/l2cap_packets_python3_shard_5.cc", [all …]
|
/system/bt/gd/l2cap/classic/ |
D | dynamic_channel.h | 22 namespace l2cap { 25 using DynamicChannel = l2cap::DynamicChannel;
|