Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java61 public double totalPowerMah; field in BatterySipper
159 this.totalPowerMah = value; in BatterySipper()
181 return Double.compare(other.totalPowerMah, totalPowerMah); in compareTo()
206 totalPowerMah += other.totalPowerMah; in add()
254 totalPowerMah = usagePowerMah + wifiPowerMah + gpsPowerMah + cpuPowerMah + in sumPower()
257 totalSmearedPowerMah = totalPowerMah + screenPowerMah + proportionalSmearMah; in sumPower()
259 return totalPowerMah; in sumPower()
DBatteryStatsHelper.java512 mMaxRealPower = mMaxPower = mUsageList.get(0).totalPowerMah; in refreshStats()
515 mComputedPower += mUsageList.get(i).totalPowerMah; in refreshStats()
560 * ((sipper.totalPowerMah + sipper.screenPowerMah) in refreshStats()
694 if (radio.totalPowerMah > 0) { in addRadioUsage()
719 final double totalPowerMah = (suspendPowerMaMs + idlePowerMaMs) / (60 * 60 * 1000); in addIdleUsage() local
720 if (DEBUG && totalPowerMah != 0) { in addIdleUsage()
727 if (totalPowerMah != 0) { in addIdleUsage()
728 addEntry(BatterySipper.DrainType.IDLE, mTypeBatteryRealtimeUs / 1000, totalPowerMah); in addIdleUsage()
744 if (bs.totalPowerMah > 0) { in addWiFiUsage()
758 if (bs.totalPowerMah > 0) { in addBluetoothUsage()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java109 mNormalBatterySipper.totalPowerMah = TOTAL_BATTERY_USAGE; in setUp()
115 mScreenBatterySipper.totalPowerMah = BATTERY_SCREEN_USAGE; in setUp()
118 mSystemBatterySipper.totalPowerMah = BATTERY_SYSTEM_USAGE; in setUp()
123 mOvercountedBatterySipper.totalPowerMah = BATTERY_OVERACCOUNTED_USAGE; in setUp()
126 mUnaccountedBatterySipper.totalPowerMah = BATTERY_UNACCOUNTED_USAGE; in setUp()
129 mWifiBatterySipper.totalPowerMah = BATTERY_WIFI_USAGE; in setUp()
132 mBluetoothBatterySipper.totalPowerMah = BATTERY_BLUETOOTH_USAGE; in setUp()
135 mIdleBatterySipper.totalPowerMah = BATTERY_IDLE_USAGE; in setUp()
293 private BatterySipper createTestSmearBatterySipper(long activityTime, double totalPowerMah, in createTestSmearBatterySipper() argument
297 sipper.totalPowerMah = totalPowerMah; in createTestSmearBatterySipper()
/frameworks/base/core/java/android/os/
DBatteryStats.java4020 BatteryStatsHelper.makemAh(bs.totalPowerMah), in dumpCheckinLocked()
5169 printmAh(pw, bs.totalPowerMah); in dumpLocked()
5171 if (bs.usagePowerMah != bs.totalPowerMah) { in dumpLocked()
5220 if (bs.totalSmearedPowerMah != bs.totalPowerMah) { in dumpLocked()
7569 proto.write(UidProto.PowerUseItem.COMPUTED_POWER_MAH, bs.totalPowerMah); in dumpProtoAppsLocked()
8118 proto.write(SystemProto.PowerUseItem.COMPUTED_POWER_MAH, bs.totalPowerMah); in dumpProtoSystemLocked()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java2879 .writeLong(milliAmpHrsToNanoAmpSecs(bs.totalPowerMah))
2912 .writeLong(milliAmpHrsToNanoAmpSecs(bs.totalPowerMah))