Home
last modified time | relevance | path

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

/hardware/google/pixel/thermal/utils/
Dpower_files.cpp44 const PowerSample &curr_sample, float *avg_power) { in calculateAvgPower() argument
46 if (curr_sample.duration == last_sample.duration) { in calculateAvgPower()
50 } else if (curr_sample.duration < last_sample.duration || in calculateAvgPower()
51 curr_sample.energy_counter < last_sample.energy_counter) { in calculateAvgPower()
55 << ", curr_sample=" << curr_sample.energy_counter in calculateAvgPower()
56 << "(T=" << curr_sample.duration << ")"; in calculateAvgPower()
59 const auto duration = curr_sample.duration - last_sample.duration; in calculateAvgPower()
60 const auto deltaEnergy = curr_sample.energy_counter - last_sample.energy_counter; in calculateAvgPower()
108 const auto curr_sample = energy_info_map_.at(power_rail); in registerPowerRailsToWatch() local
111 power_history[i].emplace(curr_sample); in registerPowerRailsToWatch()
[all …]