1. PowerProfile.java 的文件代码逻辑流程
主要实现对 com.android.internal.R.xml.power_profile 的xml文件解析,解析出来的数据主要用于耗电数据的校准系数使用,其中核心数据是CPU频率、核数下对应的电流信息。例如cpu.speeds.cluster0,cpu.active.cluster1等等
- 系统源码位置frameworks\base\core\res\res\xml\power_profile.xml
2. PowerProfile.xml 文件示例
- 0
- 200
- 300
- 10
- 0.1
- 3
- 200
- 100
- 100
- 50
- 0.1
- 0.1
- 200
- 10
- 50
2 1 - 0
- 0
- 0
- 0
- 100
100 449000009790001085000121800013510001484000161700017500001779000180900018380001868000189700019270001961000200100090000097900010850001218000135100014840001617000175000017790001809000183800018680001897000192700019610002001000254.95354.95387.15442.86510.20582.65631.99812.02858.84943.23992.451086.321151.961253.801397.671450.67254.95354.95387.15442.86510.20582.65631.99812.02858.84943.23992.451086.321151.961253.801397.671450.67- 3000
- 0
- 0
- 0
- 0
.2 2 20 200 500