Searched refs:stats_record (Results 1 – 4 of 4) sorted by relevance
/hardware/google/pixel/thermal/utils/ |
D | thermal_stats_helper.cpp | 265 void ThermalStatsHelper::updateStatsRecord(StatsRecord *stats_record, int new_state) { in updateStatsRecord() argument 268 now - stats_record->cur_state_start_time); in updateStatsRecord() 270 << " for cur_state: " << stats_record->cur_state << " with value: " in updateStatsRecord() 271 << stats_record->time_in_state_ms[stats_record->cur_state].count(); in updateStatsRecord() 273 stats_record->time_in_state_ms[stats_record->cur_state] += cur_state_duration; in updateStatsRecord() 274 stats_record->cur_state_start_time = now; in updateStatsRecord() 275 stats_record->cur_state = new_state; in updateStatsRecord() 288 if (value != stats_by_threshold.stats_record.cur_state) { in updateSensorCdevRequestStats() 291 updateStatsRecord(&stats_by_threshold.stats_record, value); in updateSensorCdevRequestStats() 296 auto &stats_record = request_stats.stats_by_default_threshold.value(); in updateSensorCdevRequestStats() local [all …]
|
D | thermal_stats_helper.h | 82 StatsRecord stats_record; member 89 stats_record = StatsRecord(time_in_state_size); in StatsByThreshold() 186 void updateStatsRecord(StatsRecord *stats_record, int new_state); 190 const SensorTempStats &sensor_temp_stats, StatsRecord *stats_record); 194 StatsRecord *stats_record); 197 std::vector<int64_t> processStatsRecordForReporting(StatsRecord *stats_record);
|
/hardware/google/pixel/thermal/ |
D | Thermal.cpp | 620 void Thermal::dumpStatsRecord(std::ostringstream *dump_buf, const StatsRecord &stats_record, in dumpStatsRecord() argument 625 now - stats_record.last_stats_report_time) in dumpStatsRecord() 629 for (const auto &time_in_state : stats_record.time_in_state_ms) { in dumpStatsRecord() 657 dumpStatsRecord(dump_buf, stats_by_threshold.stats_record, in dumpThermalStats() 686 dumpStatsRecord(dump_buf, stats_by_threshold.stats_record, in dumpThermalStats()
|
D | Thermal.h | 134 void dumpStatsRecord(std::ostringstream *dump_buf, const StatsRecord &stats_record,
|