החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
עזרה בנושא המבנה temperature_t
#include <
thermal.h
>
ההגדרה מופיעה בשורה
52
בקובץ
thermal.h
.
הטמפרטורה הנוכחית במעלות צלזיוס. אם הערך לא זמין, HAL מגדיר אותו כ-UNKNOWN_TEMPERATURE. הטמפרטורה הנוכחית יכולה להיות בכל יחידה אם type=DEVICE_TEMPERATURE_UNKNOWN.
ההגדרה מופיעה בשורה
70
בקובץ
thermal.h
.
השם של הטמפרטורה הזו. לכל הטמפרטורות מאותו 'סוג' חייב להיות 'שם' שונה.
ההגדרה מופיעה בשורה
62
בקובץ
thermal.h
.
טמפרטורת כיבוי קבועה לטמפרטורה הזו. אם הערך לא זמין, HAL מגדיר אותו כ-UNKNOWN_TEMPERATURE.
ההגדרה מופיעה בשורה
82
בקובץ
thermal.h
.
float throttling_threshold
|
קבוע הטמפרטורה של הבקרה על קצב ההעברה לטמפרטורה הזו. אם הערך לא זמין, HAL מגדיר אותו כ-UNKNOWN_TEMPERATURE.
ההגדרה מופיעה בשורה
76
בקובץ
thermal.h
.
הסוג של הטמפרטורה הזו.
ההגדרה מופיעה בשורה
56
בקובץ
thermal.h
.
float vr_throttling_threshold
|
טמפרטורת הסף שמעליה אי אפשר לשמור על שיעורי שעון מינימלי במצב VR במכשיר הזה. אם הערך לא זמין, HAL מגדיר אותו כ-UNKNOWN_TEMPERATURE.
ההגדרה מופיעה בשורה
89
בקובץ
thermal.h
.
התיעוד של המבנה הזה נוצר מהקובץ הבא:
-
hardware/libhardware/include/hardware/
thermal.h
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[[["התוכן קל להבנה","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 (שעון 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)"]]