Lines Matching refs:cooling_device_info_pair
732 for (auto &cooling_device_info_pair : cooling_device_info_map_) { in initializeCoolingDevices() local
733 std::string cooling_device_name = cooling_device_info_pair.first; in initializeCoolingDevices()
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()
757 LOG(INFO) << "Cooling device " << cooling_device_info_pair.first in initializeCoolingDevices()
759 cooling_device_info_pair.second.state2power.clear(); in initializeCoolingDevices()
765 cooling_device_info_pair.second.state2power.push_back( in initializeCoolingDevices()
767 LOG(INFO) << "Cooling device " << cooling_device_info_pair.first << " state:" << i in initializeCoolingDevices()
778 LOG(ERROR) << cooling_device_info_pair.first 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()
783 LOG(INFO) << "Cooling device " << cooling_device_info_pair.first 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()