Home
last modified time | relevance | path

Searched refs:ContextualCallback (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Bluetooth/system/gd/hci/
Dhci_layer_mock.h50 (EventCode, common::ContextualCallback<void(EventView)>),
56 (SubeventCode, common::ContextualCallback<void(LeMetaEventView)>),
62 (VseSubeventCode, common::ContextualCallback<void(VendorSpecificEventView)>),
68 (common::ContextualCallback<void(EventView)> event_handler),
74 (common::ContextualCallback<void(uint16_t, hci::ErrorCode)> on_disconnect));
79 (common::ContextualCallback<void(LeMetaEventView)> event_handler),
85 (common::ContextualCallback<void(EventView)> event_handler,
86 common::ContextualCallback<void(uint16_t, hci::ErrorCode)> on_disconnect,
87 common::ContextualCallback<void(Address, ClassOfDevice)> on_connection_request,
88 common::ContextualCallback<void(hci::ErrorCode, uint16_t, uint8_t, uint16_t, uint16_t)>
[all …]
Dhci_layer.h67 …virtual void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)…
72 … common::ContextualCallback<void(LeMetaEventView)> event_handler);
77 VseSubeventCode event, common::ContextualCallback<void(VendorSpecificEventView)> handler);
82 common::ContextualCallback<void(uint16_t, hci::ErrorCode)> on_disconnect);
84 …virtual SecurityInterface* GetSecurityInterface(common::ContextualCallback<void(EventView)> event_…
86 …virtual LeSecurityInterface* GetLeSecurityInterface(common::ContextualCallback<void(LeMetaEventVie…
89 common::ContextualCallback<void(EventView)> event_handler,
90 common::ContextualCallback<void(uint16_t, hci::ErrorCode)> on_disconnect,
91 common::ContextualCallback<void(Address, ClassOfDevice)> on_connection_request,
92 common::ContextualCallback<void(hci::ErrorCode, uint16_t, uint8_t, uint16_t, uint16_t)>
[all …]
Dhci_interface.h59 EventCode event_code, common::ContextualCallback<void(EventView)> event_handler) = 0;
65 common::ContextualCallback<void(LeMetaEventView)> event_handler) = 0;
71 common::ContextualCallback<void(VendorSpecificEventView)> event_handler) = 0;
76 common::ContextualCallback<void(uint16_t, hci::ErrorCode)> on_disconnect) = 0;
79 common::ContextualCallback<void(EventView)> event_handler) = 0;
82 common::ContextualCallback<void(LeMetaEventView)> event_handler) = 0;
85 common::ContextualCallback<void(EventView)> event_handler,
86 common::ContextualCallback<void(uint16_t, hci::ErrorCode)> on_disconnect,
87 common::ContextualCallback<void(Address, ClassOfDevice)> on_connection_request,
88 common::ContextualCallback<void(hci::ErrorCode, uint16_t, uint8_t, uint16_t, uint16_t)>
[all …]
Dhci_layer.cc44 using bluetooth::common::ContextualCallback;
326 void register_event(EventCode event, ContextualCallback<void(EventView)> handler) { in register_event()
347 void register_le_event(SubeventCode event, ContextualCallback<void(LeMetaEventView)> handler) { in register_le_event()
360 VseSubeventCode event, ContextualCallback<void(VendorSpecificEventView)> handler) { in register_vs_event()
510 std::map<EventCode, ContextualCallback<void(EventView)>> event_handlers_;
511 std::map<SubeventCode, ContextualCallback<void(LeMetaEventView)>> le_event_handlers_;
512 std::map<VseSubeventCode, ContextualCallback<void(VendorSpecificEventView)>> vs_event_handlers_;
597 void HciLayer::RegisterEventHandler(EventCode event, ContextualCallback<void(EventView)> handler) { in RegisterEventHandler()
605 void HciLayer::RegisterLeEventHandler(SubeventCode event, ContextualCallback<void(LeMetaEventView)>… in RegisterLeEventHandler()
614 VseSubeventCode event, ContextualCallback<void(VendorSpecificEventView)> handler) { in RegisterVendorSpecificEventHandler()
[all …]
Dhci_layer_fake.h50 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_…
55 …SubeventCode subevent_code, common::ContextualCallback<void(LeMetaEventView)> event_handler) overr…
61 common::ContextualCallback<void(VendorSpecificEventView)> event_handler) override;
97 std::map<EventCode, common::ContextualCallback<void(EventView)>> registered_events_;
98 std::map<SubeventCode, common::ContextualCallback<void(LeMetaEventView)>> registered_le_events_;
99 std::map<VseSubeventCode, common::ContextualCallback<void(VendorSpecificEventView)>>
Dhci_layer_fake.cc123 EventCode event_code, common::ContextualCallback<void(EventView)> event_handler) { in RegisterEventHandler()
132 SubeventCode subevent_code, common::ContextualCallback<void(LeMetaEventView)> event_handler) { in RegisterLeEventHandler()
142 common::ContextualCallback<void(VendorSpecificEventView)> event_handler) { in RegisterVendorSpecificEventHandler()
Dcontroller_interface.h34 common::ContextualCallback<void(uint16_t /* handle */, uint16_t /* num_packets */)>;
Dacl_manager_unittest.cc113 common::ContextualCallback<void(uint16_t /* handle */, uint16_t /* packets */)> acl_cb_;
Dacl_manager_test.cc70 common::ContextualCallback<void(uint16_t /* handle */, uint16_t /* packets */)> cb) override { in RegisterCompletedAclPacketsCallback()
103 common::ContextualCallback<void(uint16_t /* handle */, uint16_t /* packets */)> acl_cb_;
Dle_advertising_manager.cc1567 …common::ContextualCallback<void(ErrorCode, uint16_t, hci::AddressWithType)> set_terminated_callbac…
/packages/modules/Bluetooth/system/gd/hci/fuzz/
Dfuzz_hci_layer.h87 …void RegisterEventHandler(hci::EventCode event, common::ContextualCallback<void(hci::EventView)> h… in RegisterEventHandler()
99 … common::ContextualCallback<void(hci::LeMetaEventView)> handler) override { in RegisterLeEventHandler()
110 …hci::SecurityInterface* GetSecurityInterface(common::ContextualCallback<void(hci::EventView)> even…
113 common::ContextualCallback<void(hci::LeMetaEventView)> event_handler) override;
116 common::ContextualCallback<void(hci::EventView)> event_handler,
117 common::ContextualCallback<void(uint16_t, hci::ErrorCode)> on_disconnect,
118 common::ContextualCallback<void(Address, ClassOfDevice)> on_connection_request,
119 common::ContextualCallback<void(
125 common::ContextualCallback<void(hci::LeMetaEventView)> event_handler,
126 common::ContextualCallback<void(uint16_t, hci::ErrorCode)> on_disconnect,
[all …]
Dfuzz_hci_layer.cc26 using bluetooth::common::ContextualCallback;
31 ContextualCallback<void(hci::EventView)> /* event_handler */) { in GetSecurityInterface()
36 ContextualCallback<void(hci::LeMetaEventView)> /* event_handler */) { in GetLeSecurityInterface()
41 ContextualCallback<void(hci::EventView)> /* event_handler */, in GetAclConnectionInterface()
42 ContextualCallback<void(uint16_t, hci::ErrorCode)> /* on_disconnect */, in GetAclConnectionInterface()
43 ContextualCallback<void(Address, ClassOfDevice)> /* on_connection_request */, in GetAclConnectionInterface()
44 ContextualCallback<void( in GetAclConnectionInterface()
55 ContextualCallback<void(hci::LeMetaEventView)> /* event_handler */, in GetLeAclConnectionInterface()
56 ContextualCallback<void(uint16_t, hci::ErrorCode)> /* on_disconnect */, in GetLeAclConnectionInterface()
57 ContextualCallback<void( in GetLeAclConnectionInterface()
[all …]
/packages/modules/Bluetooth/system/gd/common/
Dcontextual_callback.h61 class ContextualCallback; variable
65 class ContextualCallback<R(Args...)> {
67 ContextualCallback(common::Callback<R(Args...)>&& callback, IPostableContext* context) in ContextualCallback() function
70 constexpr ContextualCallback() = default;
72 ContextualCallback(const ContextualCallback&) = default;
73 ContextualCallback& operator=(const ContextualCallback&) = default;
74 ContextualCallback(ContextualCallback&&) noexcept = default;
75 ContextualCallback& operator=(ContextualCallback&&) noexcept = default;
91 ContextualCallback(Callback&& callback, IPostableContext* context)
92 -> ContextualCallback<typename Callback::RunType>;
Dpostable_context.h45 return common::ContextualCallback( in Bind()
51 return common::ContextualCallback( in BindOn()
/packages/modules/Bluetooth/system/gd/
Dmodule_gdx_unittest.h45 void set_callback(common::ContextualCallback<void(std::string)> one_message_callback);
73 common::ContextualCallback<void(std::string)> call_many_;
Dmodule_gdx_unittest.cc211 void TestGdxModule::set_callback(common::ContextualCallback<void(std::string)> callback) { in set_callback()
221 [](common::ContextualCallback<void(std::string)> callback, std::string message) { in call_callback_on_handler()
413 common::ContextualCallback<void(std::string)> callback;
/packages/modules/Bluetooth/system/gd/security/test/
Dfake_hci_layer.h90 …void RegisterEventHandler(EventCode event_code, common::ContextualCallback<void(EventView)> event_… in RegisterEventHandler()
112 std::map<EventCode, common::ContextualCallback<void(EventView)>> registered_events_;
/packages/modules/Bluetooth/system/gd/fuzz/
Dhelpers.h52 void InvokeIfValid(common::ContextualCallback<void(TView)> callback, std::vector<uint8_t> data) { in InvokeIfValid()
/packages/modules/Bluetooth/system/gd/l2cap/classic/
Ddynamic_channel_manager.h61 …using OnConnectionOpenCallback = common::ContextualCallback<void(std::unique_ptr<DynamicChannel>)>;
/packages/modules/Bluetooth/system/btif/test/
Dbtif_core_test.cc72 using bluetooth::common::ContextualCallback;
958 ContextualCallback<void(VendorSpecificEventView)> vse_callback_;