Home
last modified time | relevance | path

Searched refs:callbacks_ (Results 1 – 21 of 21) sorted by relevance

/base/msdp/device_status/utils/common/include/
Dmsg_handler.h38 callbacks_.clear(); in Clear()
48 for (auto &it : callbacks_) { in GetDebugInfo()
61 auto it = callbacks_.find(msg.id); in RegisterEvent()
62 if (it != callbacks_.end()) { in RegisterEvent()
65 callbacks_[msg.id] = msg.fun; in RegisterEvent()
73 auto it = callbacks_.find(id); in GetMsgCallback()
74 if (it == callbacks_.end()) { in GetMsgCallback()
81 std::map<K, V> callbacks_;
/base/notification/distributed_notification_service/services/ans/src/
Dsystem_event_observer.cpp27 SystemEventObserver::SystemEventObserver(const ISystemEvent &callbacks) : callbacks_(callbacks) in SystemEventObserver()
70 if (callbacks_.onBundleRemoved != nullptr) { in OnReceiveEvent()
73 callbacks_.onBundleRemoved(bundleOption); in OnReceiveEvent()
78 if (callbacks_.onScreenOn != nullptr) { in OnReceiveEvent()
79 callbacks_.onScreenOn(); in OnReceiveEvent()
82 if (callbacks_.onScreenOff != nullptr) { in OnReceiveEvent()
83 callbacks_.onScreenOff(); in OnReceiveEvent()
94 if (callbacks_.onResourceRemove != nullptr) { in OnReceiveEvent()
95 callbacks_.onResourceRemove(userId); in OnReceiveEvent()
98 if (callbacks_.onBundleDataCleared != nullptr) { in OnReceiveEvent()
[all …]
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
Dpanel_listener_impl.cpp44 auto result = callbacks_.Find(windowId); in SaveInfo()
49 callbacks_.Insert(windowId, cbs); in SaveInfo()
58 callbacks_.InsertOrAssign(windowId, result.second); in SaveInfo()
64 auto result = callbacks_.Find(windowId); in RemoveInfo()
68 callbacks_.Erase(windowId); in RemoveInfo()
82 auto result = callbacks_.Find(windowId); in OnPanelStatus()
Dpanel_listener_impl.h43 … ConcurrentMap<uint32_t, ConcurrentMap<std::string, std::shared_ptr<JSCallbackObject>>> callbacks_; variable
/base/msdp/device_status/services/interaction/coordination/src/
Ddevice_profile_adapter.cpp43 callbacks_.clear(); in ~DeviceProfileAdapter()
125 auto callbackIter = callbacks_.find(deviceId); in RegisterCrossingStateListener()
126 if (callbackIter != callbacks_.end()) { in RegisterCrossingStateListener()
131 callbacks_[deviceId] = callback; in RegisterCrossingStateListener()
157 auto callbackIter = callbacks_.find(deviceId); in UnregisterCrossingStateListener()
158 if (callbackIter == callbacks_.end()) { in UnregisterCrossingStateListener()
162 callbacks_.erase(callbackIter); in UnregisterCrossingStateListener()
194 auto it = callbacks_.find(deviceId); in OnProfileChanged()
195 if (it == callbacks_.end()) { in OnProfileChanged()
203 callbacks_.erase(it); in OnProfileChanged()
/base/location/services/location_locator/locator/source/
Dlocator_required_data_manager.cpp65 callbacks_.push_back(dataCallback); in RegisterCallback()
67 …OR, "after RegisterCallback, callback size:%{public}s", std::to_string(callbacks_.size()).c_str()); in RegisterCallback()
82 callbacks_.push_back(dataCallback); in RegisterCallback()
85 std::to_string(callbacks_.size()).c_str()); in RegisterCallback()
107 for (; i < callbacks_.size(); i++) { in UnregisterCallback()
108 sptr<IRemoteObject> remoteObject = callbacks_[i]->AsObject(); in UnregisterCallback()
113 if (callbacks_.size() > 0) { in UnregisterCallback()
114 callbacks_.erase(callbacks_.begin() + i); in UnregisterCallback()
116 … "after UnregisterCallback, callback size:%{public}s", std::to_string(callbacks_.size()).c_str()); in UnregisterCallback()
242 for (size_t i = 0; i < callbacks_.size(); i++) { in ReportData()
[all …]
/base/powermgr/power_manager/services/native/src/
Dpower_mode_module.cpp135 auto retIt = callbacks_.insert(object); in AddCallback()
140 callbacks_.size(), retIt.second); in AddCallback()
148 auto it = find(callbacks_.begin(), callbacks_.end(), object); in RemoveCallback()
149 if (it != callbacks_.end()) { in RemoveCallback()
150 callbacks_.erase(it); in RemoveCallback()
153 POWER_HILOGD(FEATURE_POWER_MODE, "callbacks.size = %{public}zu", callbacks_.size()); in RemoveCallback()
167 for (auto& obj: callbacks_) { in WaitingCallback()
/base/msdp/device_status/libs/src/
Ddevicestatus_msdp_mock.cpp53 callbacks_.clear(); in ~DeviceStatusMsdpMock()
131 … auto [_, ret] = callbacks_.insert(std::make_pair(timerFd_, &DeviceStatusMsdpMock::TimerCallback)); in InitTimer()
228 if (callbacks_.empty()) { in LoopingThreadEntry()
232 size_t cbct = callbacks_.size(); in LoopingThreadEntry()
244 (callbacks_.find(events[n].data.fd)->second)(func); in LoopingThreadEntry()
/base/msdp/device_status/services/native/src/
Dstream_server.cpp329 auto it = callbacks_.find(pid); in AddSessionDeletedCallback()
330 if (it != callbacks_.end()) { in AddSessionDeletedCallback()
334 callbacks_[pid] = callback; in AddSessionDeletedCallback()
340 auto it = callbacks_.find(ses->GetPid()); in NotifySessionDeleted()
341 if (it != callbacks_.end()) { in NotifySessionDeleted()
343 callbacks_.erase(it); in NotifySessionDeleted()
/base/sensors/sensor/services/sensor/hdi_connection/hardware/src/
Dhdi_service_impl.cpp54 std::vector<RecordSensorCallback> HdiServiceImpl::callbacks_; member in OHOS::Sensors::HdiServiceImpl
71 for (const auto &it : callbacks_) { in DataReportThread()
163 callbacks_.push_back(cb); in Register()
/base/powermgr/battery_manager/charger/src/
Dbattery_thread.cpp105 callbacks_.insert(std::make_pair(ueventFd_, &BatteryThread::UeventCallback)); in InitUevent()
174 size_t size = callbacks_.size(); in LoopingThreadEntry()
198 (callbacks_.find(events[n].data.fd)->second)(func, arg); in LoopingThreadEntry()
/base/notification/distributed_notification_service/services/ans/include/
Dsystem_event_observer.h49 ISystemEvent callbacks_; variable
/base/security/access_token/services/tokensyncmanager/src/remote/
Dsoft_bus_channel.cpp44 : deviceId_(deviceId), mutex_(), callbacks_(), responseResult_(""), loadedCond_() in SoftBusChannel()
144 callbacks_.insert(std::pair<std::string, std::function<void(std::string)>>(uuid, callback)); in InsertCallback()
181 callbacks_.erase(uuid); in ExecuteCommand()
189 callbacks_.erase(uuid); in ExecuteCommand()
416 auto callback = callbacks_.find(id); in HandleResponse()
417 if (callback != callbacks_.end()) { in HandleResponse()
419 callbacks_.erase(callback); in HandleResponse()
/base/sensors/sensor/services/sensor/hdi_connection/hardware/include/
Dhdi_service_impl.h44 static std::vector<RecordSensorCallback> callbacks_; variable
/base/powermgr/battery_manager/charger/include/
Dbattery_thread.h59 std::map<int32_t, Callback> callbacks_; variable
/base/msdp/device_status/services/interaction/coordination/include/
Ddevice_profile_adapter.h53 std::map<std::string, DeviceProfileAdapter::DPCallback> callbacks_; variable
/base/powermgr/power_manager/services/native/include/
Dpower_mode_module.h56 std::set<sptr<IRemoteObject>> callbacks_; variable
/base/msdp/device_status/libs/include/
Ddevicestatus_msdp_mock.h68 std::map<int32_t, Callback> callbacks_; variable
/base/msdp/device_status/services/native/include/
Dstream_server.h80 std::map<int32_t, std::function<void(SessionPtr)>> callbacks_; variable
/base/location/services/location_locator/locator/include/
Dlocator_required_data_manager.h186 std::vector<sptr<ILocatingRequiredDataCallback>> callbacks_; variable
/base/security/access_token/services/tokensyncmanager/include/remote/
Dsoft_bus_channel.h297 std::map<std::string, std::function<void(std::string)>> callbacks_; variable