Home
last modified time | relevance | path

Searched refs:handlers_ (Results 1 – 25 of 31) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/
H A Devent_impl.h83 EventImpl(const EventImpl& e) : handlers_(e.handlers_), name_(e.name_) {} in EventImpl()
100 handlers_.clear(); in META_NO_MOVE()
114 for (auto it = handlers_.begin(); it != handlers_.end(); it++) { in AddHandler()
134 for (auto it = handlers_.begin(); it != handlers_.end(); it++) { in RemoveHandler()
137 handlers_.erase(it); in RemoveHandler()
150 handlers.reserve(handlers_.size()); in GetHandlers()
151 for (auto&& p : handlers_) { in GetHandlers()
160 return !handlers_.empty(); in HasHandlers()
192 if (!handlers_.empty()) { in Invoke()
196 for (auto&& p : handlers_) { in Invoke()
[all …]
/ohos5.0/foundation/multimodalinput/input/service/subscriber/src/
H A Dkey_gesture_manager.cpp102 for (auto iter = handlers_.begin(); iter != handlers_.end(); ++iter) { in RemoveHandler()
105 handlers_.erase(iter); in RemoveHandler()
121 for (auto &handler : handlers_) { in ResetTimers()
138 … return std::any_of(handlers_.cbegin(), handlers_.cend(), [&foregroundApps](const auto &handler) { in HaveForegroundHandler()
148 for (auto &handler : handlers_) { in TriggerHandlers()
157 for (auto &handler : handlers_) { in RunHandler()
171 for (auto &handler : handlers_) { in NotifyHandlers()
212 if (auto iter = handlers_.begin(); iter != handlers_.end()) { in Dump()
226 for (auto &handler : handlers_) { in RunPendingHandlers()
266 if (handlers_.empty()) { in Intercept()
[all …]
/ohos5.0/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/adaptor/
H A Djs_watcher.cpp218 for (EventHandler *i = handlers_; i != nullptr; i = handlers_) { in Clear()
219 handlers_ = i->next; in Clear()
229 for (EventHandler *i = handlers_; i != nullptr;) { in Del()
242 handlers_ = delData->next; in Del()
253 return handlers_ == nullptr; in Del()
263 if (handlers_ == nullptr) { in Add()
264 handlers_ = new (std::nothrow) EventHandler(); in Add()
265 if (handlers_ == nullptr) { in Add()
269 handlers_->next = nullptr; in Add()
276 temp->next = handlers_; in Add()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dtextureinfo_impl.cpp68 META_NS::PropertyChangedEventHandler handlers_[6]; member in __anon3650867d0110::TextureInfoImpl
92 handlers_[0].Subscribe(Image(), MakeCallback<IOnChanged>(this, &TextureInfoImpl::ImageChanged)); in Build()
93handlers_[1].Subscribe(Sampler(), MakeCallback<IOnChanged>(this, &TextureInfoImpl::SamplerChanged)… in Build()
94handlers_[2].Subscribe(Factor(), MakeCallback<IOnChanged>(this, &TextureInfoImpl::FactorChanged));… in Build()
96handlers_[3].Subscribe(Translation(), MakeCallback<IOnChanged>(this, &TextureInfoImpl::Translation… in Build()
97handlers_[4].Subscribe(Rotation(), MakeCallback<IOnChanged>(this, &TextureInfoImpl::RotationChange… in Build()
98handlers_[5].Subscribe(Scale(), MakeCallback<IOnChanged>(this, &TextureInfoImpl::ScaleChanged)); /… in Build()
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dobject_hierarchy_observer.cpp49 handlers_.emplace_back(trans->OnAdding(), [this](const ChildChangedInfo& info, bool&) { in SubscribeContainer()
52handlers_.emplace_back(trans->OnRemoving(), [this](const ChildChangedInfo& info, bool&) { in SubscribeContainer()
58 handlers_.emplace_back(container->OnAdded(), [this](const ChildChangedInfo& info) { in SubscribeContainer()
61 handlers_.emplace_back(container->OnRemoved(), [this](const ChildChangedInfo& info) { in SubscribeContainer()
64 handlers_.emplace_back(container->OnMoved(), [this](const ChildMovedInfo& info) { in SubscribeContainer()
75handlers_.emplace_back(trans->OnAdding(), [this](const ChildChangedInfo& info, bool&) { in SubscribeAttachment()
83 handlers_.emplace_back(container->OnAdded(), [this](const ChildChangedInfo& info) { in SubscribeAttachment()
86 handlers_.emplace_back(container->OnRemoved(), [this](const ChildChangedInfo& info) { in SubscribeAttachment()
89 handlers_.emplace_back(container->OnMoved(), [this](const ChildMovedInfo& info) { in SubscribeAttachment()
106 handlers_.emplace_back( in Subscribe()
[all …]
/ohos5.0/foundation/multimodalinput/input/service/subscriber/test/
H A Dkey_gesture_manager_test.cpp459 myKeyGesture->handlers_.push_back(handler1);
460 myKeyGesture->handlers_.push_back(handler2);
461 myKeyGesture->handlers_.push_back(handler3);
487 myKeyGesture->handlers_.push_back(handler1);
488 myKeyGesture->handlers_.push_back(handler2);
489 myKeyGesture->handlers_.push_back(handler3);
528 myKeyGesture->handlers_.push_back(handler1);
529 myKeyGesture->handlers_.push_back(handler2);
530 myKeyGesture->handlers_.push_back(handler3);
581 myKeyGesture->handlers_.push_back(handler1);
[all …]
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/eventcenter/
H A Devent_center.cpp110 auto handler = handlers_.find(evt->GetEventId()); in operator --()
111 if (handler != handlers_.end()) { in operator --()
146 if (handlers_.find(evtId) != handlers_.end()) { in AddHandler()
150 handlers_[evtId] = std::move(handler); in AddHandler()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/eventcenter/
H A Devent_center.cpp111 auto handler = handlers_.find(evt->GetEventId()); in operator --()
112 if (handler != handlers_.end()) { in operator --()
147 if (handlers_.find(evtId) != handlers_.end()) { in AddHandler()
151 handlers_[evtId] = std::move(handler); in AddHandler()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/
H A Daging_handler_chain.cpp32 handlers_.clear(); in ~AgingHandlerChain()
42 handlers_.emplace_back(handler); in AddHandler()
68 for (auto handler : handlers_) { in InnerProcess()
/ohos5.0/foundation/multimodalinput/input/common/anco/comm/src/
H A Danco_channel_stub.cpp32 handlers_ = { in AncoChannelStub()
49 auto cbIter = handlers_.find(static_cast<AncoRequestId>(code)); in OnRemoteRequest()
51 if (cbIter == handlers_.end()) { in OnRemoteRequest()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/dump/
H A Ddump_manager.cpp51 handlers_.Compute(infoName, [ptr, &handler](const auto &key, auto &value) { in AddHandler()
59 auto it = handlers_.Find(infoName); in GetHandler()
76 handlers_.ComputeIfPresent(infoName, [ptr](const auto &key, auto &value) { in RemoveHandler()
/ohos5.0/foundation/arkui/napi/sample/native_module_storage/
H A Djs_storage.cpp28 if (handlers_ == nullptr) { in Add()
29 handlers_ = new EventHandler(); in Add()
30 handlers_->next = nullptr; in Add()
33 temp->next = handlers_; in Add()
34 handlers_ = temp; in Add()
36 napi_create_reference(env, handler, 1, &handlers_->callbackRef); in Add()
42 for (EventHandler* i = handlers_; i != nullptr; i = handlers_) { in Del()
49 handlers_ = i->next; in Del()
63 for (EventHandler* i = handlers_; i != nullptr; i = handlers_) { in Clear()
64 handlers_ = i->next; in Clear()
[all …]
H A Djs_storage.h65 EventListener() : type_(nullptr), handlers_(nullptr) {} in EventListener()
76 EventHandler* handlers_; variable
/ohos5.0/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/include/adaptor/
H A Djs_watcher.h34 EventListener() : handlers_(nullptr) in EventListener()
44 return handlers_ == nullptr; in IsEmpty()
54 EventHandler *handlers_; variable
/ohos5.0/foundation/multimodalinput/input/intention/cooperate/plugin/include/
H A Di_cooperate_state.h57 handlers_.emplace(event, handler); in AddHandler()
68 … std::map<CooperateEventType, std::function<void(Context&, const CooperateEvent&)>> handlers_; variable
/ohos5.0/foundation/multimodalinput/input/intention/cooperate/plugin/src/
H A Di_cooperate_state.cpp44 if (auto iter = handlers_.find(event.type); iter != handlers_.end()) { in OnEvent()
/ohos5.0/base/msdp/device_status/intention/cooperate/plugin/include/
H A Di_cooperate_state.h60 handlers_.emplace(event, handler); in AddHandler()
71 … std::map<CooperateEventType, std::function<void(Context&, const CooperateEvent&)>> handlers_; variable
/ohos5.0/base/msdp/device_status/intention/cooperate/plugin/src/
H A Di_cooperate_state.cpp44 if (auto iter = handlers_.find(event.type); iter != handlers_.end()) { in OnEvent()
/ohos5.0/foundation/multimodalinput/input/service/account_manager/src/
H A Daccount_manager.cpp261 handlers_ = { in AccountManager()
358 for (auto &item : handlers_) { in SubscribeCommonEvent()
407 if (auto iter = handlers_.find(action); iter != handlers_.end()) { in OnCommonEvent()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/aging/
H A Daging_handler_chain.h37 std::vector<std::shared_ptr<AgingHandler>> handlers_; variable
/ohos5.0/foundation/multimodalinput/input/common/anco/comm/include/
H A Danco_channel_stub.h43 std::map<AncoRequestId, int32_t (AncoChannelStub::*)(MessageParcel&, MessageParcel&)> handlers_; variable
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/include/eventcenter/
H A Devent_center.h57 std::map<int32_t, std::function<void(const Event &)>> handlers_;
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/dump/
H A Ddump_manager.h62 ConcurrentMap<std::string, std::map<uintptr_t, Handler>> handlers_; variable
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/eventcenter/
H A Devent_center.h58 std::map<int32_t, std::function<void(const Event &)>> handlers_;
/ohos5.0/foundation/multimodalinput/input/service/account_manager/include/
H A Daccount_manager.h103 std::map<std::string, std::function<void(const EventFwk::CommonEventData &)>> handlers_; variable

12