Home
last modified time | relevance | path

Searched refs:eventCallback_ (Results 1 – 25 of 50) sorted by relevance

12

/ohos5.0/base/web/webview/ohos_adapter/enterprise_device_management_adapter/src/
H A Denterprise_device_management_adapter_impl.cpp46 : EventFwk::CommonEventSubscriber(in), eventCallback_(eventCallback) {} in NWebEdmEventSubscriber()
56 if (eventCallback_) { in OnReceiveEvent()
57 eventCallback_->Changed(); in OnReceiveEvent()
67 eventCallback_ = std::move(eventCallback); in RegistPolicyChangeEventCallback()
81 …his->commonEventSubscriber_ = std::make_shared<NWebEdmEventSubscriber>(info, this->eventCallback_); in StartObservePolicyChange()
/ohos5.0/foundation/communication/netmanager_ext/test/vpnmanager/unittest/vpn_manager_test/
H A Dnetworkvpn_service_test.cpp62 static inline sptr<IVpnEventCallback> eventCallback_ = nullptr; member in OHOS::NetManagerStandard::NetworkVpnServiceTest
68 eventCallback_ = new (std::nothrow) VpnEventTestCallback(); in SetUpTestCase()
69 ASSERT_NE(eventCallback_, nullptr); in SetUpTestCase()
166 int32_t ret = instance_->RegisterVpnEvent(eventCallback_);
172 int32_t ret = instance_->UnregisterVpnEvent(eventCallback_);
185 instance_->vpnEventCallbacks_.push_back(eventCallback_);
186 EXPECT_EQ(instance_->SyncRegisterVpnEvent(eventCallback_), NETMANAGER_EXT_ERR_OPERATION_FAILED);
192 EXPECT_EQ(instance_->SyncRegisterVpnEvent(eventCallback_), NETMANAGER_EXT_SUCCESS);
197 EXPECT_EQ(instance_->SyncUnregisterVpnEvent(eventCallback_), NETMANAGER_EXT_SUCCESS);
199 … EXPECT_EQ(instance_->SyncUnregisterVpnEvent(eventCallback_), NETMANAGER_EXT_ERR_OPERATION_FAILED);
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/
H A Dvpn_monitor.cpp164 if (eventCallback_ != nullptr) { in Register()
165 NetworkVpnClient::GetInstance().UnregisterVpnEvent(eventCallback_); in Register()
167 eventCallback_ = new (std::nothrow) VpnEventCallback(); in Register()
168 if (nullptr == eventCallback_) { in Register()
172 NetworkVpnClient::GetInstance().RegisterVpnEvent(eventCallback_); in Register()
182 NetworkVpnClient::GetInstance().UnregisterVpnEvent(eventCallback_); in Unregister()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/src/
H A Dvpn_monitor_ext.cpp162 if (eventCallback_ != nullptr) { in Register()
163 vpnClient->UnregisterVpnEvent(eventCallback_); in Register()
165 eventCallback_ = new (std::nothrow) VpnEventCallback(); in Register()
166 if (nullptr == eventCallback_) { in Register()
170 vpnClient->RegisterVpnEvent(eventCallback_); in Register()
181 vpnClient->UnregisterVpnEvent(eventCallback_); in Unregister()
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/adapter/src/
H A Dhdi_connection.cpp38 sptr<ISensorCallback> eventCallback_ = nullptr; variable
56 eventCallback_ = new (std::nothrow) SensorEventCallback(); in ConnectHdi()
57 if (eventCallback_ == nullptr) { in ConnectHdi()
182 int32_t ret = sensorInterface_->Register(1, eventCallback_); in RegisteDataReport()
199 int32_t ret = sensorInterface_->Unregister(1, eventCallback_); in DestroyHdiConnection()
204 eventCallback_ = nullptr; in DestroyHdiConnection()
294 eventCallback_ = nullptr; in ProcessDeathObserver()
306 ret = sensorInterface_->Register(0, eventCallback_); in reconnect()
/ohos5.0/foundation/communication/netmanager_ext/test/networksharemanager/unittest/networkshare_manager_test/
H A Dnetworkshare_service_test.cpp58 static inline sptr<ISharingEventCallback> eventCallback_ = nullptr; member in OHOS::NetManagerStandard::NetworkShareServiceTest
64 eventCallback_ = new (std::nothrow) SharingEventTestCallback(); in SetUpTestCase()
65 ASSERT_NE(eventCallback_, nullptr); in SetUpTestCase()
147 auto ret = instance_->RegisterSharingEvent(eventCallback_);
154 auto ret = instance_->RegisterSharingEvent(eventCallback_);
160 auto ret = instance_->UnregisterSharingEvent(eventCallback_);
167 auto ret = instance_->UnregisterSharingEvent(eventCallback_);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/
H A Drs_event_detector_test.cpp110 EXPECT_TRUE(rsTimeOutDetector->eventCallback_ == nullptr);
111 rsTimeOutDetector->eventCallback_ = [](const RSSysEventMsg& eventMsg) {}; in __anonadda610d0102()
113 EXPECT_TRUE(rsTimeOutDetector->eventCallback_ != nullptr);
/ohos5.0/base/web/webview/ohos_adapter/date_time_format_adapter/src/
H A Ddate_time_format_adapter_impl.cpp39 : EventFwk::CommonEventSubscriber(in), eventCallback_(cb) in NWebTimeZoneEventSubscriber()
51 if (eventCallback_ == nullptr) { in OnReceiveEvent()
54 eventCallback_->TimezoneChanged(timezoneinfo); in OnReceiveEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/
H A Dscene_viewer_touch_handler.h37 eventCallback_ = eventCallback; in SetEventCallback()
49 SceneViewerEventCallback eventCallback_;
H A Dscene_viewer_touch_handler.cpp22 if (eventCallback_) { in HandleEvent()
23 eventCallback_(CreateSceneTouchEvent(event)); in HandleEvent()
/ohos5.0/base/web/webview/ohos_adapter/enterprise_device_management_adapter/include/
H A Denterprise_device_management_adapter_impl.h39 std::shared_ptr<EdmPolicyChangedEventCallbackAdapter> eventCallback_;
75 std::shared_ptr<EdmPolicyChangedEventCallbackAdapter> eventCallback_ = nullptr; variable
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_event_detector.cpp90 if (eventCallback_ != nullptr) { in EventReport()
91 eventCallback_(eventMsg); in EventReport()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/common/
H A Drs_event_detector.h68 eventCallback_ = callback; in AddEventReportCallback()
94 EventReportCallback eventCallback_; variable
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audioclient/micclient/include/
H A Ddmic_client.h52 : devId_(devId), dhId_(dhId), eventCallback_(callback) {}; in DMicClient()
89 std::weak_ptr<IAudioEventCallback> eventCallback_; variable
/ohos5.0/foundation/ability/ability_runtime/services/common/src/
H A Devent_handler_wrap.cpp39 if (eventCallback_) { in ProcessEvent()
40 eventCallback_(event); in ProcessEvent()
/ohos5.0/base/web/webview/ohos_adapter/battery_mgr_adapter/src/
H A Dbattery_mgr_client_adapter_impl.cpp45 : EventFwk::CommonEventSubscriber(in), eventCallback_(cb) in NWebBatteryEventSubscriber()
70 eventCallback_->BatteryInfoChanged(batterinfo); in OnReceiveEvent()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/account/src/
H A Daccount_delegate_impl.cpp49 eventCallback_(accountEventInfo); in OnReceiveEvent()
54 eventCallback_ = callback; in SetEventCallback()
H A Daccount_delegate_impl.h40 EventCallback eventCallback_ {};
/ohos5.0/foundation/ability/ability_runtime/services/common/include/
H A Devent_handler_wrap.h126 eventCallback_ = eventCallback; in SetEventCallback()
130 std::function<void(const EventWrap&)> eventCallback_; variable
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audioclient/spkclient/include/
H A Ddspeaker_client.h57 : devId_(devId), dhId_(dhId), eventCallback_(callback) {}; in DSpeakerClient()
112 std::weak_ptr<IAudioEventCallback> eventCallback_; variable
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/hls/
H A Dplaylist_downloader.cpp88 if (isNeedReportError && eventCallback_ != nullptr) { in DoOpen()
90 eventCallback_->OnEvent({PluginEventType::CLIENT_ERROR, in DoOpen()
317 eventCallback_ = cb; in SetCallback()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/
H A Davrcp_ct_state_machine.cpp426 …AvctConnectParam param = {info->eventCallback_, info->msgCallback_, AVRC_CT_AV_REMOTE_CONTROL, inf… in Entry()
432 info->eventCallback_(connectId, AVCT_CONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
565 … info->eventCallback_(info->connectId_, AVCT_DISCONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
693 … info->eventCallback_(info->connectId_, AVCT_DISCONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
737 … info->eventCallback_(info->connectId_, AVCT_BR_CONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
841 … info->eventCallback_(info->connectId_, AVCT_BR_DISCONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/
H A Davrcp_tg_state_machine.cpp368 AvctConnectParam param = {info->eventCallback_, info->msgCallback_, AVRC_TG_AV_REMOTE_CONTROL, in Entry()
374 info->eventCallback_(connectId, AVCT_CONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
551 … info->eventCallback_(info->connectId_, AVCT_DISCONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
657 … info->eventCallback_(info->connectId_, AVCT_DISCONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
704 … info->eventCallback_(info->connectId_, AVCT_BR_CONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
814 … info->eventCallback_(info->connectId_, AVCT_BR_DISCONNECT_CFM_EVT, AVCT_FAILED, &btAddr, nullptr); in Entry()
/ohos5.0/base/web/webview/ohos_adapter/net_proxy_adapter/src/
H A Dnet_proxy_adapter_impl.cpp189 : EventFwk::CommonEventSubscriber(in), eventCallback_(cb) in NetProxyEventSubscriber()
348 if (!eventCallback_) { in OnReceiveEvent()
353 eventCallback_->Changed(host, port, "", exclusionList); in OnReceiveEvent()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/include/
H A Dvpn_monitor.h53 sptr<VpnEventCallback> eventCallback_ = nullptr;

12