1、基础理论
Android 热缓解框架解析
2、调试方法
2.1 查看温升状态
adb shell dumpsys thermalservice
IsStatusOverride: false
ThermalEventListeners:
callbacks: 2
killed: false
broadcasts count: -1
ThermalStatusListeners:
callbacks: 2
killed: false
broadcasts count: -1
Thermal Status: 0
Cached temperatures:
HAL Ready: true
HAL connection:
ThermalHAL 2.0 connected: yes
Current temperatures from HAL:
Current cooling devices from HAL:
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-4}
CoolingDevice{mValue=0, mType=2, mName=cpufreq-cpu4}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-40}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-10}
CoolingDevice{mValue=0, mType=3, mName=gpu}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-8}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-80}
CoolingDevice{mValue=0, mType=2, mName=cpufreq-cpu0}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-2}
CoolingDevice{mValue=0, mType=5, mName=cdsp}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-20}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-1}
CoolingDevice{mValue=0, mType=1, mName=battery}
Temperature static thresholds from HAL:
2.2 查看各节点温度
adb shell cat /sys/class/thermal/thermal_zone*/temp
2.3 查看各节点温度类型
adb shell cat /sys/class/thermal/thermal_zone*/type
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
整形提升 一、简介 在进行算术运算时,CPU只能进行整形即以上类型精度的运算,若运算的数据不满4个字节则至少提升到4个字节再进行运算。 二、原因 计算机通过CPU相应的运算器件执行运算,该运算器件操作的字节长度一般为int的字节长度。对于两个char类型的数字…