Home
last modified time | relevance | path

Searched refs:totalPowerMah (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java56 public double totalPowerMah; field in BatterySipper
132 this.totalPowerMah = value; in BatterySipper()
154 return Double.compare(other.totalPowerMah, totalPowerMah); in compareTo()
176 totalPowerMah += other.totalPowerMah; in add()
220 totalPowerMah = usagePowerMah + wifiPowerMah + gpsPowerMah + cpuPowerMah + in sumPower()
223 totalSmearedPowerMah = totalPowerMah + screenPowerMah + proportionalSmearMah; in sumPower()
225 return totalPowerMah; in sumPower()
DBatteryStatsHelper.java482 mMaxRealPower = mMaxPower = mUsageList.get(0).totalPowerMah; in refreshStats()
485 mComputedPower += mUsageList.get(i).totalPowerMah; in refreshStats()
530 * ((sipper.totalPowerMah + sipper.screenPowerMah) in refreshStats()
648 if (radio.totalPowerMah > 0) { in addRadioUsage()
673 final double totalPowerMah = (suspendPowerMaMs + idlePowerMaMs) / (60 * 60 * 1000); in addIdleUsage() local
674 if (DEBUG && totalPowerMah != 0) { in addIdleUsage()
681 if (totalPowerMah != 0) { in addIdleUsage()
682 addEntry(BatterySipper.DrainType.IDLE, mTypeBatteryRealtimeUs / 1000, totalPowerMah); in addIdleUsage()
698 if (bs.totalPowerMah > 0) { in addWiFiUsage()
712 if (bs.totalPowerMah > 0) { in addBluetoothUsage()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java93 mNormalBatterySipper.totalPowerMah = TOTAL_BATTERY_USAGE; in setUp()
99 mScreenBatterySipper.totalPowerMah = BATTERY_SCREEN_USAGE; in setUp()
102 mSystemBatterySipper.totalPowerMah = BATTERY_SYSTEM_USAGE; in setUp()
107 mOvercountedBatterySipper.totalPowerMah = BATTERY_OVERACCOUNTED_USAGE; in setUp()
110 mUnaccountedBatterySipper.totalPowerMah = BATTERY_UNACCOUNTED_USAGE; in setUp()
222 private BatterySipper createTestSmearBatterySipper(long activityTime, double totalPowerMah, in createTestSmearBatterySipper() argument
226 sipper.totalPowerMah = totalPowerMah; in createTestSmearBatterySipper()
/frameworks/base/core/java/android/os/
DBatteryStats.java3336 BatteryStatsHelper.makemAh(bs.totalPowerMah), in dumpCheckinLocked()
4319 printmAh(pw, bs.totalPowerMah); in dumpLocked()
4321 if (bs.usagePowerMah != bs.totalPowerMah) { in dumpLocked()
4370 if (bs.totalSmearedPowerMah != bs.totalPowerMah) { in dumpLocked()