/base/hiviewdfx/hicollie/frameworks/native/ |
D | watchdog.cpp | 41 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()
|
D | watchdog_inner.h | 43 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);
|
D | watchdog_inner.cpp | 115 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()
|
D | watchdog_task.h | 35 WatchdogTask(std::string name, Task&& task, uint64_t delay, uint64_t interval, bool isOneshot);
|
D | watchdog_task.cpp | 46 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/ |
D | plugin.cpp | 86 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/ |
D | sys_event_db_mgr.cpp | 46 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/ |
D | CheckEmptyUtils.js | 64 sleep(delay) { 65 for (var t = Date.now(); Date.now() - t <= delay;);
|
/base/hiviewdfx/hicollie/interfaces/native/innerkits/include/xcollie/ |
D | watchdog.h | 64 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/ |
D | suspend_sources.h | 41 SuspendSource(SuspendDeviceType reason, uint32_t action, uint32_t delay) in SuspendSource() argument 45 delayMs_ = delay; in SuspendSource()
|
D | suspend_controller.cpp | 218 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()
|
D | suspend_controller.h | 67 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/ |
D | thermal_timer.cpp | 133 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/ |
D | action_shutdown.cpp | 138 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/ |
D | custom_vibration_matcher.cpp | 69 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/ |
D | event_pool_test.cpp | 303 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/ |
D | timer_manager.cpp | 235 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/ |
D | compatible_connection.cpp | 86 duration_ += hdfCompositeEffect.compositeEffects[i].timeEffect.delay; in EnableCompositeEffect() 88 duration_ += hdfCompositeEffect.compositeEffects[i].primitiveEffect.delay; in EnableCompositeEffect()
|
/base/hiviewdfx/hiview/base/event_pool/ |
D | event_thread_pool.cpp | 59 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()
|
D | event_thread_pool.h | 76 uint64_t delay = 0, uint8_t priority = Priority::IDLE_PRIORITY);
|
/base/powermgr/thermal_manager/services/native/include/thermal_action/ |
D | thermal_timer.h | 77 void StartOnce(int delay, NotifyTask &task);
|
/base/hiviewdfx/hiview/base/include/ |
D | plugin.h | 105 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/ |
D | ffrt_utils.cpp | 46 return queue.submit_h(task, ffrt::task_attr().delay(us.count())); in SubmitDelayTask()
|
/base/notification/common_event_service/services/src/ |
D | ability_manager_helper.cpp | 118 ffrt_->submit(task, ffrt::task_attr().delay(DISCONNECT_DELAY_TIME * 1000)); in DisconnectServiceAbilityDelay()
|
/base/theme/screenlock_mgr/services/src/ |
D | screenlock_system_ability.cpp | 123 queue_->submit(callback, ffrt::task_attr().delay(INIT_INTERVAL)); in OnStart() 151 queue_->submit(callback, ffrt::task_attr().delay(DELAY_TIME)); in RegisterDisplayPowerEventListener()
|