Starting March 27, 2025, we recommend using android-latest-release instead of aosp-main to build and contribute to AOSP. For more information, see Changes to AOSP.
         
       
     
  
  
  
  
  
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
  
  temperature_t Struct Reference
 
  
   #include <
   
    thermal.h
   
   >
  
 
 
 
 
 
 
  
   Definition at line
   
    52
   
   of file
   
    thermal.h
   
   .
  
  
 
 
 
 
  
  
   
    Current temperature in Celsius. If not available set by HAL to UNKNOWN_TEMPERATURE. Current temperature can be in any units if type=DEVICE_TEMPERATURE_UNKNOWN.
   
   
    Definition at line
    
     70
    
    of file
    
     thermal.h
    
    .
   
   
  
 
 
 
  
  
   
    Name of this temperature. All temperatures of the same "type" must have a different "name".
   
   
    Definition at line
    
     62
    
    of file
    
     thermal.h
    
    .
   
   
  
 
 
 
  
  
   
    Shutdown temperature constant for this temperature. If not available, set by HAL to UNKNOWN_TEMPERATURE.
   
   
    Definition at line
    
     82
    
    of file
    
     thermal.h
    
    .
   
   
  
 
 
 
  
   
    
     | float throttling_threshold | 
   
   
  
   
    Throttling temperature constant for this temperature. If not available, set by HAL to UNKNOWN_TEMPERATURE.
   
   
    Definition at line
    
     76
    
    of file
    
     thermal.h
    
    .
   
   
  
 
 
 
  
  
   
    This temperature's type.
   
   
    Definition at line
    
     56
    
    of file
    
     thermal.h
    
    .
   
   
  
 
 
 
  
   
    
     | float vr_throttling_threshold | 
   
   
  
   
    Threshold temperature above which the VR mode clockrate minimums cannot be maintained for this device. If not available, set by HAL to UNKNOWN_TEMPERATURE.
   
   
    Definition at line
    
     89
    
    of file
    
     thermal.h
    
    .
   
   
  
 
 The documentation for this struct was generated from the following file:
 
  - 
   hardware/libhardware/include/hardware/
   
    thermal.h
   
  
 
 
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  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 2019-10-02 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 UTC."],[],[]]