Home
last modified time | relevance | path

Searched refs:power_history (Results 1 – 3 of 3) sorted by relevance

/hardware/google/pixel/thermal/utils/
Dpower_files.cpp90 std::vector<std::queue<PowerSample>> power_history; in registerPowerRailsToWatch() local
109 power_history.emplace_back(std::queue<PowerSample>()); in registerPowerRailsToWatch()
111 power_history[i].emplace(curr_sample); in registerPowerRailsToWatch()
117 power_history.emplace_back(std::queue<PowerSample>()); in registerPowerRailsToWatch()
119 power_history[0].emplace(curr_sample); in registerPowerRailsToWatch()
127 if (power_history.size()) { in registerPowerRailsToWatch()
130 .power_history = power_history, in registerPowerRailsToWatch()
239 std::queue<PowerSample> *power_history) { in updateAveragePower() argument
245 const auto last_sample = power_history->front(); in updateAveragePower()
248 power_history->pop(); in updateAveragePower()
[all …]
Dpower_files.h46 std::vector<std::queue<PowerSample>> power_history; member
87 float updateAveragePower(std::string_view power_rail, std::queue<PowerSample> *power_history);
/hardware/google/pixel/thermal/
DThermal.cpp570 auto power_history = power_status_map.at(power_rail_pair.first).power_history; in dumpPowerRailInfo() local
595 for (size_t i = 0; i < power_history.size(); ++i) { in dumpPowerRailInfo()
608 while (power_history[i].size() > 0) { in dumpPowerRailInfo()
609 const auto power_sample = power_history[i].front(); in dumpPowerRailInfo()
610 power_history[i].pop(); in dumpPowerRailInfo()