A partir del 27 de marzo de 2025, te recomendamos que uses android-latest-release
en lugar de aosp-main
para compilar y contribuir a AOSP. Para obtener más información, consulta Cambios en AOSP.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Referencia de la estructura temperature_t
#include <
thermal.h
>
Definición en la línea
52
del archivo
thermal.h
.
Temperatura actual en grados Celsius. Si no está disponible, HAL lo establece en UNKNOWN_TEMPERATURE. La temperatura actual puede estar en cualquier unidad si type=DEVICE_TEMPERATURE_UNKNOWN.
Definición en la línea
70
del archivo
thermal.h
.
Es el nombre de esta temperatura. Todas las temperaturas del mismo "tipo" deben tener un "nombre" diferente.
Definición en la línea
62
del archivo
thermal.h
.
Es la constante de temperatura de apagado para esta temperatura. Si no está disponible, HAL lo establece en UNKNOWN_TEMPERATURE.
Definición en la línea
82
del archivo
thermal.h
.
float throttling_threshold
|
Es la constante de temperatura de limitación para esta temperatura. Si no está disponible, HAL lo establece en UNKNOWN_TEMPERATURE.
Definición en la línea
76
del archivo
thermal.h
.
Es el tipo de esta temperatura.
Definición en la línea
56
del archivo
thermal.h
.
float vr_throttling_threshold
|
Es la temperatura umbral por encima de la cual no se pueden mantener los mínimos de velocidad de reloj del modo de RV para este dispositivo. Si no está disponible, HAL lo establece en UNKNOWN_TEMPERATURE.
Definición en la línea
89
del archivo
thermal.h
.
La documentación de esta struct se generó a partir del siguiente archivo:
-
hardware/libhardware/include/hardware/
thermal.h
El contenido y las muestras de código que aparecen en esta página están sujetas a las licencias que se describen en la Licencia de Contenido. Java y OpenJDK son marcas registradas de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-07-26 (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)"]]