Home
last modified time | relevance | path

Searched refs:happentime (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/hiviewdfx/hiview/base/event_store/store/
H A Dsys_event_repeat_db.cpp121 void SysEventRepeatDb::CheckAndClearDb(const int64_t happentime) in CheckAndClearDb() argument
126 Clear(happentime); in CheckAndClearDb()
129 void SysEventRepeatDb::Clear(const int64_t happentime) in Clear() argument
131 ClearHistory(happentime); in Clear()
144 bucket.PutLong(COLUMN_HAPPENTIME, sysEventHashRecord.happentime); in Insert()
165 bucket.PutLong(COLUMN_HAPPENTIME, sysEventHashRecord.happentime); in Update()
174 void SysEventRepeatDb::ClearHistory(const int64_t happentime) in ClearHistory() argument
180 whereClause.append(" < ").append(std::to_string(happentime)); in ClearHistory()
224 int64_t happentime = 0; in QueryHappentime() local
225 resultSet->GetLong(0, happentime); // 0 is result of happentime in QueryHappentime()
[all …]
H A Dsys_event_repeat_guard.cpp106 auto happentime = SysEventRepeatDb::GetInstance().QueryHappentime(sysEventHashRecord); in IsEventRepeat() local
108 if (happentime > minValidTime) { // event repeat in IsEventRepeat()
112 sysEventHashRecord.happentime = time(nullptr); in IsEventRepeat()
113 if (happentime > 0) { // > 0 means has record in IsEventRepeat()
/ohos5.0/base/hiviewdfx/hiview/base/event_store/store/include/
H A Dsys_event_repeat_db.h32 int64_t happentime = 0; member
42 void CheckAndClearDb(const int64_t happentime);
43 void Clear(const int64_t happentime);
48 void ClearHistory(const int64_t happentime);
/ohos5.0/base/hiviewdfx/hiview/base/event_store/test/unittest/common/
H A Dsys_event_repeat_test.cpp123 sysEventHashRecord.happentime = time(nullptr) - TWO_HOURS;
176 sysEventHashRecord.happentime = now - TWO_HOURS;
179 …ysEventRepeatDb::GetInstance().QueryHappentime(sysEventHashRecord), sysEventHashRecord.happentime);