Searched refs:UidIoStats (Results 1 – 10 of 10) sorted by relevance
/packages/services/Car/cpp/watchdog/server/src/ |
D | UidIoStatsCollector.h | 50 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 …]
|
D | UidIoStatsCollector.cpp | 48 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()
|
D | UidStatsCollector.h | 48 UidIoStats ioStats = {}; 106 const std::unordered_map<uid_t, UidIoStats>& uidIoStatsByUid,
|
D | UidStatsCollector.cpp | 75 const std::unordered_map<uid_t, UidIoStats>& uidIoStatsByUid, in process()
|
D | IoOveruseMonitor.h | 243 const UidIoStats& uidIoStats, const bool isGarageModeActive);
|
D | IoOveruseMonitor.cpp | 777 const UidIoStats& uidIoStats, in UserPackageIoUsage()
|
D | PerformanceProfiler.cpp | 292 const UidIoStats& ioStats = uidStats.ioStats; in UserPackageStats()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | UidIoStatsCollectorTest.cpp | 35 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()
|
D | UidStatsCollectorTest.cpp | 98 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 …]
|
D | MockUidIoStatsCollector.h | 37 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));
|