Home
last modified time | relevance | path

Searched refs:customMeasuredPowerMah (Results 1 – 2 of 2) sorted by relevance

/aosp12/frameworks/base/core/java/com/android/internal/os/
H A DCustomMeasuredPowerCalculator.java51 final double[] customMeasuredPowerMah = calculateMeasuredEnergiesMah( in calculate() local
53 if (customMeasuredPowerMah != null) { in calculate()
57 for (int i = 0; i < customMeasuredPowerMah.length; i++) { in calculate()
60 customMeasuredPowerMah[i]); in calculate()
78 final double[] customMeasuredPowerMah = calculateMeasuredEnergiesMah( in calculateApp() local
80 if (customMeasuredPowerMah != null) { in calculateApp()
82 newTotalPowerMah = new double[customMeasuredPowerMah.length]; in calculateApp()
83 } else if (totalPowerMah.length != customMeasuredPowerMah.length) { in calculateApp()
90 for (int i = 0; i < customMeasuredPowerMah.length; i++) { in calculateApp()
93 customMeasuredPowerMah[i]); in calculateApp()
[all …]
H A DBatterySipper.java139 public double[] customMeasuredPowerMah; field in BatterySipper
263 if (other.customMeasuredPowerMah != null) { in add()
264 if (customMeasuredPowerMah == null) { in add()
265 customMeasuredPowerMah = new double[other.customMeasuredPowerMah.length]; in add()
267 if (customMeasuredPowerMah.length == other.customMeasuredPowerMah.length) { in add()
269 for (int idx = 0; idx < other.customMeasuredPowerMah.length; idx++) { in add()
270 customMeasuredPowerMah[idx] += other.customMeasuredPowerMah[idx]; in add()
288 if (customMeasuredPowerMah != null) { in sumPower()
289 for (int idx = 0; idx < customMeasuredPowerMah.length; idx++) { in sumPower()
290 totalPowerMah += customMeasuredPowerMah[idx]; in sumPower()