Home
last modified time | relevance | path

Searched refs:delayTime (Results 1 – 25 of 34) sorted by relevance

12

/base/notification/eventhandler/frameworks/test/moduletest/
Devent_handler_send_timing_event_module_test.cpp46 int64_t delayTime = 1; in WaitTaskCalled() local
48 if (handler->PostTimingTask(f, nowTime + delayTime)) { in WaitTaskCalled()
80 int64_t delayTime = 10; in SendEventWithSmartPtr() local
83 handler->SendTimingEvent(RUN_EVENT_ID, sharedPtr, nowTime + delayTime); in SendEventWithSmartPtr()
87 handler->SendTimingEvent(RUN_EVENT_ID, weakPtr, nowTime + delayTime); in SendEventWithSmartPtr()
91 handler->SendTimingEvent(RUN_EVENT_ID, uniquePtr, nowTime + delayTime); in SendEventWithSmartPtr()
96 … RUN_EVENT_ID, std::unique_ptr<int, void (*)(int *)>((new int(1)), f), nowTime + delayTime); in SendEventWithSmartPtr()
102 handler->SendTimingEvent(STOP_EVENT_ID, delayTime + delayTime + nowTime); in SendEventWithSmartPtr()
150 int64_t delayTime = 2; variable
154 bool result = handler->SendTimingEvent(nullPtr, nowTime + delayTime, EventQueue::Priority::LOW);
[all …]
Devent_handler_post_task_module_test.cpp60 int64_t delayTime = 1; variable
66 bool postResult = handler->PostTask(f, taskName, delayTime, EventQueue::Priority::LOW);
69 handler->SendEvent(STOP_EVENT_ID, param, delayTime + 1);
87 int64_t delayTime = 0; variable
92 bool postResult = handler->PostTask(f, delayTime, EventQueue::Priority::HIGH);
137 int64_t delayTime = 0; variable
143 bool postResult = handler->PostHighPriorityTask(f, taskName, delayTime);
163 int64_t delayTime = 0; variable
168 bool postResult = handler->PostHighPriorityTask(f, delayTime);
188 int64_t delayTime = 0; variable
[all …]
Devent_handler_send_event_module_test.cpp29 void SendAndCheck(int64_t delayTime, EventQueue::Priority priority) in SendAndCheck() argument
34 bool lValueResult = handler->SendEvent(event, delayTime, priority); in SendAndCheck()
37 bool rValueResult = handler->SendEvent(InnerEvent::Get(RUN_EVENT_ID), delayTime, priority); in SendAndCheck()
40 handler->SendEvent(STOP_EVENT_ID, 0, delayTime + 1); in SendAndCheck()
58 int64_t delayTime = 0; in SendEventWithPriority() local
61 lvalueSendResult = handler->SendHighPriorityEvent(event, delayTime); in SendEventWithPriority()
63 …handler->SendHighPriorityEvent(InnerEvent::Get(RUN_EVENT_ID, std::make_unique<int>(1)), delayTime); in SendEventWithPriority()
92 int64_t delayTime = 0; in SendEventWithPriorityByEventId() local
95 sendResult = handler->SendEvent(RUN_EVENT_ID, param, delayTime); in SendEventWithPriorityByEventId()
98 sendResult = handler->SendHighPriorityEvent(RUN_EVENT_ID, param, delayTime); in SendEventWithPriorityByEventId()
[all …]
Devent_handler_fd_listener_module_test.cpp97 int64_t delayTime = 50; in OnWritable() local
98 handler->PostTask(f, delayTime); in OnWritable()
152 int64_t delayTime = 100; variable
154 handler->SendEvent(STOP_EVENT_ID, param, delayTime);
276 int64_t delayTime = 100; variable
278 handler->SendEvent(STOP_EVENT_ID, param, delayTime);
308 int64_t delayTime = 100; variable
310 handler->SendEvent(STOP_EVENT_ID, param, delayTime);
338 int64_t delayTime = 100; variable
340 handler->SendEvent(STOP_EVENT_ID, param, delayTime);
[all …]
Devent_handler_press_module_test.cpp101 int64_t delayTime = 10; in OnWritable() local
106 handler->PostTask(f, delayTime * (i + 1)); in OnWritable()
218 int64_t delayTime = 20000; variable
220 handler->SendEvent(STOP_EVENT_ID, param, delayTime);
Devent_handler_set_get_remove_module_test.cpp270 int64_t delayTime = 0; variable
278 handler->PostTask(f, delayTime, EventQueue::Priority::HIGH);
279 delayTime++;
289 handler->SendEvent(STOP_EVENT_ID, param, delayTime + offsetTime);
/base/notification/eventhandler/interfaces/inner_api/
Devent_handler.h93 …bool SendEvent(InnerEvent::Pointer &event, int64_t delayTime = 0, Priority priority = Priority::LO…
125 …inline bool SendEvent(InnerEvent::Pointer &&event, int64_t delayTime = 0, Priority priority = Prio…
127 return SendEvent(event, delayTime, priority);
138 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);
177 …line bool SendEvent(uint32_t innerEventId, const std::shared_ptr<T> &object, int64_t delayTime = 0)
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)
[all …]
/base/msdp/device_status/services/interaction/coordination/src/
Dcoordination_event_handler.cpp30 bool CoordinationEventHandler::ProxyPostTask(const Callback &callback, int64_t delayTime) in ProxyPostTask() argument
33 return AppExecFwk::EventHandler::PostTask(callback, delayTime); in ProxyPostTask()
37 int64_t delayTime) in ProxyPostTask() argument
40 return AppExecFwk::EventHandler::PostTask(callback, name, delayTime); in ProxyPostTask()
/base/security/access_token/services/tokensyncmanager/src/service/
Dtoken_sync_event_handler.cpp35 bool TokenSyncEventHandler::ProxyPostTask(const Callback &callback, int64_t delayTime) in ProxyPostTask() argument
38 return AppExecFwk::EventHandler::PostTask(callback, delayTime); in ProxyPostTask()
42 const Callback &callback, const std::string &name, int64_t delayTime) in ProxyPostTask() argument
45 return AppExecFwk::EventHandler::PostTask(callback, name, delayTime); in ProxyPostTask()
/base/security/security_component_manager/services/security_component_service/sa/sa_main/
Dsec_event_handler.cpp29 const Callback &callback, const std::string &name, int64_t delayTime) in ProxyPostTask() argument
31 return AppExecFwk::EventHandler::PostTask(callback, name, delayTime); in ProxyPostTask()
Dsec_event_handler.h30 …PostTask(const Callback &callback, const std::string &name = std::string(), int64_t delayTime = 0);
/base/msdp/device_status/services/interaction/coordination/include/
Dcoordination_event_handler.h31 bool ProxyPostTask(const Callback &callback, int64_t delayTime);
32 …PostTask(const Callback &callback, const std::string &name = std::string(), int64_t delayTime = 0);
/base/security/access_token/services/tokensyncmanager/include/service/
Dtoken_sync_event_handler.h32 bool ProxyPostTask(const Callback &callback, int64_t delayTime);
34 …PostTask(const Callback &callback, const std::string &name = std::string(), int64_t delayTime = 0);
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dfreeze_detector_plugin.cpp187 long delayTime = 0; in OnEventListeningCallback() local
191 delayTime = std::max(delayTime, window); in OnEventListeningCallback()
193 if (delayTime == 0) { in OnEventListeningCallback()
194 delayTime = 10; // delay: 10s in OnEventListeningCallback()
198 threadLoop_->AddTimerEvent(nullptr, nullptr, task, delayTime, false); in OnEventListeningCallback()
/base/telephony/state_registry/frameworks/js/napi/include/
Devent_listener_manager.h32 … static bool SendEvent(uint32_t innerEventId, std::unique_ptr<T, D> &object, int64_t delayTime = 0)
39 return handler->SendEvent(innerEventId, object, delayTime);
/base/notification/eventhandler/frameworks/eventhandler/src/
Devent_handler.cpp54 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument
70 if (delayTime > 0) { in SendEvent()
71 event->SetHandleTime(now + std::chrono::milliseconds(delayTime)); in SendEvent()
93 int64_t delayTime = taskTime - nowSysTime; in SendTimingEvent() local
94 if (delayTime < 0) { in SendTimingEvent()
99 return SendEvent(event, delayTime, priority); in SendTimingEvent()
/base/powermgr/thermal_manager/services/native/src/thermal_action/
Dthermal_timer.cpp79 int delayTime = 6000; in StartTimer() local
81 std::this_thread::sleep_for(std::chrono::milliseconds(delayTime)); in StartTimer()
/base/sensors/medical_sensor/frameworks/native/medical_sensor/src/
Dmedical_data_channel.cpp106 int64_t delayTime = 100; in InnerSensorDataChannel() local
108 bool sendEventResult = eventHandler_->SendEvent(STOP_EVENT_ID, param, delayTime); in InnerSensorDataChannel()
/base/notification/eventhandler/
DREADME_zh.md11 …ventHandler接收与处理的消息对象。EventHandler待处理的InnerEvent的优先级可在IMMEDIATE、HIGH、LOW、IDLE中选择,并设置合适的delayTime。 |
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dmock_event_handler.cpp32 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_event_handler.cpp32 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
Dmock_event_handler.cpp32 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_event_handler.cpp32 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
Dlib_event_handler_event_queue_test.cpp115 static void DelayTest(uint8_t delayTime) in DelayTest() argument
121 if (delayTime > 0) { in DelayTest()
130 auto handleTime = now + std::chrono::milliseconds(static_cast<int64_t>(delayTime)); in DelayTest()
723 const uint8_t delayTime = 100; variable
728 DelayTest(delayTime);
738 const uint8_t delayTime = 0; variable
743 DelayTest(delayTime);
837 int64_t delayTime = 5; variable
851 handler->SendEvent(event, delayTime, EventQueue::Priority::LOW);
/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.h48 void HandleEvent(int64_t delayTime);

12