Lines Matching refs:countLimit
53 arg(nullptr), flag(0), timeLimit(0), countLimit(0)
65 arg(nullptr), flag(0), watchdogTid(0), timeLimit(0), countLimit(0)
76 arg(arg), flag(flag), timeLimit(0), countLimit(0)
86 WatchdogTask::WatchdogTask(std::string name, unsigned int timeLimit, int countLimit)
88 isTaskScheduled(false), isOneshotTask(false), watchdogTid(0), timeLimit(timeLimit), countLimit(countLimit)
129 if (countLimit > 0) {
159 if (size < countLimit) {
162 XCOLLIE_LOGD("timeLimit : %{public}" PRIu64 ", countLimit : %{public}d, triggerTimes size : %{public}d",
163 timeLimit, countLimit, size);
165 while (size >= countLimit) {
166 uint64_t timeInterval = triggerTimes[size -1] - triggerTimes[size - countLimit];
168 std::string sendMsg = name + " occured " + std::to_string(countLimit) + " times in " +
182 if (triggerTimes.size() > static_cast<unsigned long>(countLimit * COUNT_LIMIT_NUM_MAX_RATIO)) {
183 triggerTimes.erase(triggerTimes.begin(), triggerTimes.end() - countLimit);