Stay organized with collections
Save and categorize content based on your preferences.
AThermalHeadroomThreshold
This struct defines an instance of headroom threshold value and its status.
Summary
The value should be monotonically non-decreasing as the thermal status increases. For ATHERMAL_STATUS_SEVERE, its headroom threshold is guaranteed to be 1.0f. For status below severe status, the value should be lower or equal to 1.0f, and for status above severe, the value should be larger or equal to 1.0f.
Also see AThermal_getThermalHeadroom for explanation on headroom, and AThermal_getThermalHeadroomThresholds for how to use this.
Public attributes
headroom
Declared in android/thermal.h
float AThermalHeadroomThreshold::headroom
thermalStatus
Declared in android/thermal.h
AThermalStatus AThermalHeadroomThreshold::thermalStatus
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 2025-01-15 UTC.
[null,null,["Last updated 2025-01-15 UTC."],[],[],null,["# AThermalHeadroomThreshold Struct Reference\n\nAThermalHeadroomThreshold\n=========================\n\nThis struct defines an instance of headroom threshold value and its status.\n\nSummary\n-------\n\nThe value should be monotonically non-decreasing as the thermal status increases. For [ATHERMAL_STATUS_SEVERE](/ndk/reference/group/thermal#group___thermal_1gga12839f5ee073eb6d2c099b48680459dda2be15702c0757c9eb08a24886427c711), its headroom threshold is guaranteed to be 1.0f. For status below severe status, the value should be lower or equal to 1.0f, and for status above severe, the value should be larger or equal to 1.0f.\n\nAlso see [AThermal_getThermalHeadroom](/ndk/reference/group/thermal#group___thermal_1ga0dd3a87803b3549a9352ef5e6bf83d80) for explanation on headroom, and [AThermal_getThermalHeadroomThresholds](/ndk/reference/group/thermal#group___thermal_1gad5f0c9c4bc98a169b406e361df2fcb17) for how to use this.\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|\n| [headroom](#struct_a_thermal_headroom_threshold_1a56fbb372ae64755e1cb18476202edb2e) | `float` |\n| [thermalStatus](#struct_a_thermal_headroom_threshold_1a3a74887a17f9508217295f30c259da4e) | [AThermalStatus](/ndk/reference/group/thermal#group___thermal_1ga12839f5ee073eb6d2c099b48680459dd) |\n\nPublic attributes\n-----------------\n\n### headroom\n\nDeclared in `android/thermal.h` \n\n```text\nfloat AThermalHeadroomThreshold::headroom\n``` \n\n### thermalStatus\n\nDeclared in `android/thermal.h` \n\n```text\nAThermalStatus AThermalHeadroomThreshold::thermalStatus\n```"]]