Home
last modified time | relevance | path

Searched refs:eventCb (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/foundation/deviceprofile/device_info_manager/old/interfaces/innerkits/core/src/
H A Ddistributed_device_profile_client.cpp176 const std::shared_ptr<IProfileEventCallback>& eventCb) in SubscribeProfileEvent() argument
185 const std::shared_ptr<IProfileEventCallback>& eventCb, in SubscribeProfileEvents() argument
188 if (subscribeInfos.empty() || eventCb == nullptr) { in SubscribeProfileEvents()
203 auto iter = subscribeRecords_.find(eventCb); in SubscribeProfileEvents()
208 new ProfileEventNotifierStub(eventCb)); in SubscribeProfileEvents()
224 iter = subscribeRecords_.find(eventCb); in SubscribeProfileEvents()
236 const std::shared_ptr<IProfileEventCallback>& eventCb) in UnsubscribeProfileEvent() argument
245 const std::shared_ptr<IProfileEventCallback>& eventCb, in UnsubscribeProfileEvents() argument
248 if (profileEvents.empty() || eventCb == nullptr) { in UnsubscribeProfileEvents()
257 auto iter = subscribeRecords_.find(eventCb); in UnsubscribeProfileEvents()
[all …]
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/
H A Devent_subscribe_test.cpp120 int32_t MockSubscribeEvents(const std::shared_ptr<ProfileEventCallback>& eventCb, in MockSubscribeEvents() argument
123 if (eventCb == nullptr) { in MockSubscribeEvents()
126 eventCb->SetSubServiceIds(serviceIds); in MockSubscribeEvents()
143 subscribeInfos, eventCb, failedEvents); in MockSubscribeEvents()
146 int32_t MockUnsubscribeEvents(const std::shared_ptr<ProfileEventCallback>& eventCb) in MockUnsubscribeEvents() argument
148 if (eventCb == nullptr) { in MockUnsubscribeEvents()
156 profileEvents, eventCb, failedEvents); in MockUnsubscribeEvents()
159 int32_t MockSubscribeEvent(const std::shared_ptr<ProfileEventCallback>& eventCb, in MockSubscribeEvent() argument
162 if (eventCb == nullptr) { in MockSubscribeEvent()
165 eventCb->SetSubServiceIds(serviceIds); in MockSubscribeEvent()
[all …]
H A Dprofile_crud_test.cpp287 if (eventCb == nullptr) {
329 if (eventCb == nullptr) {
357 if (subscribeInfos.empty() || eventCb == nullptr) {
361 eventCb, failedEvents);
383 eventCb, failedEvents);
457 eventCb, failedEvents);
555 if (profileEvents.empty() || eventCb == nullptr) {
559 eventCb, failedEvents);
581 eventCb, failedEvents);
641 eventCb, failedEvents);
[all …]
H A Dprofile_proxy_test.cpp74 IProfileEventCallback eventCb; variable
75 eventCb.OnSyncCompleted(syncResults);
121 IProfileEventCallback eventCb; variable
122 eventCb.OnProfileChanged(changeNotification);
/ohos5.0/base/powermgr/battery_manager/test/unittest/src/
H A Dbattery_callback_test.cpp58 …BatteryCallback::BatteryEventCallback eventCb = std::bind(&HandleBatteryCallbackEvent, std::placeh… variable
59 EXPECT_EQ(BatteryCallback::RegisterBatteryEvent(eventCb), HDF_SUCCESS);
72 BatteryCallback::BatteryEventCallback eventCb = nullptr; variable
73 EXPECT_EQ(BatteryCallback::RegisterBatteryEvent(eventCb), HDF_SUCCESS);
/ohos5.0/foundation/deviceprofile/device_info_manager/old/interfaces/innerkits/core/include/
H A Ddistributed_device_profile_client.h48 const std::shared_ptr<IProfileEventCallback>& eventCb);
50 const std::shared_ptr<IProfileEventCallback>& eventCb);
52 const std::shared_ptr<IProfileEventCallback>& eventCb,
55 const std::shared_ptr<IProfileEventCallback>& eventCb,
/ohos5.0/base/powermgr/thermal_manager/services/native/src/
H A Dfan_callback.cpp31 int32_t FanCallback::RegisterFanEvent(const FanEventCallback &eventCb) in RegisterFanEvent() argument
33 eventCb_ = eventCb; in RegisterFanEvent()
H A Dthermal_callback.cpp31 int32_t ThermalCallback::RegisterThermalEvent(const ThermalEventCallback &eventCb) in RegisterThermalEvent() argument
33 eventCb_ = eventCb; in RegisterThermalEvent()
H A Dthermal_service.cpp521 ThermalCallback::ThermalEventCallback eventCb = in RegisterThermalHdiCallback() local
523 ThermalCallback::RegisterThermalEvent(eventCb); in RegisterThermalHdiCallback()
582 FanCallback::FanEventCallback eventCb = in RegisterFanHdiCallback() local
584 FanCallback::RegisterFanEvent(eventCb); in RegisterFanHdiCallback()
/ohos5.0/base/powermgr/battery_manager/services/native/src/
H A Dbattery_callback.cpp33 int32_t BatteryCallback::RegisterBatteryEvent(const BatteryEventCallback& eventCb) in RegisterBatteryEvent() argument
35 eventCb_ = eventCb; in RegisterBatteryEvent()
H A Dbattery_service.cpp150 BatteryCallback::BatteryEventCallback eventCb = in RegisterBatteryHdiCallback() local
152 BatteryCallback::RegisterBatteryEvent(eventCb); in RegisterBatteryHdiCallback()
/ohos5.0/drivers/peripheral/input/hal/src/
H A Dinput_reporter.c74 if (pos->eventCb == NULL) { in EventListenerCallback()
78 … pos->eventCb->EventPkgCallback((const InputEventPackage **)pkgs, count, pos->payload.devIndex); in EventListenerCallback()
126 pos->eventCb = callback; in RegisterReportCallback()
156 if (pos->eventCb != NULL) { in UnregisterReportCallback()
164 pos->eventCb = NULL; in UnregisterReportCallback()
H A Dinput_manager.c431 pos->eventCb = NULL; in ReleaseInputInterface()
/ohos5.0/drivers/peripheral/thermal/test/unittest/
H A Dhdf_thermal_hdi_test.cpp42 static int32_t RegisterThermalEvent(const ThermalEventCallback &eventCb) in RegisterThermalEvent() argument
44 (void)eventCb; in RegisterThermalEvent()
58 static int32_t RegisterFanEvent(const FanEventCallback &eventCb) in RegisterFanEvent() argument
60 (void)eventCb; in RegisterFanEvent()
/ohos5.0/base/powermgr/thermal_manager/services/native/include/
H A Dfan_callback.h30 static int32_t RegisterFanEvent(const FanEventCallback &eventCb);
H A Dthermal_callback.h30 static int32_t RegisterThermalEvent(const ThermalEventCallback &eventCb);
/ohos5.0/base/powermgr/battery_manager/services/native/include/
H A Dbattery_callback.h31 static int32_t RegisterBatteryEvent(const BatteryEventCallback& eventCb);
/ohos5.0/drivers/peripheral/input/hal/include/
H A Dinput_common.h55 … InputEventCb *eventCb; /* evtCallback {@link InputEventCb} for reporting data */ member
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/
H A Djs_rss_session.cpp40 OnRssEventCb eventCb = nullptr; member
62 callBackContext->eventCb(callBackContext->env, in ThreadSafeCallBack()
76 callBackContext->eventCb = eventCb_; in OnReceiveEvent()
/ohos5.0/drivers/peripheral/input/hdi_service/
H A Dinput_interfaces_impl.cpp34 InputEventCb eventCb; variable
160 eventCb.EventPkgCallback = InputEventDataCallback; in Init()
467 ret = inputInterface_->iInputReporter->RegisterReportCallback(devIndex, &eventCb); in RegisterReportCallback()
/ohos5.0/foundation/deviceprofile/device_info_manager/
H A DREADME_zh.md156 | eventCb | IProfileEventCallback | 是 | 订阅事件回调 |
H A DREADME.md152 | eventCb | IProfileEventCallback | Yes | Callback used to return the subscription e…
/ohos5.0/docs/zh-cn/readme/
H A DDeviceProfile子系统.md156 | eventCb | IProfileEventCallback | 是 | 订阅事件回调 |
/ohos5.0/docs/en/readme/
H A DDeviceProfile.md150 | eventCb | IProfileEventCallback | Yes | Callback for the subscribed event. …