Home
last modified time | relevance | path

Searched refs:UidIoStats (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/cpp/watchdog/server/src/
DUidIoStatsCollector.h50 class UidIoStats final {
52 UidIoStats() : metrics{{0}} {}; in UidIoStats() function
53 UidIoStats(int64_t fgRdBytes, int64_t bgRdBytes, int64_t fgWrBytes, int64_t bgWrBytes, in UidIoStats() function
62 UidIoStats& operator-=(const UidIoStats& rhs);
63 bool operator==(const UidIoStats& stats) const {
93 virtual const std::unordered_map<uid_t, UidIoStats> latestStats() const = 0;
95 virtual const std::unordered_map<uid_t, UidIoStats> deltaStats() const = 0;
118 const std::unordered_map<uid_t, UidIoStats> latestStats() const override { in latestStats()
123 const std::unordered_map<uid_t, UidIoStats> deltaStats() const override { in deltaStats()
137 android::base::Result<std::unordered_map<uid_t, UidIoStats>> readUidIoStatsLocked() const;
[all …]
DUidIoStatsCollector.cpp48 bool parseUidIoStats(const std::string& data, UidIoStats* stats, uid_t* uid) { in parseUidIoStats()
65 UidIoStats& UidIoStats::operator-=(const UidIoStats& rhs) { in operator -=()
82 bool UidIoStats::isZero() const { in isZero()
93 std::string UidIoStats::toString() const { in toString()
117 UidIoStats deltaStats = uidIoStats; in collect()
129 Result<std::unordered_map<uid_t, UidIoStats>> UidIoStatsCollector::readUidIoStatsLocked() const { in readUidIoStatsLocked()
134 std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid; in readUidIoStatsLocked()
144 UidIoStats uidIoStats; in readUidIoStatsLocked()
DUidStatsCollector.h48 UidIoStats ioStats = {};
106 const std::unordered_map<uid_t, UidIoStats>& uidIoStatsByUid,
DUidStatsCollector.cpp75 const std::unordered_map<uid_t, UidIoStats>& uidIoStatsByUid, in process()
DIoOveruseMonitor.h243 const UidIoStats& uidIoStats, const bool isGarageModeActive);
DIoOveruseMonitor.cpp777 const UidIoStats& uidIoStats, in UserPackageIoUsage()
DPerformanceProfiler.cpp292 const UidIoStats& ioStats = uidStats.ioStats; in UserPackageStats()
/packages/services/Car/cpp/watchdog/server/tests/
DUidIoStatsCollectorTest.cpp35 std::string toString(std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid) { in toString()
52 std::unordered_map<uid_t, UidIoStats> expectedFirstUsage = in TEST()
54 UidIoStats{/*fgRdBytes=*/3'000, /*bgRdBytes=*/0, /*fgWrBytes=*/500, in TEST()
57 UidIoStats{/*fgRdBytes=*/30, /*bgRdBytes=*/100, /*fgWrBytes=*/50, /*bgWrBytes=*/200, in TEST()
60 UidIoStats{/*fgRdBytes=*/0, /*bgRdBytes=*/20'000, /*fgWrBytes=*/0, in TEST()
64 UidIoStats{/*fgRdBytes=*/2'000, /*bgRdBytes=*/200, /*fgWrBytes=*/1'000, in TEST()
85 std::unordered_map<uid_t, UidIoStats> expectedSecondUsage = in TEST()
87 UidIoStats{/*fgRdBytes=*/4'000, /*bgRdBytes=*/0, in TEST()
91 UidIoStats{/*fgRdBytes=*/10, /*bgRdBytes=*/900, /*fgWrBytes=*/0, /*bgWrBytes=*/400, in TEST()
94 UidIoStats{/*fgRdBytes=*/200, /*bgRdBytes=*/0, /*fgWrBytes=*/300, /*bgWrBytes=*/0, in TEST()
DUidStatsCollectorTest.cpp98 std::unordered_map<uid_t, UidIoStats> sampleUidIoStatsByUid() { in sampleUidIoStatsByUid()
100 UidIoStats{/*fgRdBytes=*/3'000, /*bgRdBytes=*/0, in sampleUidIoStatsByUid()
105 UidIoStats{/*fgRdBytes=*/30, /*bgRdBytes=*/100, in sampleUidIoStatsByUid()
133 .ioStats = UidIoStats{/*fgRdBytes=*/3'000, /*bgRdBytes=*/0, /*fgWrBytes=*/500, in sampleUidStats()
142 .ioStats = UidIoStats{/*fgRdBytes=*/30, /*bgRdBytes=*/100, /*fgWrBytes=*/50, in sampleUidStats()
231 .WillOnce(Return(std::unordered_map<uid_t, UidIoStats>())); in TEST_F()
236 .WillOnce(Return(std::unordered_map<uid_t, UidIoStats>())); in TEST_F()
261 const std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid = sampleUidIoStatsByUid(); in TEST_F()
289 const std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid = sampleUidIoStatsByUid(); in TEST_F()
317 std::unordered_map<uid_t, UidIoStats> uidIoStatsByUid = sampleUidIoStatsByUid(); in TEST_F()
[all …]
DMockUidIoStatsCollector.h37 MOCK_METHOD((const std::unordered_map<uid_t, UidIoStats>), latestStats, (), (const, override));
38 MOCK_METHOD((const std::unordered_map<uid_t, UidIoStats>), deltaStats, (), (const, override));