Lines Matching refs:sensor_name

61 void ThermalThrottling::parseProfileProperty(std::string_view sensor_name,  in parseProfileProperty()  argument
68 StringPrintf("vendor.thermal.%s.profile", sensor_name.data()), ""); in parseProfileProperty()
71 if (profile != thermal_throttling_status_map_[sensor_name.data()].profile) { in parseProfileProperty()
72 LOG(INFO) << sensor_name.data() << ": throttling profile change to " in parseProfileProperty()
74 thermal_throttling_status_map_[sensor_name.data()].profile = profile; in parseProfileProperty()
77 LOG(ERROR) << sensor_name.data() << ": set profile to default because " << profile in parseProfileProperty()
79 thermal_throttling_status_map_[sensor_name.data()].profile = ""; in parseProfileProperty()
83 void ThermalThrottling::clearThrottlingData(std::string_view sensor_name) { in clearThrottlingData() argument
84 if (!thermal_throttling_status_map_.count(sensor_name.data())) { in clearThrottlingData()
90 thermal_throttling_status_map_.at(sensor_name.data()).pid_power_budget_map) { in clearThrottlingData()
95 thermal_throttling_status_map_.at(sensor_name.data()).pid_cdev_request_map) { in clearThrottlingData()
100 thermal_throttling_status_map_.at(sensor_name.data()).hardlimit_cdev_request_map) { in clearThrottlingData()
105 thermal_throttling_status_map_.at(sensor_name.data()).throttling_release_map) { in clearThrottlingData()
109 thermal_throttling_status_map_[sensor_name.data()].prev_err = NAN; in clearThrottlingData()
110 thermal_throttling_status_map_[sensor_name.data()].i_budget = NAN; in clearThrottlingData()
111 thermal_throttling_status_map_[sensor_name.data()].prev_target = in clearThrottlingData()
113 thermal_throttling_status_map_[sensor_name.data()].prev_power_budget = NAN; in clearThrottlingData()
114 thermal_throttling_status_map_[sensor_name.data()].tran_cycle = 0; in clearThrottlingData()
120 std::string_view sensor_name, const std::shared_ptr<ThrottlingInfo> &throttling_info, in registerThermalThrottling() argument
122 if (thermal_throttling_status_map_.count(sensor_name.data())) { in registerThermalThrottling()
123 LOG(ERROR) << "Sensor " << sensor_name.data() << " throttling map has been registered"; in registerThermalThrottling()
128 LOG(ERROR) << "Sensor " << sensor_name.data() << " has no throttling info"; in registerThermalThrottling()
132 thermal_throttling_status_map_[sensor_name.data()].prev_err = NAN; in registerThermalThrottling()
133 thermal_throttling_status_map_[sensor_name.data()].i_budget = NAN; in registerThermalThrottling()
134 thermal_throttling_status_map_[sensor_name.data()].prev_target = in registerThermalThrottling()
136 thermal_throttling_status_map_[sensor_name.data()].prev_power_budget = NAN; in registerThermalThrottling()
137 thermal_throttling_status_map_[sensor_name.data()].tran_cycle = 0; in registerThermalThrottling()
138 thermal_throttling_status_map_[sensor_name.data()].profile = ""; in registerThermalThrottling()
142 LOG(ERROR) << "Could not find " << sensor_name.data() << "'s binded CDEV " in registerThermalThrottling()
149 thermal_throttling_status_map_[sensor_name.data()] in registerThermalThrottling()
152 thermal_throttling_status_map_[sensor_name.data()] in registerThermalThrottling()
154 thermal_throttling_status_map_[sensor_name.data()] in registerThermalThrottling()
163 thermal_throttling_status_map_[sensor_name.data()] in registerThermalThrottling()
165 thermal_throttling_status_map_[sensor_name.data()] in registerThermalThrottling()
175 thermal_throttling_status_map_[sensor_name.data()] in registerThermalThrottling()
196 std::string sensor_name = temp.name; in updatePowerBudget() local
298 ATRACE_INT((sensor_name + std::string("-power_budget")).c_str(), in updatePowerBudget()
300 ATRACE_INT((sensor_name + std::string("-s_power")).c_str(), in updatePowerBudget()
302 ATRACE_INT((sensor_name + std::string("-time_elapsed_ms")).c_str(), in updatePowerBudget()
304 ATRACE_INT((sensor_name + std::string("-budget_transient")).c_str(), in updatePowerBudget()
306 ATRACE_INT((sensor_name + std::string("-i")).c_str(), in updatePowerBudget()
308 ATRACE_INT((sensor_name + std::string("-target_state")).c_str(), in updatePowerBudget()
311 ATRACE_INT((sensor_name + std::string("-err")).c_str(), in updatePowerBudget()
313 ATRACE_INT((sensor_name + std::string("-p")).c_str(), static_cast<int>(p)); in updatePowerBudget()
314 ATRACE_INT((sensor_name + std::string("-d")).c_str(), static_cast<int>(d)); in updatePowerBudget()
315 ATRACE_INT((sensor_name + std::string("-predict_compensation")).c_str(), in updatePowerBudget()
317 ATRACE_INT((sensor_name + std::string("-temp")).c_str(), in updatePowerBudget()
328 std::string_view sensor_name) { in computeExcludedPower() argument
343 ATRACE_INT((std::string(sensor_name) + std::string("-") + in computeExcludedPower()
350 ATRACE_INT((std::string(sensor_name) + std::string("-excluded_power")).c_str(), in computeExcludedPower()
589 std::string sensor_name, in updateCdevRequestByPower() argument
595 thermal_throttling_status_map_[sensor_name.data()].pid_power_budget_map) { in updateCdevRequestByPower()
603 thermal_throttling_status_map_[sensor_name.data()].pid_cdev_request_map.at( in updateCdevRequestByPower()
610 void ThermalThrottling::updateCdevRequestBySeverity(std::string_view sensor_name, in updateCdevRequestBySeverity() argument
614 const auto &profile = thermal_throttling_status_map_[sensor_name.data()].profile; in updateCdevRequestBySeverity()
620 if (!thermal_throttling_status_map_[sensor_name.data()].hardlimit_cdev_request_map.count( in updateCdevRequestBySeverity()
624 thermal_throttling_status_map_[sensor_name.data()].hardlimit_cdev_request_map.at( in updateCdevRequestBySeverity()
630 LOG(VERBOSE) << "Hard Limit: Sensor " << sensor_name.data() << " update cdev " in updateCdevRequestBySeverity()
632 << thermal_throttling_status_map_[sensor_name.data()] in updateCdevRequestBySeverity()
638 std::string_view sensor_name, in throttlingReleaseUpdate() argument
644 if (!thermal_throttling_status_map_.count(sensor_name.data())) { in throttlingReleaseUpdate()
647 auto &thermal_throttling_status = thermal_throttling_status_map_.at(sensor_name.data()); in throttlingReleaseUpdate()
680 LOG(INFO) << sensor_name.data() << "'s " << binded_cdev_info_pair.first in throttlingReleaseUpdate()
686 "%s-%s", sensor_name.data(), binded_cdev_info_pair.second.power_rail.data()); in throttlingReleaseUpdate()
773 std::string_view sensor_name, const SensorInfo &sensor_info, in computeCoolingDevicesRequest() argument
779 if (!thermal_throttling_status_map_.count(sensor_name.data())) { in computeCoolingDevicesRequest()
783 auto &thermal_throttling_status = thermal_throttling_status_map_.at(sensor_name.data()); in computeCoolingDevicesRequest()
786 const auto &profile = thermal_throttling_status_map_[sensor_name.data()].profile; in computeCoolingDevicesRequest()
815 LOG(VERBOSE) << sensor_name.data() << " binded cooling device " << cdev_name in computeCoolingDevicesRequest()
822 ::android::base::StringPrintf("%s-%s", sensor_name.data(), cdev_name.data()); in computeCoolingDevicesRequest()
849 thermal_stats_helper->updateSensorCdevRequestStats(sensor_name, cdev_name, in computeCoolingDevicesRequest()