Home
last modified time | relevance | path

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

/hardware/google/pixel/thermal/utils/
Dpower_files.h38 struct PowerSample { struct
46 std::vector<std::queue<PowerSample>> power_history; argument
53 std::unordered_map<std::string, PowerSample> prev_energy_info_map;
87 float updateAveragePower(std::string_view power_rail, std::queue<PowerSample> *power_history);
93 std::unordered_map<std::string, PowerSample> energy_info_map_;
Dpower_files.cpp43 bool calculateAvgPower(std::string_view power_rail, const PowerSample &last_sample, in calculateAvgPower()
44 const PowerSample &curr_sample, float *avg_power) { in calculateAvgPower()
90 std::vector<std::queue<PowerSample>> power_history; in registerPowerRailsToWatch()
109 power_history.emplace_back(std::queue<PowerSample>()); in registerPowerRailsToWatch()
117 power_history.emplace_back(std::queue<PowerSample>()); in registerPowerRailsToWatch()
239 std::queue<PowerSample> *power_history) { in updateAveragePower()