Lines Matching refs:max_state
325 if (cdev_ceiling > cdev_info.max_state) { in ThermalHelper()
329 << " is higher than max state:" << cdev_info.max_state; in ThermalHelper()
331 cdev_ceiling = cdev_info.max_state; in ThermalHelper()
744 int max_state; in updateCoolingDevices() local
747 max_state = 0; in updateCoolingDevices()
750 if (sensor_request_pair.second > max_state) { in updateCoolingDevices()
751 max_state = sensor_request_pair.second; in updateCoolingDevices()
754 if (cooling_devices_.writeCdevFile(target_cdev, std::to_string(max_state))) { in updateCoolingDevices()
755 LOG(VERBOSE) << "Successfully update cdev " << target_cdev << " sysfs to " << max_state; in updateCoolingDevices()
873 std::string max_state; in initializeCoolingDevices() local
876 if (!android::base::ReadFileToString(max_state_path, &max_state)) { in initializeCoolingDevices()
879 cooling_device_info_pair.second.max_state = std::numeric_limits<int>::max(); in initializeCoolingDevices()
881 cooling_device_info_pair.second.max_state = std::stoi(android::base::Trim(max_state)); in initializeCoolingDevices()
883 << " max state: " << cooling_device_info_pair.second.max_state in initializeCoolingDevices()
888 (size_t)cooling_device_info_pair.second.max_state + 1) { in initializeCoolingDevices()
891 << ", number should be " << cooling_device_info_pair.second.max_state + 1 in initializeCoolingDevices()