Home
last modified time | relevance | path

Searched refs:l2cap (Results 1 – 25 of 218) sorted by relevance

123456789

/packages/modules/Bluetooth/system/blueberry/tests/gd/l2cap/classic/
Dpts_l2cap_test.py24 from blueberry.facade.l2cap.classic import facade_pb2 as l2cap_facade_pb2
53 return EventStream(self.device_under_test.l2cap.FetchConnectionComplete(empty_pb2.Empty()))
56 return EventStream(self.device_under_test.l2cap.FetchConnectionClose(empty_pb2.Empty()))
73 …self.device_under_test.l2cap.OpenChannel(l2cap_facade_pb2.OpenChannelRequest(remote=self.pts_addre…
84 self.device_under_test.l2cap.SetDynamicChannel(
97 self.device_under_test.l2cap.SetDynamicChannel(
109 self.device_under_test.l2cap.SetDynamicChannel(
122 self.device_under_test.l2cap.SetDynamicChannel(
135 self.device_under_test.l2cap.SetDynamicChannel(
149 self.device_under_test.l2cap.SetDynamicChannel(
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/fuzz/
Dshim_l2cap.h55 void OnConnectionComplete(std::unique_ptr<l2cap::classic::DynamicChannel> channel) {} in OnConnectionComplete()
57 void OnConnectionFail(l2cap::classic::DynamicChannelManager::ConnectionResult result) {} in OnConnectionFail()
62 …fake_registry_.InjectTestModule(&l2cap::classic::L2capClassicModule::Factory, fuzz_l2cap_classic_m… in ShimL2capFuzz()
63 fake_registry_.Start<l2cap::classic::L2capClassicModule>(); in ShimL2capFuzz()
72 …dynamic_channel_impl = std::unique_ptr<l2cap::classic::internal::DynamicChannelServiceManagerImpl>( in ShimL2capFuzz()
73 new l2cap::classic::internal::DynamicChannelServiceManagerImpl(handler_.get())); in ShimL2capFuzz()
74 fixed_channel_impl = std::unique_ptr<l2cap::classic::internal::FixedChannelServiceManagerImpl>( in ShimL2capFuzz()
75 new l2cap::classic::internal::FixedChannelServiceManagerImpl(handler_.get())); in ShimL2capFuzz()
76 …parameter_provider = std::unique_ptr<l2cap::internal::ParameterProvider>(new l2cap::internal::Para… in ShimL2capFuzz()
77 …link_manager = std::unique_ptr<l2cap::classic::internal::LinkManager>(new l2cap::classic::internal… in ShimL2capFuzz()
[all …]
Dfuzz_dynamic_channel_manager_impl.h39 l2cap::classic::DynamicChannelConfigurationOption configuration_option, in ConnectChannel()
40 l2cap::Psm, in ConnectChannel()
41 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback, in ConnectChannel()
42 l2cap::classic::DynamicChannelManager::OnConnectionFailureCallback on_fail_callback) { in ConnectChannel()
52 l2cap::Psm, in RegisterService()
53 l2cap::classic::DynamicChannelConfigurationOption, in RegisterService()
54 const l2cap::classic::SecurityPolicy&, in RegisterService()
55l2cap::classic::DynamicChannelManager::OnRegistrationCompleteCallback on_registration_complete, in RegisterService()
56 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback) { in RegisterService()
83 …void SetConnectionOnFail(l2cap::classic::DynamicChannelManager::ConnectionResult result, std::prom… in SetConnectionOnFail()
[all …]
Dfuzz_dynamic_channel_manager.h38 class FuzzDynamicChannelManager : public l2cap::classic::DynamicChannelManager {
42 l2cap::classic::DynamicChannelConfigurationOption configuration_option, in ConnectChannel()
43 l2cap::Psm psm, in ConnectChannel()
44 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback, in ConnectChannel()
45l2cap::classic::DynamicChannelManager::OnConnectionFailureCallback on_fail_callback) override { in ConnectChannel()
50 l2cap::Psm psm, in RegisterService()
51 l2cap::classic::DynamicChannelConfigurationOption configuration_option, in RegisterService()
52 const l2cap::classic::SecurityPolicy& security_policy, in RegisterService()
53l2cap::classic::DynamicChannelManager::OnRegistrationCompleteCallback on_registration_complete, in RegisterService()
54 l2cap::classic::DynamicChannelManager::OnConnectionOpenCallback on_open_callback) override { in RegisterService()
Dfuzz_l2cap.cc32 using l2cap::Cid;
33 using l2cap::Psm;
34 using l2cap::classic::internal::Link;
76 Cid fixedCid = l2cap::kLeSignallingCid; in LLVMFuzzerTestOneInput()
84 …Cid dynamicCid = fdp.ConsumeIntegralInRange<uint16_t>(l2cap::kFirstDynamicChannel, l2cap::kLastDyn… in LLVMFuzzerTestOneInput()
/packages/modules/Bluetooth/system/gd/att/
Datt_module.cc36 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 …]
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/
Ddumpsys_helper.cc27 bluetooth::l2cap::classic::internal::DumpsysHelper::DumpsysHelper(const LinkManager& link_manager) in DumpsysHelper()
30 std::vector<flatbuffers::Offset<bluetooth::l2cap::classic::ChannelData>>
31 bluetooth::l2cap::classic::internal::DumpsysHelper::DumpActiveDynamicChannels( in DumpActiveDynamicChannels()
33 const l2cap::internal::DynamicChannelAllocator& channel_allocator) const { in DumpActiveDynamicChannels()
34 std::vector<flatbuffers::Offset<bluetooth::l2cap::classic::ChannelData>> channel_offsets; in DumpActiveDynamicChannels()
44 std::vector<flatbuffers::Offset<::bluetooth::l2cap::classic::ChannelData>>
45 bluetooth::l2cap::classic::internal::DumpsysHelper::DumpActiveFixedChannels( in DumpActiveFixedChannels()
47 const bluetooth::l2cap::internal::FixedChannelAllocator< in DumpActiveFixedChannels()
48 bluetooth::l2cap::classic::internal::FixedChannelImpl, in DumpActiveFixedChannels()
49 bluetooth::l2cap::classic::internal::Link>& channel_allocator) const { in DumpActiveFixedChannels()
[all …]
Dlink.h41 namespace l2cap {
48 class Link : public l2cap::internal::ILink,
53 l2cap::internal::ParameterProvider* parameter_provider,
131 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid r…
133 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateReservedDynamicChannel(Cid re…
226l2cap::internal::FixedChannelAllocator<FixedChannelImpl, Link> fixed_channel_allocator_{this, l2ca…
227 l2cap::internal::DynamicChannelAllocator dynamic_channel_allocator_{this, l2cap_handler_};
229 l2cap::internal::DataPipelineManager data_pipeline_manager_;
230 l2cap::internal::ParameterProvider* parameter_provider_;
Dlink_mock.h27 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…
/packages/modules/Bluetooth/system/gd/security/internal/
Dsecurity_manager_impl.h52 std::unique_ptr<l2cap::le::FixedChannel> channel_;
60 l2cap::le::L2capLeModule* l2cap_le_module,
204 void EnforceSecurityPolicy(hci::AddressWithType remote, l2cap::classic::SecurityPolicy policy,
205l2cap::classic::SecurityEnforcementInterface::ResultCallback result_callback);
206 void EnforceLeSecurityPolicy(hci::AddressWithType remote, l2cap::le::SecurityPolicy policy,
207l2cap::le::SecurityEnforcementInterface::ResultCallback result_callback);
229 void OnL2capRegistrationCompleteLe(l2cap::le::FixedChannelManager::RegistrationResult result,
230 … std::unique_ptr<l2cap::le::FixedChannelService> le_smp_service);
232 void OnConnectionOpenLe(std::unique_ptr<l2cap::le::FixedChannel> channel);
234 void OnConnectionFailureLe(bluetooth::l2cap::le::FixedChannelManager::ConnectionResult result);
[all …]
Dsecurity_manager_impl.cc454 l2cap::le::FixedChannelManager::RegistrationResult result, in OnL2capRegistrationCompleteLe()
455 std::unique_ptr<l2cap::le::FixedChannelService> le_smp_service) { in OnL2capRegistrationCompleteLe()
456 ASSERT_LOG(result == bluetooth::l2cap::le::FixedChannelManager::RegistrationResult::SUCCESS, in OnL2capRegistrationCompleteLe()
486 std::unique_ptr<l2cap::le::FixedChannel>& channel = stored_chan->channel_; in OnSmpCommandLe()
569 void SecurityManagerImpl::OnConnectionOpenLe(std::unique_ptr<l2cap::le::FixedChannel> channel_param… in OnConnectionOpenLe()
655 void SecurityManagerImpl::OnConnectionFailureLe(bluetooth::l2cap::le::FixedChannelManager::Connecti… in OnConnectionFailureLe()
657 … bluetooth::l2cap::le::FixedChannelManager::ConnectionResultCode::FAIL_ALL_SERVICES_HAVE_CHANNEL) { in OnConnectionFailureLe()
667 l2cap::le::L2capLeModule* l2cap_le_module, in SecurityManagerImpl()
689 bluetooth::l2cap::kSmpCid, in SecurityManagerImpl()
795 l2cap::classic::SecurityPolicy policy, in InternalEnforceSecurityPolicy()
[all …]
/packages/modules/Bluetooth/system/gd/docs/testing/
Dgtest.md126 * [l2cap/classic/internal/fixed_channel_impl.h](https://android.googlesource.com/platform/package…
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 …tem/gd/l2cap/classic/internal/fixed_channel_impl.cc](https://android.googlesource.com/platform/pac…
175 * [l2cap/classic/internal/fixed_channel_impl_mock.h](https://android.googlesource.com/platform/pa…
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dpy_l2cap.py19 from blueberry.facade.l2cap.classic import facade_pb2 as l2cap_facade_pb2
20 from blueberry.facade.l2cap.classic.facade_pb2 import LinkSecurityInterfaceCallbackEventType
21 from blueberry.facade.l2cap.le import facade_pb2 as l2cap_le_facade_pb2
22 from blueberry.facade.l2cap.le.facade_pb2 import SecurityLevel
47 self._device.l2cap.SendDynamicChannelPacket(
51 self._device.l2cap.CloseChannel(l2cap_facade_pb2.CloseChannelRequest(psm=self._psm))
54 …self._device.l2cap.SetTrafficPaused(l2cap_facade_pb2.SetTrafficPausedRequest(psm=self._psm, paused…
79 self._l2cap_stream = EventStream(self._device.l2cap.FetchL2capData(empty_proto.Empty()))
81 self._device.l2cap.FetchSecurityConnectionEvents(empty_proto.Empty()))
91 self._device.l2cap.SetDynamicChannel(
[all …]
/packages/modules/Bluetooth/system/gd/security/
Dl2cap_security_module_interface.cc27 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()
36l2cap::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()
Dl2cap_security_module_interface.h25 class L2capSecurityModuleInterface : public l2cap::classic::SecurityEnforcementInterface,
26 public l2cap::le::SecurityEnforcementInterface {
29 void Enforce(hci::AddressWithType remote, l2cap::classic::SecurityPolicy policy,
30l2cap::classic::SecurityEnforcementInterface::ResultCallback result_callback) override;
31 void Enforce(hci::AddressWithType remote, l2cap::le::SecurityPolicy policy,
32 l2cap::le::SecurityEnforcementInterface::ResultCallback result_callback) override;
Dsecurity_module.cc43 l2cap::le::L2capLeModule* l2cap_le_module, in impl()
44 l2cap::classic::L2capClassicModule* l2cap_classic_module, in impl()
67 l2cap::classic::L2capClassicModule* l2cap_classic_module_;
68 l2cap::le::L2capLeModule* l2cap_le_module_;
94 list->add<l2cap::le::L2capLeModule>(); in ListDependencies()
95 list->add<l2cap::classic::L2capClassicModule>(); in ListDependencies()
106 GetDependency<l2cap::le::L2capLeModule>(), in Start()
107 GetDependency<l2cap::classic::L2capClassicModule>(), in Start()
/packages/modules/Bluetooth/system/gd/security/test/
Dfake_security_interface.h24 class FakeLinkSecurityInterface : public l2cap::classic::LinkSecurityInterface {
26 …FakeLinkSecurityInterface(l2cap::classic::LinkSecurityInterfaceListener* listener, hci::Address ad… in FakeLinkSecurityInterface()
49 l2cap::classic::LinkSecurityInterfaceListener* listener_ = nullptr;
53 class FakeSecurityInterface : public l2cap::classic::SecurityInterface {
55 …FakeSecurityInterface(os::Handler* handler, l2cap::classic::LinkSecurityInterfaceListener* listene… in FakeSecurityInterface()
65 l2cap::classic::LinkSecurityInterfaceListener* listener_ __attribute__((unused));
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/
Dlink.h40 namespace l2cap {
46 class Link : public l2cap::internal::ILink,
51 l2cap::internal::ParameterProvider* parameter_provider,
137 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid r…
139 …virtual std::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateReservedDynamicChannel(Cid re…
178l2cap::internal::FixedChannelAllocator<FixedChannelImpl, Link> fixed_channel_allocator_{this, l2ca…
179 l2cap::internal::DynamicChannelAllocator dynamic_channel_allocator_{this, l2cap_handler_};
181 l2cap::internal::DataPipelineManager data_pipeline_manager_;
182 l2cap::internal::ParameterProvider* parameter_provider_;
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dl2cap.py25 self.l2cap = L2CAP(channel)
82 …self.l2cap.CreateLECreditBasedChannel(connection=self.connection, psm=psm, secure=secure_connectio…
126 self.l2cap.ListenL2CAPChannel(connection=self.connection, secure=secure_connection)
128 self.l2cap.AcceptL2CAPChannel(connection=self.connection)
152 … self.l2cap.SendData(connection=self.connection, data=bytes(self.LE_DATA_PACKET_LARGE, "utf-8"))
179 self.l2cap.SendData(
189 self.l2cap.SendData(
213 data = self.l2cap.ReceiveData(connection=self.connection)
465 self.l2cap.SendData(connection=self.connection, data=bytes(self.LE_DATA_PACKET1, "utf-8"))
/packages/modules/Bluetooth/system/gd/security/channel/
Dsecurity_manager_channel.h51 class SecurityManagerChannel : public l2cap::classic::LinkSecurityInterfaceListener {
106 void SetSecurityInterface(l2cap::classic::SecurityInterface* security_interface) { in SetSecurityInterface()
125 void OnLinkConnected(std::unique_ptr<l2cap::classic::LinkSecurityInterface> link) override;
134 l2cap::classic::SecurityInterface* l2cap_security_interface_{nullptr};
135 …std::unordered_map<hci::Address, std::unique_ptr<l2cap::classic::LinkSecurityInterface>> link_map_;
/packages/modules/Bluetooth/system/gd/l2cap/le/
Ddynamic_channel.h24 namespace l2cap {
30 class DynamicChannel : public l2cap::DynamicChannel {
33 std::shared_ptr<l2cap::internal::DynamicChannelImpl> impl, in DynamicChannel()
37 : l2cap::DynamicChannel(impl, l2cap_handler), link_(link), mtu_(mtu) {} in DynamicChannel()
/packages/modules/Bluetooth/system/gd/
DAndroid.bp566 "l2cap/l2cap_packets.pdl",
571 "l2cap/l2cap_packets.h",
688 "l2cap/classic/l2cap_classic_module.fbs",
716 "l2cap/classic/l2cap_classic_module.fbs",
739 "l2cap/l2cap_packets.pdl",
743 "l2cap/l2cap_packets_python3.cc",
744 "l2cap/l2cap_packets_python3_shard_0.cc",
745 "l2cap/l2cap_packets_python3_shard_1.cc",
746 "l2cap/l2cap_packets_python3_shard_2.cc",
747 "l2cap/l2cap_packets_python3_shard_3.cc",
[all …]
/packages/modules/Bluetooth/system/
DAndroid.bp26 "blueberry/facade/l2cap/classic/facade.proto",
27 "blueberry/facade/l2cap/le/facade.proto",
67 "blueberry/facade/l2cap/classic/facade.grpc.pb.h",
68 "blueberry/facade/l2cap/classic/facade.pb.h",
69 "blueberry/facade/l2cap/le/facade.grpc.pb.h",
70 "blueberry/facade/l2cap/le/facade.pb.h",
113 "blueberry/facade/l2cap/classic/facade.grpc.pb.cc",
114 "blueberry/facade/l2cap/classic/facade.pb.cc",
115 "blueberry/facade/l2cap/le/facade.grpc.pb.cc",
116 "blueberry/facade/l2cap/le/facade.pb.cc",
/packages/modules/Bluetooth/system/gd/l2cap/internal/
Ddynamic_channel_allocator.h31 namespace l2cap {
47 DynamicChannelAllocator(l2cap::internal::ILink* link, os::Handler* l2cap_handler) in DynamicChannelAllocator()
77 friend class bluetooth::l2cap::classic::internal::DumpsysHelper;
78 l2cap::internal::ILink* link_;
Ddynamic_channel_impl.h32 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…
82 l2cap::internal::ILink* link_;

123456789