Home
last modified time | relevance | path

Searched refs:temperature (Results 1 – 25 of 46) sorted by relevance

12

/hardware/interfaces/thermal/1.0/vts/functional/
DVtsHalThermalV1_0TargetTest.cpp126 void checkDeviceTemperature(const Temperature& temperature) { in checkDeviceTemperature() argument
128 EXPECT_TRUE(temperature.type == TemperatureType::UNKNOWN || in checkDeviceTemperature()
129 std::abs(temperature.currentValue) < MAX_DEVICE_TEMPERATURE || in checkDeviceTemperature()
130 isnan(temperature.currentValue)); in checkDeviceTemperature()
133 EXPECT_LT(0u, temperature.name.size()); in checkDeviceTemperature()
136 EXPECT_TRUE(temperature.currentValue < temperature.shutdownThreshold || in checkDeviceTemperature()
137 isnan(temperature.currentValue) || isnan(temperature.shutdownThreshold)); in checkDeviceTemperature()
140 EXPECT_TRUE(temperature.throttlingThreshold < temperature.shutdownThreshold || in checkDeviceTemperature()
141 isnan(temperature.throttlingThreshold) || isnan(temperature.shutdownThreshold)); in checkDeviceTemperature()
/hardware/interfaces/thermal/1.0/
Dtypes.hal19 /** Device temperature types */
36 * This temperature's type.
41 * Name of this temperature.
48 * Current temperature in Celsius. If not available set by HAL to NAN.
49 * Current temperature can be in any units if type=UNKNOWN.
54 * Throttling temperature constant for this temperature.
60 * Shutdown temperature constant for this temperature.
66 * Threshold temperature above which the VR mode clockrate minimums cannot
/hardware/interfaces/thermal/2.0/
Dtypes.hal21 /** Device temperature types */
89 * This temperature's type.
94 * Name of this temperature matching the Temperature struct.
101 * Hot throttling temperature constant for this temperature sensor in
103 * happens when temperature >= threshold. If not available, set to NAN.
109 * Cold throttling temperature constant for this temperature sensor in
111 * happens when temperature <= threshold. If not available, set to NAN.
117 * Threshold temperature above which the VR mode clockrate minimums cannot
126 * This temperature's type.
131 * Name of this temperature matching the TemperatureThreshold.
[all …]
DIThermalChangedCallback.hal29 * @param temperature The temperature associated with the
32 oneway notifyThrottling (Temperature temperature);
/hardware/google/pixel/usb/
DUsbOverheatEvent.cpp140 float temperature = 0; in monitorThread() local
145 &temperature)) { in monitorThread()
148 max(temperature, overheatEvent->max_overheat_temp_); in monitorThread()
151 status.append(std::to_string(temperature)); in monitorThread()
305 for (auto temperature : thermal_temperatures) { in getCurrentTemperature() local
306 if (temperature.name == name) { in getCurrentTemperature()
307 *temp = temperature.value; in getCurrentTemperature()
346 Return<void> UsbOverheatEvent::notifyThrottling(const Temperature &temperature) { in notifyThrottling() argument
347 ALOGV("notifyThrottling '%s' T=%2.2f throttlingStatus=%d", temperature.name.c_str(), in notifyThrottling()
348 temperature.value, temperature.throttlingStatus); in notifyThrottling()
[all …]
/hardware/interfaces/thermal/1.1/vts/functional/
DVtsHalThermalV1_1TargetTest.cpp47 Temperature temperature; member in ThermalCallbackArgs
58 const Temperature& temperature) override { in notifyThrottling() argument
61 args.temperature = temperature; in notifyThrottling()
100 EXPECT_EQ(kThrottleTemp, res.args->temperature); in TEST_P()
/hardware/interfaces/thermal/utils/
DThermalHidlWrapper.cpp81 Temperature_2_0 convertAidlTemperature(const Temperature& temperature) { in convertAidlTemperature() argument
83 convertAidlTemperatureType(temperature.type), temperature.name, temperature.value, in convertAidlTemperature()
84 static_cast<ThrottlingSeverity_2_0>(temperature.throttlingStatus)}; in convertAidlTemperature()
145 for (const auto& temperature : ret_aidl) { in getCurrentTemperatures() local
146 ret.push_back(convertAidlTemperature(temperature)); in getCurrentTemperatures()
297 const Temperature& temperature) { in notifyThrottling() argument
298 callback_2_0_->notifyThrottling(convertAidlTemperature(temperature)); in notifyThrottling()
/hardware/interfaces/thermal/1.1/
DIThermalCallback.hal29 * @param temperature The temperature associated with the throttling
32 oneway notifyThrottling(bool isThrottling, Temperature temperature);
/hardware/interfaces/thermal/aidl/aidl_api/android.hardware.thermal/1/android/hardware/thermal/
DIThermalChangedCallback.aidl38 oneway void notifyThrottling(in android.hardware.thermal.Temperature temperature); in notifyThrottling() argument
/hardware/interfaces/thermal/aidl/aidl_api/android.hardware.thermal/2/android/hardware/thermal/
DIThermalChangedCallback.aidl38 oneway void notifyThrottling(in android.hardware.thermal.Temperature temperature); in notifyThrottling() argument
/hardware/interfaces/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/
DIThermalChangedCallback.aidl38 oneway void notifyThrottling(in android.hardware.thermal.Temperature temperature); in notifyThrottling() argument
/hardware/interfaces/thermal/aidl/android/hardware/thermal/
DIThermalChangedCallback.aidl34 oneway void notifyThrottling(in Temperature temperature); in notifyThrottling() argument
/hardware/interfaces/thermal/utils/tests/
DThermalHidlWrapperTest.cpp77 Temperature temperature; member in aidl::android::hardware::thermal::__anone92e998d0111::ThermalCallbackArgs
84 Return<void> notifyThrottling(const Temperature& temperature) override { in notifyThrottling() argument
86 args.temperature = temperature; in notifyThrottling()
139 EXPECT_EQ(kThrottleTemp, res.args->temperature); in TEST_P()
/hardware/interfaces/thermal/2.0/vts/functional/
DVtsHalThermalV2_0TargetTest.cpp53 Temperature temperature; member in ThermalCallbackArgs
60 Return<void> notifyThrottling(const Temperature& temperature) override { in notifyThrottling() argument
62 args.temperature = temperature; in notifyThrottling()
113 EXPECT_EQ(kThrottleTemp, res.args->temperature); in TEST_P()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/
Dinv_self_test.c58 char *temperature; member
193 sprintf(mpu.temperature, "%s%s", sysfs_path, "/temperature"); in inv_init_sysfs_attributes()
266 long long temperature = 0; in main() local
451 fptr = fopen(mpu.temperature, "r"); in main()
453 fscanf(fptr,"%lld %ld", &temperature, &timestamp); in main()
478 save_data.gyro_temp = temperature * (1L << 16); in main()
/hardware/interfaces/thermal/1.0/default/
DThermal.cpp39 float finalizeTemperature(float temperature) { in finalizeTemperature() argument
40 return temperature == UNKNOWN_TEMPERATURE ? NAN : temperature; in finalizeTemperature()
/hardware/google/camera/common/hal/aidl_service/
Daidl_thermal_utils.h41 const aidl::android::hardware::thermal::Temperature& temperature) override;
Daidl_thermal_utils.cc216 const Temperature& temperature) { in notifyThrottling() argument
218 status_t res = ConvertToHalTemperature(temperature, &hal_temperature); in notifyThrottling()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dinv_sysfs_utils.h29 const char *temperature; member
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dinv_sysfs_utils.h35 const char *temperature; member
/hardware/google/pixel/thermal/utils/
Dthermal_stats_helper.cpp307 float temperature) { in updateSensorTempStatsByThreshold() argument
309 verifySensorAbnormality(sensor, temperature); in updateSensorTempStatsByThreshold()
316 int value = calculateThresholdBucket(stats_by_threshold.thresholds, temperature); in updateSensorTempStatsByThreshold()
323 if (temperature > sensor_temp_stats.max_temp) { in updateSensorTempStatsByThreshold()
324 sensor_temp_stats.max_temp = temperature; in updateSensorTempStatsByThreshold()
327 if (temperature < sensor_temp_stats.min_temp) { in updateSensorTempStatsByThreshold()
328 sensor_temp_stats.min_temp = temperature; in updateSensorTempStatsByThreshold()
Dthermal_stats_helper.h145 void updateSensorTempStatsByThreshold(std::string_view sensor, float temperature);
187 void verifySensorAbnormality(std::string_view sensor, float temperature);
/hardware/google/camera/common/hal/google_camera_hal/
Dcamera_device_session.cc610 NotifyThrottlingFunc([this](const Temperature& temperature) { in SetSessionCallback() argument
611 NotifyThrottling(temperature); in SetSessionCallback()
621 void CameraDeviceSession::NotifyThrottling(const Temperature& temperature) { in NotifyThrottling() argument
622 switch (temperature.throttling_status) { in NotifyThrottling()
627 temperature.type, temperature.throttling_status, temperature.value); in NotifyThrottling()
634 temperature.type, temperature.throttling_status, temperature.value); in NotifyThrottling()
642 temperature.throttling_status, temperature.type); in NotifyThrottling()
/hardware/google/pixel/usb/include/pixelusb/
DUsbOverheatEvent.h129 Return<void> notifyThrottling(const Temperature &temperature) override;
/hardware/interfaces/thermal/aidl/vts/
DVtsHalThermalTargetTest.cpp377 auto temperature = temperatures[0]; in TEST_P() local
379 ASSERT_EQ(temperature.name, threshold.name); in TEST_P()
382 ASSERT_NE(NAN, temperature.value); in TEST_P()

12