Lines Matching refs:max_state
129 if (cdev_ceiling > cdev_info.max_state) { in maxCoolingRequestCheck()
132 << " is higher than max state:" << cdev_info.max_state; in maxCoolingRequestCheck()
134 cdev_ceiling = cdev_info.max_state; in maxCoolingRequestCheck()
595 int max_state; in updateCoolingDevices() local
598 if (thermal_throttling_.getCdevMaxRequest(target_cdev, &max_state)) { in updateCoolingDevices()
599 if (cooling_devices_.writeCdevFile(target_cdev, std::to_string(max_state))) { in updateCoolingDevices()
600 ATRACE_INT(target_cdev.c_str(), max_state); in updateCoolingDevices()
602 << max_state; in updateCoolingDevices()
604 LOG(ERROR) << "Failed to update cdev " << target_cdev << " sysfs to " << max_state; in updateCoolingDevices()
774 std::string max_state; in initializeCoolingDevices() local
777 if (!::android::base::ReadFileToString(max_state_path, &max_state)) { 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()
789 (cooling_device_info_pair.second.max_state + 1)) { in initializeCoolingDevices()
792 << ", number should be " << cooling_device_info_pair.second.max_state + 1 in initializeCoolingDevices()