Searched refs:uidIoStatsByUid (Results 1 – 5 of 5) sorted by relevance
/packages/services/Car/cpp/watchdog/server/src/ |
D | UidIoStatsCollector.cpp | 107 const auto& uidIoStatsByUid = readUidIoStatsLocked(); in collect() local 108 if (!uidIoStatsByUid.ok() || uidIoStatsByUid->empty()) { in collect() 109 return Error() << "Failed to get UID IO stats: " << uidIoStatsByUid.error(); in collect() 113 for (const auto& [uid, uidIoStats] : *uidIoStatsByUid) { in collect() 125 mLatestStats = *uidIoStatsByUid; in collect() 134 std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid; in readUidIoStatsLocked() local 148 uidIoStatsByUid[uid] = uidIoStats; in readUidIoStatsLocked() 150 return uidIoStatsByUid; in readUidIoStatsLocked()
|
D | UidStatsCollector.cpp | 75 const std::unordered_map<uid_t, UidIoStats>& uidIoStatsByUid, in process() argument 78 if (uidIoStatsByUid.empty() && uidProcStatsByUid.empty() && cpuTimeMillisByUid.empty()) { in process() 82 for (const auto& [uid, _] : uidIoStatsByUid) { in process() 104 if (const auto it = uidIoStatsByUid.find(uid); it != uidIoStatsByUid.end()) { in process()
|
D | UidStatsCollector.h | 106 const std::unordered_map<uid_t, UidIoStats>& uidIoStatsByUid,
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | UidStatsCollectorTest.cpp | 261 const std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid = sampleUidIoStatsByUid(); in TEST_F() local 268 EXPECT_CALL(*mMockUidIoStatsCollector, latestStats()).WillOnce(Return(uidIoStatsByUid)); in TEST_F() 289 const std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid = sampleUidIoStatsByUid(); in TEST_F() local 296 EXPECT_CALL(*mMockUidIoStatsCollector, deltaStats()).WillOnce(Return(uidIoStatsByUid)); in TEST_F() 317 std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid = sampleUidIoStatsByUid(); in TEST_F() local 318 uidIoStatsByUid.erase(1001234); in TEST_F() 325 EXPECT_CALL(*mMockUidIoStatsCollector, deltaStats()).WillOnce(Return(uidIoStatsByUid)); in TEST_F() 347 const std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid = sampleUidIoStatsByUid(); in TEST_F() local 355 EXPECT_CALL(*mMockUidIoStatsCollector, deltaStats()).WillOnce(Return(uidIoStatsByUid)); in TEST_F() 377 const std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid = sampleUidIoStatsByUid(); in TEST_F() local [all …]
|
D | UidIoStatsCollectorTest.cpp | 35 std::string toString(std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid) { in toString() argument 37 for (const auto& [uid, stats] : uidIoStatsByUid) { in toString()
|