Home
last modified time | relevance | path

Searched refs:ThrottlingSeverity (Results 1 – 25 of 30) sorted by relevance

12

/hardware/google/camera/common/hal/aidl_service/
Daidl_thermal_utils.cc30 using ::aidl::android::hardware::thermal::ThrottlingSeverity;
143 const ThrottlingSeverity& aidl_throttling_severity, in ConvertToHalThrottlingSeverity()
144 google_camera_hal::ThrottlingSeverity* hal_throttling_severity) { in ConvertToHalThrottlingSeverity()
151 case ThrottlingSeverity::NONE: in ConvertToHalThrottlingSeverity()
152 *hal_throttling_severity = google_camera_hal::ThrottlingSeverity::kNone; in ConvertToHalThrottlingSeverity()
154 case ThrottlingSeverity::LIGHT: in ConvertToHalThrottlingSeverity()
155 *hal_throttling_severity = google_camera_hal::ThrottlingSeverity::kLight; in ConvertToHalThrottlingSeverity()
157 case ThrottlingSeverity::MODERATE: in ConvertToHalThrottlingSeverity()
159 google_camera_hal::ThrottlingSeverity::kModerate; in ConvertToHalThrottlingSeverity()
161 case ThrottlingSeverity::SEVERE: in ConvertToHalThrottlingSeverity()
[all …]
Daidl_thermal_utils.h53 const aidl::android::hardware::thermal::ThrottlingSeverity&
55 google_camera_hal::ThrottlingSeverity* hal_throttling_severity);
/hardware/google/pixel/thermal/utils/
Dpowerhal_helper.cpp118 for (const auto &severity : ::ndk::enum_range<ThrottlingSeverity>()) { in reconnect()
136 ThrottlingSeverity current_severity = ThrottlingSeverity::NONE; in updateSupportedPowerHints()
137 for (const auto &severity : ::ndk::enum_range<ThrottlingSeverity>()) { in updateSupportedPowerHints()
138 if (severity == ThrottlingSeverity::NONE) { in updateSupportedPowerHints()
140 .hint_severity_map[ThrottlingSeverity::NONE] = ThrottlingSeverity::NONE; in updateSupportedPowerHints()
161 ThrottlingSeverity prev_hint_severity = supported_powerhint_map_[t.name].prev_hint_severity; in sendPowerExtHint()
162 ThrottlingSeverity current_hint_severity = in sendPowerExtHint()
175 for (const auto &severity : ::ndk::enum_range<ThrottlingSeverity>()) { in sendPowerExtHint()
189 bool PowerHalService::isModeSupported(const std::string &type, const ThrottlingSeverity &t) { in isModeSupported()
207 void PowerHalService::setMode(const std::string &type, const ThrottlingSeverity &t, in setMode()
Dpowerhal_helper.h45 std::unordered_map<ThrottlingSeverity, ThrottlingSeverity> hint_severity_map;
46 ThrottlingSeverity prev_hint_severity;
56 bool isModeSupported(const std::string &type, const ThrottlingSeverity &t);
59 void setMode(const std::string &type, const ThrottlingSeverity &t, const bool &enable,
Dthermal_throttling.h55 size_t getTargetStateOfPID(const SensorInfo &sensor_info, const ThrottlingSeverity curr_severity);
81 const ThrottlingSeverity curr_severity, const std::chrono::milliseconds time_elapsed_ms,
89 const ThrottlingSeverity curr_severity,
102 std::chrono::milliseconds time_elapsed_ms, ThrottlingSeverity curr_severity,
108 const ThrottlingSeverity curr_severity,
115 const ThrottlingSeverity curr_severity, const std::chrono::milliseconds time_elapsed_ms,
125 ThrottlingSeverity curr_severity);
132 const ThrottlingSeverity severity, const SensorInfo &sensor_info);
Dthermal_throttling.cpp44 size_t getTargetStateOfPID(const SensorInfo &sensor_info, const ThrottlingSeverity curr_severity) { in getTargetStateOfPID()
47 for (const auto &severity : ::ndk::enum_range<ThrottlingSeverity>()) { in getTargetStateOfPID()
112 static_cast<size_t>(ThrottlingSeverity::NONE); in clearThrottlingData()
135 static_cast<size_t>(ThrottlingSeverity::NONE); in registerThermalThrottling()
189 std::chrono::milliseconds time_elapsed_ms, ThrottlingSeverity curr_severity, in updatePowerBudget()
198 if (curr_severity == ThrottlingSeverity::NONE) { in updatePowerBudget()
203 if (throttling_status.prev_target != static_cast<size_t>(ThrottlingSeverity::NONE) && in updatePowerBudget()
326 const SensorInfo &sensor_info, const ThrottlingSeverity curr_severity, in computeExcludedPower()
358 const ThrottlingSeverity curr_severity, const std::chrono::milliseconds time_elapsed_ms, in allocatePowerToCdev()
612 ThrottlingSeverity curr_severity) { in updateCdevRequestBySeverity()
[all …]
Dthermal_info.h39 std::distance(::ndk::enum_range<ThrottlingSeverity>().begin(),
40 ::ndk::enum_range<ThrottlingSeverity>().end());
/hardware/google/pixel/thermal/
Dthermal-helper.h70 ThrottlingSeverity severity;
71 ThrottlingSeverity prev_hot_severity;
72 ThrottlingSeverity prev_cold_severity;
95 std::pair<ThrottlingSeverity, ThrottlingSeverity> *throtting_status = nullptr,
146 std::pair<ThrottlingSeverity, ThrottlingSeverity> *throtting_status = nullptr,
210 std::pair<ThrottlingSeverity, ThrottlingSeverity> getSeverityFromThresholds(
213 ThrottlingSeverity prev_hot_severity, ThrottlingSeverity prev_cold_severity,
241 std::unordered_map<std::string, std::unordered_map<ThrottlingSeverity, ThrottlingSeverity>>
Dthermal-helper.cpp197 .severity = ThrottlingSeverity::NONE, in ThermalHelperImpl()
198 .prev_hot_severity = ThrottlingSeverity::NONE, in ThermalHelperImpl()
199 .prev_cold_severity = ThrottlingSeverity::NONE, in ThermalHelperImpl()
504 std::pair<ThrottlingSeverity, ThrottlingSeverity> *throttling_status, in readTemperature() argument
528 std::pair<ThrottlingSeverity, ThrottlingSeverity> status = in readTemperature()
529 std::make_pair(ThrottlingSeverity::NONE, ThrottlingSeverity::NONE); in readTemperature()
532 ThrottlingSeverity prev_hot_severity, prev_cold_severity; in readTemperature()
552 static_cast<ThrottlingSeverity>(sensor_status.override_status.emul_temp->severity); in readTemperature()
610 std::pair<ThrottlingSeverity, ThrottlingSeverity> ThermalHelperImpl::getSeverityFromThresholds( in getSeverityFromThresholds()
613 ThrottlingSeverity prev_hot_severity, ThrottlingSeverity prev_cold_severity, in getSeverityFromThresholds()
[all …]
/hardware/google/camera/common/hal/common/
Dthermal_types.h47 enum class ThrottlingSeverity : uint32_t { enum
63 ThrottlingSeverity throttling_status = ThrottlingSeverity::kNone;
/hardware/interfaces/thermal/aidl/android/hardware/thermal/
DTemperature.aidl20 import android.hardware.thermal.ThrottlingSeverity;
47 ThrottlingSeverity throttlingStatus;
DThrottlingSeverity.aidl25 enum ThrottlingSeverity { enum
/hardware/google/pixel/usb/include/pixelusb/
DUsbOverheatEvent.h61 using ::android::hardware::thermal::V2_0::ThrottlingSeverity;
82 ThrottlingSeverity severity_;
83 ZoneInfo(const TemperatureType &type, const string &name, const ThrottlingSeverity &severity);
/hardware/interfaces/thermal/2.0/
Dtypes.hal48 enum ThrottlingSeverity : uint32_t {
102 * level defined in ThrottlingSeverity including shutdown. Throttling
106 float[ThrottlingSeverity#len] hotThrottlingThresholds;
110 * level defined in ThrottlingSeverity including shutdown. Throttling
114 float[ThrottlingSeverity#len] coldThrottlingThresholds;
149 ThrottlingSeverity throttlingStatus;
/hardware/google/pixel/thermal/tests/
Dmock_thermal_helper.h43 (std::pair<ThrottlingSeverity, ThrottlingSeverity> *), const bool),
/hardware/interfaces/thermal/aidl/aidl_api/android.hardware.thermal/2/android/hardware/thermal/
DThrottlingSeverity.aidl37 enum ThrottlingSeverity { enum
DTemperature.aidl41 android.hardware.thermal.ThrottlingSeverity throttlingStatus;
/hardware/interfaces/thermal/aidl/aidl_api/android.hardware.thermal/1/android/hardware/thermal/
DThrottlingSeverity.aidl37 enum ThrottlingSeverity { enum
DTemperature.aidl41 android.hardware.thermal.ThrottlingSeverity throttlingStatus;
/hardware/interfaces/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/
DThrottlingSeverity.aidl37 enum ThrottlingSeverity { enum
DTemperature.aidl41 android.hardware.thermal.ThrottlingSeverity throttlingStatus;
/hardware/interfaces/thermal/utils/include/thermalutils/
DThermalHidlWrapper.h53 using ThrottlingSeverity_2_0 = ::android::hardware::thermal::V2_0::ThrottlingSeverity;
/hardware/interfaces/thermal/utils/tests/
DThermalHidlWrapperTest.cpp65 using ::android::hardware::thermal::V2_0::ThrottlingSeverity;
72 .throttlingStatus = ThrottlingSeverity::CRITICAL,
/hardware/interfaces/thermal/2.0/vts/functional/
DVtsHalThermalV2_0TargetTest.cpp41 using ::android::hardware::thermal::V2_0::ThrottlingSeverity;
48 .throttlingStatus = ThrottlingSeverity::CRITICAL,
/hardware/google/camera/common/hal/google_camera_hal/
Dcamera_device_session.cc623 case ThrottlingSeverity::kNone: in NotifyThrottling()
624 case ThrottlingSeverity::kLight: in NotifyThrottling()
625 case ThrottlingSeverity::kModerate: in NotifyThrottling()
629 case ThrottlingSeverity::kSevere: in NotifyThrottling()
630 case ThrottlingSeverity::kCritical: in NotifyThrottling()
631 case ThrottlingSeverity::kEmergency: in NotifyThrottling()
632 case ThrottlingSeverity::kShutdown: in NotifyThrottling()

12