| /foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/ |
| D | device_timed_collect.cpp | 102 int64_t interval = atoi(strInterval.c_str()); in ProcessPersistenceLoopTask() local 103 if (persitenceLoopTasks_.count(interval) > 0) { in ProcessPersistenceLoopTask() 108 if (static_cast<int64_t>(triggerTime) - interval > currentTime) { in ProcessPersistenceLoopTask() 113 if (interval < MIN_INTERVAL) { in ProcessPersistenceLoopTask() 114 HILOGW("interval is not true"); in ProcessPersistenceLoopTask() 117 persitenceLoopTasks_[interval] = [this, interval] () { in ProcessPersistenceLoopTask() 118 ReportEventByTimeInfo(interval, true); in ProcessPersistenceLoopTask() 119 PostPersistenceDelayTask(persitenceLoopTasks_[interval], interval, interval); in ProcessPersistenceLoopTask() 122 ReportEventByTimeInfo(interval, true); in ProcessPersistenceLoopTask() 124 disTime = interval - abs(disTime) % interval; in ProcessPersistenceLoopTask() [all …]
|
| /foundation/resourceschedule/ffrt/test/ut/testcase/ |
| D | ut_interval.cpp | 24 #include "sched/interval.h" 108 DefaultInterval interval = DefaultInterval(100, QoS(static_cast<int>(qos_deadline_request))); variable 109 int ret = interval.Begin(); 111 interval.End(); 113 ret = interval.Begin(); 114 interval.Update(50); 118 interval.CheckPoint(); 119 interval.End(); 124 DefaultInterval interval = DefaultInterval(100, QoS(static_cast<int>(qos_deadline_request))); variable 125 int ret = interval.Begin(); [all …]
|
| /foundation/resourceschedule/ffrt/interfaces/inner_api/cpp/ |
| D | deadline.h | 21 using interval = ffrt_interval_t; variable 24 @brief app create an anonymous interval, the number is limited. should specify the deadline 26 static inline interval qos_interval_create(uint64_t deadline_us, qos qos_ = static_cast<int>(qos_de… 32 @brief destroy a interval 34 static inline void qos_interval_destroy(interval it) in qos_interval_destroy() 40 @brief start the interval 42 static inline int qos_interval_begin(interval it) in qos_interval_begin() 48 @brief update interval 50 static inline int qos_interval_update(interval it, uint64_t new_deadline_us) in qos_interval_update() 56 @brief interval become inactive until next begin [all …]
|
| /foundation/resourceschedule/ffrt/test/ut/ |
| D | deadline_test.cpp | 20 #include "sched/interval.h" 61 interval qi = qos_interval_create(deadline_us, qos); 65 interval qi1 = qos_interval_create(deadline_us, qos); 76 interval* qi = new interval(); 82 interval qi1 = qos_interval_create(deadline_us, qos); 93 interval* qi = new interval(); 99 interval qi1 = qos_interval_create(deadline_us, qos); 113 interval* qi = new interval(); 116 interval qi1 = qos_interval_create(deadline_us, qos); 129 interval* qi = new interval(); [all …]
|
| /foundation/resourceschedule/device_standby/services/common/src/ |
| D | timed_task.cpp | 32 TimedTask::TimedTask(bool repeat, uint64_t interval, bool isExact, bool isIdle) in TimedTask() argument 35 this->interval = interval; in TimedTask() 48 TimedTask::TimedTask(bool repeat, uint64_t interval, int type) in TimedTask() argument 51 this->interval = interval; in TimedTask() 78 void TimedTask::SetInterval(const uint64_t& interval) in SetInterval() argument 80 this->interval = interval; in SetInterval() 93 uint64_t WEAK_FUNC TimedTask::CreateTimer(bool repeat, uint64_t interval, bool isExact, bool isIdle, in CreateTimer() argument 96 auto timedTask = std::make_shared<TimedTask>(repeat, interval, isExact, isIdle); in CreateTimer() 101 uint64_t WEAK_FUNC TimedTask::CreateTimer(bool repeat, uint64_t interval, int type, in CreateTimer() argument 104 auto timedTask = std::make_shared<TimedTask>(repeat, interval, type); in CreateTimer() [all …]
|
| /foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/ |
| D | timer.h | 49 Timer(const TimeSpan& interval, Func func, TimerType type, const ITaskQueue::Ptr& queue) in META_BEGIN_NAMESPACE() 51 Start(interval, BASE_NS::move(func), type, queue); in META_BEGIN_NAMESPACE() 58 Timer(const TimeSpan& interval, Func func, TimerType type, const BASE_NS::Uid& queueId) in META_BEGIN_NAMESPACE() 60 Start(interval, BASE_NS::move(func), type, queueId); in META_BEGIN_NAMESPACE() 73 * @param interval Time interval which after this timer triggers. in META_BEGIN_NAMESPACE() 79 bool Start(const TimeSpan& interval, Func func, TimerType type, const ITaskQueue::Ptr& queue) in META_BEGIN_NAMESPACE() 99 interval); in META_BEGIN_NAMESPACE() 105 * @param interval Time interval which after this timer triggers. in META_BEGIN_NAMESPACE() 112 bool Start(const TimeSpan& interval, Func func, TimerType type, const BASE_NS::Uid& queueId) in META_BEGIN_NAMESPACE() 114 … return Start(interval, BASE_NS::move(func), type, GetTaskQueueRegistry().GetTaskQueue(queueId)); in META_BEGIN_NAMESPACE() [all …]
|
| /foundation/distributeddatamgr/kv_store/frameworks/common/ |
| D | task_scheduler.h | 63 …TaskId At(const Time &begin, Task task, Duration interval = INVALID_INTERVAL, uint64_t times = UNL… 72 innerTask.interval = interval; 81 TaskId Reset(TaskId taskId, const Duration &interval) in Reset() argument 84 if (running_.taskId == taskId && running_.interval != INVALID_INTERVAL) { in Reset() 85 running_.interval = interval; in Reset() 93 if (innerTask.interval != INVALID_INTERVAL) { in Reset() 94 innerTask.interval = interval; in Reset() 96 … auto it = tasks_.insert({ std::chrono::steady_clock::now() + interval, std::move(innerTask) }); in Reset() 111 TaskId Every(Duration interval, Task task) in Every() argument 113 return At(std::chrono::steady_clock::now() + interval, task, interval); in Every() [all …]
|
| /foundation/communication/wifi/wifi/frameworks/native/interfaces/ |
| D | wifi_scan_msg.h | 250 * The interval is set to 120 and the count is set to 4. 251 * For example, the interval is set to 120 and the count is set to 4. 254 * Exponential interval. The value of interval is the initial value. 255 * After the value is multiplied by 2, the last fixed interval is used. 258 * If the number of consecutive count times is less than interval, 259 * the subsequent interval must be greater than interval. 262 … * If the number of consecutive count times is less than the value of interval, 269 IntervalMode intervalMode; /* Interval mode, which can be interval or count. */ 270 int interval; /* Interval, in seconds. */ member 271 int count; /* Number of times allowed in the interval */ [all …]
|
| /foundation/resourceschedule/qos_manager/etc/param/ |
| D | ffrt.para | 14 ffrt.interval.ui=false 15 persist.ffrt.interval.renderthread=true 16 ffrt.interval.renderservice=false 17 ffrt.interval.slide=false 18 ffrt.interval.limit=false 19 persist.ffrt.interval.appRate=0 20 persist.ffrt.interval.rsRate=0
|
| D | ffrt.para.dac | 14 ffrt.interval.ui = system:system:0664 15 persist.ffrt.interval.renderthread = system:system:0664 16 ffrt.interval.renderservice = system:system:0664 17 ffrt.interval.slide = system:system:0664 18 ffrt.interval.limit = system:system:0664 19 persist.ffrt.interval.appRate = system:system:0664 20 persist.ffrt.interval.rsRate = system:system:0664
|
| /foundation/resourceschedule/ffrt/src/sched/ |
| D | deadline.cpp | 19 #include "sched/interval.h" 37 Interval* operator->() in operator ->() 40 FFRT_LOGE("Invalid QoS Interval!"); in operator ->() 47 std::unique_ptr<Interval> it; 58 FFRT_LOGE("Invalid QoS Interval!"); in ffrt_interval_create() 69 FFRT_LOGE("QoS Interval Not Created Or Has Been Canceled!"); in ffrt_interval_update() 83 FFRT_LOGE("QoS Interval Not Created Or Has Been Canceled!"); in ffrt_interval_begin() 96 FFRT_LOGE("QoS Interval Not Created Or Has Been Canceled!"); in ffrt_interval_end() 110 FFRT_LOGE("QoS Interval Not Created Or Has Been Canceled!"); in ffrt_interval_destroy() 121 FFRT_LOGE("QoS Interval Not Created Or Has Been Canceled!"); in ffrt_interval_join() [all …]
|
| /foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/ |
| D | task_manager.cpp | 34 TaskManager::TaskId TaskManager::Schedule(const Task &task, Duration interval) in Schedule() argument 36 return executors_->Schedule(task, interval); in Schedule() 38 TaskManager::TaskId TaskManager::Schedule(const Task &task, Duration delay, Duration interval) in Schedule() argument 40 return executors_->Schedule(task, delay, interval); in Schedule() 42 TaskManager::TaskId TaskManager::Schedule(const Task &task, Duration delay, Duration interval, uint… in Schedule() argument 44 return executors_->Schedule(task, delay, interval, times); in Schedule() 50 TaskManager::TaskId TaskManager::Reset(const TaskId &taskId, Duration interval) in Reset() argument 52 return executors_->Reset(taskId, interval); in Reset()
|
| /foundation/systemabilitymgr/samgr/services/samgr/native/include/collect/ |
| D | device_timed_collect.h | 44 void SaveTimedInfos(const OnDemandEvent& onDemandEvent, int32_t interval); 45 void ReportEventByTimeInfo(int32_t interval, bool persistence); 46 void PostDelayTaskByTimeInfo(std::function<void()> callback, int32_t interval, int32_t disTime); 51 void PostPersistenceLoopTaskLocked(int32_t interval); 52 void PostNonPersistenceLoopTaskLocked(int32_t interval); 61 int32_t interval, int32_t disTime); 63 void RemoveNonPersistenceLoopTask(int32_t interval); 64 void RemovePersistenceLoopTask(int32_t interval); 65 void RemoveTimesInfo(const OnDemandEvent& onDemandEvent, int32_t interval);
|
| /foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/ |
| D | executor_pool.h | 92 TaskId Schedule(Task task, Duration interval) in Schedule() argument 94 return Schedule(std::move(task), INVALID_DELAY, interval, UNLIMITED_TIMES); in Schedule() 97 TaskId Schedule(Task task, Duration delay, Duration interval) in Schedule() argument 99 return Schedule(std::move(task), delay, interval, UNLIMITED_TIMES); in Schedule() 102 TaskId Schedule(Task task, Duration delay, Duration interval, uint64_t times) in Schedule() argument 106 innerTask.interval = interval; in Schedule() 126 TaskId Reset(TaskId taskId, Duration interval) in Reset() argument 128 … auto updated = delayTasks_.Update(taskId, [interval](InnerTask &task) -> std::pair<bool, Time> { in Reset() 129 if (task.interval != INVALID_INTERVAL) { in Reset() 130 task.interval = interval; in Reset() [all …]
|
| /foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
| D | task_executor_adapter.cpp | 28 TaskExecutorAdapter::Duration interval) in Schedule() argument 30 return TaskExecutor::GetInstance().Schedule(TaskExecutor::INVALID_DURATION, task, interval); in Schedule() 33 TaskExecutorAdapter::Duration delay, TaskExecutorAdapter::Duration interval) in Schedule() argument 35 return TaskExecutor::GetInstance().Schedule(delay, task, interval); in Schedule() 38 TaskExecutorAdapter::Duration delay, TaskExecutorAdapter::Duration interval, uint64_t times) in Schedule() argument 40 return TaskExecutor::GetInstance().Schedule(delay, task, interval, times); in Schedule() 48 TaskExecutorAdapter::Duration interval) in Reset() argument 50 return TaskExecutor::GetInstance().Reset(taskId, interval); in Reset()
|
| /foundation/distributeddatamgr/preferences/frameworks/native/include/ |
| D | executor_pool.h | 96 TaskId Schedule(Task task, Duration interval) in Schedule() argument 98 return Schedule(std::move(task), INVALID_DELAY, interval, UNLIMITED_TIMES); in Schedule() 101 TaskId Schedule(Task task, Duration delay, Duration interval) in Schedule() argument 103 return Schedule(std::move(task), delay, interval, UNLIMITED_TIMES); in Schedule() 106 TaskId Schedule(Task task, Duration delay, Duration interval, uint64_t times) in Schedule() argument 110 innerTask.interval = interval; in Schedule() 130 TaskId Reset(TaskId taskId, Duration interval) in Reset() argument 132 … auto updated = delayTasks_.Update(taskId, [interval](InnerTask &task) -> std::pair<bool, Time> { in Reset() 133 if (task.interval != INVALID_INTERVAL) { in Reset() 134 task.interval = interval; in Reset() [all …]
|
| /foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/common/ |
| D | wifi_system_timer_test.cpp | 71 uint64_t interval = 5000; variable 72 timer_->SetInterval(interval); 74 EXPECT_EQ(timer_->interval, interval); 89 uint64_t interval = 5000; variable 92 WifiSysTimer WifiSysTimer(repeat, interval, isNoWakeUp, isIdle); 94 EXPECT_EQ(WifiSysTimer.interval, interval);
|
| /foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
| D | mutable_span_string.cpp | 146 auto spanItemStart = (*it)->interval.first; in HandleSpanOperation() 147 auto spanItemEnd = (*it)->interval.second; in HandleSpanOperation() 155 newSpan->interval.first = spanItemStart; in HandleSpanOperation() 156 newSpan->interval.second = GetWStringLength(newSpan->content) + spanItemStart; in HandleSpanOperation() 161 (*it)->interval.second = GetWStringLength((*it)->content) + spanItemStart; in HandleSpanOperation() 173 (*it)->interval = { spanItemStart, start }; in HandleSpanOperation() 175 newSpan->interval = { end, spanItemEnd }; in HandleSpanOperation() 185 (*it)->interval.second = start; in HandleSpanOperation() 189 (*it)->interval.second = std::max(end, spanItemEnd); in HandleSpanOperation() 193 (*it)->interval.first = end; in HandleSpanOperation() [all …]
|
| D | span_string.cpp | 60 spanItem->interval = { 0, wideText.length() }; in SpanString() 71 spanItem->interval = { 0, 1 }; in SpanString() 80 spanItem->interval = { 0, 1 }; in SpanString() 139 int32_t offset = (*it)->interval.first; in SplitSpansAndForward() 142 newSpan->interval = { offset + newlineIndex + 1, (*it)->interval.second }; in SplitSpansAndForward() 143 (*it)->interval = { offset, offset + newlineIndex + 1 }; in SplitSpansAndForward() 149 offset = newSpan->interval.first; in SplitSpansAndForward() 158 const RefPtr<SpanBase>& span, std::pair<int32_t, int32_t> interval, SpanOperation operation) in ApplyToSpans() argument 162 auto intersection = (*it)->GetIntersectionInterval(interval); in ApplyToSpans() 166 auto oldStart = (*it)->interval.first; in ApplyToSpans() [all …]
|
| /foundation/distributeddatamgr/kv_store/test/fuzztest/taskscheduler_fuzzer/ |
| D | taskscheduler_fuzzer.cpp | 40 std::chrono::duration<int> interval(time % MAX_INTERVAL_TIME); in EveryFUZZ() local 41 taskScheduler.Every(delay, interval, []() { }); in EveryFUZZ() 43 taskScheduler.Every(0, delay, interval, []() { }); in EveryFUZZ() 44 taskScheduler.Every(1, delay, interval, []() { }); in EveryFUZZ() 46 taskScheduler.Every(interval, []() { }); in EveryFUZZ() 53 std::chrono::duration<int> interval(time % MAX_INTERVAL_TIME); in ResetFuzz() local 57 taskScheduler.Reset(schedulerTask, interval); in ResetFuzz()
|
| /foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
| D | wifi_system_timer.cpp | 30 WifiSysTimer::WifiSysTimer(bool repeat, uint64_t interval, bool isNoWakeUp, bool isIdle) in WifiSysTimer() argument 33 this->interval = interval; in WifiSysTimer() 65 void WifiSysTimer::SetInterval(const uint64_t &interval) in SetInterval() argument 67 this->interval = interval; in SetInterval()
|
| /foundation/communication/dhcp/services/utils/src/ |
| D | dhcp_system_timer.cpp | 33 DhcpSysTimer::DhcpSysTimer(bool repeat, uint64_t interval, bool isNoWakeUp, bool isIdle) in DhcpSysTimer() argument 36 this->interval = interval; in DhcpSysTimer() 68 void DhcpSysTimer::SetInterval(const uint64_t &interval) in SetInterval() argument 70 this->interval = interval; in SetInterval()
|
| /foundation/arkui/ui_lite/frameworks/layout/ |
| D | flex_layout.cpp | 37 int16_t& interval, in GetStartPos() argument 46 interval = 0; in GetStartPos() 60 interval = (length - validLengths[count]) / childsNum[count]; in GetStartPos() 61 pos = interval / 2; // 2: half in GetStartPos() 63 interval = (length - validLengths[count]) / (childsNum[count] + 1); in GetStartPos() 64 pos = interval; in GetStartPos() 66 interval = (length - validLengths[count]) / (childsNum[count] - 1); in GetStartPos() 71 void FlexLayout::GetNoWrapStartPos(const int16_t& length, int16_t& majorPos, int16_t& interval) in GetNoWrapStartPos() argument 77 GetStartPos(length, majorPos, interval, 0, &totalValidLength, &childrenNum); in GetNoWrapStartPos() 81 int16_t& interval, in GetRowStartPos() argument [all …]
|
| /foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan/ |
| D | scan_service.h | 71 // 11n OFDM symbol duration in ns with 0.4us guard interval 73 // 11ac OFDM symbol duration in ns with 0.4us guard interval 158 * @param periodMs - pno scan interval 322 * interval, the user is added to the blocklist and cannot be scanned. 696 * @Description Check whether the scan mode can be used under the interval mode control. 710 * @param interval - system scan interval[in] 711 * @param count - Total number of times that the scanning interval is multiplied by 2[in] 714 bool SystemScanByInterval(int staScene, int &interval, int &count); 720 * @param interval - system scan interval[in] 721 * @param count - Total number of times that the scanning interval is multiplied by 2[in] [all …]
|
| /foundation/resourceschedule/device_standby/services/common/include/ |
| D | timed_task.h | 38 TimedTask(bool repeat, uint64_t interval, bool isExact, bool isIdle = false); 39 TimedTask(bool repeat, uint64_t interval, int type); 44 void SetInterval(const uint64_t& interval) override; 48 static uint64_t CreateTimer(bool repeat, uint64_t interval, bool isExact, bool isIdle, 50 …static uint64_t CreateTimer(bool repeat, uint64_t interval, int type, const std::function<void()>&… 52 static bool RegisterDayNightSwitchTimer(uint64_t& timeId, bool repeat, uint64_t interval,
|