Home
last modified time | relevance | path

Searched refs:ContextualOnceCallback (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/common/
Dcontextual_callback.h27 class ContextualOnceCallback; variable
31 class ContextualOnceCallback<R(Args...)> {
33 ContextualOnceCallback(common::OnceCallback<R(Args...)>&& callback, IPostableContext* context) in ContextualOnceCallback() function
36 constexpr ContextualOnceCallback() = default;
37 ContextualOnceCallback(const ContextualOnceCallback&) = delete;
38 ContextualOnceCallback& operator=(const ContextualOnceCallback&) = delete;
40 ContextualOnceCallback(ContextualOnceCallback&&) noexcept = default;
41 ContextualOnceCallback& operator=(ContextualOnceCallback&&) noexcept = default;
57 ContextualOnceCallback(Callback&& callback, IPostableContext* context)
58 -> ContextualOnceCallback<typename Callback::RunType>;
Dpostable_context.h31 return common::ContextualOnceCallback( in BindOnce()
37 return common::ContextualOnceCallback( in BindOnceOn()
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dacl_scheduler.cc32 common::ContextualOnceCallback<void()> callback;
37 common::ContextualOnceCallback<void()> callback;
38 common::ContextualOnceCallback<void()> callback_when_cancelled;
44 …void EnqueueOutgoingAclConnection(Address address, common::ContextualOnceCallback<void()> start_co… in EnqueueOutgoingAclConnection()
55 common::ContextualOnceCallback<void()> handle_outgoing_connection, in ReportAclConnectionCompletion()
56 common::ContextualOnceCallback<void()> handle_incoming_connection, in ReportAclConnectionCompletion()
57 common::ContextualOnceCallback<void(std::string)> handle_unknown_connection) { in ReportAclConnectionCompletion()
96 common::ContextualOnceCallback<void()> cancel_connection, in CancelAclConnection()
97 common::ContextualOnceCallback<void()> cancel_connection_completed) { in CancelAclConnection()
112 common::ContextualOnceCallback<void()> start_request, in EnqueueRemoteNameRequest()
[all …]
Dacl_scheduler.h40 …void EnqueueOutgoingAclConnection(Address address, common::ContextualOnceCallback<void()> start_co…
50 common::ContextualOnceCallback<void()> handle_outgoing_connection,
51 common::ContextualOnceCallback<void()> handle_incoming_connection,
52 common::ContextualOnceCallback<void(std::string)> handle_unknown_connection);
62 common::ContextualOnceCallback<void()> cancel_connection,
63 common::ContextualOnceCallback<void()> cancel_connection_completed);
69 common::ContextualOnceCallback<void()> start_request,
70 common::ContextualOnceCallback<void()> cancel_request_completed);
78 …void CancelRemoteNameRequest(Address address, common::ContextualOnceCallback<void()> cancel_reques…
Dle_acl_connection_test.cc107 common::ContextualOnceCallback<void(hci::CommandStatusView)> on_status) override { in EnqueueCommand()
120 common::ContextualOnceCallback<void(hci::CommandCompleteView)> on_complete) override { in EnqueueCommand()
149 common::ContextualOnceCallback<void(hci::CommandStatusView)> DequeueStatusCallback() { in DequeueStatusCallback()
166 …std::list<common::ContextualOnceCallback<void(hci::CommandCompleteView)>> command_complete_callbac…
167 std::list<common::ContextualOnceCallback<void(hci::CommandStatusView)>> command_status_callbacks;
Dacl_scheduler_test.cc66 common::ContextualOnceCallback<void(std::string)> impossibleCallbackTakingString() { in impossibleCallbackTakingString()
70 common::ContextualOnceCallback<void(std::string)> emptyCallbackTakingString() { in emptyCallbackTakingString()
74 …common::ContextualOnceCallback<void(std::string)> promiseCallbackTakingString(std::promise<void> p… in promiseCallbackTakingString()
80 common::ContextualOnceCallback<void()> impossibleCallback() { in impossibleCallback()
84 common::ContextualOnceCallback<void()> emptyCallback() { in emptyCallback()
88 common::ContextualOnceCallback<void()> promiseCallback(std::promise<void> promise) { in promiseCallback()
Dclassic_acl_connection_test.cc122 common::ContextualOnceCallback<void(hci::CommandStatusView)> on_status) override { in EnqueueCommand()
135 common::ContextualOnceCallback<void(hci::CommandCompleteView)> on_complete) override { in EnqueueCommand()
175 …std::list<common::ContextualOnceCallback<void(hci::CommandCompleteView)>> command_complete_callbac…
176 std::list<common::ContextualOnceCallback<void(hci::CommandStatusView)>> command_status_callbacks;
Dclassic_impl_test.cc128 common::ContextualOnceCallback<void()> handle_outgoing_connection, in ReportAclConnectionCompletion()
129 common::ContextualOnceCallback<void()> handle_incoming_connection, in ReportAclConnectionCompletion()
130 common::ContextualOnceCallback<void(std::string)> handle_unknown_connection) override { in ReportAclConnectionCompletion()
/packages/modules/Bluetooth/system/gd/security/test/
Dfake_hci_layer.h26 using common::ContextualOnceCallback;
51 ContextualOnceCallback<void(CommandCompleteView)> on_complete_function) in CommandQueueEntry()
56 ContextualOnceCallback<void(CommandStatusView)> on_status_function) in CommandQueueEntry()
61 ContextualOnceCallback<void(CommandStatusView)> on_status;
62 ContextualOnceCallback<void(CommandCompleteView)> on_complete;
71 ContextualOnceCallback<void(CommandStatusView)> on_status) override { in EnqueueCommand()
78 ContextualOnceCallback<void(CommandCompleteView)> on_complete) override { in EnqueueCommand()
Dmocks.h51 … common::ContextualOnceCallback<void(hci::CommandCompleteView)> on_complete));
53 … common::ContextualOnceCallback<void(hci::CommandStatusView)> on_status));
/packages/modules/Bluetooth/system/gd/hci/
Dremote_name_request.h33 using CompletionCallback = common::ContextualOnceCallback<void(ErrorCode)>;
34 using RemoteHostSupportedFeaturesCallback = common::ContextualOnceCallback<void(uint64_t)>;
36 common::ContextualOnceCallback<void(ErrorCode, std::array<uint8_t, 248>)>;
Dhci_layer_fake.h38 common::ContextualOnceCallback<void(CommandStatusView)> on_status) override;
42 common::ContextualOnceCallback<void(CommandCompleteView)> on_complete) override;
95 std::list<common::ContextualOnceCallback<void(CommandCompleteView)>> command_complete_callbacks;
96 std::list<common::ContextualOnceCallback<void(CommandStatusView)>> command_status_callbacks;
Dhci_interface.h46 common::ContextualOnceCallback<void(CommandCompleteView)> on_complete) override = 0;
50 common::ContextualOnceCallback<void(CommandStatusView)> on_status) override = 0;
124 common::ContextualOnceCallback<void(CommandCompleteView)> on_complete) override { in EnqueueCommand()
130 common::ContextualOnceCallback<void(CommandStatusView)> on_status) override { in EnqueueCommand()
Dcommand_interface.h37 … common::ContextualOnceCallback<void(CommandCompleteView)> on_complete) = 0;
40 … common::ContextualOnceCallback<void(CommandStatusView)> on_status) = 0;
Dhci_layer.cc45 using bluetooth::common::ContextualOnceCallback;
77 ContextualOnceCallback<void(CommandCompleteView)> on_complete_function) in CommandQueueEntry()
84 ContextualOnceCallback<void(CommandStatusView)> on_status_function) in CommandQueueEntry()
93 ContextualOnceCallback<void(CommandStatusView)> on_status;
94 ContextualOnceCallback<void(CommandCompleteView)> on_complete;
97 ContextualOnceCallback<void(TView)>* GetCallback() { in GetCallback()
102 ContextualOnceCallback<void(CommandStatusView)>* GetCallback<CommandStatusView>() { in GetCallback()
107 ContextualOnceCallback<void(CommandCompleteView)>* GetCallback<CommandCompleteView>() { in GetCallback()
159 …void enqueue_command(unique_ptr<CommandBuilder> command, ContextualOnceCallback<void(TResponse)> o… in enqueue_command()
583 …unique_ptr<CommandBuilder> command, ContextualOnceCallback<void(CommandCompleteView)> on_complete)… in EnqueueCommand()
[all …]
Dhci_layer_mock.h37 (std::unique_ptr<CommandBuilder>, common::ContextualOnceCallback<void(CommandCompleteView)>),
42 (std::unique_ptr<CommandBuilder>, common::ContextualOnceCallback<void(CommandStatusView)>),
Dle_rand_callback.h24 using LeRandCallback = common::ContextualOnceCallback<void(uint64_t)>;
Dhci_layer.h55 common::ContextualOnceCallback<void(CommandCompleteView)> on_complete) override;
59 common::ContextualOnceCallback<void(CommandStatusView)> on_status) override;
Dremote_name_request_test.cc88 common::ContextualOnceCallback<void(T...)> impossibleCallback() { in impossibleCallback()
93 common::ContextualOnceCallback<void(T...)> emptyCallback() { in emptyCallback()
98 common::ContextualOnceCallback<void(T...)> promiseCallback(std::promise<void> promise) { in promiseCallback()
105 common::ContextualOnceCallback<void(T...)> capturingPromiseCallback( in capturingPromiseCallback()
115 common::ContextualOnceCallback<void(T)> capturingPromiseCallback(std::promise<T> promise) { in capturingPromiseCallback()
/packages/modules/Bluetooth/system/gd/hci/fuzz/
Dfuzz_hci_layer.h40 common::ContextualOnceCallback<void(hci::CommandCompleteView)> /* on_complete */) override {} in EnqueueCommand()
44 common::ContextualOnceCallback<void(hci::CommandStatusView)> /* on_status */) override {} in EnqueueCommand()
59 common::ContextualOnceCallback<void(hci::CommandCompleteView)> on_complete) override { in EnqueueCommand()
68 common::ContextualOnceCallback<void(hci::CommandStatusView)> on_status) override { in EnqueueCommand()
194 common::ContextualOnceCallback<void(hci::CommandCompleteView)> on_command_complete_;
195 common::ContextualOnceCallback<void(hci::CommandStatusView)> on_command_status_;
/packages/modules/Bluetooth/system/gd/l2cap/classic/
Ddynamic_channel_manager.h59 using OnConnectionFailureCallback = common::ContextualOnceCallback<void(ConnectionResult result)>;
70 … common::ContextualOnceCallback<void(RegistrationResult, std::unique_ptr<DynamicChannelService>)>;
Dsecurity_enforcement_interface.h34 using ResultCallback = common::ContextualOnceCallback<void(bool)>;
/packages/modules/Bluetooth/system/gd/
Dmodule_gdx_unittest.h46 void set_once_callback(common::ContextualOnceCallback<void(std::string)> one_message_callback);
72 common::ContextualOnceCallback<void(std::string)> call_once_;
/packages/modules/Bluetooth/system/gd/l2cap/fuzz/
Dfuzz_l2cap.cc42 common::ContextualOnceCallback<void(hci::CommandCompleteView)> on_complete) {} in EnqueueCommand()
46 common::ContextualOnceCallback<void(hci::CommandStatusView)> on_status) {} in EnqueueCommand()
/packages/modules/Bluetooth/system/gd/l2cap/le/
Dsecurity_enforcement_interface.h34 using ResultCallback = common::ContextualOnceCallback<void(bool)>;

12