/ohos5.0/base/web/webview/ohos_adapter/enterprise_device_management_adapter/src/ |
H A D | enterprise_device_management_adapter_impl.cpp | 46 : 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 D | networkvpn_service_test.cpp | 62 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 D | vpn_monitor.cpp | 164 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 D | vpn_monitor_ext.cpp | 162 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 D | hdi_connection.cpp | 38 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 D | networkshare_service_test.cpp | 58 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 D | rs_event_detector_test.cpp | 110 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 D | date_time_format_adapter_impl.cpp | 39 : 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 D | scene_viewer_touch_handler.h | 37 eventCallback_ = eventCallback; in SetEventCallback() 49 SceneViewerEventCallback eventCallback_;
|
H A D | scene_viewer_touch_handler.cpp | 22 if (eventCallback_) { in HandleEvent() 23 eventCallback_(CreateSceneTouchEvent(event)); in HandleEvent()
|
/ohos5.0/base/web/webview/ohos_adapter/enterprise_device_management_adapter/include/ |
H A D | enterprise_device_management_adapter_impl.h | 39 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 D | rs_event_detector.cpp | 90 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 D | rs_event_detector.h | 68 eventCallback_ = callback; in AddEventReportCallback() 94 EventReportCallback eventCallback_; variable
|
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audioclient/micclient/include/ |
H A D | dmic_client.h | 52 : 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 D | event_handler_wrap.cpp | 39 if (eventCallback_) { in ProcessEvent() 40 eventCallback_(event); in ProcessEvent()
|
/ohos5.0/base/web/webview/ohos_adapter/battery_mgr_adapter/src/ |
H A D | battery_mgr_client_adapter_impl.cpp | 45 : 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 D | account_delegate_impl.cpp | 49 eventCallback_(accountEventInfo); in OnReceiveEvent() 54 eventCallback_ = callback; in SetEventCallback()
|
H A D | account_delegate_impl.h | 40 EventCallback eventCallback_ {};
|
/ohos5.0/foundation/ability/ability_runtime/services/common/include/ |
H A D | event_handler_wrap.h | 126 eventCallback_ = eventCallback; in SetEventCallback() 130 std::function<void(const EventWrap&)> eventCallback_; variable
|
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audioclient/spkclient/include/ |
H A D | dspeaker_client.h | 57 : 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 D | playlist_downloader.cpp | 88 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 D | avrcp_ct_state_machine.cpp | 426 …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 D | avrcp_tg_state_machine.cpp | 368 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 D | net_proxy_adapter_impl.cpp | 189 : 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 D | vpn_monitor.h | 53 sptr<VpnEventCallback> eventCallback_ = nullptr;
|