Home
last modified time | relevance | path

Searched refs:innerEventId (Results 1 – 16 of 16) sorted by relevance

/base/notification/eventhandler/interfaces/inner_api/
Devent_handler.h138 inline bool SendEvent(uint32_t innerEventId, int64_t param, int64_t delayTime) in SendEvent() argument
140 return SendEvent(InnerEvent::Get(innerEventId, param), delayTime); in SendEvent()
151 …inline bool SendEvent(uint32_t innerEventId, int64_t delayTime = 0, Priority priority = Priority::…
153 return SendEvent(InnerEvent::Get(innerEventId, 0), delayTime, priority);
163 inline bool SendEvent(uint32_t innerEventId, Priority priority) in SendEvent() argument
165 return SendEvent(InnerEvent::Get(innerEventId, 0), 0, priority); in SendEvent()
177 …inline bool SendEvent(uint32_t innerEventId, const std::shared_ptr<T> &object, int64_t delayTime =…
179 return SendEvent(InnerEvent::Get(innerEventId, object), delayTime);
191 …inline bool SendEvent(uint32_t innerEventId, const std::weak_ptr<T> &object, int64_t delayTime = 0)
193 return SendEvent(InnerEvent::Get(innerEventId, object), delayTime);
[all …]
Dinner_event.h65 static Pointer Get(uint32_t innerEventId, int64_t param = 0);
76 …static inline Pointer Get(uint32_t innerEventId, const std::shared_ptr<T> &object, int64_t param =…
78 auto event = Get(innerEventId, param);
92 …static inline Pointer Get(uint32_t innerEventId, const std::weak_ptr<T> &object, int64_t param = 0)
94 auto event = Get(innerEventId, param);
108 …static inline Pointer Get(uint32_t innerEventId, std::unique_ptr<T, D> &&object, int64_t param = 0)
110 auto event = Get(innerEventId, param);
124 … static inline Pointer Get(uint32_t innerEventId, std::unique_ptr<T, D> &object, int64_t param = 0)
126 auto event = Get(innerEventId, param);
140 … static inline Pointer Get(uint32_t innerEventId, int64_t param, const std::shared_ptr<T> &object) in Get() argument
[all …]
Devent_queue.h102 void Remove(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId);
111 void Remove(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId, int64_t param);
215 bool HasInnerEvent(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId);
/base/telephony/state_registry/frameworks/js/napi/include/
Devent_listener_manager.h32 …inline static bool SendEvent(uint32_t innerEventId, std::unique_ptr<T, D> &object, int64_t delayTi…
39 return handler->SendEvent(innerEventId, object, delayTime);
42 inline static bool SendEvent(uint32_t innerEventId) in SendEvent() argument
49 return handler->SendEvent(innerEventId); in SendEvent()
/base/notification/eventhandler/test/fuzztest/eventqueueannex_fuzzer/
Deventqueueannex_fuzzer.cpp56 uint32_t innerEventId = *data; in DoSomethingInterestingWithMyAPI() local
58 eventQueue.HasInnerEvent(myHandler, innerEventId); in DoSomethingInterestingWithMyAPI()
60 eventQueue.Remove(myHandler, innerEventId); in DoSomethingInterestingWithMyAPI()
61 eventQueue.Remove(myHandler, innerEventId, param); in DoSomethingInterestingWithMyAPI()
65 eventQueue.AddFileDescriptorListener(fileDescriptor, innerEventId, fileDescriptorListener); in DoSomethingInterestingWithMyAPI()
/base/notification/eventhandler/test/fuzztest/innerevent_fuzzer/
Dinnerevent_fuzzer.cpp26 uint32_t innerEventId = *data; in DoSomethingInterestingWithMyAPI() local
27 auto event = AppExecFwk::InnerEvent::Get(innerEventId); in DoSomethingInterestingWithMyAPI()
31 event->Get(innerEventId, param); in DoSomethingInterestingWithMyAPI()
/base/notification/eventhandler/test/fuzztest/eventhandler_fuzzer/
Deventhandler_fuzzer.cpp72 uint32_t innerEventId = *data; in DoSomethingInterestingWithMyAPI() local
88 eventHandler.RemoveEvent(innerEventId, taskTime); in DoSomethingInterestingWithMyAPI()
89 eventHandler.RemoveEvent(innerEventId); in DoSomethingInterestingWithMyAPI()
93 eventHandler.AddFileDescriptorListener(fileDescriptor, innerEventId, fileDescriptorListener); in DoSomethingInterestingWithMyAPI()
98 return eventHandler.HasInnerEvent(innerEventId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_event_handler.cpp54 void EventHandler::RemoveEvent(uint32_t innerEventId) in RemoveEvent() argument
57 void EventHandler::RemoveEvent(uint32_t innerEventId, int64_t param) in RemoveEvent() argument
84 bool EventHandler::HasInnerEvent(uint32_t innerEventId) in HasInnerEvent() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
Dmock_event_handler.cpp54 void EventHandler::RemoveEvent(uint32_t innerEventId) in RemoveEvent() argument
57 void EventHandler::RemoveEvent(uint32_t innerEventId, int64_t param) in RemoveEvent() argument
84 bool EventHandler::HasInnerEvent(uint32_t innerEventId) in HasInnerEvent() argument
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dmock_event_handler.cpp54 void EventHandler::RemoveEvent(uint32_t innerEventId) in RemoveEvent() argument
57 void EventHandler::RemoveEvent(uint32_t innerEventId, int64_t param) in RemoveEvent() argument
84 bool EventHandler::HasInnerEvent(uint32_t innerEventId) in HasInnerEvent() argument
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_event_handler.cpp54 void EventHandler::RemoveEvent(uint32_t innerEventId) in RemoveEvent() argument
57 void EventHandler::RemoveEvent(uint32_t innerEventId, int64_t param) in RemoveEvent() argument
84 bool EventHandler::HasInnerEvent(uint32_t innerEventId) in HasInnerEvent() argument
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
Dlib_event_handler_trace_test.cpp125 uint32_t innerEventId = 0; in TraceFlagTest() local
126 auto event = InnerEvent::Get(innerEventId, flagParam); in TraceFlagTest()
478 uint32_t innerEventId = 0; variable
479 auto event = InnerEvent::Get(innerEventId);
521 uint32_t innerEventId = 0; variable
522 auto event = InnerEvent::Get(innerEventId);
571 uint32_t innerEventId = 0; variable
572 auto event = InnerEvent::Get(innerEventId);
/base/notification/eventhandler/frameworks/eventhandler/src/
Devent_handler.cpp149 void EventHandler::RemoveEvent(uint32_t innerEventId) in RemoveEvent() argument
156 eventRunner_->GetEventQueue()->Remove(shared_from_this(), innerEventId); in RemoveEvent()
159 void EventHandler::RemoveEvent(uint32_t innerEventId, int64_t param) in RemoveEvent() argument
166 eventRunner_->GetEventQueue()->Remove(shared_from_this(), innerEventId, param); in RemoveEvent()
360 bool EventHandler::HasInnerEvent(uint32_t innerEventId) in HasInnerEvent() argument
366 return eventRunner_->GetEventQueue()->HasInnerEvent(shared_from_this(), innerEventId); in HasInnerEvent()
Devent_queue.cpp184 void EventQueue::Remove(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId) in Remove() argument
191 auto filter = [&owner, innerEventId](const InnerEvent::Pointer &p) { in Remove()
192 … return (!p->HasTask()) && (p->GetOwner() == owner) && (p->GetInnerEventId() == innerEventId); in Remove()
198 void EventQueue::Remove(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId, int64_t … in Remove() argument
205 auto filter = [&owner, innerEventId, param](const InnerEvent::Pointer &p) { in Remove()
206 … return (!p->HasTask()) && (p->GetOwner() == owner) && (p->GetInnerEventId() == innerEventId) && in Remove()
239 bool EventQueue::HasInnerEvent(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId) in HasInnerEvent() argument
245 auto filter = [&owner, innerEventId](const InnerEvent::Pointer &p) { in HasInnerEvent()
246 … return (!p->HasTask()) && (p->GetOwner() == owner) && (p->GetInnerEventId() == innerEventId); in HasInnerEvent()
Dinner_event.cpp168 InnerEvent::Pointer InnerEvent::Get(uint32_t innerEventId, int64_t param) in Get() argument
172 event->innerEventId_ = innerEventId; in Get()
/base/notification/eventhandler/test/systemtest/ems_event_handler_system_test/
Dems_event_handler_test.cpp249 uint32_t innerEventId = 0; in ProcessEventTest() local
250 auto event = InnerEvent::Get(innerEventId, flagParam); in ProcessEventTest()