Lines Matching refs:second
128 for (auto &cdev_ceiling : binded_cdev_info_pair.second.cdev_ceiling) { in maxCoolingRequestCheck()
205 if (name_status_pair.second.throttling_info != nullptr) { in ThermalHelperImpl()
207 name_status_pair.first, name_status_pair.second.throttling_info, in ThermalHelperImpl()
215 maxCoolingRequestCheck(&name_status_pair.second.throttling_info->binded_cdev_info_map); in ThermalHelperImpl()
219 name_status_pair.second.throttling_info->profile_map) { in ThermalHelperImpl()
220 maxCoolingRequestCheck(&cdev_throttling_profile_pair.second); in ThermalHelperImpl()
224 if (name_status_pair.second.virtual_sensor_info != nullptr) { in ThermalHelperImpl()
227 i < name_status_pair.second.virtual_sensor_info->linked_sensors.size(); i++) { in ThermalHelperImpl()
229 name_status_pair.second.virtual_sensor_info->linked_sensors[i], in ThermalHelperImpl()
230 name_status_pair.second.virtual_sensor_info->linked_sensors_type[i])) { in ThermalHelperImpl()
232 << name_status_pair.second.virtual_sensor_info->linked_sensors[i] in ThermalHelperImpl()
240 if (!name_status_pair.second.virtual_sensor_info->backup_sensor.empty()) { in ThermalHelperImpl()
241 if (!isSubSensorValid(name_status_pair.second.virtual_sensor_info->backup_sensor, in ThermalHelperImpl()
244 << name_status_pair.second.virtual_sensor_info->backup_sensor in ThermalHelperImpl()
252 if (!name_status_pair.second.virtual_sensor_info->trigger_sensors.empty() && in ThermalHelperImpl()
253 name_status_pair.second.is_watch) { in ThermalHelperImpl()
255 i < name_status_pair.second.virtual_sensor_info->trigger_sensors.size(); i++) { in ThermalHelperImpl()
257 name_status_pair.second.virtual_sensor_info->trigger_sensors[i])) { in ThermalHelperImpl()
258 sensor_info_map_[name_status_pair.second.virtual_sensor_info in ThermalHelperImpl()
264 << name_status_pair.second.virtual_sensor_info->trigger_sensors[i] in ThermalHelperImpl()
273 if (name_status_pair.second.predictor_info != nullptr) { in ThermalHelperImpl()
274 std::string predict_sensor_name = name_status_pair.second.predictor_info->sensor; in ThermalHelperImpl()
291 if (name_status_pair.second.predictor_info->support_pid_compensation) { in ThermalHelperImpl()
294 name_status_pair.second.predictor_info->prediction_weights.size(); in ThermalHelperImpl()
555 static_cast<size_t>(status.first) > static_cast<size_t>(status.second) in readTemperature()
557 : status.second; in readTemperature()
562 sensor_log << sensor_log_pair.first << ":" << sensor_log_pair.second << " "; in readTemperature()
679 sensor_info_pair.second.is_watch = false; in clearAllThrottling()
680 sensor_info_pair.second.throttling_info.reset(); in clearAllThrottling()
681 sensor_info_pair.second.hot_thresholds.fill(NAN); in clearAllThrottling()
682 sensor_info_pair.second.cold_thresholds.fill(NAN); in clearAllThrottling()
684 .type = sensor_info_pair.second.type, in clearAllThrottling()
690 if (sensor_info_pair.second.send_cb && cb_) { in clearAllThrottling()
694 if (sensor_info_pair.second.send_powerhint) { in clearAllThrottling()
706 if (sensor_info_pair.second.virtual_sensor_info != nullptr) { in initializeSensorMap()
715 if (sensor_info_pair.second.temp_path.empty()) { in initializeSensorMap()
719 path = sensor_info_pair.second.temp_path; in initializeSensorMap()
741 if (!cooling_device_info_pair.second.read_path.empty()) { in initializeCoolingDevices()
742 read_path = cooling_device_info_pair.second.read_path.data(); in initializeCoolingDevices()
759 cooling_device_info_pair.second.state2power.clear(); in initializeCoolingDevices()
765 cooling_device_info_pair.second.state2power.push_back( in initializeCoolingDevices()
780 cooling_device_info_pair.second.max_state = std::numeric_limits<int>::max(); in initializeCoolingDevices()
782 cooling_device_info_pair.second.max_state = std::stoi(::android::base::Trim(max_state)); in initializeCoolingDevices()
784 << " max state: " << cooling_device_info_pair.second.max_state in initializeCoolingDevices()
786 << cooling_device_info_pair.second.state2power.size(); in initializeCoolingDevices()
787 if (cooling_device_info_pair.second.state2power.size() > 0 && in initializeCoolingDevices()
788 static_cast<int>(cooling_device_info_pair.second.state2power.size()) != in initializeCoolingDevices()
789 (cooling_device_info_pair.second.max_state + 1)) { in initializeCoolingDevices()
791 << cooling_device_info_pair.second.state2power.size() in initializeCoolingDevices()
792 << ", number should be " << cooling_device_info_pair.second.max_state + 1 in initializeCoolingDevices()
802 if (!cooling_device_info_pair.second.write_path.empty()) { in initializeCoolingDevices()
803 write_path = cooling_device_info_pair.second.write_path.data(); in initializeCoolingDevices()
827 if (!sensor_info.second.is_watch || (sensor_info.second.virtual_sensor_info != nullptr)) { in initializeTrip()
856 if (!std::isnan(sensor_info.second.hot_thresholds[i]) && in initializeTrip()
857 !std::isnan(sensor_info.second.hot_hysteresis[i])) { in initializeTrip()
860 sensor_info.second.hot_thresholds[i] / sensor_info.second.multiplier)); in initializeTrip()
870 threshold = std::to_string(std::lround(sensor_info.second.hot_hysteresis[i] / in initializeTrip()
871 sensor_info.second.multiplier)); in initializeTrip()
893 setMinTimeout(&sensor_info.second); in initializeTrip()
904 if (name_info_pair.second.is_hidden) { in fillCurrentTemperatures()
907 if (filterType && name_info_pair.second.type != type) { in fillCurrentTemperatures()
910 if (filterCallback && !name_info_pair.second.send_cb) { in fillCurrentTemperatures()
930 if (name_info_pair.second.is_hidden) { in fillTemperatureThresholds()
933 if (filterType && name_info_pair.second.type != type) { in fillTemperatureThresholds()
953 if (filterType && name_info_pair.second.type != type) { in fillCurrentCoolingDevices()
1340 SensorStatus &sensor_status = name_status_pair.second; in thermalWatcherCallbackFunc()
1435 if (throttling_status.second != sensor_status.prev_cold_severity) { in thermalWatcherCallbackFunc()
1436 sensor_status.prev_cold_severity = throttling_status.second; in thermalWatcherCallbackFunc()