Home
last modified time | relevance | path

Searched refs:stats_by_threshold (Results 1 – 2 of 2) sorted by relevance

/hardware/google/pixel/thermal/utils/
Dthermal_stats_helper.cpp286 for (auto &stats_by_threshold : request_stats.stats_by_custom_threshold) { in updateSensorCdevRequestStats() local
287 int value = calculateThresholdBucket(stats_by_threshold.thresholds, new_value); in updateSensorCdevRequestStats()
288 if (value != stats_by_threshold.stats_record.cur_state) { in updateSensorCdevRequestStats()
291 updateStatsRecord(&stats_by_threshold.stats_record, value); in updateSensorCdevRequestStats()
315 for (auto &stats_by_threshold : sensor_temp_stats.stats_by_custom_threshold) { in updateSensorTempStatsByThreshold() local
316 int value = calculateThresholdBucket(stats_by_threshold.thresholds, temperature); in updateSensorTempStatsByThreshold()
317 if (value != stats_by_threshold.stats_record.cur_state) { in updateSensorTempStatsByThreshold()
320 updateStatsRecord(&stats_by_threshold.stats_record, value); in updateSensorTempStatsByThreshold()
425 auto &stats_by_threshold = temp_stats.stats_by_custom_threshold[threshold_set_idx]; in reportAllSensorTempStats() local
426 std::string sensor_name = stats_by_threshold.logging_name.value_or( in reportAllSensorTempStats()
[all …]
/hardware/google/pixel/thermal/
DThermal.cpp647 for (const auto &stats_by_threshold : sensor_temp_stats.stats_by_custom_threshold) { in dumpThermalStats() local
649 for (const auto &threshold : stats_by_threshold.thresholds) { in dumpThermalStats()
653 if (stats_by_threshold.logging_name.has_value()) { in dumpThermalStats()
654 *dump_buf << " Logging Name: " << stats_by_threshold.logging_name.value() in dumpThermalStats()
657 dumpStatsRecord(dump_buf, stats_by_threshold.stats_record, in dumpThermalStats()
676 for (const auto &stats_by_threshold : request_stats.stats_by_custom_threshold) { in dumpThermalStats() local
678 for (const auto &threshold : stats_by_threshold.thresholds) { in dumpThermalStats()
682 if (stats_by_threshold.logging_name.has_value()) { in dumpThermalStats()
683 *dump_buf << " Logging Name: " << stats_by_threshold.logging_name.value() in dumpThermalStats()
686 dumpStatsRecord(dump_buf, stats_by_threshold.stats_record, in dumpThermalStats()