Home
last modified time | relevance | path

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

/packages/services/Car/cpp/watchdog/server/src/
DUidIoStatsCollector.cpp107 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()
DUidStatsCollector.cpp75 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()
DUidStatsCollector.h106 const std::unordered_map<uid_t, UidIoStats>& uidIoStatsByUid,
/packages/services/Car/cpp/watchdog/server/tests/
DUidStatsCollectorTest.cpp261 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 …]
DUidIoStatsCollectorTest.cpp35 std::string toString(std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid) { in toString() argument
37 for (const auto& [uid, stats] : uidIoStatsByUid) { in toString()