Home
last modified time | relevance | path

Searched refs:delay (Results 1 – 25 of 33) sorted by relevance

12

/base/hiviewdfx/hicollie/frameworks/native/
Dwatchdog.cpp41 void Watchdog::RunOneShotTask(const std::string& name, Task&& task, uint64_t delay) in RunOneShotTask() argument
43 return WatchdogInner::GetInstance().RunOneShotTask(name, std::move(task), delay); in RunOneShotTask()
46 …atchdog::RunPeriodicalTask(const std::string& name, Task&& task, uint64_t interval, uint64_t delay) in RunPeriodicalTask() argument
48 return WatchdogInner::GetInstance().RunPeriodicalTask(name, std::move(task), interval, delay); in RunPeriodicalTask()
Dwatchdog_inner.h43 void RunOneShotTask(const std::string& name, Task&& task, uint64_t delay);
44 void RunPeriodicalTask(const std::string& name, Task&& task, uint64_t interval, uint64_t delay);
Dwatchdog_inner.cpp115 void WatchdogInner::RunOneShotTask(const std::string& name, Task&& task, uint64_t delay) in RunOneShotTask() argument
127 InsertWatchdogTaskLocked(name, WatchdogTask(name, std::move(task), delay, 0, true)); in RunOneShotTask()
171 …ogInner::RunPeriodicalTask(const std::string& name, Task&& task, uint64_t interval, uint64_t delay) in RunPeriodicalTask() argument
184 InsertWatchdogTaskLocked(name, WatchdogTask(name, std::move(task), delay, interval, false)); in RunPeriodicalTask()
Dwatchdog_task.h35 WatchdogTask(std::string name, Task&& task, uint64_t delay, uint64_t interval, bool isOneshot);
Dwatchdog_task.cpp46 WatchdogTask::WatchdogTask(std::string name, Task&& task, uint64_t delay, uint64_t interval, bool … in WatchdogTask() argument
52 nextTickTime = GetCurrentTickMillseconds() + delay; in WatchdogTask()
/base/hiviewdfx/hiview/base/
Dplugin.cpp86 void Plugin::DelayProcessEvent(std::shared_ptr<Event> event, uint64_t delay) in DelayProcessEvent() argument
92 UpdateTimeByDelay(delay); in DelayProcessEvent()
95 workLoop_->AddTimerEvent(nullptr, nullptr, task, delay, false); in DelayProcessEvent()
154 void Plugin::UpdateTimeByDelay(time_t delay) in UpdateTimeByDelay() argument
156 lastActiveTime_ = time(nullptr) + delay; in UpdateTimeByDelay()
/base/hiviewdfx/hiview/plugins/event_store/store/
Dsys_event_db_mgr.cpp46 int delay = TimeUtil::SECONDS_PER_HOUR; // 1 hour in StartCheckStoreTask() local
47 looper->AddTimerEvent(nullptr, nullptr, statusTask, delay, true); in StartCheckStoreTask()
/base/usb/usb_manager/test/native/js_unittest/
DCheckEmptyUtils.js64 sleep(delay) {
65 for (var t = Date.now(); Date.now() - t <= delay;);
/base/hiviewdfx/hicollie/interfaces/native/innerkits/include/xcollie/
Dwatchdog.h64 void RunOneShotTask(const std::string& name, Task&& task, uint64_t delay = 0);
75 …void RunPeriodicalTask(const std::string& name, Task&& task, uint64_t interval, uint64_t delay = 0…
/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_sources.h41 SuspendSource(SuspendDeviceType reason, uint32_t action, uint32_t delay) in SuspendSource() argument
45 delayMs_ = delay; in SuspendSource()
Dsuspend_controller.cpp218 void SuspendController::ControlListener(SuspendDeviceType reason, uint32_t action, uint32_t delay) in ControlListener() argument
238 pid, uid, reason, action, delay); in ControlListener()
250 StartSleepTimer(reason, action, delay); in ControlListener()
254 void SuspendController::StartSleepTimer(SuspendDeviceType reason, uint32_t action, uint32_t delay) in StartSleepTimer() argument
256 const int64_t& tmpRef = delay; in StartSleepTimer()
266 sleepDuration_ = delay; in StartSleepTimer()
267 if (delay == 0) { in StartSleepTimer()
273 g_sleepTimeoutHandle = FFRTUtils::SubmitDelayTask(task, delay, g_queue); in StartSleepTimer()
Dsuspend_controller.h67 void ControlListener(SuspendDeviceType reason, uint32_t action, uint32_t delay);
68 void StartSleepTimer(SuspendDeviceType reason, uint32_t action, uint32_t delay);
/base/powermgr/thermal_manager/services/native/src/thermal_action/
Dthermal_timer.cpp133 void ThermalTimerUtils::StartOnce(int delay, NotifyTask &task) in StartOnce() argument
135 std::thread([delay, task]() { in StartOnce()
136 std::this_thread::sleep_for(std::chrono::milliseconds(delay)); in StartOnce()
/base/powermgr/thermal_manager/services/native/src/thermal_action/action/
Daction_shutdown.cpp138 uint32_t delay = 50000; in DelayShutdown() local
143 g_shutdownTaskHandle = FFRTUtils::SubmitDelayTask(shutdownTask, delay, g_queue); in DelayShutdown()
144 THERMAL_HILOGI(COMP_SVC, "shutdown device after %{public}u ms", delay); in DelayShutdown()
/base/sensors/miscdevice/services/miscdevice_service/custom_vibrate_decode/src/
Dcustom_vibration_matcher.cpp69 primitiveEffect.delay = preDuration; in TransformEffect()
98 primitiveEffect.delay = event.startTime - preStartTime; in ProcessContinuousEvent()
126 primitiveEffect.delay = event.startTime - preStartTime; in ProcessTransientEvent()
/base/hiviewdfx/hiview/base/event_pool/test/unittest/common/
Devent_pool_test.cpp303 auto task = [&](int name, uint64_t delay, uint64_t start, uint8_t priority) { in __anon1c9882800502() argument
307 std::to_string(delay).c_str(), priority, std::to_string(time - start).c_str()); in __anon1c9882800502()
308 ASSERT_LE(delay, time - start); in __anon1c9882800502()
317 uint64_t delay = randU(randEngine) + 100; // [100, 10100) ms的延迟 variable
324 …eventThreadPool->AddTask(std::bind(task, i * 10 + j, delay, start, priority), "EPT5_a", delay, pri…
/base/msdp/device_status/services/timer_manager/src/
Dtimer_manager.cpp235 int64_t delay = MIN_DELAY; in CalcNextDelayInternal() local
240 delay = 0; in CalcNextDelayInternal()
242 delay = item->nextCallTime - nowTime; in CalcNextDelayInternal()
245 return delay; in CalcNextDelayInternal()
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adapter/src/
Dcompatible_connection.cpp86 duration_ += hdfCompositeEffect.compositeEffects[i].timeEffect.delay; in EnableCompositeEffect()
88 duration_ += hdfCompositeEffect.compositeEffects[i].primitiveEffect.delay; in EnableCompositeEffect()
/base/hiviewdfx/hiview/base/event_pool/
Devent_thread_pool.cpp59 void EventThreadPool::AddTask(Task task, const std::string &name, uint64_t delay, uint8_t priority) in AddTask() argument
62 uint64_t targetTime = TimeUtil::GetMilliseconds() + delay; in AddTask()
Devent_thread_pool.h76 uint64_t delay = 0, uint8_t priority = Priority::IDLE_PRIORITY);
/base/powermgr/thermal_manager/services/native/include/thermal_action/
Dthermal_timer.h77 void StartOnce(int delay, NotifyTask &task);
/base/hiviewdfx/hiview/base/include/
Dplugin.h105 void DelayProcessEvent(std::shared_ptr<Event> event, uint64_t delay);
113 void UpdateTimeByDelay(time_t delay);
275 virtual void RequestUnloadBundle(const std::string& bundleName, uint64_t delay = 0) {};
/base/powermgr/power_manager/utils/ffrt/src/
Dffrt_utils.cpp46 return queue.submit_h(task, ffrt::task_attr().delay(us.count())); in SubmitDelayTask()
/base/notification/common_event_service/services/src/
Dability_manager_helper.cpp118 ffrt_->submit(task, ffrt::task_attr().delay(DISCONNECT_DELAY_TIME * 1000)); in DisconnectServiceAbilityDelay()
/base/theme/screenlock_mgr/services/src/
Dscreenlock_system_ability.cpp123 queue_->submit(callback, ffrt::task_attr().delay(INIT_INTERVAL)); in OnStart()
151 queue_->submit(callback, ffrt::task_attr().delay(DELAY_TIME)); in RegisterDisplayPowerEventListener()

12