Home
last modified time | relevance | path

Searched refs:delayTime (Results 1 - 25 of 236) sorted by relevance

12345678910

/foundation/graphic/graphic_2d/rosen/modules/platform/eventhandler/
H A Devent_handler.h89 * @param delayTime Process the event after 'delayTime' milliseconds.
93 bool SendEvent(InnerEvent::Pointer &event, int64_t delayTime = 0, Priority priority = Priority::LOW);
121 * @param delayTime Process the event after 'delayTime' milliseconds.
125 inline bool SendEvent(InnerEvent::Pointer &&event, int64_t delayTime = 0, Priority priority = Priority::LOW) in SendEvent()
127 return SendEvent(event, delayTime, priority); in SendEvent()
135 * @param delayTime Process the event after 'delayTime' milliseconds.
138 inline bool SendEvent(uint32_t innerEventId, int64_t param, int64_t delayTime) in SendEvent() argument
458 PostTask(const Callback &callback, int64_t delayTime, Priority priority = Priority::LOW, Caller caller = {}) PostTask() argument
498 PostHighPriorityTask(const Callback &callback, int64_t delayTime, Caller caller = {}) PostHighPriorityTask() argument
524 PostIdleTask(const Callback &callback, int64_t delayTime, Caller caller = {}) PostIdleTask() argument
[all...]
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_conn_event_handler.cpp25 bool NetConnEventHandler::PostAsyncTask(const Callback &callback, int64_t delayTime) in PostAsyncTask() argument
27 return AppExecFwk::EventHandler::PostTask(callback, delayTime, Priority::HIGH); in PostAsyncTask()
30 bool NetConnEventHandler::PostAsyncTask(const Callback &callback, const std::string& taskName, int64_t delayTime) in PostAsyncTask() argument
32 return AppExecFwk::EventHandler::PostTask(callback, taskName, delayTime, Priority::HIGH); in PostAsyncTask()
/foundation/distributedhardware/distributed_input/services/sink/sinkmanager/src/
H A Ddistributed_input_sink_event_handler.cpp28 bool DistributedInputSinkEventHandler::ProxyPostTask(const Callback &callback, int64_t delayTime) in ProxyPostTask() argument
30 return AppExecFwk::EventHandler::PostTask(callback, delayTime); in ProxyPostTask()
34 const Callback &callback, const std::string &name, int64_t delayTime) in ProxyPostTask()
36 return AppExecFwk::EventHandler::PostTask(callback, name, delayTime); in ProxyPostTask()
33 ProxyPostTask( const Callback &callback, const std::string &name, int64_t delayTime) ProxyPostTask() argument
/foundation/distributedhardware/distributed_input/services/source/sourcemanager/src/
H A Ddistributed_input_source_event_handler.cpp28 bool DistributedInputSourceEventHandler::ProxyPostTask(const Callback &callback, int64_t delayTime) in ProxyPostTask() argument
30 return AppExecFwk::EventHandler::PostTask(callback, delayTime); in ProxyPostTask()
34 const Callback &callback, const std::string &name, int64_t delayTime) in ProxyPostTask()
36 return AppExecFwk::EventHandler::PostTask(callback, name, delayTime); in ProxyPostTask()
33 ProxyPostTask( const Callback &callback, const std::string &name, int64_t delayTime) ProxyPostTask() argument
/foundation/communication/wifi/wifi/utils/src/
H A Dwifi_event_handler.cpp56 bool PostAsyncTask(Callback &callback, int64_t delayTime = 0) in PostAsyncTask()
58 if (delayTime > 0) { in PostAsyncTask()
59 WIFI_LOGE("WifiEventHandlerImpl PostAsyncTask with delayTime Unsupported in lite."); in PostAsyncTask()
70 bool PostAsyncTask(Callback &callback, const std::string &name, int64_t delayTime = 0) in PostAsyncTask()
158 bool PostAsyncTask(Callback &callback, int64_t delayTime = 0) in PostAsyncTask()
165 int64_t delayTimeUs = delayTime * 1000; in PostAsyncTask()
170 bool PostAsyncTask(Callback &callback, const std::string &name, int64_t delayTime = 0) in PostAsyncTask()
177 int64_t delayTimeUs = delayTime * 1000; in PostAsyncTask()
237 bool PostAsyncTask(Callback &callback, int64_t delayTime = 0) in PostAsyncTask()
243 return eventHandler->PostTask(callback, delayTime, AppExecFw in PostAsyncTask()
285 PostAsyncTask(const Callback &callback, int64_t delayTime) PostAsyncTask() argument
294 PostAsyncTask(const Callback &callback, const std::string &name, int64_t delayTime) PostAsyncTask() argument
[all...]
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_base.cpp46 void NetPolicyBase::SendEvent(int32_t eventId, int64_t delayTime) in SendEvent() argument
49 SendEvent(eventId, policyEvent, delayTime); in SendEvent()
52 void NetPolicyBase::SendEvent(int32_t eventId, std::shared_ptr<PolicyEvent> &policyEvent, int64_t delayTime) in SendEvent() argument
56 DelayedSingleton<NetPolicyCore>::GetInstance()->SendEvent(eventId, policyEvent, delayTime); in SendEvent()
/foundation/arkui/ace_engine/frameworks/base/thread/
H A Dtask_executor.h129 * @param delayTime Wait a period of time in milliseconds before execution.
133 bool PostDelayedTask(Task&& task, TaskType type, uint32_t delayTime, const std::string& name, in PostDelayedTask() argument
136 if (delayTime > 0 && type == TaskType::BACKGROUND) { in PostDelayedTask()
139 return OnPostTask(std::move(task), type, delayTime, name, priorityType); in PostDelayedTask()
148 * @param delayTime Wait a period of time in milliseconds before execution.
152 bool PostDelayedTask(const Task& task, TaskType type, uint32_t delayTime, const std::string& name, in PostDelayedTask() argument
155 return PostDelayedTask(Task(task), type, delayTime, name, priorityType); in PostDelayedTask()
258 * @param delayTime Wait a period of time in milliseconds before execution.
262 bool PostDelayedTaskWithoutTraceId(Task&& task, TaskType type, uint32_t delayTime, const std::string& name, in PostDelayedTaskWithoutTraceId() argument
265 if (delayTime > in PostDelayedTaskWithoutTraceId()
385 PostDelayedTask(Task&& task, uint32_t delayTime, const std::string& name) const PostDelayedTask() argument
399 PostDelayedTask(const Task& task, uint32_t delayTime, const std::string& name) const PostDelayedTask() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/
H A Dhgm_task_handle_thread.cpp45 void HgmTaskHandleThread::PostTask(const std::function<void()>& task, int64_t delayTime) in PostTask() argument
48 handler_->PostTask(task, delayTime, AppExecFwk::EventQueue::Priority::IMMEDIATE); in PostTask()
60 void HgmTaskHandleThread::PostEvent(std::string eventId, const std::function<void()>& task, int64_t delayTime) in PostEvent() argument
63 handler_->PostTask(task, eventId, delayTime); in PostEvent()
/foundation/systemabilitymgr/samgr/services/samgr/native/source/
H A Dffrt_handler.cpp67 bool FFRTHandler::PostTask(std::function<void()> func, uint64_t delayTime) in PostTask() argument
69 if (delayTime > std::numeric_limits<uint64_t>::max() / CONVERSION_FACTOR) { in PostTask()
73 task_handle handler = queue_->submit_h(func, task_attr().delay(delayTime * CONVERSION_FACTOR)); in PostTask()
81 bool FFRTHandler::PostTask(std::function<void()> func, const std::string& name, uint64_t delayTime) in PostTask() argument
83 if (delayTime > std::numeric_limits<uint64_t>::max() / CONVERSION_FACTOR) { in PostTask()
88 task_handle handler = queue_->submit_h(func, task_attr().delay(delayTime * CONVERSION_FACTOR)); in PostTask()
/foundation/window/window_manager/window_scene/test/unittest/
H A Dws_ffrt_helper_test.cpp73 uint64_t delayTime = 0; in HWTEST_F() local
76 wsFfrtHelper_->SubmitTask(mockTask, taskName, delayTime, qos); in HWTEST_F()
99 uint64_t delayTime = 0; in HWTEST_F()
101 g_wsFfrtHelper->SubmitTask(mockTask, taskName, delayTime, qos); in HWTEST_F()
122 uint64_t delayTime = 0; in HWTEST_F() local
125 wsFfrtHelper_->SubmitTask(mockTask, taskName, delayTime, qos); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/common/
H A Danr_thread.cpp40 bool AnrThread::PostTaskToTaskRunner(Task&& task, uint32_t delayTime, const std::string& name) in PostTaskToTaskRunner() argument
46 if (delayTime > 0) { in PostTaskToTaskRunner()
47 g_anrThread->PostDelayedTask(std::move(task), delayTime, name); in PostTaskToTaskRunner() local
H A Dtask_executor_impl.cpp83 uint32_t delayTime, const std::string& name, PriorityType priorityType) const in PostTaskToTaskRunner()
88 if (delayTime > 0) { in PostTaskToTaskRunner()
89 taskRunner->PostDelayedTask(std::move(task), delayTime, name, priorityType); in PostTaskToTaskRunner() local
173 Task&& task, TaskType type, uint32_t delayTime, const std::string& name, PriorityType priorityType) const in OnPostTask()
194 return PostTaskToTaskRunner(platformRunner_, std::move(wrappedTask), delayTime, name); in OnPostTask()
196 return PostTaskToTaskRunner(uiRunner_, std::move(wrappedTask), delayTime, name, priorityType); in OnPostTask()
198 return PostTaskToTaskRunner(ioRunner_, std::move(wrappedTask), delayTime, name); in OnPostTask()
200 return PostTaskToTaskRunner(gpuRunner_, std::move(wrappedTask), delayTime, name); in OnPostTask()
202 return PostTaskToTaskRunner(jsRunner_, std::move(wrappedTask), delayTime, name); in OnPostTask()
350 Task&& task, TaskType type, uint32_t delayTime, cons in OnPostTaskWithoutTraceId()
82 PostTaskToTaskRunner(const RefPtr<TaskRunnerAdapter>& taskRunner, TaskExecutor::Task&& task, uint32_t delayTime, const std::string& name, PriorityType priorityType) const PostTaskToTaskRunner() argument
172 OnPostTask( Task&& task, TaskType type, uint32_t delayTime, const std::string& name, PriorityType priorityType) const OnPostTask() argument
349 OnPostTaskWithoutTraceId( Task&& task, TaskType type, uint32_t delayTime, const std::string& name, PriorityType priorityType) const OnPostTaskWithoutTraceId() argument
[all...]
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Danr_thread.cpp30 bool AnrThread::PostTaskToTaskRunner(Task&& task, uint32_t delayTime, const std::string& name) in PostTaskToTaskRunner() argument
33 if (delayTime > 0) { in PostTaskToTaskRunner()
35 name, std::move(task), delayTime * SECOND_TO_MILLISECOND); in PostTaskToTaskRunner()
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_thread.cpp76 bool PostAsyncTask(Callback &callback, int64_t delayTime = 0) in PostAsyncTask()
83 int64_t delayTimeUs = delayTime * 1000; in PostAsyncTask()
88 bool PostAsyncTask(Callback &callback, const std::string &name, int64_t delayTime = 0) in PostAsyncTask()
95 int64_t delayTimeUs = delayTime * 1000; in PostAsyncTask()
149 bool PostAsyncTask(Callback &callback, int64_t delayTime = 0) in PostAsyncTask()
151 if (delayTime > 0) { in PostAsyncTask()
152 DHCP_LOGE("DhcpThreadImpl PostAsyncTask with delayTime Unsupported in lite."); in PostAsyncTask()
163 bool PostAsyncTask(Callback &callback, const std::string &name, int64_t delayTime = 0) in PostAsyncTask()
217 bool DhcpThread::PostAsyncTask(const Callback &callback, int64_t delayTime) in PostAsyncTask() argument
223 return ptr_->PostAsyncTask(const_cast<Callback &>(callback), delayTime); in PostAsyncTask()
226 PostAsyncTask(const Callback &callback, const std::string &name, int64_t delayTime) PostAsyncTask() argument
[all...]
/foundation/window/window_manager/window_scene/intention_event/framework/anr_handler/src/
H A Danr_handler.cpp83 int64_t delayTime = std::min(timeoutTime - MARK_PROCESS_DELAY_TIME_BIAS_US, MAX_MARK_PROCESS_DELAY_TIME_US); in HandleEventConsumed()
84 SendEvent(eventId, delayTime / TIME_TRANSITION); in HandleEventConsumed()
108 bool ANRHandler::PostTask(Task &&task, const std::string& name, int64_t delayTime) in PostTask() argument
119 if (!eventHandler_->PostTask(std::move(task), "wms:" + name, delayTime, in PostTask()
168 void ANRHandler::SendEvent(int32_t eventId, int64_t delayTime) in SendEvent() argument
176 eventHandler_->PostHighPriorityTask(task, "MarkProcessed", delayTime)) { in SendEvent()
177 WLOGFD("Post eventId:%{public}d, delayTime:%{public}" PRId64 " successfully", eventId, delayTime); in SendEvent()
179 WLOGFE("Post eventId:%{public}d, delayTime:%{public}" PRId64 " failed", eventId, delayTime); in SendEvent()
[all...]
/foundation/window/window_manager/window_scene/common/src/
H A Dtask_scheduler.cpp39 void TaskScheduler::PostAsyncTask(Task&& task, const std::string& name, int64_t delayTime) in PostAsyncTask() argument
41 if (delayTime == 0 && handler_->GetEventRunner()->IsCurrentRunnerThread()) { in PostAsyncTask()
53 handler_->PostTask(std::move(localTask), "wms:" + name, delayTime, AppExecFwk::EventQueue::Priority::IMMEDIATE); in PostAsyncTask() local
73 void TaskScheduler::PostTask(Task&& task, const std::string& name, int64_t delayTime) in PostTask() argument
87 handler_->PostTask(std::move(localTask), "wms:" + name, delayTime, AppExecFwk::EventQueue::Priority::IMMEDIATE); in PostTask() local
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/
H A Dbundle_active_group_handler.cpp69 const std::shared_ptr<BundleActiveGroupHandlerObject>& handlerobj, const int64_t& delayTime) in SendCheckBundleMsg()
75 std::string msgKey = GetMsgKey(eventId, handlerobj, delayTime); in SendCheckBundleMsg()
79 int64_t ffrtDelayTime = BundleActiveUtil::GetFFRTDelayTime(delayTime); in SendCheckBundleMsg()
109 const std::shared_ptr<BundleActiveGroupHandlerObject>& handlerobj, const int64_t& delayTime) in GetMsgKey()
117 std::to_string(tmpHandlerobj.uid_) + "_" + tmpHandlerobj.bundleName_ + "_" + std::to_string(delayTime); in GetMsgKey()
121 const std::shared_ptr<BundleActiveGroupHandlerObject>& handlerobj, const int64_t& delayTime) in SendEvent()
128 int64_t ffrtDelayTime = BundleActiveUtil::GetFFRTDelayTime(delayTime); in SendEvent()
68 SendCheckBundleMsg(const int32_t& eventId, const std::shared_ptr<BundleActiveGroupHandlerObject>& handlerobj, const int64_t& delayTime) SendCheckBundleMsg() argument
108 GetMsgKey(const int32_t& eventId, const std::shared_ptr<BundleActiveGroupHandlerObject>& handlerobj, const int64_t& delayTime) GetMsgKey() argument
120 SendEvent(const int32_t& eventId, const std::shared_ptr<BundleActiveGroupHandlerObject>& handlerobj, const int64_t& delayTime) SendEvent() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/
H A Dimage_utils.cpp37 void ImageUtils::PostDelayedTask(std::function<void()>&& task, TaskExecutor::TaskType taskType, uint32_t delayTime, in PostDelayedTask() argument
51 taskType, delayTime, std::string(taskTypeName), priorityType); in PostDelayedTask()
54 void ImageUtils::PostDelayedTaskToUI(std::function<void()>&& task, uint32_t delayTime, const std::string& name, in PostDelayedTaskToUI() argument
59 ImageUtils::PostDelayedTask(std::move(task), TaskExecutor::TaskType::UI, delayTime, name.c_str(), priorityType); in PostDelayedTaskToUI() local
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_texture_mapper.h160 * @param delayTime Indicates the delay time to set.
164 void SetDelayTime(uint16_t delayTime) in SetDelayTime() argument
166 animator_.SetTime(animator_.GetTime() - delayTime_ + delayTime); in SetDelayTime()
167 delayTime_ = delayTime; in SetDelayTime()
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/include/
H A Dbundle_active_group_handler.h51 const int64_t& delayTime = 0);
53 const int64_t& delayTime = 0);
55 const int64_t& delayTime);
/foundation/arkui/ace_engine/frameworks/core/components/text_clock/
H A Drosen_render_text_clock.cpp38 // unit of [delayTime] is msec, unit of [tv_usec] is usec in RequestRenderForNextSecond()
42 int32_t delayTime = (INTERVAL_OF_USECOND - timeUsec) / MICROSECONDS_OF_MILLISECOND + 1; // millisecond in RequestRenderForNextSecond() local
64 TaskExecutor::TaskType::UI, delayTime, "ArkUITextClockRequestRender"); in RequestRenderForNextSecond()
/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/
H A Dicollect_plugin.cpp42 void ICollectPlugin::PostDelayTask(std::function<void()> callback, int32_t delayTime) in PostDelayTask() argument
45 report_->PostDelayTask(callback, delayTime); in PostDelayTask()
/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnet_policy_base.h52 * @param delayTime The delay time, if need the message send delay
54 void SendEvent(int32_t eventId, int64_t delayTime = 0);
61 * @param delayTime The delay time, if need the message send delay
63 void SendEvent(int32_t eventId, std::shared_ptr<PolicyEvent> &policyEvent, int64_t delayTime = 0);
/foundation/communication/netmanager_base/services/netpolicymanager/src/common/
H A Dnet_policy_event_handler.cpp37 void NetPolicyEventHandler::SendEvent(const AppExecFwk::InnerEvent::Pointer &event, int64_t delayTime) in SendEvent() argument
42 ffrt::task_attr().delay(static_cast<uint64_t>(delayTime)).name("FfrtSendEvent")); in SendEvent()
/foundation/communication/netmanager_base/services/netconnmanager/include/
H A Dnet_conn_event_handler.h30 bool PostAsyncTask(const Callback &callback, int64_t delayTime = 0);
31 bool PostAsyncTask(const Callback &callback, const std::string& taskName, int64_t delayTime = 0);

Completed in 9 milliseconds

12345678910