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.java108 mNormalBatterySipper.totalPowerMah = TOTAL_BATTERY_USAGE; in setUp()
114 mScreenBatterySipper.totalPowerMah = BATTERY_SCREEN_USAGE; in setUp()
117 mSystemBatterySipper.totalPowerMah = BATTERY_SYSTEM_USAGE; in setUp()
122 mOvercountedBatterySipper.totalPowerMah = BATTERY_OVERACCOUNTED_USAGE; in setUp()
125 mUnaccountedBatterySipper.totalPowerMah = BATTERY_UNACCOUNTED_USAGE; in setUp()
128 mWifiBatterySipper.totalPowerMah = BATTERY_WIFI_USAGE; in setUp()
131 mBluetoothBatterySipper.totalPowerMah = BATTERY_BLUETOOTH_USAGE; in setUp()
134 mIdleBatterySipper.totalPowerMah = BATTERY_IDLE_USAGE; in setUp()
292 private BatterySipper createTestSmearBatterySipper(long activityTime, double totalPowerMah, in createTestSmearBatterySipper() argument
296 sipper.totalPowerMah = totalPowerMah; in createTestSmearBatterySipper()
/frameworks/base/core/java/android/os/
DBatteryStats.java4041 BatteryStatsHelper.makemAh(bs.totalPowerMah), in dumpCheckinLocked()
5188 printmAh(pw, bs.totalPowerMah); in dumpLocked()
5190 if (bs.usagePowerMah != bs.totalPowerMah) { in dumpLocked()
5239 if (bs.totalSmearedPowerMah != bs.totalPowerMah) { in dumpLocked()
7595 proto.write(UidProto.PowerUseItem.COMPUTED_POWER_MAH, bs.totalPowerMah); in dumpProtoAppsLocked()
8144 proto.write(SystemProto.PowerUseItem.COMPUTED_POWER_MAH, bs.totalPowerMah); in dumpProtoSystemLocked()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java1796 e.writeLong(milliAmpHrsToNanoAmpSecs(bs.totalPowerMah)); in pullDeviceCalculatedPowerBlameUid()
1816 e.writeLong(milliAmpHrsToNanoAmpSecs(bs.totalPowerMah)); in pullDeviceCalculatedPowerBlameOther()