Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 25 of 103) sorted by relevance

12345

/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/hci/cmd/
Dhci_cmd_failure_le_controller.c33 HciEventCallbacks *callbacks = NULL; in HciCmdOnLeSetEventMaskFailed() local
34 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnLeSetEventMaskFailed()
35 if (callbacks->leSetEventMaskComplete != NULL) { in HciCmdOnLeSetEventMaskFailed()
36 callbacks->leSetEventMaskComplete(&returnParam); in HciCmdOnLeSetEventMaskFailed()
47 HciEventCallbacks *callbacks = NULL; in HciCmdOnLeReadBufferSizeFailed() local
48 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnLeReadBufferSizeFailed()
49 if (callbacks->leReadBufferSizeComplete != NULL) { in HciCmdOnLeReadBufferSizeFailed()
50 callbacks->leReadBufferSizeComplete(&returnParam); in HciCmdOnLeReadBufferSizeFailed()
61 HciEventCallbacks *callbacks = NULL; in HciCmdOnLeReadLocalSupportedFeaturesFailed() local
62 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnLeReadLocalSupportedFeaturesFailed()
[all …]
Dhci_cmd_failure_controller_baseband.c33 HciEventCallbacks *callbacks = NULL; in HciCmdOnSetEventMaskFailed() local
34 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnSetEventMaskFailed()
35 if (callbacks->setEventMaskComplete != NULL) { in HciCmdOnSetEventMaskFailed()
36 callbacks->setEventMaskComplete(&returnParam); in HciCmdOnSetEventMaskFailed()
47 HciEventCallbacks *callbacks = NULL; in HciCmdOnResetFailed() local
48 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnResetFailed()
49 if (callbacks->resetComplete != NULL) { in HciCmdOnResetFailed()
50 callbacks->resetComplete(&returnParam); in HciCmdOnResetFailed()
61 HciEventCallbacks *callbacks = NULL; in HciCmdOnSetEventFilterFailed() local
62 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnSetEventFilterFailed()
[all …]
Dhci_cmd_failure_link_ctrl.c36 HciEventCallbacks *callbacks = NULL; in HciCmdOnInquiryFailed() local
37 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnInquiryFailed()
38 if (callbacks->inquiryComplete != NULL) { in HciCmdOnInquiryFailed()
39 callbacks->inquiryComplete(&eventParam); in HciCmdOnInquiryFailed()
50 HciEventCallbacks *callbacks = NULL; in HciCmdOnInquiryCancelFailed() local
51 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnInquiryCancelFailed()
52 if (callbacks->inquiryCancelComplete != NULL) { in HciCmdOnInquiryCancelFailed()
53 callbacks->inquiryCancelComplete(&returnParam); in HciCmdOnInquiryCancelFailed()
64 HciEventCallbacks *callbacks = NULL; in HciCmdOnPeriodicInquiryModeFailed() local
65 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnPeriodicInquiryModeFailed()
[all …]
Dhci_cmd_failure_status_params.c34 HciEventCallbacks *callbacks = NULL; in HciCmdOnReadFailedContactCounterFailed() local
35 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnReadFailedContactCounterFailed()
36 if (callbacks->readFailedContactCounterComplete != NULL) { in HciCmdOnReadFailedContactCounterFailed()
37 callbacks->readFailedContactCounterComplete(&returnParam); in HciCmdOnReadFailedContactCounterFailed()
49 HciEventCallbacks *callbacks = NULL; in HciCmdOnResetFailedContactCounterFailed() local
50 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnResetFailedContactCounterFailed()
51 if (callbacks->resetFailedContactCounterComplete != NULL) { in HciCmdOnResetFailedContactCounterFailed()
52 callbacks->resetFailedContactCounterComplete(&returnParam); in HciCmdOnResetFailedContactCounterFailed()
64 HciEventCallbacks *callbacks = NULL; in HciCmdOnReadLinkQualityFailed() local
65 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnReadLinkQualityFailed()
[all …]
Dhci_cmd_failure_info_params.c34 HciEventCallbacks *callbacks = NULL; in HciCmdOnReadLocalVersionInformationFailed() local
35 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnReadLocalVersionInformationFailed()
36 if (callbacks->readLocalVersionInformationComplete != NULL) { in HciCmdOnReadLocalVersionInformationFailed()
37 callbacks->readLocalVersionInformationComplete(&returnParam); in HciCmdOnReadLocalVersionInformationFailed()
48 HciEventCallbacks *callbacks = NULL; in HciCmdOnReadLocalSupportedCommandsFailed() local
49 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnReadLocalSupportedCommandsFailed()
50 if (callbacks->readLocalSupportedCommandsComplete != NULL) { in HciCmdOnReadLocalSupportedCommandsFailed()
51 callbacks->readLocalSupportedCommandsComplete(&returnParam); in HciCmdOnReadLocalSupportedCommandsFailed()
62 HciEventCallbacks *callbacks = NULL; in HciCmdOnReadLocalSupportedFeaturesFailed() local
63 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnReadLocalSupportedFeaturesFailed()
[all …]
Dhci_cmd_failure_link_policy.c34 HciEventCallbacks *callbacks = NULL; in HciCmdOnSniffModeFailed() local
35 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnSniffModeFailed()
36 if (callbacks->modeChange != NULL) { in HciCmdOnSniffModeFailed()
37 callbacks->modeChange(&eventParam); in HciCmdOnSniffModeFailed()
49 HciEventCallbacks *callbacks = NULL; in HciCmdOnExitSnifModeFailed() local
50 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnExitSnifModeFailed()
51 if (callbacks->modeChange != NULL) { in HciCmdOnExitSnifModeFailed()
52 callbacks->modeChange(&eventParam); in HciCmdOnExitSnifModeFailed()
64 HciEventCallbacks *callbacks = NULL; in HciCmdOnSniffSubratingFailed() local
65 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciCmdOnSniffSubratingFailed()
[all …]
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/hci/evt/
Dhci_evt_controller_baseband_cmd_complete.c37 HciEventCallbacks *callbacks = NULL; in HciEventOnSetEventMaskCompete() local
38 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnSetEventMaskCompete()
39 if (callbacks->setEventMaskComplete != NULL) { in HciEventOnSetEventMaskCompete()
40 callbacks->setEventMaskComplete(&returnParam); in HciEventOnSetEventMaskCompete()
51 HciEventCallbacks *callbacks = NULL; in HciEventOnResetComplete() local
52 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnResetComplete()
53 if (callbacks->resetComplete != NULL) { in HciEventOnResetComplete()
54 callbacks->resetComplete(&returnParam); in HciEventOnResetComplete()
65 HciEventCallbacks *callbacks = NULL; in HciEventOnWriteLocalNameComplete() local
66 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnWriteLocalNameComplete()
[all …]
Dhci_evt_le_cmd_complete.c35 HciEventCallbacks *callbacks = NULL; in HciEventOnLeSetEventMaskComplete() local
36 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnLeSetEventMaskComplete()
37 if (callbacks->leSetEventMaskComplete != NULL) { in HciEventOnLeSetEventMaskComplete()
38 callbacks->leSetEventMaskComplete(&returnParam); in HciEventOnLeSetEventMaskComplete()
49 HciEventCallbacks *callbacks = NULL; in HciEventOnLeReadBufferSizeComplete() local
50 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnLeReadBufferSizeComplete()
51 if (callbacks->leReadBufferSizeComplete != NULL) { in HciEventOnLeReadBufferSizeComplete()
52 callbacks->leReadBufferSizeComplete(&returnParam); in HciEventOnLeReadBufferSizeComplete()
63 HciEventCallbacks *callbacks = NULL; in HciEventOnLeReadLocalSupportedFeaturesComplete() local
64 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnLeReadLocalSupportedFeaturesComplete()
[all …]
Dhci_evt_link_ctrl_cmd_complete.c37 HciEventCallbacks *callbacks = NULL; in HciEventOnInquiryCancelComplete() local
38 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnInquiryCancelComplete()
39 if (callbacks->inquiryCancelComplete != NULL) { in HciEventOnInquiryCancelComplete()
40 callbacks->inquiryCancelComplete(&returnParam); in HciEventOnInquiryCancelComplete()
51 HciEventCallbacks *callbacks = NULL; in HciEventOnCreateConnectionCancelComplete() local
52 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnCreateConnectionCancelComplete()
53 if (callbacks->createConnectionCancelComplete != NULL) { in HciEventOnCreateConnectionCancelComplete()
54 callbacks->createConnectionCancelComplete(&returnParam); in HciEventOnCreateConnectionCancelComplete()
65 HciEventCallbacks *callbacks = NULL; in HciEventOnLinkKeyRequestReplyComplete() local
66 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnLinkKeyRequestReplyComplete()
[all …]
Dhci_evt.c77 HciEventCallbacks *callbacks = NULL; in HciEventOnInquiryCompleteEvent() local
78 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnInquiryCompleteEvent()
79 if (callbacks->inquiryComplete != NULL) { in HciEventOnInquiryCompleteEvent()
80 callbacks->inquiryComplete(param); in HciEventOnInquiryCompleteEvent()
134 HciEventCallbacks *callbacks = NULL; in HciEventOnInquiryResultEvent() local
135 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnInquiryResultEvent()
136 if (callbacks->inquiryResult != NULL) { in HciEventOnInquiryResultEvent()
137 callbacks->inquiryResult(&eventParam); in HciEventOnInquiryResultEvent()
166 HciEventCallbacks *callbacks = NULL; in HciEventOnCommandStatusEvent() local
167 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnCommandStatusEvent()
[all …]
Dhci_evt_status_params_cmd_complete.c37 HciEventCallbacks *callbacks = NULL; in HciEventOnReadRssiComplete() local
38 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnReadRssiComplete()
39 if (callbacks->readRssiComplete != NULL) { in HciEventOnReadRssiComplete()
40 callbacks->readRssiComplete(&returnParam); in HciEventOnReadRssiComplete()
51 HciEventCallbacks *callbacks = NULL; in HciEventOnReadFailedContactCounterComplete() local
52 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnReadFailedContactCounterComplete()
53 if (callbacks->readFailedContactCounterComplete != NULL) { in HciEventOnReadFailedContactCounterComplete()
54 callbacks->readFailedContactCounterComplete(&returnParam); in HciEventOnReadFailedContactCounterComplete()
65 HciEventCallbacks *callbacks = NULL; in HciEventOnResetFailedContactCounterComplete() local
66 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnResetFailedContactCounterComplete()
[all …]
Dhci_evt_le.c46 HciEventCallbacks *callbacks = NULL; in HciEventOnLeConnectionCompleteEvent() local
47 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnLeConnectionCompleteEvent()
48 if (callbacks->leConnectionComplete != NULL) { in HciEventOnLeConnectionCompleteEvent()
49 callbacks->leConnectionComplete(eventParam); in HciEventOnLeConnectionCompleteEvent()
98 HciEventCallbacks *callbacks = NULL; in HciEventOnLeAdvertisingReportEvent() local
99 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnLeAdvertisingReportEvent()
100 if (callbacks->leAdvertisingReport != NULL) { in HciEventOnLeAdvertisingReportEvent()
101 callbacks->leAdvertisingReport(&eventParam); in HciEventOnLeAdvertisingReportEvent()
118 HciEventCallbacks *callbacks = NULL; in HciEventOnLeConnectionUpdateCompleteEvent() local
119 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnLeConnectionUpdateCompleteEvent()
[all …]
Dhci_evt_link_policy_cmd_complete.c37 HciEventCallbacks *callbacks = NULL; in HciEventOnWriteLinkPolicySettingsComplete() local
38 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnWriteLinkPolicySettingsComplete()
39 if (callbacks->writeLinkPolicySettingsComplete != NULL) { in HciEventOnWriteLinkPolicySettingsComplete()
40 callbacks->writeLinkPolicySettingsComplete(&returnParam); in HciEventOnWriteLinkPolicySettingsComplete()
51 HciEventCallbacks *callbacks = NULL; in HciEventOnSniffSubratingComplete() local
52 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnSniffSubratingComplete()
53 if (callbacks->sniffSubratingComplete != NULL) { in HciEventOnSniffSubratingComplete()
54 callbacks->sniffSubratingComplete(&returnParam); in HciEventOnSniffSubratingComplete()
65 HciEventCallbacks *callbacks = NULL; in HciEventOnRoleDiscoveryComplete() local
66 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnRoleDiscoveryComplete()
[all …]
Dhci_evt_info_params_cmd_complete.c37 HciEventCallbacks *callbacks = NULL; in HciEventOnReadLocalVersionComplete() local
38 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnReadLocalVersionComplete()
39 if (callbacks->readLocalVersionInformationComplete != NULL) { in HciEventOnReadLocalVersionComplete()
40 callbacks->readLocalVersionInformationComplete(&returnParam); in HciEventOnReadLocalVersionComplete()
51 HciEventCallbacks *callbacks = NULL; in HciEventOnReadLocalSupportedCommandsComplete() local
52 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnReadLocalSupportedCommandsComplete()
53 if (callbacks->readLocalSupportedCommandsComplete != NULL) { in HciEventOnReadLocalSupportedCommandsComplete()
54 callbacks->readLocalSupportedCommandsComplete(&returnParam); in HciEventOnReadLocalSupportedCommandsComplete()
65 HciEventCallbacks *callbacks = NULL; in HciEventOnReadLocalSupportedFeaturesComplete() local
66 HCI_FOREACH_EVT_CALLBACKS_START(callbacks); in HciEventOnReadLocalSupportedFeaturesComplete()
[all …]
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/hci/
Dhci_failure.c44 int HCI_RegisterFailureCallback(const HciFailureCallbacks *callbacks) in HCI_RegisterFailureCallback() argument
48 ListAddLast(g_hciFailureCallbackList, (void *)callbacks); in HCI_RegisterFailureCallback()
54 int HCI_DeregisterFailureCallback(const HciFailureCallbacks *callbacks) in HCI_DeregisterFailureCallback() argument
58 ListRemoveNode(g_hciFailureCallbackList, (void *)callbacks); in HCI_DeregisterFailureCallback()
67 HciFailureCallbacks *callbacks = NULL; in HciOnCmdTimeout() local
72 callbacks = ListGetNodeData(node); in HciOnCmdTimeout()
73 if (callbacks != NULL) { in HciOnCmdTimeout()
74 if (callbacks->onCmdTimeout != NULL) { in HciOnCmdTimeout()
75 callbacks->onCmdTimeout(); in HciOnCmdTimeout()
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/btm/
Dbtm_pm.c47 const BtmPmCallbacks *callbacks; member
65 static BtmPmCallbackBlock *BtmPmAllocCallbackBlock(const BtmPmCallbacks *callbacks, void *context) in BtmPmAllocCallbackBlock() argument
69 block->callbacks = callbacks; in BtmPmAllocCallbackBlock()
295 if (block->callbacks->modeChange != NULL) { in BtmPmOnModeChange()
296 …block->callbacks->modeChange(param->status, &addr, param->currentMode, param->interval, block->con… in BtmPmOnModeChange()
311 if (block->callbacks->setSniffSubratingComplete != NULL) { in BtmPmOnSniffSubratingComplete()
312 block->callbacks->setSniffSubratingComplete(param->status, &addr, block->context); in BtmPmOnSniffSubratingComplete()
333 int BTM_RegisterPmCallbacks(const BtmPmCallbacks *callbacks, void *context) in BTM_RegisterPmCallbacks() argument
335 if (callbacks == NULL) { in BTM_RegisterPmCallbacks()
343 BtmPmCallbackBlock *block = BtmPmAllocCallbackBlock(callbacks, context); in BTM_RegisterPmCallbacks()
[all …]
Dbtm.c51 const BtmCallbacks *callbacks; member
107 static BtmCallbacksBlock *BtmAllocCallbacksBlock(const BtmCallbacks *callbacks, void *context) in BtmAllocCallbacksBlock() argument
111 block->callbacks = (BtmCallbacks *)callbacks; in BtmAllocCallbacksBlock()
524 int BTM_RegisterCallbacks(const BtmCallbacks *callbacks, void *context) in BTM_RegisterCallbacks() argument
526 if (callbacks == NULL) { in BTM_RegisterCallbacks()
534 BtmCallbacksBlock *block = BtmAllocCallbacksBlock(callbacks, context); in BTM_RegisterCallbacks()
546 int BTM_DeregisterCallbacks(const BtmCallbacks *callbacks) in BTM_DeregisterCallbacks() argument
548 if (callbacks == NULL) { in BTM_DeregisterCallbacks()
563 if (block->callbacks == callbacks) { in BTM_DeregisterCallbacks()
583 if (block->callbacks != NULL && block->callbacks->hciFailure != NULL) { in BtmOnHCIFailure()
[all …]
Dbtm_sco.c73 const BtmScoCallbacks *callbacks; member
103 static BtmScoCallbacksBlock *BtmAllocScoCallbacksBlock(const BtmScoCallbacks *callbacks, void *cont… in BtmAllocScoCallbacksBlock() argument
107 block->callbacks = callbacks; in BtmAllocScoCallbacksBlock()
170 int BTM_RegisterScoCallbacks(const BtmScoCallbacks *callbacks, void *context) in BTM_RegisterScoCallbacks() argument
172 if (callbacks == NULL) { in BTM_RegisterScoCallbacks()
180 BtmScoCallbacksBlock *block = BtmAllocScoCallbacksBlock(callbacks, context); in BTM_RegisterScoCallbacks()
191 int BTM_DeregisterScoCallbacks(const BtmScoCallbacks *callbacks) in BTM_DeregisterScoCallbacks() argument
193 if (callbacks == NULL) { in BTM_DeregisterScoCallbacks()
203 if (block->callbacks == callbacks) { in BTM_DeregisterScoCallbacks()
825 if (block->callbacks->scoConnectionComplete != NULL) { in BtmScoOnConnectionComplete()
[all …]
/foundation/communication/netmanager_base/frameworks/js/napi/netconn/src/
Devent_listener_context.cpp29 std::map<intptr_t, sptr<INetConnCallback>> EventListenerContext::callbacks; member in OHOS::NetManagerStandard::EventListenerContext
70 callbacks[index] = callback; in Register()
85 callbacks.erase(index); in Register()
100 std::map<intptr_t, sptr<INetConnCallback>>::iterator iter = callbacks.find(index); in Unregister()
101 if (iter != callbacks.end()) { in Unregister()
115 callbacks.erase(index); in Unregister()
127 …(std::map<intptr_t, sptr<INetConnCallback>>::iterator it = callbacks.begin(); it != callbacks.end(… in RemoveCallback()
132 callbacks.erase(index); in RemoveCallback()
172 NETMGR_LOG_I("FindListener, callbacks.size = [%{public}zd]", callbacks.size()); in FindListener()
173 …(std::map<intptr_t, sptr<INetConnCallback>>::iterator it = callbacks.begin(); it != callbacks.end(… in FindListener()
/foundation/communication/wifi/tests/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/
Dwifi_p2p_hal_interface_test.cpp153 P2pHalCallback callbacks; in SetUpTestCase() local
154 callbacks.onConnectSupplicant = onConnectSupplicant; in SetUpTestCase()
155 callbacks.onDeviceLost = onDeviceLost; in SetUpTestCase()
156 callbacks.onGoNegotiationRequest = onGoNegotiationRequest; in SetUpTestCase()
157 callbacks.onGoNegotiationSuccess = onGoNegotiationSuccess; in SetUpTestCase()
158 callbacks.onGoNegotiationFailure = onGoNegotiationFailure; in SetUpTestCase()
159 callbacks.onInvitationReceived = onInvitationReceived; in SetUpTestCase()
160 callbacks.onInvitationResult = onInvitationResult; in SetUpTestCase()
161 callbacks.onGroupFormationSuccess = onGroupFormationSuccess; in SetUpTestCase()
162 callbacks.onGroupFormationFailure = onGroupFormationFailure; in SetUpTestCase()
[all …]
/foundation/aafwk/standard/frameworks/kits/ability/ability_runtime/src/
Dconnection_manager.cpp67 std::vector<sptr<AbilityConnectCallback>> callbacks = item->second; in ConnectAbilityInner() local
68 callbacks.push_back(connectCallback); in ConnectAbilityInner()
69 abilityConnections_[item->first] = callbacks; in ConnectAbilityInner()
73 __func__, abilityConnection.GetRefPtr(), (int32_t)callbacks.size()); in ConnectAbilityInner()
87 std::vector<sptr<AbilityConnectCallback>> callbacks; in ConnectAbilityInner() local
88 callbacks.push_back(connectCallback); in ConnectAbilityInner()
89 abilityConnections_[connectionInfo] = callbacks; in ConnectAbilityInner()
117 std::vector<sptr<AbilityConnectCallback>> callbacks = item->second; in DisconnectAbility() local
118 …"%{public}s begin remove callback, callbackSize:%{public}d.", __func__, (int32_t)callbacks.size()); in DisconnectAbility()
119 auto iter = callbacks.begin(); in DisconnectAbility()
[all …]
/foundation/multimodalinput/input/frameworks/napi/input_consumer/include/
Djs_register_util.h32 int32_t GetPreSubscribeId(Callbacks &callbacks, KeyEventMonitorInfo *event);
33 int32_t AddEventCallback(const napi_env &env, Callbacks &callbacks,
35 int32_t DelEventCallback(const napi_env &env, Callbacks &callbacks,
/foundation/distributedschedule/samgr_lite/communication/broadcast/source/
Dpub_sub_implement.c67 newRelation->callbacks.consumer = NULL; in AddTopic()
68 UtilsListInit(&newRelation->callbacks.node); in AddTopic()
94 UTILS_DL_LIST_FOR_EACH_ENTRY(item, &relation->callbacks.node, ConsumerNode, node) { in Subscribe()
109 ConsumerNode *head = &relation->callbacks; in Subscribe()
133 UTILS_DL_LIST_FOR_EACH_ENTRY(item, &relation->callbacks.node, ConsumerNode, node) { in ModifyConsumer()
162 UTILS_DL_LIST_FOR_EACH_ENTRY(item, &relation->callbacks.node, ConsumerNode, node) { in Unsubscribe()
169 if (item == &relation->callbacks || item == NULL) { in Unsubscribe()
216 if (UtilsListEmpty(&relation->callbacks.node)) { in ImmediatelyPublish()
224 UTILS_DL_LIST_FOR_EACH_ENTRY(item, &relation->callbacks.node, ConsumerNode, node) { in ImmediatelyPublish()
/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/
Djs_register_util.cpp145 int32_t GetPreSubscribeId(Callbacks &callbacks, KeyEventMonitorInfo *event) in GetPreSubscribeId() argument
147 auto it = callbacks.find(event->eventType); in GetPreSubscribeId()
148 if (it == callbacks.end() || it->second.empty()) { in GetPreSubscribeId()
156 int32_t AddEventCallback(const napi_env &env, Callbacks &callbacks, KeyEventMonitorInfo *event) in AddEventCallback() argument
160 if (callbacks.find(event->eventType) == callbacks.end()) { in AddEventCallback()
162 callbacks[event->eventType] = {}; in AddEventCallback()
171 auto it = callbacks.find(event->eventType); in AddEventCallback()
196 int32_t DelEventCallback(const napi_env &env, Callbacks &callbacks, in DelEventCallback() argument
201 if (callbacks.count(event->eventType) <= 0) { in DelEventCallback()
205 auto &info = callbacks[event->eventType]; in DelEventCallback()
/foundation/communication/bluetooth/services/bluetooth_standard/hardware/include/
Dbluetooth_hci_callbacks.h24 BluetoothHciCallbacks(BtHciCallbacks *callbacks) : callbacks_(callbacks) in BluetoothHciCallbacks() argument

12345