Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
temperature_t Struct Reference
#include <
thermal.h
>
Definition at line
52
of file
thermal.h
.
Current temperature in Celsius. If not available set by HAL to UNKNOWN_TEMPERATURE. Current temperature can be in any units if type=DEVICE_TEMPERATURE_UNKNOWN.
Definition at line
70
of file
thermal.h
.
Name of this temperature. All temperatures of the same "type" must have a different "name".
Definition at line
62
of file
thermal.h
.
Shutdown temperature constant for this temperature. If not available, set by HAL to UNKNOWN_TEMPERATURE.
Definition at line
82
of file
thermal.h
.
float throttling_threshold
|
Throttling temperature constant for this temperature. If not available, set by HAL to UNKNOWN_TEMPERATURE.
Definition at line
76
of file
thermal.h
.
This temperature's type.
Definition at line
56
of file
thermal.h
.
float vr_throttling_threshold
|
Threshold temperature above which the VR mode clockrate minimums cannot be maintained for this device. If not available, set by HAL to UNKNOWN_TEMPERATURE.
Definition at line
89
of file
thermal.h
.
The documentation for this struct was generated from the following file:
-
hardware/libhardware/include/hardware/
thermal.h
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 UTC."],[],[],null,["# Android Hardware Abstraction Layer: temperature_t Struct Reference\n\ntemperature_t Struct Reference\n==============================\n\n[Data Fields](#pub-attribs) \ntemperature_t Struct Reference \n\n`\n#include \u003c\n`[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)`\n\u003e\n`\n\n|-----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| enum [temperature_type](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h) | [type](/reference/hal/structtemperature__t#ac2576b1d5d75a297f21fe45e13215c39) |\n| ||\n| const char \\* | [name](/reference/hal/structtemperature__t#a8f8f80d37794cde9472343e4487ba3eb) |\n| ||\n| float | [current_value](/reference/hal/structtemperature__t#a30aa1ab8d0ac8b5c390517f0357a48a9) |\n| ||\n| float | [throttling_threshold](/reference/hal/structtemperature__t#aa4a83a0e413be3fe2f84c303897bdcc0) |\n| ||\n| float | [shutdown_threshold](/reference/hal/structtemperature__t#a892daeeae3ffe25ff843dc94c5c77bc6) |\n| ||\n| float | [vr_throttling_threshold](/reference/hal/structtemperature__t#a20c72a42dae9d20b9ed7945aa36fc4c0) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[52](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\nField Documentation\n-------------------\n\n\n|---------------------|\n| float current_value |\n\n\nCurrent temperature in Celsius. If not available set by HAL to UNKNOWN_TEMPERATURE. Current temperature can be in any units if type=DEVICE_TEMPERATURE_UNKNOWN.\n\n\nDefinition at line\n[70](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n|-------------------|\n| const char\\* name |\n\n\nName of this temperature. All temperatures of the same \"type\" must have a different \"name\".\n\n\nDefinition at line\n[62](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n|--------------------------|\n| float shutdown_threshold |\n\n\nShutdown temperature constant for this temperature. If not available, set by HAL to UNKNOWN_TEMPERATURE.\n\n\nDefinition at line\n[82](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n|----------------------------|\n| float throttling_threshold |\n\n\nThrottling temperature constant for this temperature. If not available, set by HAL to UNKNOWN_TEMPERATURE.\n\n\nDefinition at line\n[76](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n|----------------------------------------------------------------------------------------------------------------------------------|\n| enum [temperature_type](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h) type |\n\n\nThis temperature's type.\n\n\nDefinition at line\n[56](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n|-------------------------------|\n| float vr_throttling_threshold |\n\n\nThreshold temperature above which the VR mode clockrate minimums cannot be maintained for this device. If not available, set by HAL to UNKNOWN_TEMPERATURE.\n\n\nDefinition at line\n[89](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\nof file\n[thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [thermal.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/thermal.h)"]]