Home
last modified time | relevance | path

Searched refs:interval (Results 1 - 25 of 114) sorted by relevance

12345

/base/startup/init/watchdog/
H A Dinit_watchdog.c59 int GetWatcherDogCfg(int interval, int timeoutGet, int fd) in GetWatcherDogCfg() argument
75 if (preTimeoutGet > 0 && preTimeoutGet < interval) { in GetWatcherDogCfg()
76 interval = preTimeoutGet / PRETIMEOUT_DIV; in GetWatcherDogCfg()
78 return interval; in GetWatcherDogCfg()
92 int interval = 0; in main() local
94 interval = atoi(argv[1]); in main()
95 if (interval < 0 || interval > INT16_MAX) { in main()
96 interval = DEFAULT_INTERVAL; in main()
99 interval in main()
[all...]
/base/security/device_security_level/baselib/utils/src/
H A Dutils_timer.c21 TimerHandle DslmUtilsStartPeriodicTimerTask(uint32_t interval, TimerProc callback, const void *context) in DslmUtilsStartPeriodicTimerTask() argument
24 StartTimerTask(TRUE, interval, callback, context, &handle); in DslmUtilsStartPeriodicTimerTask()
28 TimerHandle DslmUtilsStartOnceTimerTask(uint32_t interval, TimerProc callback, const void *context) in DslmUtilsStartOnceTimerTask() argument
31 StartTimerTask(FALSE, interval, callback, context, &handle); in DslmUtilsStartOnceTimerTask()
H A Dutils_timer.cpp55 TimerHandle DslmUtilsStartPeriodicTimerTask(uint32_t interval, TimerProc callback, const void *context) in DslmUtilsStartPeriodicTimerTask() argument
58 uint32_t timerId = st.Register([callback, context]() { DoTimerProcess(callback, context); }, interval, false); in DslmUtilsStartPeriodicTimerTask()
62 TimerHandle DslmUtilsStartOnceTimerTask(uint32_t interval, TimerProc callback, const void *context) in DslmUtilsStartOnceTimerTask() argument
65 uint32_t timerId = st.Register([callback, context]() { DoTimerProcess(callback, context); }, interval, true); in DslmUtilsStartOnceTimerTask()
/base/hiviewdfx/hicollie/frameworks/native/
H A Dwatchdog.cpp31 TimeOutCallback timeOutCallback, uint64_t interval) in AddThread()
33 return WatchdogInner::GetInstance().AddThread(name, handler, timeOutCallback, interval); in AddThread()
36 int Watchdog::AddThread(const std::string &name, std::shared_ptr<AppExecFwk::EventHandler> handler, uint64_t interval) in AddThread() argument
38 return WatchdogInner::GetInstance().AddThread(name, handler, nullptr, interval); in AddThread()
46 void Watchdog::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()
30 AddThread(const std::string &name, std::shared_ptr<AppExecFwk::EventHandler> handler, TimeOutCallback timeOutCallback, uint64_t interval) AddThread() argument
H A Dwatchdog_inner.h65 int AddThread(const std::string &name, std::shared_ptr<AppExecFwk::EventHandler> handler, uint64_t interval);
67 TimeOutCallback timeOutCallback, uint64_t interval);
69 void RunPeriodicalTask(const std::string& name, Task&& task, uint64_t interval, uint64_t delay);
84 int32_t StartProfileMainThread(int32_t interval);
117 void StartTraceProfile(int32_t interval);
H A Dwatchdog_task.h35 TimeOutCallback timeOutCallback, uint64_t interval);
36 WatchdogTask(std::string name, Task&& task, uint64_t delay, uint64_t interval, bool isOneshot);
72 std::string GetBlockDescription(uint64_t interval);
/base/time/time_service/test/fuzztest/timemanager_fuzzer/timetesttimer_fuzzer/
H A Dtimer_info.h30 void SetInterval(const uint64_t &interval) override;
47 void TimerInfo::SetInterval(const uint64_t &interval) in SetInterval() argument
49 this->interval = interval; in SetInterval()
/base/print/print_fwk/test/unittest/service_test/
H A Dprint_http_server_manager_test.cpp31 R"("endpoints":[{"address":1,"attributes":2,"direction":0,"interfaceId":0,"interval":0,"maxPacketSize":512,)"\
32 R"("number":1,"type":2},{"address":129,"attributes":2,"direction":128,"interfaceId":0,"interval":0,)"\
34 R"("clazz":255,"endpoints":[{"address":2,"attributes":2,"direction":0,"interfaceId":1,"interval":0,)"\
36 R"("interval":0,"maxPacketSize":512,"number":2,"type":2}],"id":1,"name":"","protocol":255,"subClass":255},)"\
38 R"("interval":0,"maxPacketSize":512,"number":3,"type":2},{"address":131,"attributes":2,"direction":128,)"\
39 R"("interfaceId":2,"interval":0,"maxPacketSize":512,"number":3,"type":2}],"id":2,"name":"","protocol":4,)"\
41 R"("interfaceId":3,"interval":0,"maxPacketSize":512,"number":4,"type":2},{"address":132,"attributes":2,)"\
42 R"("direction":128,"interfaceId":3,"interval":0,"maxPacketSize":512,"number":4,"type":2}],"id":3,"name":"",)"\
44 R"("direction":0,"interfaceId":4,"interval":0,"maxPacketSize":512,"number":5,"type":2},{"address":133,)"\
45 R"("attributes":2,"direction":128,"interfaceId":4,"interval"
[all...]
/base/powermgr/thermal_manager/application/protector/src/
H A Dthermal_protector_timer.cpp59 int interval = provision_->GetMaxCd(); in CreateProvisionFd() local
60 SetTimerInterval(interval, timerFd_); in CreateProvisionFd()
104 void ThermalProtectorTimer::SetTimerInterval(int32_t interval, int32_t timerfd) in SetTimerInterval() argument
112 timerInterval_ = interval; in SetTimerInterval()
114 if (interval < 0) { in SetTimerInterval()
115 interval = 0; in SetTimerInterval()
118 itval.it_interval.tv_sec = interval / MS_PER_SECOND; in SetTimerInterval()
120 itval.it_value.tv_sec = interval / MS_PER_SECOND; in SetTimerInterval()
H A Dthermal_sensor_provider.cpp154 void ThermalSensorProvider::SetTimerInterval(int interval, int32_t timerfd) in SetTimerInterval() argument
162 timerInterval_ = interval; in SetTimerInterval()
163 if (interval < 0) { in SetTimerInterval()
164 interval = 0; in SetTimerInterval()
167 itval.it_interval.tv_sec = interval / MS_PER_SECOND; in SetTimerInterval()
169 itval.it_value.tv_sec = interval / MS_PER_SECOND; in SetTimerInterval()
/base/update/updateservice/services/engine/src/
H A Dupdate_service_cache.cpp83 void UpdateServiceCache::SetCheckInterval(BusinessSubType businessSubType, uint64_t interval) in SetCheckInterval() argument
90 paramCheckInterval_ = interval; in SetCheckInterval()
92 checkInterval_ = interval; in SetCheckInterval()
105 void UpdateServiceCache::SetDownloadInterval(BusinessSubType businessSubType, uint64_t interval) in SetDownloadInterval() argument
112 paramDownloadInterval_ = interval; in SetDownloadInterval()
114 downloadInterval_ = interval; in SetDownloadInterval()
/base/security/device_security_level/baselib/utils/include/
H A Dutils_timer.h29 TimerHandle DslmUtilsStartPeriodicTimerTask(uint32_t interval, TimerProc callback, const void *context);
31 TimerHandle DslmUtilsStartOnceTimerTask(uint32_t interval, TimerProc callback, const void *context);
/base/hiviewdfx/hicollie/interfaces/native/innerkits/include/xcollie/
H A Dwatchdog.h37 * Add handler to watchdog thread with customized check interval
42 * @param interval, the period in millisecond
47 TimeOutCallback timeOutCallback = nullptr, uint64_t interval = WATCHDOG_TIMEVAL);
50 * Add handler to watchdog thread with customized check interval
54 * @param interval, the period in millisecond
58 int AddThread(const std::string &name, std::shared_ptr<AppExecFwk::EventHandler> handler, uint64_t interval);
75 * @param interval, the millisecond interval of the periodical task
79 void RunPeriodicalTask(const std::string& name, Task&& task, uint64_t interval, uint64_t delay = 0);
/base/telephony/call_manager/utils/include/
H A Dtimer.h48 void start(int interval, std::function<void()> taskFun) in start() argument
54 std::thread([this, interval, taskFun]() { in start()
57 std::this_thread::sleep_for(std::chrono::milliseconds(interval)); in start()
/base/hiviewdfx/hiview/plugins/eventlogger/config/
H A Devent_logger_config.cpp102 "event id=\"([0-9xX]*)\"\\s*name=\"([A-Z0-9_]+)\"\\s*action=\"(.*)\"\\s*interval=\"([0-9]*)\".*"); in ParseConfigData()
121 tmpConfigDate.interval = 0; in ParseConfigData()
123 tmpConfigDate.interval = std::stoi(intervalString); in ParseConfigData()
147 configOut.interval = configDate.interval; in FindConfigLine()
149 HIVIEW_LOGI("configDate-> id: 0x%{public}x, name: %{public}s, action: %{public}s, interval: %{public}d\n", in FindConfigLine()
150 configOut.id, configOut.name.c_str(), configOut.action.c_str(), configOut.interval); in FindConfigLine()
/base/inputmethod/imf/common/src/
H A Dglobal.cpp34 bool BlockRetry(uint32_t interval, uint32_t maxRetryTimes, Function func) in BlockRetry() argument
44 std::this_thread::sleep_for(std::chrono::milliseconds(interval)); in BlockRetry()
/base/time/time_service/services/dfx/src/
H A Dtime_sysevent.cpp33 auto interval = static_cast<uint64_t>(timer->repeatInterval.count()); in StatisticReporter() local
37 "TRIGGER_TIME", triggerTime, "INTERVAL", interval); in StatisticReporter()
/base/time/time_service/interfaces/inner_api/include/
H A Ditimer_info.h33 uint64_t interval; member in OHOS::MiscServices::ITimerInfo
75 * SetInterval set timer repeat interval
79 virtual void SetInterval(const uint64_t &interval) = 0;
/base/powermgr/thermal_manager/services/native/src/thermal_action/
H A Dthermal_timer.cpp58 interval = _interval; in SetInterval()
109 void ThermalTimerUtils::Start(int interval, NotifyTask &task) in Start() argument
117 std::thread([this, interval, task]() { in Start()
119 // sleep every interval and do the task again and again until times up in Start()
120 std::this_thread::sleep_for(std::chrono::milliseconds(interval)); in Start()
/base/update/updateservice/services/engine/include/
H A Dupdate_service_cache.h32 static void SetCheckInterval(BusinessSubType businessSubType, uint64_t interval);
34 static void SetDownloadInterval(BusinessSubType businessSubType, uint64_t interval);
/base/inputmethod/imf/frameworks/common/
H A Dblock_data.h26 explicit BlockData(uint32_t interval, const T &invalid = T()) : INTERVAL(interval), data_(invalid) in BlockData() argument
/base/update/updateservice/foundations/ability/sys_event/include/
H A Dupdate_system_event.h27 #define SYS_EVENT_UPGRADE_INTERVAL(validCheck, versionInfo, type, interval) \
30 "VERSION_INFO", versionInfo, "TYPE", type, "INTERVAL", interval); \
/base/time/time_service/services/time/src/
H A Ditimer_info.cpp20 ITimerInfo::ITimerInfo() : type{ 0 }, repeat{ false }, interval{ 0 } in ITimerInfo()
/base/hiviewdfx/hiview/plugins/performance/timer/
H A DSceneTimerOhImpl.cpp46 void SceneTimerOhImpl::Start(int user, int id, long interval) in Start() argument
50 long long expireTs = CalcExpireTimeStamp(interval); in Start()
65 milliseconds interval(checkInterval); in Loop()
68 cv.wait_for(uniqueLock, interval); in Loop()
/base/time/time_service/test/fuzztest/timeservice_fuzzer/timerproxy_fuzzer/
H A Dtimerproxy_fuzzer.cpp51 auto interval = static_cast<uint32_t>(*data); in FuzzTimerAdjustTimer() local
54 TimerProxy::GetInstance().AdjustTimer(true, interval, now, callback); in FuzzTimerAdjustTimer()
55 TimerProxy::GetInstance().AdjustTimer(false, interval, now, callback); in FuzzTimerAdjustTimer()

Completed in 8 milliseconds

12345