Home
last modified time | relevance | path

Searched refs:statPair (Results 1 – 5 of 5) sorted by relevance

/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cleaner/
Dapp_event_db_cleaner.cpp49 std::pair<int, int64_t>& statPair = it->second; in ClearSpace() local
50 if (statPair.first == 0) { in ClearSpace()
54 int delNum = statPair.first / TIMES; in ClearSpace()
57 delNum = statPair.first; in ClearSpace()
59 statPair.first = 0; in ClearSpace()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/
Dapp_event_block.cpp27 int AppEventBlock::GetStat(std::pair<int, int64_t>& statPair) in GetStat() argument
29 return blockDao_->CountPackages(statPair.first, statPair.second); in GetStat()
Dapp_event_cache.cpp121 std::pair<int, int64_t> statPair; in GetBlocksStat() local
122 if (block.second->GetStat(statPair) != DB_SUCC) { in GetBlocksStat()
126 blocksStat.emplace(block.first, statPair); in GetBlocksStat()
/base/hiviewdfx/hiappevent/test/unittest/common/native/
Dhiappevent_cache_test.cpp164 std::pair<int, int64_t> statPair; variable
165 result = block->GetStat(statPair);
167 ASSERT_EQ(statPair.first, ADD_NUM - 2);
168 ASSERT_EQ(statPair.second, TEST_PACKAGE.size() * (ADD_NUM - 2));
218 auto statPair = blockStat.second; variable
219 ASSERT_TRUE(statPair.first < ADD_NUM);
220 ASSERT_TRUE(statPair.second < (TEST_PACKAGE.size() * ADD_NUM));
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/include/
Dapp_event_block.h34 int GetStat(std::pair<int, int64_t>& statPair);