Searched refs:disk_stats (Results 1 – 4 of 4) sorted by relevance
/system/core/storaged/include/ |
D | storaged_utils.h | 30 bool parse_disk_stats(const char* disk_stats_path, struct disk_stats* stats); 31 struct disk_perf get_disk_perf(struct disk_stats* stats); 32 void get_inc_disk_stats(const struct disk_stats* prev, const struct disk_stats* curr, struct disk_s… 33 void add_disk_stats(struct disk_stats* src, struct disk_stats* dst);
|
D | storaged_diskstats.h | 30 struct disk_stats { struct 60 friend disk_stats operator- (disk_stats curr, const disk_stats& prev) { argument 75 friend bool operator== (const disk_stats& a, const disk_stats& b) { 89 disk_stats& operator+= (const disk_stats& stats) { 148 struct disk_stats mPrevious; 149 struct disk_stats mAccumulate; /* reset after stall */ 150 struct disk_stats mAccumulate_pub; /* reset after publish */ 173 void update(struct disk_stats* stats);
|
/system/core/storaged/ |
D | storaged_diskstats.cpp | 53 void log_event_disk_stats(struct disk_stats* stats, const char* type) { in log_event_disk_stats() 80 void init_disk_stats_other(const struct timespec& ts, struct disk_stats* stats) { in init_disk_stats_other() 87 bool parse_disk_stats(const char* disk_stats_path, struct disk_stats* stats) { in parse_disk_stats() 110 void convert_hal_disk_stats(struct disk_stats* dst, const DiskStats& src) { in convert_hal_disk_stats() 124 bool get_disk_stats_from_health_hal(const sp<IHealth>& service, struct disk_stats* stats) { in get_disk_stats_from_health_hal() 159 struct disk_perf get_disk_perf(struct disk_stats* stats) in get_disk_perf() 188 void get_inc_disk_stats(const struct disk_stats* prev, const struct disk_stats* curr, in get_inc_disk_stats() 189 struct disk_stats* inc) in get_inc_disk_stats() 199 void add_disk_stats(struct disk_stats* src, struct disk_stats* dst) in add_disk_stats() 267 void disk_stats_monitor::update(struct disk_stats* curr) in update() [all …]
|
/system/core/storaged/tests/ |
D | storaged_test.cpp | 69 struct disk_stats stats; in TEST() 70 memset(&stats, 0, sizeof(struct disk_stats)); in TEST() 82 struct disk_stats old_stats; in TEST() 83 memset(&old_stats, 0, sizeof(struct disk_stats)); in TEST() 93 TEST(storaged_test, disk_stats) { in TEST() argument 94 struct disk_stats stats = {}; in TEST() 104 struct disk_stats base = {}, tmp = {}, curr, acc = {}, inc[5]; in TEST() 118 struct disk_stats overall_inc = {}; in TEST() 195 struct disk_stats disk_stats_add(struct disk_stats stats1, struct disk_stats stats2) { in disk_stats_add() 196 struct disk_stats retval; in disk_stats_add() [all …]
|