自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
thermal_module 結構體參考
#include <
thermal.h
>
定義位於檔案
thermal.h
的第
134
行。
這個結構體的說明文件是由下列檔案產生:
-
hardware/libhardware/include/hardware/
thermal.h
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[],[],null,["# Android Hardware Abstraction Layer: thermal_module Struct Reference\n\nthermal_module Struct Reference\n===============================\n\n[Data Fields](#pub-attribs) \nthermal_module 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| struct [hw_module_t](/reference/hal/structhw__module__t) | [common](/reference/hal/structthermal__module#a71ea01183b3998cad6a2301a37a42fc7) |\n| ||\n| ssize_t(\\* | [getTemperatures](/reference/hal/structthermal__module#a34feed25b44e86cc4af0d86ce6c2d7fa) )(struct [thermal_module](/reference/hal/structthermal__module) \\*module, [temperature_t](/reference/hal/structtemperature__t) \\*list, size_t size) |\n| ||\n| ssize_t(\\* | [getCpuUsages](/reference/hal/structthermal__module#adb0cabb708469165a28cb23de7961859) )(struct [thermal_module](/reference/hal/structthermal__module) \\*module, [cpu_usage_t](/reference/hal/structcpu__usage__t) \\*list) |\n| ||\n| ssize_t(\\* | [getCoolingDevices](/reference/hal/structthermal__module#a47218544547e6d117f4dc8a658369f66) )(struct [thermal_module](/reference/hal/structthermal__module) \\*module, [cooling_device_t](/reference/hal/structcooling__device__t) \\*list, size_t size) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[134](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| struct [hw_module_t](/reference/hal/structhw__module__t) common |\n\n\nDefinition at line\n[135](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| ssize_t(\\* getCoolingDevices)(struct [thermal_module](/reference/hal/structthermal__module) \\*module, [cooling_device_t](/reference/hal/structcooling__device__t) \\*list, size_t size) |\n\n\nDefinition at line\n[201](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| ssize_t(\\* getCpuUsages)(struct [thermal_module](/reference/hal/structthermal__module) \\*module, [cpu_usage_t](/reference/hal/structcpu__usage__t) \\*list) |\n\n\nDefinition at line\n[177](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| ssize_t(\\* getTemperatures)(struct [thermal_module](/reference/hal/structthermal__module) \\*module, [temperature_t](/reference/hal/structtemperature__t) \\*list, size_t size) |\n\n\nDefinition at line\n[159](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)"]]