/base/msdp/device_status/utils/common/include/ |
D | msg_handler.h | 38 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/ |
D | system_event_observer.cpp | 27 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/ |
D | panel_listener_impl.cpp | 44 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()
|
D | panel_listener_impl.h | 43 … ConcurrentMap<uint32_t, ConcurrentMap<std::string, std::shared_ptr<JSCallbackObject>>> callbacks_; variable
|
/base/msdp/device_status/services/interaction/coordination/src/ |
D | device_profile_adapter.cpp | 43 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/ |
D | locator_required_data_manager.cpp | 65 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/ |
D | power_mode_module.cpp | 135 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/ |
D | devicestatus_msdp_mock.cpp | 53 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/ |
D | stream_server.cpp | 329 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/ |
D | hdi_service_impl.cpp | 54 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/ |
D | battery_thread.cpp | 105 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/ |
D | system_event_observer.h | 49 ISystemEvent callbacks_; variable
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
D | soft_bus_channel.cpp | 44 : 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/ |
D | hdi_service_impl.h | 44 static std::vector<RecordSensorCallback> callbacks_; variable
|
/base/powermgr/battery_manager/charger/include/ |
D | battery_thread.h | 59 std::map<int32_t, Callback> callbacks_; variable
|
/base/msdp/device_status/services/interaction/coordination/include/ |
D | device_profile_adapter.h | 53 std::map<std::string, DeviceProfileAdapter::DPCallback> callbacks_; variable
|
/base/powermgr/power_manager/services/native/include/ |
D | power_mode_module.h | 56 std::set<sptr<IRemoteObject>> callbacks_; variable
|
/base/msdp/device_status/libs/include/ |
D | devicestatus_msdp_mock.h | 68 std::map<int32_t, Callback> callbacks_; variable
|
/base/msdp/device_status/services/native/include/ |
D | stream_server.h | 80 std::map<int32_t, std::function<void(SessionPtr)>> callbacks_; variable
|
/base/location/services/location_locator/locator/include/ |
D | locator_required_data_manager.h | 186 std::vector<sptr<ILocatingRequiredDataCallback>> callbacks_; variable
|
/base/security/access_token/services/tokensyncmanager/include/remote/ |
D | soft_bus_channel.h | 297 std::map<std::string, std::function<void(std::string)>> callbacks_; variable
|