Lines Matching refs:first
287 sensor_status_map_[name_status_pair.first] = { in ThermalHelper()
300 if (!cooling_device_info_map_.count(binded_cdev_pair.first)) { in ThermalHelper()
302 LOG(ERROR) << "Could not find " << binded_cdev_pair.first in ThermalHelper()
308 sensor_status_map_[name_status_pair.first] in ThermalHelper()
309 .pid_request_map[binded_cdev_pair.first] = 0; in ThermalHelper()
310 cdev_status_map_[binded_cdev_pair.first][name_status_pair.first] = 0; in ThermalHelper()
317 sensor_status_map_[name_status_pair.first] in ThermalHelper()
318 .hard_limit_request_map[binded_cdev_pair.first] = 0; in ThermalHelper()
319 cdev_status_map_[binded_cdev_pair.first][name_status_pair.first] = 0; in ThermalHelper()
322 const auto &cdev_info = cooling_device_info_map_.at(binded_cdev_pair.first); in ThermalHelper()
327 LOG(ERROR) << "Sensor " << name_status_pair.first << "'s " in ThermalHelper()
328 << binded_cdev_pair.first << " cdev_ceiling:" << cdev_ceiling in ThermalHelper()
341 name_status_pair.first, binded_cdev_pair.first, binded_cdev_pair.second, in ThermalHelper()
344 LOG(ERROR) << "Could not find " << binded_cdev_pair.first in ThermalHelper()
352 sensor_status_map_[name_status_pair.first].hard_limit_request_map.clear(); in ThermalHelper()
353 sensor_status_map_[name_status_pair.first].pid_request_map.clear(); in ThermalHelper()
363 LOG(FATAL) << name_status_pair.first << " does not have trigger sensor: " in ThermalHelper()
375 if (cooling_devices_.writeCdevFile(cdev_pair.first, std::to_string(0))) { in ThermalHelper()
376 LOG(INFO) << "Successfully clear cdev " << cdev_pair.first << " to 0"; in ThermalHelper()
531 out->throttlingStatus = static_cast<size_t>(status.first) > static_cast<size_t>(status.second) in readTemperature()
532 ? status.first in readTemperature()
654 cooling_device_info_map_.at(binded_cdev_info_pair.first); in requestCdevByPower()
660 sensor_status->pid_request_map.at(binded_cdev_info_pair.first) = static_cast<int>(j); in requestCdevByPower()
662 << cdev_power_budget << "mW to " << binded_cdev_info_pair.first in requestCdevByPower()
672 sensor_status->hard_limit_request_map.at(binded_cdev_info_pair.first) = in requestCdevBySeverity()
676 << binded_cdev_info_pair.first << " to " in requestCdevBySeverity()
677 << sensor_status->hard_limit_request_map.at(binded_cdev_info_pair.first); in requestCdevBySeverity()
694 sensor_info.throttling_info->binded_cdev_info_map.at(cdev_request_pair.first); in computeCoolingDevicesRequest()
702 if (sensor_status.pid_request_map.count(cdev_request_pair.first)) { in computeCoolingDevicesRequest()
703 pid_request = sensor_status.pid_request_map.at(cdev_request_pair.first); in computeCoolingDevicesRequest()
706 if (sensor_status.hard_limit_request_map.count(cdev_request_pair.first)) { in computeCoolingDevicesRequest()
707 hard_limit_request = sensor_status.hard_limit_request_map.at(cdev_request_pair.first); in computeCoolingDevicesRequest()
710 release_step = power_files_.getReleaseStep(sensor_name, cdev_request_pair.first); in computeCoolingDevicesRequest()
712 << cdev_request_pair.first << "'s pid_request=" << pid_request in computeCoolingDevicesRequest()
736 cooling_devices_to_update->emplace_back(cdev_request_pair.first); in computeCoolingDevicesRequest()
737 LOG(INFO) << "Sensor: " << sensor_name.data() << " request " << cdev_request_pair.first in computeCoolingDevicesRequest()
804 std::string_view sensor_name = sensor_info_pair.first; in initializeSensorMap()
832 std::string cooling_device_name = cooling_device_info_pair.first; in initializeCoolingDevices()
856 LOG(INFO) << "Cooling device " << cooling_device_info_pair.first in initializeCoolingDevices()
866 LOG(INFO) << "Cooling device " << cooling_device_info_pair.first << " state:" << i in initializeCoolingDevices()
877 LOG(ERROR) << cooling_device_info_pair.first in initializeCoolingDevices()
882 LOG(INFO) << "Cooling device " << cooling_device_info_pair.first in initializeCoolingDevices()
934 std::string_view sensor_name = sensor_info.first; in initializeTrip()
989 monitored_sensors->insert(sensor_info.first); in initializeTrip()
993 LOG(INFO) << "config Sensor: " << sensor_info.first in initializeTrip()
1006 if (readTemperature(name_info_pair.first, &temp, in fillTemperatures()
1011 << ": error reading temperature for sensor: " << name_info_pair.first; in fillTemperatures()
1031 if (readTemperature(name_info_pair.first, &temp, nullptr, in fillCurrentTemperatures()
1036 << ": error reading temperature for sensor: " << name_info_pair.first; in fillCurrentTemperatures()
1051 if (readTemperatureThreshold(name_info_pair.first, &temp)) { in fillTemperatureThresholds()
1055 << name_info_pair.first; in fillTemperatureThresholds()
1071 if (readCoolingDevice(name_info_pair.first, &value)) { in fillCurrentCoolingDevices()
1074 LOG(ERROR) << __func__ << ": error reading cooling device: " << name_info_pair.first; in fillCurrentCoolingDevices()
1165 const SensorInfo &sensor_info = sensor_info_map_.at(name_status_pair.first); in thermalWatcherCallbackFunc()
1179 LOG(VERBOSE) << "Force update " << name_status_pair.first in thermalWatcherCallbackFunc()
1191 : name_status_pair.first) != in thermalWatcherCallbackFunc()
1205 LOG(VERBOSE) << "sensor " << name_status_pair.first in thermalWatcherCallbackFunc()
1214 LOG(VERBOSE) << "sensor " << name_status_pair.first in thermalWatcherCallbackFunc()
1220 if (!readTemperature(name_status_pair.first, &temp, &throtting_status, in thermalWatcherCallbackFunc()
1223 << ": error reading temperature for sensor: " << name_status_pair.first; in thermalWatcherCallbackFunc()
1226 if (!readTemperatureThreshold(name_status_pair.first, &threshold)) { in thermalWatcherCallbackFunc()
1228 << name_status_pair.first; in thermalWatcherCallbackFunc()
1235 if (throtting_status.first != sensor_status.prev_hot_severity) { in thermalWatcherCallbackFunc()
1236 sensor_status.prev_hot_severity = throtting_status.first; in thermalWatcherCallbackFunc()
1262 if (!requestCdevByPower(name_status_pair.first, &sensor_status, sensor_info, in thermalWatcherCallbackFunc()
1270 requestCdevBySeverity(name_status_pair.first, &sensor_status, sensor_info); in thermalWatcherCallbackFunc()
1276 power_files_.setPowerDataToDefault(name_status_pair.first); in thermalWatcherCallbackFunc()
1285 name_status_pair.first, binded_cdev_info_pair.first, in thermalWatcherCallbackFunc()
1296 computeCoolingDevicesRequest(name_status_pair.first, sensor_info, sensor_status, in thermalWatcherCallbackFunc()
1303 LOG(VERBOSE) << "Sensor " << name_status_pair.first << ": sleep_ms=" << sleep_ms.count() in thermalWatcherCallbackFunc()
1340 supported_powerhint_map_[name_status_pair.first][ThrottlingSeverity::NONE] = in updateSupportedPowerHints()
1349 isSupported = power_hal_service_.isModeSupported(name_status_pair.first, severity); in updateSupportedPowerHints()
1353 supported_powerhint_map_[name_status_pair.first][severity] = current_severity; in updateSupportedPowerHints()