A partir de 27 de março de 2025, recomendamos usar android-latest-release
em vez de aosp-main
para criar e contribuir com o AOSP. Para mais informações, consulte Mudanças no AOSP.
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Referência da estrutura temperature_t
#include <
thermal.h
>
Definição na linha
52
do arquivo
thermal.h
.
Temperatura atual em graus Celsius. Se não estiver disponível, o HAL vai definir como UNKNOWN_TEMPERATURE. A temperatura atual pode estar em qualquer unidade se type=DEVICE_TEMPERATURE_UNKNOWN.
Definição na linha
70
do arquivo
thermal.h
.
Nome dessa temperatura. Todas as temperaturas do mesmo "tipo" precisam ter um "nome" diferente.
Definição na linha
62
do arquivo
thermal.h
.
Temperatura de desligamento constante para essa temperatura. Se não estiver disponível, o HAL vai definir como UNKNOWN_TEMPERATURE.
Definição na linha
82
do arquivo
thermal.h
.
float throttling_threshold
|
Constante de limitação de temperatura para essa temperatura. Se não estiver disponível, será definido por HAL como UNKNOWN_TEMPERATURE.
Definição na linha
76
do arquivo
thermal.h
.
O tipo da temperatura.
Definição na linha
56
do arquivo
thermal.h
.
float vr_throttling_threshold
|
Temperatura de limite acima da qual os mínimos de frequência de relógio do modo VR não podem ser mantidos para esse dispositivo. Se não estiver disponível, o HAL vai definir como UNKNOWN_TEMPERATURE.
Definição na linha
89
do arquivo
thermal.h
.
A documentação desse struct foi gerada com base no seguinte arquivo:
-
hardware/libhardware/include/hardware/
thermal.h
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-26 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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)"]]