Lines Matching refs:ThrottlingSeverity
224 bool PowerHalService::isModeSupported(const std::string &type, const ThrottlingSeverity &t) { in isModeSupported()
243 void PowerHalService::setMode(const std::string &type, const ThrottlingSeverity &t, in setMode()
288 .severity = ThrottlingSeverity::NONE, in ThermalHelper()
289 .prev_hot_severity = ThrottlingSeverity::NONE, in ThermalHelper()
290 .prev_cold_severity = ThrottlingSeverity::NONE, in ThermalHelper()
291 .prev_hint_severity = ThrottlingSeverity::NONE, in ThermalHelper()
475 sensor_info.hot_thresholds[static_cast<size_t>(ThrottlingSeverity::SEVERE)]; in readTemperature()
477 sensor_info.hot_thresholds[static_cast<size_t>(ThrottlingSeverity::SHUTDOWN)]; in readTemperature()
485 std::pair<ThrottlingSeverity, ThrottlingSeverity> *throtting_status, in readTemperature() argument
512 std::pair<ThrottlingSeverity, ThrottlingSeverity> status = in readTemperature()
513 std::make_pair(ThrottlingSeverity::NONE, ThrottlingSeverity::NONE); in readTemperature()
516 ThrottlingSeverity prev_hot_severity, prev_cold_severity; in readTemperature()
564 for (const auto &severity : hidl_enum_range<ThrottlingSeverity>()) { in getTargetStateOfPID()
586 if (!target_state || (sensor_status->severity == ThrottlingSeverity::NONE)) { in pidPowerCalculator()
760 std::pair<ThrottlingSeverity, ThrottlingSeverity> ThermalHelper::getSeverityFromThresholds( in getSeverityFromThresholds()
763 ThrottlingSeverity prev_hot_severity, ThrottlingSeverity prev_cold_severity, in getSeverityFromThresholds()
765 ThrottlingSeverity ret_hot = ThrottlingSeverity::NONE; in getSeverityFromThresholds()
766 ThrottlingSeverity ret_hot_hysteresis = ThrottlingSeverity::NONE; in getSeverityFromThresholds()
767 ThrottlingSeverity ret_cold = ThrottlingSeverity::NONE; in getSeverityFromThresholds()
768 ThrottlingSeverity ret_cold_hysteresis = ThrottlingSeverity::NONE; in getSeverityFromThresholds()
772 for (size_t i = static_cast<size_t>(ThrottlingSeverity::SHUTDOWN); in getSeverityFromThresholds()
773 i > static_cast<size_t>(ThrottlingSeverity::NONE); --i) { in getSeverityFromThresholds()
775 ret_hot == ThrottlingSeverity::NONE) { in getSeverityFromThresholds()
776 ret_hot = static_cast<ThrottlingSeverity>(i); in getSeverityFromThresholds()
779 ret_hot_hysteresis == ThrottlingSeverity::NONE) { in getSeverityFromThresholds()
780 ret_hot_hysteresis = static_cast<ThrottlingSeverity>(i); in getSeverityFromThresholds()
783 ret_cold == ThrottlingSeverity::NONE) { in getSeverityFromThresholds()
784 ret_cold = static_cast<ThrottlingSeverity>(i); in getSeverityFromThresholds()
787 ret_cold_hysteresis == ThrottlingSeverity::NONE) { in getSeverityFromThresholds()
788 ret_cold_hysteresis = static_cast<ThrottlingSeverity>(i); in getSeverityFromThresholds()
1173 auto sleep_ms = (sensor_status.severity != ThrottlingSeverity::NONE) in thermalWatcherCallbackFunc()
1199 if (trigger_sensor_status.severity != ThrottlingSeverity::NONE) { in thermalWatcherCallbackFunc()
1219 std::pair<ThrottlingSeverity, ThrottlingSeverity> throtting_status; in thermalWatcherCallbackFunc()
1245 sleep_ms = (sensor_status.severity != ThrottlingSeverity::NONE) in thermalWatcherCallbackFunc()
1251 if (sensor_status.severity != ThrottlingSeverity::NONE) { in thermalWatcherCallbackFunc()
1275 if (sensor_status.severity == ThrottlingSeverity::NONE) { in thermalWatcherCallbackFunc()
1337 ThrottlingSeverity current_severity = ThrottlingSeverity::NONE; in updateSupportedPowerHints()
1338 for (const auto &severity : hidl_enum_range<ThrottlingSeverity>()) { in updateSupportedPowerHints()
1339 if (severity == ThrottlingSeverity::NONE) { in updateSupportedPowerHints()
1340 supported_powerhint_map_[name_status_pair.first][ThrottlingSeverity::NONE] = in updateSupportedPowerHints()
1341 ThrottlingSeverity::NONE; in updateSupportedPowerHints()
1361 ThrottlingSeverity prev_hint_severity; in sendPowerExtHint()
1363 ThrottlingSeverity current_hint_severity = supported_powerhint_map_[t.name][t.throttlingStatus]; in sendPowerExtHint()
1368 if (prev_hint_severity != ThrottlingSeverity::NONE) { in sendPowerExtHint()
1372 if (current_hint_severity != ThrottlingSeverity::NONE) { in sendPowerExtHint()